Re: code directive question

Peter Onion <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
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
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.