Fix codedumper

parent 7d51a7bb
......@@ -328,38 +328,38 @@ codedump(mrb_state *mrb, mrb_irep *irep)
CASE(OP_ALIAS, BB):
printf("OP_ALIAS\t:%s\t%s\n", mrb_sym2name(mrb, irep->syms[a]), mrb_sym2name(mrb, irep->syms[b]));
break;
CASE(OP_ADD, BB):
printf("OP_ADD\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b]));
CASE(OP_ADD, B):
printf("OP_ADD\tR%d\t\n", a);
break;
CASE(OP_ADDI, BBB):
printf("OP_ADDI\tR%d\t:%s\t%d\n", a, mrb_sym2name(mrb, irep->syms[b]), c);
CASE(OP_ADDI, BB):
printf("OP_ADDI\tR%d\t%d\n", a, b);
break;
CASE(OP_SUB, BB):
printf("OP_SUB\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b]));
CASE(OP_SUB, B):
printf("OP_SUB\tR%d\t\n", a);
break;
CASE(OP_SUBI, BBB):
printf("OP_SUBI\tR%d\t:%s\t%d\n", a, mrb_sym2name(mrb, irep->syms[b]), c);
CASE(OP_SUBI, BB):
printf("OP_SUBI\tR%d\t%d\n", a, b);
break;
CASE(OP_MUL, BB):
printf("OP_MUL\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b]));
CASE(OP_MUL, B):
printf("OP_MUL\tR%d\t\n", a);
break;
CASE(OP_DIV, BB):
printf("OP_DIV\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b]));
CASE(OP_DIV, B):
printf("OP_DIV\tR%d\t\n", a);
break;
CASE(OP_LT, BB):
printf("OP_LT\t\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b]));
CASE(OP_LT, B):
printf("OP_LT\t\tR%d\t\n", a);
break;
CASE(OP_LE, BB):
printf("OP_LE\t\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b]));
CASE(OP_LE, B):
printf("OP_LE\t\tR%d\t\n", a);
break;
CASE(OP_GT, BB):
printf("OP_GT\t\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b]));
CASE(OP_GT, B):
printf("OP_GT\t\tR%d\t\n", a);
break;
CASE(OP_GE, BB):
printf("OP_GE\t\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b]));
CASE(OP_GE, B):
printf("OP_GE\t\tR%d\t\n", a);
break;
CASE(OP_EQ, BB):
printf("OP_EQ\t\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b]));
CASE(OP_EQ, B):
printf("OP_EQ\t\tR%d\t\n", a);
break;
CASE(OP_ARRAY, BB):
printf("OP_ARRAY\tR%d\t%d\t", a, b);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment