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 / mz2500 / mz1r13.h
1 /*
2         SHARP MZ-80B Emulator 'EmuZ-80B'
3         SHARP MZ-2200 Emulator 'EmuZ-2200'
4         SHARP MZ-2500 Emulator 'EmuZ-2500'
5
6         Author : Takeda.Toshiya
7         Date   : 2006.12.01 -
8
9         [ MZ-1R13 (Kanji ROM) ]
10 */
11
12 #ifndef _MZ1R13_H_
13 #define _MZ1R13_H_
14
15 #include "../vm.h"
16 #include "../../emu.h"
17 #include "../device.h"
18
19 class MZ1R13 : public DEVICE
20 {
21 private:
22         uint8 kanji[0x20000];
23         uint8 dic[0x4000];
24         
25         uint16 address;
26         bool select_kanji;
27         
28 public:
29         MZ1R13(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
30         ~MZ1R13() {}
31         
32         // common functions
33         void initialize();
34         void write_io8(uint32 addr, uint32 data);
35         uint32 read_io8(uint32 addr);
36         void save_state(FILEIO* state_fio);
37         bool load_state(FILEIO* state_fio);
38 };
39
40 #endif
41