avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] rjmp to an absolute address


From: Shaun Jackman
Subject: Re: [avr-gcc-list] rjmp to an absolute address
Date: Wed, 7 Nov 2007 17:04:05 -0700

On Nov 7, 2007 1:15 PM, Joerg Wunsch <address@hidden> wrote:
> "Shaun Jackman" <address@hidden> wrote:
> > Is there any way in source code to use the rjmp instruction to jump
> > to an absolute address without using a linker option or a linker
> > script?
>
> ..set x,0
> ....
> rjmp x

Upon testing, using .set doesn't work, which is what I expected --
glad I'm not losing my nut. `.set x, 0' creates a symbol local to the
current section. So, `.set x, 0; rjmp x' is equivalent to `rjmp 0',
which jumps to the beginning of the section, not the absolute address
0. So, back to my original question...

Is there a way in source code to use the rjmp instruction to jump to
an absolute address (not relative to the section offset) without using
a linker option or a linker script?

Cheers,
Shaun




reply via email to

[Prev in Thread] Current Thread [Next in Thread]