Re: A89: More ASM help please
[Prev][Next][Index][Thread]
Re: A89: More ASM help please
>>
>> move.l a0,-(a7)
>>
>> <<< String is being pushed into the stack via a0, but why did we have to
>use
>> a0 when it seems logical enough to just push string in directly?>>>
Indeed he could have done:
pea string(pc)
instead of:
lea string(pc),a0
move.l a0,-(a7)
pea is the instruction which pushes on the stack an effective adress. here
the effective adress is: string(PC) + offset of 'string' relative to PC -->
this is an absolute adress.
Xavier VASSOR
---The Doors Team
E-mail:xvassor@mail.dotcom.fr
Doors Homepage: http://www.altern.org/doors
ICQ:10241721
References: