diff options
Diffstat (limited to 'condense/CondenseVisitor.java')
-rw-r--r-- | condense/CondenseVisitor.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/condense/CondenseVisitor.java b/condense/CondenseVisitor.java index 3ded2e8..436ddfa 100644 --- a/condense/CondenseVisitor.java +++ b/condense/CondenseVisitor.java @@ -178,15 +178,15 @@ public class CondenseVisitor extends VInstr.Visitor<RuntimeException>{ } if (op.equals("Add")) - ret += " add"; + ret += " addu"; else if (op.equals("Sub")) - ret += " sub"; + ret += " subu"; else if (op.equals("MulS")) ret += " mul"; else if (op.equals("Eq")) - ret += " and"; + ret += " seq"; else if (op.equals("Lt")) - ret += " slt"; + ret += " sltu"; else if (op.equals("LtS")) ret += " slt"; else if (op.equals("PrintIntS")) { @@ -287,9 +287,9 @@ public class CondenseVisitor extends VInstr.Visitor<RuntimeException>{ /////////////////////////////////////////////////////////////// String ret = " "; if (n.positive) - ret += "bnez "; + ret += "bgtz "; else - ret += "beqz "; + ret += "blez "; ret += n.value.toString() + " "; |