OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / qc10 / mfont.h
1 /*
2         EPSON QC-10 Emulator 'eQC-10'
3
4         Author : Takeda.Toshiya
5         Date   : 2008.03.24 -
6
7         [ multifont rom card ]
8 */
9
10 #ifndef _MFONT_H_
11 #define _MFONT_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 class FIFO;
18
19 namespace QC10 {
20
21 class MFONT : public DEVICE
22 {
23 private:
24         DEVICE *d_pic;
25         
26         uint8_t mfont[36 * 0x60 * 2 * 17];
27         uint8_t status;
28         FIFO *cmd;
29         FIFO *res;
30         
31 public:
32         MFONT(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
33         {
34                 set_device_name(_T("Multi FONT ROM Card"));
35         }
36         ~MFONT() {}
37         
38         // common functions
39         void initialize();
40         void release();
41         void write_io8(uint32_t addr, uint32_t data);
42         uint32_t read_io8(uint32_t addr);
43         bool process_state(FILEIO* state_fio, bool loading);
44         
45         // unique function
46         void set_context_pic(DEVICE* device)
47         {
48                 d_pic = device;
49         }
50 };
51
52 }
53 #endif
54