Assembler Interpreter for microcontrollers - sane?

Oct 01, 2008 01:53


I’m thinking of how much work it would be to write an assembler interpreter in PIC assembler. Probably sounds like the dumbest idea in the world, right ;-)

I’ve been toying with this idea lately for sort of futureproofing microcontroller-based designs, and adding some new possibilities for specific applications (polymorphic / self-modifying code, ( Read more... )

geek

Leave a comment

Comments 2

(The comment has been removed)

minus3db October 1 2008, 19:20:46 UTC
Your idea is kinda what the Arduino/Processing are doing too, to some extent

Not at all; my whole idea is to enable executing code from microcontroller RAM, which is normally not possible. :-) The decision to use the CPU's own opcodes as the interpreted language is just laziness on my part so I don't have to invent a language or write a compiler. The fact that users can continue using any existing bizzare path to generating those opcodes (Java->c->asm->opcodes) is just a happy coincidence.

Reply

minus3db October 1 2008, 19:31:27 UTC
Looking up Interactive C though, 'pcode' interpretation is pretty much exactly the idea :-) (only the pcode itself, rather than its interpretation, is defined by the architecture)

Reply


Leave a comment

Up