summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/cp1610/cp1610.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/cp1610/cp1610.cpp')
-rw-r--r--src/devices/cpu/cp1610/cp1610.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/devices/cpu/cp1610/cp1610.cpp b/src/devices/cpu/cp1610/cp1610.cpp
index c3448ea4849..4746fc18cd2 100644
--- a/src/devices/cpu/cp1610/cp1610.cpp
+++ b/src/devices/cpu/cp1610/cp1610.cpp
@@ -15,7 +15,6 @@
#include "emu.h"
#include "cp1610.h"
-#include "debugger.h"
#include "1610dasm.h"
DEFINE_DEVICE_TYPE(CP1610, cp1610_cpu_device, "cp1610", "GI CP1610")
@@ -3303,7 +3302,7 @@ void cp1610_cpu_device::execute_run()
else if (m_intr_pending)
{
/* PSHR R7 */
- standard_irq_callback(CP1610_INT_INTR);
+ standard_irq_callback(CP1610_INT_INTR, m_r[7]);
m_write_intak(m_r[6]);
cp1610_writemem16(m_r[6],m_r[7]);
m_r[6]++;
@@ -3314,7 +3313,7 @@ void cp1610_cpu_device::execute_run()
else if (m_intrm_pending && m_intr_enabled)
{
/* PSHR R7 */
- standard_irq_callback(CP1610_INT_INTRM);
+ standard_irq_callback(CP1610_INT_INTRM, m_r[7]);
m_write_intak(m_r[6]);
cp1610_writemem16(m_r[6],m_r[7]);
m_r[6]++;
@@ -3330,9 +3329,6 @@ void cp1610_cpu_device::execute_run()
void cp1610_cpu_device::device_start()
{
- m_read_bext.resolve_safe(0);
- m_read_iab.resolve_safe(0);
- m_write_intak.resolve_safe();
m_intr_enabled = false;
m_reset_pending = false;
m_intr_pending = false;
@@ -3396,8 +3392,8 @@ cp1610_cpu_device::cp1610_cpu_device(const machine_config &mconfig, const char *
, m_program_config("program", ENDIANNESS_BIG, 16, 16, -1)
, m_intr_state(0)
, m_intrm_state(0)
- , m_read_bext(*this)
- , m_read_iab(*this)
+ , m_read_bext(*this, 0)
+ , m_read_iab(*this, 0)
, m_write_intak(*this)
{
}