Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed offsets of 0xffff

  • Loading branch information...
commit 40fe367fd3732e3ad16f4f3af5e60df48cddbd86 1 parent f89c82f
Matt Bell authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  dcpu16.js
  2. +1 −1  package.json
View
2  dcpu16.js
@@ -130,7 +130,7 @@ var DCPU16 = {};
} else if(0x08 <= value && value <= 0x0F) {
address = this.get(r);
} else {
- address = this.nextWord() + this.get(r);
+ address = this.nextWord() + this.get(r) & 0xffff;
}
return address;
}
View
2  package.json
@@ -2,7 +2,7 @@
"author": "Matt Bell <mappum@gmail.com> (mappum)",
"name": "dcpu16",
"description": "An assembler and a vm for the DCPU-16 CPU from Notch's new game, 0x10c.",
- "version": "0.0.0",
+ "version": "0.1.0",
"repository": {
"type": "git",
"url": "git://github.com/mappum/DCPU-16.git"
Please sign in to comment.
Something went wrong with that request. Please try again.