Browse Source

mmSwitchRegister() finished.

master
Bryan Miller 5 years ago
parent
commit
9a50ab2514
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/mmc.js

+ 4
- 1
src/mmc.js View File

mmSwitchRegister(){ mmSwitchRegister(){
return (function(byte){ return (function(byte){
// TODO: Check the bits to determin which bank and bank index is being switched on.
let mmcidx = (byte & 0xF0) >> 4;
if (mmcidx < this.__banks.length){
this.__banks[mmcidx].idx = (byte & 0x0F);
}
}).bind(this); }).bind(this);
} }
} }

Loading…
Cancel
Save