Skip to content
Snippets Groups Projects
Commit bc66120f authored by Jingjiahui Lu's avatar Jingjiahui Lu
Browse files

Update Machine.java

parent cc200b49
No related branches found
No related tags found
No related merge requests found
...@@ -209,7 +209,7 @@ public class Machine ...@@ -209,7 +209,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_add(rd,rs1,rs2); do_mult(rd,rs1,rs2);
} else if (toks[0].equals(INSTRUCTION_SUBTRACT)){ } else if (toks[0].equals(INSTRUCTION_SUBTRACT)){
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