v25: Make IDB register state visible to debugger

This commit is contained in:
AJR 2017-07-31 12:10:49 -04:00
parent 30231ff7ec
commit 456fd5e422
2 changed files with 7 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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
};