Skip to main content
Visitor II
February 9, 2004
Question

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

  • February 9, 2004
  • 3 replies
  • 837 views
Posted on February 09, 2004 at 10:10

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

    This topic has been closed for replies.

    3 replies

    kaneAuthor
    Visitor II
    February 9, 2004
    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?
    Visitor II
    February 9, 2004
    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
    kaneAuthor
    Visitor II
    February 9, 2004
    Posted on February 09, 2004 at 10:10

    Thanks, thats excellent