From 456fd5e4225fc58ccecf71cc5692fabf4b483071 Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 31 Jul 2017 12:10:49 -0400 Subject: [PATCH] v25: Make IDB register state visible to debugger --- src/devices/cpu/nec/v25.cpp | 6 ++++++ src/devices/cpu/nec/v25.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/devices/cpu/nec/v25.cpp b/src/devices/cpu/nec/v25.cpp index 8d3a3c1b993..d70bbd224c0 100644 --- a/src/devices/cpu/nec/v25.cpp +++ b/src/devices/cpu/nec/v25.cpp @@ -539,6 +539,8 @@ void v25_common_device::device_start() state_add( V25_SS, "SS", m_debugger_temp).callimport().callexport().formatstr("%04X"); state_add( V25_DS, "DS0", m_debugger_temp).callimport().callexport().formatstr("%04X"); + state_add( V25_IDB, "IDB", m_IDB).mask(0xffe00).callimport(); + state_add( STATE_GENPC, "GENPC", m_debugger_temp).callexport().noshow(); state_add( STATE_GENPCBASE, "CURPC", m_debugger_temp).callexport().noshow(); state_add( STATE_GENSP, "GENSP", m_debugger_temp).callimport().callexport().noshow(); @@ -641,6 +643,10 @@ void v25_common_device::state_import(const device_state_entry &entry) case V25_DS: Sreg(DS0) = m_debugger_temp; break; + + case V25_IDB: + m_IDB |= 0xe00; + break; } } diff --git a/src/devices/cpu/nec/v25.h b/src/devices/cpu/nec/v25.h index 0090d658215..f0ccda61517 100644 --- a/src/devices/cpu/nec/v25.h +++ b/src/devices/cpu/nec/v25.h @@ -17,6 +17,7 @@ enum V25_PC=0, V25_IP, V25_AW, V25_CW, V25_DW, V25_BW, V25_SP, V25_BP, V25_IX, V25_IY, V25_FLAGS, V25_ES, V25_CS, V25_SS, V25_DS, + V25_IDB, V25_PENDING };