OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc100 / kanji.h
1 /*
2         NEC PC-100 Emulator 'ePC-100'
3
4         Author : Takeda.Toshiya
5         Date   : 2008.07.14 -
6
7         [ kanji rom ]
8 */
9
10 #ifndef _KANJI_H_
11 #define _KANJI_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 namespace PC100 {
18
19 class KANJI : public DEVICE
20 {
21 private:
22         uint8_t kanji[0x20000];
23         uint16_t ptr;
24         bool strobe;
25         
26 public:
27         KANJI(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
28         {
29                 set_device_name(_T("Kanji ROM"));
30         }
31         ~KANJI() {}
32         
33         // common functions
34         void initialize();
35         void write_io8(uint32_t addr, uint32_t data);
36         uint32_t read_io8(uint32_t addr);
37         bool process_state(FILEIO* state_fio, bool loading);
38 };
39
40 }
41 #endif
42