OSDN Git Service

4fe6e4d6e2de8ddc85410624f95ceed43f7235b3
[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 class MFONT : public DEVICE
20 {
21 private:
22         DEVICE *d_pic;
23         
24         uint8_t mfont[36 * 0x60 * 2 * 17];
25         uint8_t status;
26         FIFO *cmd;
27         FIFO *res;
28         
29 public:
30         MFONT(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
31         {
32                 set_device_name(_T("Multi FONT ROM Card"));
33         }
34         ~MFONT() {}
35         
36         // common functions
37         void initialize();
38         void release();
39         void write_io8(uint32_t addr, uint32_t data);
40         uint32_t read_io8(uint32_t addr);
41         void decl_state();
42         void save_state(FILEIO* state_fio);
43         bool load_state(FILEIO* state_fio);
44         
45         // unique function
46         void set_context_pic(DEVICE* device)
47         {
48                 d_pic = device;
49         }
50 };
51
52 #endif
53