2 NEC PC-100 Emulator 'ePC-100'
4 Author : Takeda.Toshiya
14 #include "../../emu.h"
15 #include "../device.h"
17 #define SIG_IOCTRL_RESET 0
21 class IOCTRL : public DEVICE
24 DEVICE *d_pic, *d_fdc, *d_beep, *d_pcm;
25 const uint8_t* key_stat;
26 const int32_t* mouse_stat;
30 uint32_t key_val, key_mouse;
32 bool key_res, key_done;
39 IOCTRL(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
41 set_device_name(_T("I/O Controller"));
49 void write_io8(uint32_t addr, uint32_t data);
50 uint32_t read_io8(uint32_t addr);
51 void event_callback(int event_id, int err);
52 void write_signal(int id, uint32_t data, uint32_t mask);
54 void save_state(FILEIO* state_fio);
55 bool load_state(FILEIO* state_fio);
58 void set_context_pic(DEVICE* device)
62 void set_context_fdc(DEVICE* device)
66 void set_context_beep(DEVICE* device)
70 void set_context_pcm(DEVICE* device)
74 void key_down(int code);
75 void key_up(int code);
76 bool get_caps_locked()
80 bool get_kana_locked()