Wednesday, 13 August 2008

It's working, it's working!

I brought the VM back to a working state tonight, and it does now support jumps, both conditional and non-conditional, with the opcodes JMP, JMPIF (pop the top of the stack, if it's true, jump), and JMPEL (else, jump if the top value is false). In addition, I've fixed static calls, and with some changes to the assembler, the example code works.

I've also started to take a look at Tamarin (WP), which is the VM that powers AS 3, and will eventually be used in Mozilla. ActionScript is very similar to what I plan Topaz to be, so I can look at it to get ideas on how to do stuff. The source file layout is very confusing tought, so the only useful thing I've found yet is the list of the OpCodes.

PS: Join me at irc://irc.gamesurge.net/#topaz

No comments: