Sun, 23 May 2010 13:26:51 +0100
Print sBx field in bytecode dump (for debugging)
lvm.js | file | annotate | diff | comparison | revisions |
--- a/lvm.js Sun May 23 12:46:56 2010 +0100 +++ b/lvm.js Sun May 23 13:26:51 2010 +0100 @@ -109,7 +109,7 @@ if(debugMode) { var pi = this.instructions[this.instructions.length-1]; - sys.puts("Pos: "+(this.pos-4)+" Ins: "+ins+" OP: "+INS_OPCODE(pi)+" A: "+INS_A(pi)+" B: "+INS_B(pi)+" C: "+INS_C(pi)+" Bx: "+INS_Bx(pi)); + sys.puts("Pos: "+(this.pos-4)+" Ins: "+ins+" OP: "+INS_OPCODE(pi)+" A: "+INS_A(pi)+" B: "+INS_B(pi)+" C: "+INS_C(pi)+" Bx: "+INS_Bx(pi)+" sBx: "+(INS_Bx(pi)-0x1FFFE)); } }