cancel
Showing results for 
Search instead for 
Did you mean: 

What does ''LD eval1+1,A'' do?

kane
Associate II
Posted on February 09, 2004 at 10:10

What does ''LD {eval1+1},A'' do?

3 REPLIES 3
kane
Associate II
Posted on February 09, 2004 at 07:33

Hi,

I'm trawling through some ASM code I need to update (not written by me) and having trouble interpretting some of it...

LD {eval1+1},A

Load acumulator to eval1... what does the +1 bit do? Is this to address the MSB, LSB?
sjo
Associate II
Posted on February 09, 2004 at 08:46

For instance if you define a word in memory, eg. eval DS.W 1

LD {eval1+1},A would write to the low byte

LD {eval1},A would write to the high byte.

This is if MOTOROLA (Big endian) has been defined, if using INTEL (little endian) then the opposite applys.

Regards

sjo
kane
Associate II
Posted on February 09, 2004 at 10:10

Thanks, thats excellent