OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2800 / printer.h
1 /*
2         SHARP MZ-2800 Emulator 'EmuZ-2800'
3
4         Author : Takeda.Toshiya
5         Date   : 2016.01.05-
6
7         [ printer ]
8 */
9
10 #ifndef _PRINTER_H_
11 #define _PRINTER_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 namespace MZ2800 {
18
19 class PRINTER : public DEVICE
20 {
21 private:
22         DEVICE* d_prn;
23         
24 public:
25         PRINTER(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
26         {
27                 set_device_name(_T("Printer I/F"));
28         }
29         ~PRINTER() {}
30         
31         // common functions
32         void write_io8(uint32_t addr, uint32_t data);
33         uint32_t read_io8(uint32_t addr);
34         
35         // unique function
36         void set_context_prn(DEVICE* device)
37         {
38                 d_prn = device;
39         }
40 };
41
42 }
43 #endif
44