[Avrora] MSP430 / TelosB support for Avrora
daniel.minder at uni-due.de
Wed Jan 19 01:29:06 PST 2011
I'm not that familiar with the MSP430, but I guess if you just follow
the arithmetics as described in the instruction set it should work:
sub #1025, r12 --> 0 + NOT #1024 + 1 = 0 + fbfeh + 1 = fbffh, no carry!
sbc r13 --> 0 + ffffh + carry (0) = ffffh, no carry!
jnc $+48 --> jump!
I'm sure you'll figure out how to implement this in Avrora :)
> I'll have to figure out whether additions with
> negative numbers are affected...
IMGO, the CPU is not aware of negative numbers in the ADD command. It
just does pure bit arithmetics, at least to the command set description.
University of Duisburg-Essen, Networked Embedded Systems
Bismarckstr. 90, 47057 Duisburg, Germany
More information about the Avrora