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);
53 bool process_state(FILEIO* state_fio, bool loading);
56 void set_context_pic(DEVICE* device)
60 void set_context_fdc(DEVICE* device)
64 void set_context_beep(DEVICE* device)
68 void set_context_pcm(DEVICE* device)
72 void key_down(int code);
73 void key_up(int code);
74 bool get_caps_locked()
78 bool get_kana_locked()