OSDN Git Service

e7463f4cd46ec311ef2f59de535077607a5d9a12
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2500 / mz1r37.h
1 /*
2         SHARP MZ-2500 Emulator 'EmuZ-2500'
3
4         Author : Takeda.Toshiya
5         Date   : 2006.12.01 -
6
7         [ MZ-1R37 (640KB EMM) ]
8 */
9
10 #ifndef _MZ1R37_H_
11 #define _MZ1R37_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 class MZ1R37 : public DEVICE
18 {
19 private:
20         uint8_t* buffer;
21         uint32_t address;
22 public:
23         MZ1R37(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
24         {
25                 set_device_name(_T("MZ-1R37 (640KB EMM)"));
26         }
27         ~MZ1R37() {}
28         
29         // common functions
30         void initialize();
31         void release();
32         void write_io8(uint32_t addr, uint32_t data);
33         uint32_t read_io8(uint32_t addr);
34         void decl_state();
35         void save_state(FILEIO* state_fio);
36         bool load_state(FILEIO* state_fio);
37 };
38
39 #endif
40