Hi Paulo,
The following suggestion worked :-)
You can always compile a simple C program into assembly and modify
the result to your needs instead of writing it from scratch...
I hope this helps,
For reference, the correct syntax is:
#---------- permsCheckAsm.S--------------------
.section .text
.global permsCheck
permsCheck:
movw r30, r24
subi r30, lo8(-(permsTable)) ;<-- An extra set of parentheses around
the symbol name
sbci r31, hi8(-(permsTable))
ret
Thanks everyone,
-Ram
_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list