2011-01-04 10:42:27 +00:00
|
|
|
struct MBC3 : MMIO {
|
2015-11-21 07:36:48 +00:00
|
|
|
auto second() -> void;
|
|
|
|
auto mmio_read(uint16 addr) -> uint8;
|
|
|
|
auto mmio_write(uint16 addr, uint8 data) -> void;
|
|
|
|
auto power() -> void;
|
|
|
|
|
2011-12-26 10:49:48 +00:00
|
|
|
bool ram_enable; //$0000-1fff
|
|
|
|
uint8 rom_select; //$2000-3fff
|
|
|
|
uint8 ram_select; //$4000-5fff
|
|
|
|
bool rtc_latch; //$6000-7fff
|
2011-01-04 10:42:27 +00:00
|
|
|
|
|
|
|
bool rtc_halt;
|
2015-11-21 07:36:48 +00:00
|
|
|
uint rtc_second;
|
|
|
|
uint rtc_minute;
|
|
|
|
uint rtc_hour;
|
|
|
|
uint rtc_day;
|
2011-01-04 10:42:27 +00:00
|
|
|
bool rtc_day_carry;
|
|
|
|
|
2015-11-21 07:36:48 +00:00
|
|
|
uint rtc_latch_second;
|
|
|
|
uint rtc_latch_minute;
|
|
|
|
uint rtc_latch_hour;
|
|
|
|
uint rtc_latch_day;
|
|
|
|
uint rtc_latch_day_carry;
|
2011-01-04 10:42:27 +00:00
|
|
|
} mbc3;
|