OSDN Git Service

[VM][STATE] Apply new framework to some 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 class KANJI : public DEVICE
18 {
19 private:
20         uint8_t kanji[0x20000];
21         uint16_t ptr;
22         bool strobe;
23         
24 public:
25         KANJI(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
26         {
27                 set_device_name(_T("Kanji ROM"));
28         }
29         ~KANJI() {}
30         
31         // common functions
32         void initialize();
33         void write_io8(uint32_t addr, uint32_t data);
34         uint32_t read_io8(uint32_t addr);
35         bool process_state(FILEIO* state_fio, bool loading);
36 };
37
38 #endif
39