Re: code directive question

Craig Franklin <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
Read this:
http://gputils.sourceforge.net/reloc_howto.html

then read MPASM chapter 6 and on from this:
http://gputils.sourceforge.net/33014g.pdf

Ben Dugan wrote:

>
> I thought I'd try to use code directives and make my code relocateable,
> but I have a question.
>
> If I want interrupt vectors to begin at 0x800 (as they should for
> bootloading purposes in the picdem board), how do I do that?
>
> Instead of:
>
> org 0x800
>
> I can write:
>
> code 0x800
>
> But that's not really an improvement, is it?
>
> Isn't there some way that the source code can have a label or something,
> so that it will go where the linker script knows to put vectors?
> Something like this, for instance:
>
> vectors code
>     goto start
>     etc
>     ?
>
> I'm sorry to ask this, but I can't seem to find it in the docs so far.
>
> Ben
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
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.