Skip to content
Snippets Groups Projects
Commit d0e78823 authored by Jinge Zhang's avatar Jinge Zhang
Browse files

Replace Machine.java

parent 98efa84f
Branches
No related tags found
No related merge requests found
package swen90006.machine;
package swen90006.machine;
import java.util.Arrays;
import java.util.List;
......@@ -263,7 +263,8 @@ public class Machine
do_move(rd,offs);
} else if (toks[0].equals(INSTRUCTION_JUMP)){
if (toks.length != 2){
throw new InvalidInstructionException();
/* mutation InvalidInstructionException()*/
throw new NoReturnValueException();
}
int offs = parseOffset(toks[1]);
pc = pc + offs;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment