Re: 6809 assembly knowledge needed

From: Groepaz <>
Date: Wed, 6 Jan 2010 12:28:59 +0100
Message-Id: <>
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.


Life's tough, get a helmet.

       Message was sent through the cbm-hackers mailing list
Received on 2010-01-06 12:00:02

Archive generated by hypermail 2.2.0.