Browse files

MMU: Coerce RAM into signed form on load.

  • Loading branch information...
1 parent 00d9a7f commit 1de3ee131e30fb659989e95900048778982ab44b @nelhage committed May 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 MMU.js
View
2 MMU.js
@@ -1,7 +1,7 @@
var MMU = {
memory: [],
load: function (mem) {
- MMU.memory = mem.map(function(x){return x;});
+ MMU.memory = mem.map(function(x){return x&0xFFFFFFFF;});
},
read: function(addr) {
var ea = (addr & ~CPU.PC_SUPERVISOR) >> 2;

0 comments on commit 1de3ee1

Please sign in to comment.