I installed ubuntu and am using TOSSIM as simulator. Rest of programs are 
compiling properly and running. But when the below #define directive for 
assembly gets added as a preprocessor directive to file HPLAt45dbIOP.nc for 
micaz; The assembly code is not recognised. I am trying to use micaz as the 
platform on TOSSIM. 


#define BITINIT \
uint8_t clrClkAndData = PORTD & ~0x28
#define BIT(n) \
PORTD = clrClkAndData; \
asm __volatile__ \
    (  "sbrc %2," #n "\n" \
 "\tsbi 18,3\n" \
 "\tsbi 18,5\n" \
 "\tsbic 16,2\n" \
 "\tori %0,1<<" #n "\n" \
 : "=d" (spiIn) : "0" (spiIn), "r" (spiOut))
I get errors like 
/opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc: 

Assembler 
messages:/opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:150:
 Error: no such instruction: sbrc 
%cl,7'/opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:151: 
Error: no such instruction:sbi 
18,3'/opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:152: 
Error: no such instruction: sbi 
18,5'/opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:153: 
Error: no such instruction:sbic 
16,2'/opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:154: 
Error: no such instruction: `ori %dl,1<<7'

I have an Intel machine.  Is TOSSIM unable to run assembly language 
instructions? Please help this is becoming frustrating.

Thanks 

Vandana
 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to