[Avrora] MSP430 / TelosB support for Avrora
urs.hunkeler at epfl.ch
Fri Jan 21 03:16:10 PST 2011
Thanks for the heads up! I wasn't sure whether the comments were
important, but you clarified that, too. So now the tests run, and it
turns out that there is a script to generate a set of simple tests.
I managed to get most of the available tests to run by fixing bugs in
either the interpreter or the tests themselves. 73 out of 74 tests pass
now. There are some instructions (such as the sub and subc) that are not
tested, but again, I am not that confident I really understand the
behavior of the flags for these instructions, so I cannot really
implement authoritative tests...
On 01/19/2011 09:33 AM, Ben L. Titzer wrote:
> Nice job Urs. To be honest I don't remember writing much of the
> simulator code. We had a project to generate the disassembler,
> instruction classes, and interpreter behavior from an instruction set
> description language, with msp430 the driving force behind it.
> Unfortunately we didn't really finish it and it became too much of a
> hassle to keep adding more and more features. I'm glad that you've taken
> it up.
> Have a look at the tests for the AVR interpreter again. The format is
> just assembly with some special comments at the top that describe what
> the state of the registers/memory should be after executing the program.
> If you use that as a guide, it should be straightforward to write a
> similar suite of assembly "micro programs" to test the MSP430 simulator.
> Thanks, and nice work.
More information about the Avrora