OSDN Git Service

[VM][DEVICE] Use __FASTCALL with interfaces, read_*() ,write_*(), fetch_op() and...
[csp-qt/common_source_project-fm7.git] / source / src / vm / ys6464a / keyboard.h
1 /*
2         SHINKO SANGYO YS-6464A Emulator 'eYS-6464A'
3
4         Author : Takeda.Toshiya
5         Date   : 2009.12.30 -
6
7         [ keyboard ]
8 */
9
10 #ifndef _KEYBOARD_H_
11 #define _KEYBOARD_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 #define SIG_KEYBOARD_PORT_C     0
18
19 namespace YS6464A {
20
21 class KEYBOARD : public DEVICE
22 {
23 private:
24         DEVICE *d_pio;
25         const uint8_t* key_stat;
26         
27 public:
28         KEYBOARD(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
29         {
30                 set_device_name(_T("Keyboard"));
31         }
32         ~KEYBOARD() {}
33         
34         // common functions
35         void initialize();
36         void __FASTCALL write_signal(int id, uint32_t data, uint32_t mask);
37         
38         // unique function
39         void set_context_pio(DEVICE* device)
40         {
41                 d_pio = device;
42         }
43 };
44
45 }
46 #endif
47