diff options
author | 2016-02-07 14:37:29 +0100 | |
---|---|---|
committer | 2016-02-07 14:37:29 +0100 | |
commit | 5b432512fae69fd4f8e37861bac1dda5752d7d61 (patch) | |
tree | a7fcd23e8c514bcc6a3ffa2d359c78d05f42554f /src/devices/cpu/z80/z80.cpp | |
parent | 462b96ab1d2c88adb73d1b39c0050095885625a4 (diff) |
z80: removed obsolete irq_line write handler
Diffstat (limited to 'src/devices/cpu/z80/z80.cpp')
-rw-r--r-- | src/devices/cpu/z80/z80.cpp | 43 |
1 files changed, 14 insertions, 29 deletions
diff --git a/src/devices/cpu/z80/z80.cpp b/src/devices/cpu/z80/z80.cpp index 4f38a4e1866..e798a1153b2 100644 --- a/src/devices/cpu/z80/z80.cpp +++ b/src/devices/cpu/z80/z80.cpp @@ -3510,15 +3510,15 @@ void nsc800_device::device_reset() ****************************************************************************/ void z80_device::execute_run() { - if (m_wait_state) - { - // stalled - m_icount = 0; - return; - } - do { + if (m_wait_state) + { + // stalled + m_icount = 0; + return; + } + // check for interrupts before each instruction if (m_nmi_pending) take_nmi(); @@ -3532,24 +3532,20 @@ void z80_device::execute_run() debugger_instruction_hook(this, PCD); m_r++; EXEC(op,rop()); - - if (m_wait_state) - m_icount = 0; - } while (m_icount > 0); } void nsc800_device::execute_run() { - if (m_wait_state) - { - // stalled - m_icount = 0; - return; - } - do { + if (m_wait_state) + { + // stalled + m_icount = 0; + return; + } + // check for interrupts before each instruction if (m_nmi_pending) take_nmi(); @@ -3565,10 +3561,6 @@ void nsc800_device::execute_run() debugger_instruction_hook(this, PCD); m_r++; EXEC(op,rop()); - - if (m_wait_state) - m_icount = 0; - } while (m_icount > 0); } @@ -3745,10 +3737,3 @@ nsc800_device::nsc800_device(const machine_config &mconfig, const char *tag, dev } const device_type NSC800 = &device_creator<nsc800_device>; - - - -WRITE_LINE_MEMBER( z80_device::irq_line ) -{ - set_input_line( INPUT_LINE_IRQ0, state ); -} |