OSDN Git Service

a8c9e8423d19719527a5ed9e2e8f98ce933f02b0
[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 class PRINTER : public DEVICE
18 {
19 private:
20         DEVICE* d_prn;
21         
22 public:
23         PRINTER(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
24         {
25                 set_device_name(_T("Printer I/F"));
26         }
27         ~PRINTER() {}
28         
29         // common functions
30         void write_io8(uint32_t addr, uint32_t data);
31         uint32_t read_io8(uint32_t addr);
32         
33         // unique function
34         void set_context_prn(DEVICE* device)
35         {
36                 d_prn = device;
37         }
38 };
39
40 #endif
41