[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] inline assembler
From: |
Torsten Hahn |
Subject: |
[avr-gcc-list] inline assembler |
Date: |
Thu, 11 Oct 2001 10:55:07 +0200 |
Hi,
i have a c-file like this:
#define myreg r16
.
.
.
int main(void)
{
...
asm ("
LDI myreg, 0xff
");
}
But this does not work ! How can i tell avr-gcc, to use the #define(ed)
statements also in the inlined assembler sections ?
Or is there a directitive for the as like .define myreg r16 ?
CU,
Torsten.
--
Torsten Hahn / Chemnitzer Str. 4 / 09599 Freiberg / Germany
mail: address@hidden
phone: (+49) 177 2181338
pgp key avaiable at: http://math-www.uni-paderborn.de/pgpnet/wwwkeys.html
- [avr-gcc-list] inline assembler,
Torsten Hahn <=