1struct MBC1 : MMIO { 2 bool ram_enable; //$0000-1fff 3 uint8 rom_select; //$2000-3fff 4 uint8 ram_select; //$4000-5fff 5 bool mode_select; //$6000-7fff 6 7 uint8 mmio_read(uint16 addr); 8 void mmio_write(uint16 addr, uint8 data); 9 void power(); 10} mbc1; 11 12