A89: adding to an address


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

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


Follow-Ups: