Skip to content
Snippets Groups Projects
Commit 9bb94dab authored by Zhaolin Deng's avatar Zhaolin Deng
Browse files

Update Machine.java

parent c00697e6
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,7 @@ public class Machine
private void validate_offset(int offset)
throws InvalidInstructionException
{
if (offset < -MAX_ADDR || offset > MAX_ADDR) {
if (offset <= -MAX_ADDR || offset > MAX_ADDR) {
throw new InvalidInstructionException();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment