Skip to content
Browse files

Fixed encoded literal test

  • Loading branch information...
1 parent 124a1ad commit df808dbe4036d3dd722d3449e203b9992ead4c83 Matt Bell committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/cpu_test.js
View
2 test/cpu_test.js
@@ -24,7 +24,7 @@ module.exports = {
// Encoded literals
for (var i = -1; i < 31; ++i) {
- assert.equal(cpu.addressFor(0x21 + i), i | CPU.FLAG_LITERAL);
+ assert.equal(cpu.addressFor(0x21 + i), (i & 0xffff) | CPU.FLAG_LITERAL);
}
// Stack operations

0 comments on commit df808db

Please sign in to comment.
Something went wrong with that request. Please try again.