A85: Memory Loading


[Prev][Next][Index][Thread]

A85: Memory Loading




Lets say I have the following:

ASDF = TEXT_MEM
...
ld    hl,ASDF
...
ld    e,128
ld    a,(hl)
xor    e
ld    (hl),a

What I think this code is doing is loading binary 1000 0000 (assuming
ASDF=0) into ASDF, right?  I have this stupid bug in my code that I
can't seem to kill and I think this may be around where it is.  Yeah, I
could just do:

ld    a,128
ld    ASDF,a

but the data constantly changes (the 128 part) and I'm not quite sure
where in the text mem hl is pointing to (ASDF is an 8 byte array).  Any
ideas?

 - Jim

BTW, it would be AWESOME if one of those debuggers made for Usgard 0.95
were converted to 1.5  =)


Follow-Ups: