Re: code directive question

Ben Dugan <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
> It will do.  You'll have to name the segment you want to go in fixed
> places and use the linker script to place it at the desired location for
> the different targets.

That's what I expected, but I can't see how its done exactly.

> I don't have the linker scripts to hand at the moment so I can't look
> for an example but there are probably some segments already named for
> the reset and interrupt vectors.

Here's an excerpt from the linker script I've been using:

CODEPAGE   NAME=vectors  START=0x800   END=0x829   PROTECTED
CODEPAGE   NAME=page     START=0x82A   END=0x7FFF

So, what sort of line in the asm source file will set the vectors to
begin at 0x800? Is it:

vectors	code

?

Or:

	code vectors
?

Neither of these works for me, although it seems as though the first
ought to. Do I need a special character to tell the assembler to pass it
along unchecked, so the linker can use it?

Thanks for your help!

Ben
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.