mirror of https://github.com/bsnes-emu/bsnes.git
15 lines
317 B
C++
15 lines
317 B
C++
|
struct MBC1 : MMIO {
|
||
|
bool ram_enable; //0000-1fff
|
||
|
uint8 rom_select; //2000-3fff
|
||
|
uint8 ram_select; //4000-5fff
|
||
|
bool mode_select; //6000-7fff
|
||
|
|
||
|
unsigned rom_bank;
|
||
|
unsigned ram_bank;
|
||
|
|
||
|
uint8 mmio_read(uint16 addr);
|
||
|
void mmio_write(uint16 addr, uint8 data);
|
||
|
void power();
|
||
|
void reset();
|
||
|
} mbc1;
|