#include "../../common.h"
#include "../../fileio.h"
+#include "../vm_template.h"
#ifdef USE_SOUND_VOLUME
static const _TCHAR *sound_device_caption[] = {
class MC6847;
class Z80;
-class MEMORY;
+class PHC20_MEMORY;
-class VM
+class VM : public VM_TEMPLATE
{
protected:
- EMU* emu;
- csp_state_utils* state_entry;
+ //EMU* emu;
+ //csp_state_utils* state_entry;
// devices
- EVENT* event;
+ //EVENT* event;
DATAREC* drec;
MC6847* vdp;
Z80* cpu;
- MEMORY* memory;
+ PHC20_MEMORY* memory;
public:
// ----------------------------------------
bool is_frame_skippable();
void update_config();
- void decl_state();
- void save_state(FILEIO* state_fio);
- bool load_state(FILEIO* state_fio);
+ bool process_state(FILEIO* state_fio, bool loading);
// ----------------------------------------
// for each device
// devices
DEVICE* get_device(int id);
- DEVICE* dummy;
- DEVICE* first_device;
- DEVICE* last_device;
+ //DEVICE* dummy;
+ //DEVICE* first_device;
+ //DEVICE* last_device;
};
#endif