[A83] Re: Defined Variables


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

[A83] Re: Defined Variables




At 03:59 PM 9/23/2001 -0600, you wrote:

>Thanks, I have part of it working. When I try to assign the value in (VAR)
>to a register however, I get an error.
>
>ld (VAR),a      ;works fine
>
>
>The error I get is "Unused data in MS byte of argument. (82)", in reference
>to the line which I have this on (I've tried both):
>
>ld b,VAR
>or
>ld b,(VAR)
>
>Again, its probably some idiotic syntax thing, so bear with me.

Actually, it is a hardware restriction whereby only the accumulator and hl 
can do memory access.  You need to use a or hl whenever you do anything 
with memory.






References: