The same warning for me. The error disappera if I put 0x59 instead of 59, but
my program continue having this problem. I show you a part of the program so
you can tell me maybe something more:
asm("LDI R16,HIGH(RAMEND)\n"
"LDI R17,LOW(RAMEND)\n"
"OUT SPH, R16\n"
"OUT SPL, R17\n"
"JMP Start\n"
"key:\n"
".word 0x0f\n"
".word 0x15\n"
".word 0x71\n"
".word 0xC9\n"
".word 0x47\n"
".word 0xD9\n"
".word 0xE8\n"
".word 0x59\n"
".word 0x0c\n"
".word 0xB7\n"
".word 0xAd\n"
".word 0xD6\n"
".word 0xAf\n"
".word 0x7f\n"
".word 0x67\n"
".word 0x98\n"
"sbox:\n"
".word 0x63\n"
".word 0x7C\n"
".word 0x77\n"
".word 0x7B\n"
".word 0xF2\n"
".word 0x6B\n"
".word 0x6F\n"
".word 0xC5\n"
".word 0x30\n"
".word 0x01\n"
".word 0x67\n"
"STart :\n"
"RCALL Key_Exp\n"
"Key_Exp :\n"
"CLR R14\n"
"LDI ZH, HIGH(key*2)\n"
"LDI ZL, LOW(key*2)\n"
"LDI YH, 0x01\n"
"LDI YL, 0x00\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LPM R10, Z+\n"
"ST Y+, R10\n"
"LDI R30, 4\n"
"MOV R5, R30\n"
"LDI R30, 44\n"
"MOV R6, R30\n"
"CLR R14\n"
"NOP"
);
> Date: Sun, 16 Nov 2008 12:35:03 -0700
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> CC: [email protected]
> Subject: Re: [Tinyos-help] FW: assembly & nesC
>
> hmm, just tried to put your line into one of my files and got similar results:
> /tmp/ccB8qCt9.s: Assembler messages:
> /tmp/ccB8qCt9.s:6800: Warning: expression possibly out of 8-bit range
> /tmp/ccB8qCt9.s:6800: Error: garbage at end of line
> make: *** [exe0] Error 1
>
> Of course the system helped me by removing the temp .s file so I can't
> look at it. Perhaps there is some way to get it to keep the file. I'd
> try to figure that one out...do you also get the range warning? That
> might be the real problem.
>
> I've got:
> nescc: 1.2.7a
> gcc version 3.3.3 (cygwin special)
>
> MS
>
> stefano starita wrote:
> > First of all thank you for the suggestions.
> > I've tried every possible combinations but I still have the errors
> > "garbage at the end of the line",
> > " ',' required" and "bad expression". I've tried also to embed the
> > assembly code of crc.h but the result is the same.
> >
> > > Date: Sun, 16 Nov 2008 11:13:05 -0700
> > > From: [EMAIL PROTECTED]
> > > To: [EMAIL PROTECTED]
> > > CC: [email protected]
> > > Subject: Re: [Tinyos-help] FW: assembly & nesC
> > >
> > > Just a couple suggestions ...
> > > Compare your usage with some existing ones.
> > > I found one in tinyos-1.x/tos/platform/avrmote/crc.h where there is
> > > no \n\t at the end of the asm() string.
> > >
> > > It's also possible that the embedded newline between your mnemonic
> > > strings is causing trouble. You could try putting them into one
> > > string.
> > >
> > > MS
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> --
> Platform: WinXP/Cygwin
> TinyOS version: 1.x, Boomerang
> Programmer: MIB510
> Device(s): Mica2, MicaZ, Tmote
> Sensor board: homebrew
>
_________________________________________________________________
Sei pronto per la sfida? 50 nuovi schemi per giocare su CrossWire!
http://livesearch.games.msn.com/crosswire/play_it/_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help