OK the problem was:
low() and high() can't be used, lo8 and hi8 must be used
SPH and SPL must be replaced with __SP_H__ and __SP_L__.
$ must be replaced by 0x
ZH, ZL, YH, YL, XH, XL must be replaced with their register r31, r30, r29, r28,
r27, r26
lo8(key*2) : the *2 generates an error
and \n\t must be written at the end of every instruction.
I think it's all. Thank you for all the advices
Stefano> From: [EMAIL PROTECTED]> To: [email protected]>
Subject: Re: [Tinyos-help] FW: assembly & nesC> Date: Mon, 17 Nov 2008 03:22:16
+0100> CC: [EMAIL PROTECTED]> > Hi,> > Le Sunday 16 November 2008 20:57:09
stefano starita, vous avez écrit :> ...> > I show you a part of the> > program
so you can tell me maybe something more:> >> > asm("LDI R16,HIGH(RAMEND)\n">
...> > "CLR R14\n"> > "NOP"> > );> well according to avr-libc documentation > (
at http://www.nongnu.org/avr-libc/user-manual/inline_asm.html )> you are
expected to write your asm as: > > "Each asm statement is divided by colons
into (up to) four parts:> ...> asm(code : output operand list : input operand
list [: clobber list]); "> > looks like at least two colons are required.>
maybe it's not your problem but at least it works for me form inside nesc >
code ... > > > > From: [EMAIL PROTECTED]> > > To: [EMAIL PROTECTED]> > > > 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...> > you want gcc option "-save-temps".> I don't really
remember if you can use it as "CFALGS=-save-temps make micaz " > or from the
actual build that fails with running "CFALGS=-v make micaz " then > spotting
the exact gcc command line and typing it again with the save-temps > option> To
my experience having a look at the temp asm file often really helps to find >
the error ...> > Cheers> Aurélien
_________________________________________________________________
Tutto il mondo MSN in un clic. Scarica la Toolbar!
http://toolbar.msn.com/overview.aspx?loc=it-it_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help