OSDN Git Service

[VM][STATE] Apply New framework to some VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pv2000 / printer.h
1 /*
2         CASIO PV-2000 Emulator 'EmuGaki'
3
4         Author : Takeda.Toshiya
5         Date   : 2006.08.18 -
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         uint8_t out, ctrl0, ctrl1;
21         bool busy;
22         
23 public:
24         PRINTER(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
25         {
26                 set_device_name(_T("Printer I/F"));
27         }
28         ~PRINTER() {}
29         
30         // common functions
31         void initialize();
32         void write_io8(uint32_t addr, uint32_t data);
33         uint32_t read_io8(uint32_t addr);
34         bool process_state(FILEIO* state_fio, bool loading);
35 };
36
37 #endif
38