OSDN Git Service

1bc2420bfbccc9e8e2a485eb70b594b5f7fac65d
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz700 / psg.h
1 /*
2         SHARP MZ-700 Emulator 'EmuZ-700'
3         SHARP MZ-1500 Emulator 'EmuZ-1500'
4
5         Author : Takeda.Toshiya
6         Date   : 2010.09.02 -
7
8         [ psg*2 ]
9 */
10
11 #ifndef _PSG_H_
12 #define _PSG_H_
13
14 #include "../vm.h"
15 #include "../../emu.h"
16 #include "../device.h"
17
18 namespace MZ700 {
19         
20 class PSG : public DEVICE
21 {
22 private:
23         DEVICE *d_psg_l, *d_psg_r;
24         
25 public:
26         PSG(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
27         {
28                 set_device_name(_T("PSG"));
29         }
30         ~PSG() {}
31         
32         // common function
33         void write_io8(uint32_t addr, uint32_t data);
34         
35         // unique functions
36         void set_context_psg_l(DEVICE* device)
37         {
38                 d_psg_l = device;
39         }
40         void set_context_psg_r(DEVICE* device)
41         {
42                 d_psg_r = device;
43         }
44 };
45
46 }
47 #endif
48