I'm having trouble telling my assembly about a high byte of a long int. Is there an easy way to do this? Example:
void DADDLongInt( unsigned long int total ) { // for now, just add 25 each time __asm__("\tDADD %1, %0\n\tDADC %0": "=g" (total) : "n" (25) ); } Written another way: void DADDLongInt( unsigned long int total ) { // for now, just add 25 each time __asm__("\tDADD %1, %0": "=g" (total) : "n" (25) ); __asm__("\tDADC %0": "=g" (total) ); } What do I use for the operand of the second assembly instruction? I want to just say "(total(2))" or "(total+2)", but neither work. Thanks -Mark