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

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

Re: [avr-gcc-list] WinAVR inline assembler


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] WinAVR inline assembler
Date: Fri, 18 Mar 2005 09:25:23 +0100 (MET)

"Jens Andersen" <address@hidden> wrote:

> asm("ldi r16, 0x80");
> asm("sts 0x61, r16"); // CLKPR

> This is mutch closer to the Atmel syntax than
> the gnu assembler syntax.

Huh?  In what respect is it?  Both assemblers basically differ in
their pseudo-op syntax, and obviously, inline asm doesn't need
pseudo-ops.

> However if i try to use symbolic names from
> the header target specific header file (mega48)
> i get a undefined symbol error.

Please RTFAQ.  It's FAQ entry #9.

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