[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] inline asm: how to make lds work with array elements?
From: |
Lin Gu |
Subject: |
[avr-gcc-list] inline asm: how to make lds work with array elements? |
Date: |
Mon, 17 Jan 2005 15:01:30 -0500 |
Hi,
I can get correct assembly cod for the following asm line.
asm volatile ("sts aba, r27" "\n\t" : : );
Here aba is a global char variable.
However, avr-gcc complains for the following line.
asm volatile ("sts cReg[27], r27" "\n\t" : :);
The error messages are:
/tmp/ccaTmd02.s: Assembler messages:
/tmp/ccaTmd02.s:290: Error: `,' required
/tmp/ccaTmd02.s:290: Error: garbage at end of line
So how shall I specify the address of an element in an array
in inline asm?
Thanks in advance,
lin
--
Lin Gu
Univ. of Virginia
- [avr-gcc-list] inline asm: how to make lds work with array elements?,
Lin Gu <=