update debug
This commit is contained in:
parent
a8999f4ec2
commit
5a7338f91c
2
njvm.c
2
njvm.c
@ -174,10 +174,12 @@ void execute(struct program program) {
|
||||
if (debug == 1) printf("new i: %i\n", i);
|
||||
break;
|
||||
case RET:
|
||||
if (debug == 1) printStack(stack, fp);
|
||||
if (debug == 1) printf("ret\n");
|
||||
if (debug == 1) printf("pop: %i\n", peek(stack, 1));
|
||||
i = pop(stack);
|
||||
if (debug == 1) printf("new i: %i\n", i);
|
||||
if (debug == 1) printStack(stack, fp);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user