update debug

This commit is contained in:
Elias Bennour 2023-12-09 23:15:11 +01:00
parent 742f050b24
commit 8be99c5244

1
njvm.c
View File

@ -107,6 +107,7 @@ void execute(struct program program) {
case RSF: case RSF:
if (debug == 1) printf("rsf: %i\n", SIGN_EXTEND(IMMEDIATE(program.program[i]))); if (debug == 1) printf("rsf: %i\n", SIGN_EXTEND(IMMEDIATE(program.program[i])));
*stack.current = fp; *stack.current = fp;
if (debug == 1) printf("pop: %i\n", peek(stack, 1));
fp = pop(stack); fp = pop(stack);
break; break;
case POPL: case POPL: