diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-05-07 17:36:19 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-05-07 17:36:19 -0600 |
commit | dcf0a8a4a77b0add316b3a8ea7cc0f746c128594 (patch) | |
tree | fae52287bdd3e04eb5981290948dd735ca933202 | |
parent | 306e2b87b3d0e4ab211e2a95796b2b2081b89e38 (diff) |
Goto, Return in Condense
-rw-r--r-- | condense/CondenseVisitor.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/condense/CondenseVisitor.java b/condense/CondenseVisitor.java index 480a7d5..b6233b2 100644 --- a/condense/CondenseVisitor.java +++ b/condense/CondenseVisitor.java @@ -294,7 +294,8 @@ public class CondenseVisitor extends VInstr.Visitor<RuntimeException>{ n.getClass().getSimpleName(), n.sourcePos.toString())); /////////////////////////////////////////////////////////////// - + this.addMIPS(String.format(" j %s", + (((VAddr.Label) n.target).label).ident)); /////////////////////////////////////////////////////////////// MinimalLogger.info(String.format("<-%s (%s)", n.getClass().getSimpleName(), @@ -306,7 +307,7 @@ public class CondenseVisitor extends VInstr.Visitor<RuntimeException>{ n.getClass().getSimpleName(), n.sourcePos.toString())); /////////////////////////////////////////////////////////////// - + this.addMIPS(" jr $ra"); /////////////////////////////////////////////////////////////// MinimalLogger.info(String.format("<-%s (%s)", n.getClass().getSimpleName(), |