2 Skelton for retropc emulator
4 Author : Takeda.Toshiya
19 class UPD4991A : public DEVICE
22 dll_cur_time_t cur_time;
26 uint8_t ctrl1, ctrl2, mode;
28 void __FASTCALL read_from_cur_time();
29 void __FASTCALL write_to_cur_time();
32 UPD4991A(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {
33 set_device_name(_T("uPD4991A RTC"));
39 void __FASTCALL write_io8(uint32_t addr, uint32_t data);
40 uint32_t __FASTCALL read_io8(uint32_t addr);
41 void event_callback(int event_id, int err);
42 bool process_state(FILEIO* state_fio, bool loading);