Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
eecheng87 committed Nov 5, 2020
1 parent cf86617 commit 1835541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void code_generate()
emit(__div(__AL, OP_reg + 1, OP_reg, dest_reg));
emit(__mul(__AL, OP_reg, OP_reg, OP_reg + 1));
emit(__sub_r(__AL, dest_reg, dest_reg, OP_reg));
/* TODO: support print '%' */
/* TODO: support percent-sign character (%) in format string */
if (dump_ir == 1)
printf(" x%d = x%d mod x%d", dest_reg, dest_reg, OP_reg);
break;
Expand Down

0 comments on commit 1835541

Please sign in to comment.