OSDN Git Service

[VM][PCENGINE][X1] Enable to build.
[csp-qt/common_source_project-fm7.git] / source / src / vm / x1 / floppy.h
index 620de34..101ab03 100644 (file)
@@ -2,6 +2,7 @@
        SHARP X1 Emulator 'eX1'
        SHARP X1twin Emulator 'eX1twin'
        SHARP X1turbo Emulator 'eX1turbo'
+       SHARP X1turboZ Emulator 'eX1turboZ'
 
        Author : Takeda.Toshiya
        Date   : 2009.03.14-
@@ -30,22 +31,22 @@ private:
        int register_id;
        
 public:
-       FLOPPY(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       FLOPPY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
        {
                prev = 0;
                motor_on = false;
+               set_device_name(_T("Floppy I/F"));
        }
        ~FLOPPY() {}
        
        // common functions
        void reset();
-       void write_io8(uint32 addr, uint32 data);
+       void write_io8(uint32_t addr, uint32_t data);
 #ifdef _X1TURBO_FEATURE
-       uint32 read_io8(uint32 addr);
+       uint32_t read_io8(uint32_t addr);
 #endif
        void event_callback(int event_id, int err);
-       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_fdc(MB8877* device)