OSDN Git Service

[VM][DEVICE] Use __FASTCALL with interfaces, read_*() ,write_*(), fetch_op() and...
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz700 / floppy.h
index 6ad9f83..0043814 100644 (file)
@@ -17,6 +17,8 @@
 
 #define SIG_FLOPPY_DRQ 0
 
+namespace MZ700 {
+       
 class FLOPPY : public DEVICE
 {
 private:
@@ -29,7 +31,7 @@ private:
        bool irq_enabled;
        
 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)
        {
                set_device_name(_T("Floppy I/F"));
        }
@@ -38,12 +40,10 @@ public:
        // common functions
        void initialize();
        void reset();
-       void write_io8(uint32_t addr, uint32_t data);
+       void __FASTCALL write_io8(uint32_t addr, uint32_t data);
        void event_callback(int event_id, int err);
-       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);
+       void __FASTCALL write_signal(int id, uint32_t data, uint32_t mask);
+       bool process_state(FILEIO* state_fio, bool loading);
        
        // unique functions
        void set_context_cpu(DEVICE* device)
@@ -56,5 +56,6 @@ public:
        }
 };
 
+}
 #endif