aboutsummaryrefslogtreecommitdiff
path: root/minic
diff options
context:
space:
mode:
Diffstat (limited to 'minic')
-rw-r--r--minic/minic.y7
1 files changed, 5 insertions, 2 deletions
diff --git a/minic/minic.y b/minic/minic.y
index ab95604..82b0df0 100644
--- a/minic/minic.y
+++ b/minic/minic.y
@@ -192,7 +192,7 @@ psymb(Symb s)
void
sext(Symb *s)
{
- fprintf(of, "\t%%t%d =l sext ", tmp);
+ fprintf(of, "\t%%t%d =l extsw ", tmp);
psymb(*s);
fprintf(of, "\n");
s->t = Tmp;
@@ -257,9 +257,12 @@ Scale:
void
load(Symb d, Symb s)
{
+ char t;
+
fprintf(of, "\t");
psymb(d);
- fprintf(of, " =%c load ", irtyp(d.ctyp));
+ t = irtyp(d.ctyp);
+ fprintf(of, " =%c load%c ", t, t);
psymb(s);
fprintf(of, "\n");
}