Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/gameboy/cartridge/mbc3/mbc3.hpp
2 views
1
struct MBC3 : MMIO {
2
bool ram_enable; //$0000-1fff
3
uint8 rom_select; //$2000-3fff
4
uint8 ram_select; //$4000-5fff
5
bool rtc_latch; //$6000-7fff
6
7
bool rtc_halt;
8
unsigned rtc_second;
9
unsigned rtc_minute;
10
unsigned rtc_hour;
11
unsigned rtc_day;
12
bool rtc_day_carry;
13
14
unsigned rtc_latch_second;
15
unsigned rtc_latch_minute;
16
unsigned rtc_latch_hour;
17
unsigned rtc_latch_day;
18
unsigned rtc_latch_day_carry;
19
20
void second();
21
uint8 mmio_read(uint16 addr);
22
void mmio_write(uint16 addr, uint8 data);
23
void power();
24
} mbc3;
25
26