diff options
Diffstat (limited to 'lisc')
-rw-r--r-- | lisc/emit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisc/emit.c b/lisc/emit.c index 80df768..15be31e 100644 --- a/lisc/emit.c +++ b/lisc/emit.c @@ -223,10 +223,12 @@ eins(Ins i, Fn *fn, FILE *f) break; default: if (OXSet <= i.op && i.op <= OXSet1) { - eop("mov $0,", i.to, R, fn, f); fprintf(f, "\tset%s %%%s\n", ctoa[i.op-OXSet], rsub[RBASE(i.to.val)][SByte]); + fprintf(f, "\tmovzb %%%s, %%%s\n", + rsub[RBASE(i.to.val)][SByte], + rtoa(i.to.val)); break; } diag("emit: unhandled instruction (3)"); |