OSDN Git Service

[VM][WIP] Use namespace to devices per VMs.
[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 namespace MZ2500 {
20
21 class MZ1R13 : public DEVICE
22 {
23 private:
24         uint8_t kanji[0x20000];
25         uint8_t dic[0x4000];
26         
27         uint16_t address;
28         bool select_kanji;
29         
30 public:
31         MZ1R13(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
32         {
33                 set_device_name(_T("MZ-1R13 (KANJI ROM)"));
34         }
35         ~MZ1R13() {}
36         
37         // common functions
38         void initialize();
39         void write_io8(uint32_t addr, uint32_t data);
40         uint32_t read_io8(uint32_t addr);
41         bool process_state(FILEIO* state_fio, bool loading);
42 };
43 }
44 #endif
45