debug printer supports OP_JMP/OP_JMPIF

This commit is contained in:
Yuichi Nishiwaki 2013-10-16 17:46:33 +09:00
parent 27da3d030b
commit 6bd4747673
1 changed files with 6 additions and 0 deletions

View File

@ -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;