bsnes/higan/gb/cartridge/mbc1/mbc1.hpp

11 lines
286 B
C++
Raw Normal View History

struct MBC1 : MMIO {
auto mmio_read(uint16 addr) -> uint8;
auto mmio_write(uint16 addr, uint8 data) -> void;
auto power() -> void;
bool ram_enable; //$0000-1fff
uint8 rom_select; //$2000-3fff
uint8 ram_select; //$4000-5fff
bool mode_select; //$6000-7fff
} mbc1;