2 FUJITSU FMR-30 Emulator 'eFMR-30'
4 Author : Takeda.Toshiya
14 #include "../../emu.h"
15 #include "../device.h"
17 class RTC : public DEVICE
25 uint16 rtcmr, rtdsr, rtadr, rtobr, rtibr;
28 void read_from_cur_time();
29 void write_to_cur_time();
30 void update_checksum();
33 RTC(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
39 void write_io8(uint32 addr, uint32 data)
41 write_io16(addr, data);
43 uint32 read_io8(uint32 addr)
45 return (uint8)read_io16(addr);
47 void write_io16(uint32 addr, uint32 data);
48 uint32 read_io16(uint32 addr);
49 void event_callback(int event_id, int err);
50 void save_state(FILEIO* state_fio);
51 bool load_state(FILEIO* state_fio);
54 void set_context_pic(DEVICE* device)