[A83] Re: Defined Variables


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

[A83] Re: Defined Variables




You cannot load from a memory address into any register other than A. Try:

ld a,(VAR)
ld b,a

Michael Vincent
Detached Solutions - www.detacheds.com
Radical Software - www.radicalsoft.org

----- Original Message -----
From: "Brad Klingenberg" <rncproponent@hotmail.com>
To: <assembly-83@lists.ticalc.org>
Sent: Sunday, September 23, 2001 2:59 PM
Subject: [A83] Re: Defined Variables


>
> 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.
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>





References: