OSDN Git Service

[VM][STATE] Apply New framework to some VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / phc25 / system.h
index 19196cd..bf2cdc5 100644 (file)
@@ -8,8 +8,8 @@
        [ system port ]
 */
 
-#ifndef _SYSTEM_H_
-#define _SYSTEM_H_
+#ifndef _PHC25_SYSTEM_H_
+#define _PHC25_SYSTEM_H_
 
 #include "../vm.h"
 #include "../../emu.h"
@@ -17,7 +17,7 @@
 
 #define SIG_SYSTEM_PORT        0
 
-class SYSTEM : public DEVICE
+class PHC25_SYSTEM : public DEVICE
 {
 private:
        DEVICE *d_drec, *d_vdp;
@@ -25,11 +25,11 @@ private:
        uint8_t sysport;
        
 public:
-       SYSTEM(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       PHC25_SYSTEM(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
        {
                set_device_name(_T("System I/O"));
        }
-       ~SYSTEM() {}
+       ~PHC25_SYSTEM() {}
        
        // common functions
        void initialize();
@@ -37,9 +37,7 @@ public:
        void write_io8(uint32_t addr, uint32_t data);
        uint32_t read_io8(uint32_t addr);
        void write_signal(int id, uint32_t data, uint32_t mask);
-       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
        void set_context_drec(DEVICE* device)