[Avrora] MSP430 / TelosB support for Avrora

Daniel Minder daniel.minder at uni-due.de
Wed Jan 19 01:29:06 PST 2011


Hi Urs,

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:

with r12=r13=0:
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.

Best,
Daniel

-- 
Daniel Minder
University of Duisburg-Essen, Networked Embedded Systems
Bismarckstr. 90, 47057 Duisburg, Germany
Skype: d.minder


More information about the Avrora mailing list