Don Kinzer wrote:
>
>
> Perhaps this is simply an exercise but the code does nothing other
> than use CPU cycles.
>
> Don Kinzer
>
Yes, it is precisely an exercise, will never run in silicon.
Now I am getting the following:
asm volatile (
" ldi R16, (%0) \n"
" ldi R17, (%1) \n"
" ldi R18, (%2) \n"
" ldi R19, (%3) \n"
" mov (%3), R19 \n"
" mov (%2), R18 \n"
" mov (%1), R17 \n"
" mov (%0), R16 \n"
: "=r" (var1) , "=r" (var2) , "=r" (var3) , "=r" (var4):
"0" (var1) , "1" (var2) , "2" (var3) , "3" (var4) :
"r16", "r17", "r18", "r19" );
}
errors:
C:\Users\avrFreak\AppData\Local\Temp/ccFmqAas.s:61: Error: constant
value required
C:\Users\avrFreak\AppData\Local\Temp/ccFmqAas.s:62: Error: constant
value required
C:\Users\avrFreak\AppData\Local\Temp/ccFmqAas.s:63: Error: constant
value required
C:\Users\avrFreak\AppData\Local\Temp/ccFmqAas.s:64: Error: constant
value required
make: *** [embedded_asm.o] Error 1
What, exactly, is it complaining about not be a "constant" value, and h
ow do I fix this?
avrFreakMessage
Re: [AVR-Chat] Re: *** H E L P ***n (again)
2008-02-28 by Tom
Attachments
- No local attachments were found for this message.