OSDN Git Service

[General] Convert sourcecode's CRLF format: DOS(WINDOWS) to Unix, to apply patches...
[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 class PSG : public DEVICE
19 {
20 private:
21         DEVICE *d_psg_l, *d_psg_r;
22         
23 public:
24         PSG(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
25         ~PSG() {}
26         
27         // common function
28         void write_io8(uint32 addr, uint32 data);
29         
30         // unitque functions
31         void set_context_psg_l(DEVICE* device)
32         {
33                 d_psg_l = device;
34         }
35         void set_context_psg_r(DEVICE* device)
36         {
37                 d_psg_r = device;
38         }
39 };
40
41 #endif
42