update debug

This commit is contained in:
Elias Bennour 2023-12-09 23:12:33 +01:00
parent 3f12378110
commit 14025d3b08

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;