2 FUJITSU FMR-30 Emulator 'eFMR-30'
4 Author : Takeda.Toshiya
14 #include "../../emu.h"
15 #include "../device.h"
19 class RTC : public DEVICE
24 dll_cur_time_t cur_time;
27 uint16_t rtcmr, rtdsr, rtadr, rtobr, rtibr;
30 void read_from_cur_time();
31 void write_to_cur_time();
32 void update_checksum();
33 void update_intr() override;
35 RTC(VM_TEMPLATE* parent_vm, EMU_TEMPLATE* parent_emu) : DEVICE(parent_vm, parent_emu)
37 set_device_name(_T("RTC"));
42 void initialize() override;
43 void release() override;
44 void __FASTCALL write_io8(uint32_t addr, uint32_t data) override;
45 uint32_t __FASTCALL read_io8(uint32_t addr) override;
46 void __FASTCALL write_io16(uint32_t addr, uint32_t data) override;
47 uint32_t __FASTCALL read_io16(uint32_t addr) override;
48 void __FASTCALL write_io16w(uint32_t addr, uint32_t data, int *wait) override;
49 uint32_t __FASTCALL read_io16w(uint32_t addr, int *wait) override;
50 void __FASTCALL event_callback(int event_id, int err) override;
51 bool process_state(FILEIO* state_fio, bool loading) override;
54 void set_context_pic(DEVICE* device)