# HG changeset patch # User Matthew Wild # Date 1290356969 0 # Node ID 04eb68b0f3e39ada5d53ecd16515fb87d1a8e366 # Parent fdcc139587a36da37178263a985197ae6c1d87e1 Prettier stack printing in debugMode diff -r fdcc139587a3 -r 04eb68b0f3e3 lvm.js --- a/lvm.js Sun Nov 21 16:28:40 2010 +0000 +++ b/lvm.js Sun Nov 21 16:29:29 2010 +0000 @@ -405,7 +405,8 @@ if(debugMode) { sys.puts("PC: "+(frame.pc-1)+" OP: "+instruction[0]); - sys.puts("STACK: "+sys.inspect(frame.reg)); + for(var i = 0; i < frame.reg.length; i++) + sys.puts("\t"+i+":\t("+frame.reg[i].type+") "+frame.reg[i].toString()); } switch(INS_OPCODE(instruction)) {