Skip to content
Snippets Groups Projects
Commit f213fb23 authored by Linyuan Zhao's avatar Linyuan Zhao
Browse files

Update Machine.java

parent bccfec24
No related branches found
No related tags found
No related merge requests found
...@@ -217,7 +217,7 @@ public class Machine ...@@ -217,7 +217,7 @@ public class Machine
int rd = parseReg(toks[1]); int rd = parseReg(toks[1]);
int rs1 = parseReg(toks[2]); int rs1 = parseReg(toks[2]);
int rs2 = parseReg(toks[3]); int rs2 = parseReg(toks[3]);
do_sub(rd,rs1,rs2); do_add(rd,rs1,rs2);
} else if (toks[0].equals(INSTRUCTION_MULT)){ } else if (toks[0].equals(INSTRUCTION_MULT)){
if (toks.length != 4){ if (toks.length != 4){
throw new InvalidInstructionException(); throw new InvalidInstructionException();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment