Skip to content
Snippets Groups Projects
Commit 768cffb8 authored by Emily Marshall's avatar Emily Marshall
Browse files

Update Machine.java

parent 0dc49af3
No related branches found
No related tags found
No related merge requests found
...@@ -148,7 +148,10 @@ public class Machine ...@@ -148,7 +148,10 @@ public class Machine
private void validate_offset(int offset) private void validate_offset(int offset)
throws InvalidInstructionException throws InvalidInstructionException
{ {
if (offset < -MAX_ADDR || offset > MAX_ADDR) { if (offset < -MAX_ADDR || offset > MAX_ADDR+1) {
//change max offset, taking advantage of the fact that the assignment
//specification changed to exclude address 35536. killed by BVA
//test EC6
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