Print sBx field in bytecode dump (for debugging)

Sun, 23 May 2010 13:26:51 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 23 May 2010 13:26:51 +0100
changeset 31
bc58527bac34
parent 30
10fd886c4e8a
child 32
035aacc192d8

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));
 		}
 	}
 	

mercurial