update debug

This commit is contained in:
Elias Bennour 2023-12-09 23:10:31 +01:00
parent 9d64b87a09
commit 2cb94eaf76

1
njvm.c
View File

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