OSDN Git Service

[VM] .
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc98ha / memory.h
index e667562..716fac0 100644 (file)
@@ -8,8 +8,8 @@
        [ memory ]
 */
 
-#ifndef _MEMORY_H_
-#define _MEMORY_H_
+#ifndef _PC98LT_MEMORY_H_
+#define _PC98LT_MEMORY_H_
 
 #include "../vm.h"
 #include "../../emu.h"
@@ -17,7 +17,7 @@
 
 #define SIG_MEMORY_IR2 0
 
-class MEMORY : public DEVICE
+class PC98LT_MEMORY : public DEVICE
 {
 private:
        uint8_t* rbank[64];     // 1MB / 16KB
@@ -57,11 +57,11 @@ private:
 #endif
        
 public:
-       MEMORY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       PC98LT_MEMORY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
        {
                set_device_name(_T("Memory Bus"));
        }
-       ~MEMORY() {}
+       ~PC98LT_MEMORY() {}
        
        // common functions
        void initialize();
@@ -71,9 +71,7 @@ public:
        uint32_t read_data8(uint32_t addr);
        void write_io8(uint32_t addr, uint32_t data);
        uint32_t read_io8(uint32_t addr);
-       void decl_state();
-       void save_state(FILEIO* state_fio);
-       bool load_state(FILEIO* state_fio);
+       bool process_state(FILEIO* state_fio, bool loading);
        
        // unique functions
        uint8_t* get_vram()