A89: Re: adding to an address


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

A89: Re: adding to an address




Did you try just simply: add d0,a0??

-Miles Raymond      EML: m_rayman@bigfoot.com
ICQ: 13217756       IRC: Killer2        AIM: kilier2
http://www.bigfoot.com/~m_rayman

----- Original Message -----
From: <S43R80@aol.com>
To: <assembly-89@lists.ticalc.org>
Sent: Friday, January 21, 2000 4:08 PM
Subject: A89: adding to an address

> i seem to be having trouble making an address register point to a certain
> address...for instance:
>
> clr.l d0
> lea some_matrix,a0
>
> ;---perform some calculations involving d0---
> ;multiply...add...
> ;---end calculations---
>
> ;then i would like to make a0 point to some address d0 bytes after
> 'some_matrix'
> ;so i can later access this byte
> i tried:
> adda d0,a0
> add.w d0,(a0)
> and probably some others...but a0 never seems to point to the right byte
(or
> probably any byte in 'some_matrix' for that matter...
>
> ...Steven



References: