2 Skelton for retropc emulator
4 Author : Takeda.Toshiya
17 class DLL_PREFIX RP5C01 : public DEVICE
21 outputs_t outputs_alarm;
22 outputs_t outputs_pulse;
24 dll_cur_time_t cur_time;
33 bool alarm, pulse_1hz, pulse_16hz;
38 void __FASTCALL update_pulse();
39 void __FASTCALL read_from_cur_time();
40 void __FASTCALL write_to_cur_time();
43 RP5C01(VM_TEMPLATE* parent_vm, EMU_TEMPLATE* parent_emu) : DEVICE(parent_vm, parent_emu)
45 initialize_output_signals(&outputs_alarm);
46 initialize_output_signals(&outputs_pulse);
47 set_device_name(_T("RP-5C01 RTC"));
54 void __FASTCALL write_io8(uint32_t addr, uint32_t data);
55 uint32_t __FASTCALL read_io8(uint32_t addr);
56 void __FASTCALL event_callback(int event_id, int err);
57 bool process_state(FILEIO* state_fio, bool loading);
60 void set_context_alarm(DEVICE* device, int id, uint32_t mask)
62 register_output_signal(&outputs_alarm, device, id, mask);
64 void set_context_pulse(DEVICE* device, int id, uint32_t mask)
66 register_output_signal(&outputs_pulse, device, id, mask);