debug printer supports OP_JMP/OP_JMPIF
This commit is contained in:
parent
27da3d030b
commit
6bd4747673
6
src/vm.c
6
src/vm.c
|
@ -161,6 +161,12 @@ print_irep(pic_state *pic, struct pic_irep *irep)
|
||||||
case OP_GSET:
|
case OP_GSET:
|
||||||
printf("OP_GSET\t%p\n", irep->code[i].u.gvar);
|
printf("OP_GSET\t%p\n", irep->code[i].u.gvar);
|
||||||
break;
|
break;
|
||||||
|
case OP_JMP:
|
||||||
|
printf("OP_JMP\t%d\n", irep->code[i].u.i);
|
||||||
|
break;
|
||||||
|
case OP_JMPIF:
|
||||||
|
printf("OP_JMPIF\t%d\n", irep->code[i].u.i);
|
||||||
|
break;
|
||||||
case OP_CALL:
|
case OP_CALL:
|
||||||
printf("OP_CALL\t%d\n", irep->code[i].u.i);
|
printf("OP_CALL\t%d\n", irep->code[i].u.i);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue