OSDN Git Service

758a114ca58a0db10f2ccea3d13f647234ec832c
[csp-qt/common_source_project-fm7.git] / source / src / vm / multi8 / kanji.h
1 /*
2         MITSUBISHI Electric MULTI8 Emulator 'EmuLTI8'
3
4         Author : Takeda.Toshiya
5         Date   : 2006.09.15 -
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         DEVICE* d_pio;
21         
22         uint8_t rom[0x20000];
23         uint32_t ptr;
24         
25 public:
26         KANJI(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
27         {
28                 set_device_name(_T("Kanji ROM"));
29         }
30         ~KANJI() {}
31         
32         // common functions
33         void initialize();
34         void reset();
35         void write_io8(uint32_t addr, uint32_t data);
36         uint32_t read_io8(uint32_t addr);
37         void decl_state();
38         void save_state(FILEIO* state_fio);
39         bool load_state(FILEIO* state_fio);
40         
41         // unique function
42         void set_context_pio(DEVICE* device)
43         {
44                 d_pio = device;
45         }
46 };
47
48 #endif
49