OSDN Git Service

[VM][I286] Save cpustate without StateBuffer().
[csp-qt/common_source_project-fm7.git] / source / src / vm / jr100 / jr100.h
index 0b01041..9af3fe6 100644 (file)
@@ -103,6 +103,7 @@ static const int vm_auto_key_table_base[][2] = {
 
 #include "../../common.h"
 #include "../../fileio.h"
+#include "../vm_template.h"
 
 #ifdef USE_SOUND_VOLUME
 static const _TCHAR *sound_device_caption[] = {
@@ -121,15 +122,15 @@ class NOT;
 class PCM1BIT;
 class SY6522;
 
-class MEMORY;
+class JR100_MEMORY;
 
-class VM
+class VM : public VM_TEMPLATE
 {
 protected:
-       EMU* emu;
+       //EMU* emu;
        
        // devices
-       EVENT* event;
+       //EVENT* event;
        
        DATAREC* drec;
        //MC6800* cpu;
@@ -139,7 +140,7 @@ protected:
        PCM1BIT* pcm;
        SY6522* via;
        
-       MEMORY* memory;
+       JR100_MEMORY* memory;
        
 public:
        // ----------------------------------------
@@ -176,8 +177,8 @@ public:
 #endif
        
        // notify key
-       void key_down(int code, bool repeat);
-       void key_up(int code);
+       void key_down(int code, bool repeat) { }
+       void key_up(int code) { }
        
        // user interface
        void play_tape(int drv, const _TCHAR* file_path);
@@ -197,8 +198,7 @@ public:
        bool is_frame_skippable();
        
        void update_config();
-       void save_state(FILEIO* state_fio);
-       bool load_state(FILEIO* state_fio);
+       bool process_state(FILEIO* state_fio, bool loading);
        
        // ----------------------------------------
        // for each device
@@ -206,9 +206,9 @@ public:
        
        // devices
        DEVICE* get_device(int id);
-       DEVICE* dummy;
-       DEVICE* first_device;
-       DEVICE* last_device;
+       //DEVICE* dummy;
+       //DEVICE* first_device;
+       //DEVICE* last_device;
 };
 
 #endif