# HG changeset patch # User Matthew Wild # Date 1274617611 -3600 # Node ID bc58527bac34a171cf0cec33b8db00e1e46b9322 # Parent 10fd886c4e8ae27e6b97a286a3225ed91cf688a9 Print sBx field in bytecode dump (for debugging) diff -r 10fd886c4e8a -r bc58527bac34 lvm.js --- 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)); } }