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: Joerg Wunsch
Subject: Re: [avr-gcc-list] rjmp to an absolute address
Date: Thu, 8 Nov 2007 06:18:59 +0100 (MET)

"Shaun Jackman" <address@hidden> wrote:

> 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?

It works with .set but you have to place the .set *after* using it.
As the assembler is a one-pass assembler, by this means it has to
assume the symbolic name to be externally defined:

..text
reti
reti
reti
rjmp entry
..global main
main: rjmp main
..set entry,0

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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