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

Update Machine.java

parent ed3d0c24
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,7 @@ public class Machine
throw new InvalidInstructionException();
}
int offs = parseOffset(toks[1]);
pc = pc + offs;
pc = pc + 1;
count++;
continue; /* avoid default increment of pc below */
} 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