[Top][All Lists]

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

[avr-gcc-list] WinAVR inline assembler

From: Jens Andersen
Subject: [avr-gcc-list] WinAVR inline assembler
Date: Thu, 17 Mar 2005 17:21:00 +0100

Hi list,

Ive just by accident discovered that avr-gcc in
the latest WinAVR disti supports inline assembler
in the form:

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

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

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

Can someone explain a little more about this feature ?
Is this a macro whitch expands to gnu syntax ?



reply via email to

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