Tom Rauchenwald <its.sec / gmx.net> writes: > Hi, > > Here is my solution to the current quiz. It has a few flaws, and it > uses a method call for each statement (which is probably quite slow). > The nice thing is that you can dump a program and view it in an > assembler-like way. > The implementation is quite simple, I don't think i need to explain it > in detail. I hope i haven't screwed up somewhere :) Well, I just read my code again, and noticed that I did screw up. An instruction is 2 byte, so def jmp addr @pc=addr/4-1 #each instruction has 4 byte. -1, because @pc gets incremented in main loop end should be def jmp addr @pc=addr/2-1 #each instruction has 2 byte. -1, because @pc gets incremented in main loop end I hope next time I'll notice such things earlier :) Tom