Print implicit operands for some instructions.
MODIFY
src/codedump.c
src/codedump.c
@@ -387,37 +387,37 @@ codedump(mrb_state *mrb, const mrb_irep *irep)
printf("OP_ALIAS\t:%s\t%s\n", mrb_sym_dump(mrb, irep->syms[a]), mrb_sym_dump(mrb, irep->syms[b]));
break;
CASE(OP_ADD, B);
- printf("OP_ADD\tR%d\t\n", a);
+ printf("OP_ADD\tR%d\tR%d\n", a, a+1);
break;
CASE(OP_ADDI, BB);
printf("OP_ADDI\tR%d\t%d\n", a, b);
break;
CASE(OP_SUB, B);
- printf("OP_SUB\tR%d\t\n", a);
+ printf("OP_SUB\tR%d\tR%d\n", a, a+1);
break;
CASE(OP_SUBI, BB);
printf("OP_SUBI\tR%d\t%d\n", a, b);
break;
CASE(OP_MUL, B);
- printf("OP_MUL\tR%d\t\n", a);
+ printf("OP_MUL\tR%d\tR%d\n", a, a+1);
break;
CASE(OP_DIV, B);
- printf("OP_DIV\tR%d\t\n", a);
+ printf("OP_DIV\tR%d\tR%d\n", a, a+1);
break;
CASE(OP_LT, B);
- printf("OP_LT\t\tR%d\t\n", a);
+ printf("OP_LT\t\tR%d\tR%d\n", a, a+1);
break;
CASE(OP_LE, B);
- printf("OP_LE\t\tR%d\t\n", a);
+ printf("OP_LE\t\tR%d\tR%d\n", a, a+1);
break;
CASE(OP_GT, B);
- printf("OP_GT\t\tR%d\t\n", a);
+ printf("OP_GT\t\tR%d\tR%d\n", a, a+1);
break;
CASE(OP_GE, B);
- printf("OP_GE\t\tR%d\t\n", a);
+ printf("OP_GE\t\tR%d\tR%d\n", a, a+1);
break;
CASE(OP_EQ, B);
- printf("OP_EQ\t\tR%d\t\n", a);
+ printf("OP_EQ\t\tR%d\tR%d\n", a, a+1);
break;
CASE(OP_ARRAY, BB);
printf("OP_ARRAY\tR%d\t%d\t", a, b);

Print implicit operands for some instructions.