OSDN Git Service

df495612a61ef57413c18eec5e3702ce0d0a5fb0
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc98ha / note.h
1 /*
2         NEC PC-98LT Emulator 'ePC-98LT'
3         NEC PC-98HA Emulator 'eHANDY98'
4
5         Author : Takeda.Toshiya
6         Date   : 2008.08.14 -
7
8         [ note i/o ]
9 */
10
11 #ifndef _NOTE_H_
12 #define _NOTE_H_
13
14 #include "../vm.h"
15 #include "../../emu.h"
16 #include "../device.h"
17
18 class NOTE : public DEVICE
19 {
20 private:
21         DEVICE *d_pic;
22         uint8_t ch, regs[16];
23         
24 public:
25         NOTE(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
26         {
27                 set_device_name(_T("98NOTE I/O"));
28         }
29         ~NOTE() {}
30         
31         // common functions
32         void initialize();
33         void write_io8(uint32_t addr, uint32_t data);
34         uint32_t read_io8(uint32_t addr);
35         bool process_state(FILEIO* state_fio, bool loading);
36         
37         // unique function
38         void set_context_pic(DEVICE* device)
39         {
40                 d_pic = device;
41         }
42 };
43
44 #endif
45