gnupic: Re: [gnupic] code directive question
Subject:
Re: [gnupic] code directive question
From:
Peter Onion ####@####.####
Date:
9 Sep 2005 16:59:22 +0100
Message-Id: <1126281533.5035.5.camel@ratbert.alien.bt.co.uk>
On Fri, 2005-09-09 at 11:46 -0400, 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?
That's because interrupt vectors ARE NOT relocatable ;)
Try using relocation for some code that can be relocated and you'll
start to see the advantages.
Peter