diff options
Diffstat (limited to 'assemble.c')
-rw-r--r-- | assemble.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -4,9 +4,7 @@ static void aRef(struct ref ref, FILE *f) { - char buf[40]; - ref_show(ref, buf); - fprintf(f, "%s", buf); + fprintf(f, "%s", ref_show(ref)); } static void assemble_ins(const struct irins *ins, FILE *f) { @@ -91,6 +89,10 @@ static void assemble_ins(const struct irins *ins, FILE *f) { fprintf(f, "\tbrk\n"); break; + case INS_HWI: + fprintf(f, "\thwi "); aRef(ins->r1, f); fprintf(f, "\n"); + break; + case INS_CALLV: case INS_RETV: assert(false); |