Re: A89: get a number


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

Re: A89: get a number




Ben Rodgers wrote:
>  move.w d6(a1),d0  ;I also tried putting the value in


here is one problem. you cant write like that.

move.w (a1,d6.w),d0  is what you want.

(maybe you have to write move.w 0(a1,d6.w),d0)
(move var1(a1),d0 takes the _address_ of var1 (not what you stored in there) and
adds it to a1 for EA)

You should also make shure, there is no "trash" left in regs.
and one more thing.. multiplications useing multiples of 2, is best done with
shifts.

//Olle


References: