[A89] Re: org directive in a68k
[Prev][Next][Index][Thread]
[A89] Re: org directive in a68k
I understand the linker places a relocation table at the end but I am not
linking this with the 89's linker. I am programming some flash chips on a
circuit board for school. I can guarantee this code will always run from
location $20000. I could write a linker that changes the base address of my
code but this would be more work than i think necessary. Seeing how there
has been a method for setting the base address(in the source) in every
assembler i have ever used, i'm sure there is one here in a68k. The
question is how.
Brandon Sterner
----- Original Message -----
From: "Samuel Nyall Stearley" <sstear70@calvin.edu>
To: <assembly-89@lists.ticalc.org>
Sent: Monday, January 21, 2002 4:05 PM
Subject: [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
>
>
>
>
>
References: