Skip to content

Commit

Permalink
Merge pull request #154 from lorderikir/master
Browse files Browse the repository at this point in the history
hotfix to include address DEC4095 within allowed range
  • Loading branch information
ericjiang97 committed Sep 5, 2016
2 parents f89bc4a + 9400cc2 commit 4967456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/marie.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ var MarieSim,
this[target] = Utility.uintToInt(src & msk);

if(target == "pc") {
if(0 <= this[target] && this[target] >= 4095) {
if(0 <= this[target] && this[target] >= 4096) {
throw new MarieSimError("RuntimeError", "The address " + (this[target]).toString() + " is out of bounds.");
}
}
Expand Down

0 comments on commit 4967456

Please sign in to comment.