[A89] Re: org directive in a68k
[Prev][Next][Index][Thread]
[A89] Re: org directive in a68k
When the .89z file is generated there will be a relocation table at the end of
it. Before executing your program tios will use this relocation table to
modify your program so that it can be executed from anywhere and still use
absolute addressing. So feel free to use absolute addressing without using the
org directive.
-Samuel
Quoting Brandon Sterner <brandon@detacheds.com>:
>
> I'm trying to figure out how to set the base address for the code I'm
> assembling so that I can use absolute addressing. We do this on the
> z80
> calculators with the org or .org directive but attempting to use this
> directive in a68k gives me the error "relocatability error". The same
> occurs with rorg. I can't find any examples or source in which this is
> used
> either(for a68k). I assembled this source on a 68k assembler written
> by
> teesside university without trouble. The only thing that gives me an
> error
> is this org directive. I think everyone uses relative addressing for
> the
> 89/92 and I'd be doing this but i'm programming code for a different
> system.
> Thanks for any help you can give me.
>
> Brandon Sterner
> www.detacheds.com
>
>
>
>
23 He (Elisha) went up from there to Bethel; and while he was going up on
the way, some small boys came out of the city and jeered at him saying,
"Go away, baldhead! Go away, baldhead! 24 When he turned around and saw
them, he cursed them in the name of the lord. Then two she-bears came
out
of the woods and mauled forty-two of the boys. 25 From there he went on
to Mount Carmel, and then returned to Samaria.
- 2 Kings 2: 23-25
Follow-Ups:
References: