update debug
This commit is contained in:
parent
c0a5e694c0
commit
a8999f4ec2
1
njvm.c
1
njvm.c
@ -169,6 +169,7 @@ void execute(struct program program) {
|
||||
case CALL:
|
||||
if (debug == 1) printf("call: %i\n", SIGN_EXTEND(IMMEDIATE(program.program[i])));
|
||||
push(stack, i + 1);
|
||||
if (debug == 1) printf("push: %i\n", i + 1);
|
||||
i = SIGN_EXTEND(IMMEDIATE(program.program[i])) - 1;
|
||||
if (debug == 1) printf("new i: %i\n", i);
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user