public attoseconds_t m_attoseconds_per_cycle; // attoseconds per adjusted clock cycle // construction/destruction //------------------------------------------------- // device_execute_interface - constructor //------------------------------------------------- public device_execute_interface(machine_config mconfig, device_t device) : base(device, "execute") { m_scheduler = null; m_disabled = false; m_vblank_interrupt = null; m_vblank_interrupt_screen = null; m_timed_interrupt = null; m_timed_interrupt_period = attotime.zero; m_nextexec = null; m_driver_irq = null; m_timedint_timer = null; m_profiler = profile_type.PROFILER_IDLE; m_icountptr = null; m_cycles_running = 0; m_cycles_stolen = 0; m_suspend = 0; m_nextsuspend = 0; m_eatcycles = 0; m_nexteatcycles = 0; m_trigger = 0; m_inttrigger = 0; m_totalcycles = 0; m_divisor = 0; m_divshift = 0; m_cycles_per_second = 0; m_attoseconds_per_cycle = 0; for (int line = 0; line < m_input.Length; line++) { m_input[line] = new device_input(); } // configure the fast accessor assert(device.interfaces().m_execute == null); device.interfaces().m_execute = this; }
//void remove_periodic_int() //{ // m_timed_interrupt = device_interrupt_delegate(*this); // m_timed_interrupt_period = attotime(); //} //template <typename... T> public void set_irq_acknowledge_callback(device_irq_acknowledge_delegate args) //void set_irq_acknowledge_callback(T &&... args) { m_driver_irq = args; //m_driver_irq.set(std::forward<T>(args)...); }