On Mittwoch 06 Januar 2010, you wrote: > How can I use the Program Counter as index if its content is only known > after compilation? The only thing I can think of is that you can program > a piece of code that loads something from a table and both code and > table have to be relocatable on the fly. i dont really know the 6809, but pc-relative adressing is a common thing to do on "modern" cpus. its exactly for what you think, position independend code. there is no difference to the regular, absolute, instructions from a programmers point of view. -- http://www.hitmen-console.org http://magicdisk.untergrund.net http://www.pokefinder.org http://ftp.pokefinder.org Life's tough, get a helmet. Message was sent through the cbm-hackers mailing listReceived on 2010-01-06 12:00:02
Archive generated by hypermail 2.2.0.