OSDN Git Service

[VM][DEVICE] Use __FASTCALL with interfaces, read_*() ,write_*(), fetch_op() and...
[csp-qt/common_source_project-fm7.git] / source / src / vm / nor.h
index 4155f0e..5151d47 100644 (file)
@@ -33,7 +33,7 @@ private:
        bool prev, first;
        
 public:
-       NOR(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       NOR(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
        {
                initialize_output_signals(&outputs);
                bits_in = 0;
@@ -43,10 +43,8 @@ public:
        ~NOR() {}
        
        // common functions
-       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 function
        void set_context_out(DEVICE* device, int id, uint32_t mask)