OSDN Git Service

[General] Convert sourcecode's CRLF format: DOS(WINDOWS) to Unix, to apply patches...
[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 mfont[36 * 0x60 * 2 * 17];
25         uint8 status;
26         FIFO *cmd;
27         FIFO *res;
28         
29 public:
30         MFONT(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
31         ~MFONT() {}
32         
33         // common functions
34         void initialize();
35         void release();
36         void write_io8(uint32 addr, uint32 data);
37         uint32 read_io8(uint32 addr);
38         void save_state(FILEIO* state_fio);
39         bool load_state(FILEIO* state_fio);
40         
41         // unique function
42         void set_context_pic(DEVICE* device)
43         {
44                 d_pic = device;
45         }
46 };
47
48 #endif
49