2 ASCII MSX2 Emulator 'yaMSX2'
7 modified by Takeda.Toshiya
14 void RTCIF::write_io8(uint32_t addr, uint32_t data)
21 d_rtc->write_io8(adrs, data & 0x0f);
26 uint32_t RTCIF::read_io8(uint32_t addr)
28 return d_rtc->read_io8(adrs);
31 #define STATE_VERSION 1
33 #include "../../statesub.h"
35 void RTCIF::decl_state()
37 enter_decl_state(STATE_VERSION);
39 DECL_STATE_ENTRY_UINT8(adrs);
44 void RTCIF::save_state(FILEIO* state_fio)
46 if(state_entry != NULL) {
47 state_entry->save_state(state_fio);
49 // state_fio->FputUint32(STATE_VERSION);
50 // state_fio->FputInt32(this_device_id);
52 // state_fio->FputUint8(adrs);
55 bool RTCIF::load_state(FILEIO* state_fio)
58 if(state_entry != NULL) {
59 mb = state_entry->load_state(state_fio);
64 // if(state_fio->FgetUint32() != STATE_VERSION) {
67 // if(state_fio->FgetInt32() != this_device_id) {
70 // adrs = state_fio->FgetUint8();