OSDN Git Service

[VM][Qt][UI][EMU][WIP] Use EMU_TEMPLATE:: instead of EMU:: . Some VMs are not apply...
[csp-qt/common_source_project-fm7.git] / source / src / vm / fp1100 / rampack.h
1 /*
2         CASIO FP-1100 Emulator 'eFP-1100'
3
4         Author : Takeda.Toshiya
5         Date   : 2010.06.18-
6
7         [ ram pack ]
8 */
9
10 #ifndef _RAMPACK_H_
11 #define _RAMPACK_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 namespace FP1100 {
18         
19 class RAMPACK : public DEVICE
20 {
21 private:
22         uint8_t ram[0x4000];
23         bool modified;
24         
25 public:
26         RAMPACK(VM_TEMPLATE* parent_vm, EMU_TEMPLATE* parent_emu) : DEVICE(parent_vm, parent_emu)
27         {
28                 set_device_name(_T("RAM Pack"));
29         }
30         ~RAMPACK() {}
31         
32         // common functions
33         void initialize();
34         void release();
35         void __FASTCALL write_io8(uint32_t addr, uint32_t data);
36         uint32_t __FASTCALL read_io8(uint32_t addr);
37         bool process_state(FILEIO* state_fio, bool loading);
38         
39         // unique variable
40         int index;
41 };
42
43 }
44 #endif