OSDN Git Service

08b055442625094a26fa13bf44fd1432f57fccbd
[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         int tmp_buffer_size;
23 public:
24         MZ1R37(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
25         {
26                 set_device_name(_T("MZ-1R37 (640KB EMM)"));
27         }
28         ~MZ1R37() {}
29         
30         // common functions
31         void initialize();
32         void release();
33         void write_io8(uint32_t addr, uint32_t data);
34         uint32_t read_io8(uint32_t addr);
35         void decl_state();
36         void save_state(FILEIO* state_fio);
37         bool load_state(FILEIO* state_fio);
38 };
39
40 #endif
41