ソースを参照

mmSwitchRegister() finished.

master
Bryan Miller 6年前
コミット
9a50ab2514
1個のファイルの変更4行の追加1行の削除
  1. +4
    -1
      src/mmc.js

+ 4
- 1
src/mmc.js ファイルの表示

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);
} }
} }

読み込み中…
キャンセル
保存