OSDN Git Service

[VM][MZ2800] Fix crash at building VM. Thanks to http://hanabi.2ch.net/test/read...
[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* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
24         ~PRINTER() {}
25         
26         // common functions
27         void write_io8(uint32_t addr, uint32_t data);
28         uint32_t read_io8(uint32_t addr);
29         
30         // unique function
31         void set_context_prn(DEVICE* device)
32         {
33                 d_prn = device;
34         }
35 };
36
37 #endif
38