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