Not sure here, but the gas manual says that the modifier to get the 
lower eight bits is "lo8(expression)" not "low(expression)". Is the 
"low(-5)" causing your problem? Does the code compile when low(-5) is 
replaced by a simple immediate number?

Ereth

stefano starita wrote:
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: assembly & nesC
> Date: Sat, 15 Nov 2008 15:55:11 +0100
>
> Hi to all,
> I'm trying to send to a sensor a version of AES, written in assembly, 
> embedded in a nesC program. The mote is the Mica2 and the programming 
> board is the mib510. Every time I try to compile with ncc I 
> receive the errors:
> garbage at the end of the line. I've removed the symbol $but nothing 
> happened. I receive this error even if I try to embed this two 
> instruction: asm( "andi r24, low(-5)\n\t"
>                                              "sts 59, r24\n\t");
> Can somebody tell me what error I'm making?
>  
> Thank you
>  
> Stefano
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to