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

Update Machine.java

parent ed3d0c24
Branches
No related tags found
No related merge requests found
...@@ -266,7 +266,7 @@ public class Machine ...@@ -266,7 +266,7 @@ public class Machine
throw new InvalidInstructionException(); throw new InvalidInstructionException();
} }
int offs = parseOffset(toks[1]); int offs = parseOffset(toks[1]);
pc = pc + offs; pc = pc + 1;
count++; count++;
continue; /* avoid default increment of pc below */ continue; /* avoid default increment of pc below */
} else if (toks[0].equals(INSTRUCTION_JZ)){ } else if (toks[0].equals(INSTRUCTION_JZ)){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment