Re: A89: More ASM help please


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

Re: A89: More ASM help please





>> 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.
>>  
>
>does the inclusion of (pc) in addressing commands allow an asm prog to run
>from anywhere in memory, instead of a fixed location? (like the 86 for those
>of you who are familiar with it)
Yes, that's the main point of (pc).
If you wrote without PC, then it would have been an adress relative to the
beginning of the program, and so it would have to be relocated to be an
absolute adress.




Xavier VASSOR
---The Doors Team
E-mail:xvassor@mail.dotcom.fr
Doors Homepage: http://www.altern.org/doors
ICQ:10241721


References: