Re: A89: Help
[Prev][Next][Index][Thread]
Re: A89: Help
> move.w #4,-(a7)
> lea string(pc),a0
> move.l a0,-(a7)
> move.w #50,-(a7)
> move.w #25,-(a7)
> jsr tios::DrawStrXY
> add.l #10,(a7) ----> this will add 10 to the value
pointed to by a7, but we want to add 10 to a7, so do:
lea 10(a7),a7 ;optimised
or add.l #10,a7
BTW, the code:
lea string(pc),a0
move.l a0,-(a7)
can be optimised to:
pea string(pc)
Xavier VASSOR
---The Doors Team
E-mail:xvassor@mail.dotcom.fr
Doors Homepage: http://doorshome.home.ml.org
ICQ:10241721
References: