update debug

This commit is contained in:
Elias Bennour 2023-12-09 23:11:42 +01:00
parent 2cb94eaf76
commit 3f12378110

2
njvm.c
View File

@ -107,7 +107,7 @@ void execute(struct program program) {
case RSF:
if (debug == 1) printf("rsf\n");
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);
break;