OSDN Git Service

[General] Tracking to upstream, rev 2015-01-14.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2500 / mz1r12.h
1 /*\r
2         SHARP MZ-80B Emulator 'EmuZ-80B'\r
3         SHARP MZ-2200 Emulator 'EmuZ-2200'\r
4 \r
5         Author : Takeda.Toshiya\r
6         Date   : 2013.03.17-\r
7 \r
8         [ MZ-1R12 (32KB SRAM) ]\r
9 */\r
10 \r
11 #ifndef _MZ1R12_H_\r
12 #define _MZ1R12_H_\r
13 \r
14 #include "../vm.h"\r
15 #include "../../emu.h"\r
16 #include "../device.h"\r
17 \r
18 class MZ1R12 : public DEVICE\r
19 {\r
20 private:\r
21         uint8 sram[0x8000];\r
22         bool read_only;\r
23         uint16 address;\r
24         uint32 crc32;\r
25         \r
26 public:\r
27         MZ1R12(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}\r
28         ~MZ1R12() {}\r
29         \r
30         // common functions\r
31         void initialize();\r
32         void release();\r
33         void write_io8(uint32 addr, uint32 data);\r
34         uint32 read_io8(uint32 addr);\r
35         void save_state(FILEIO* state_fio);\r
36         bool load_state(FILEIO* state_fio);\r
37 };\r
38 \r
39 #endif\r
40 \r