aboutsummaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/assemble.c b/assemble.c
index cdc584c..a5ae6b4 100644
--- a/assemble.c
+++ b/assemble.c
@@ -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);