From 074495f55362b98d1bff21df61f1711d3e9320ad Mon Sep 17 00:00:00 2001 From: Michael Zapf Date: Thu, 3 Feb 2022 13:22:32 +0100 Subject: ti99: pcode: Fixed missing return and wrong address variable in debug read handling. --- src/devices/bus/ti99/peb/pcode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/devices/bus/ti99/peb') diff --git a/src/devices/bus/ti99/peb/pcode.cpp b/src/devices/bus/ti99/peb/pcode.cpp index 156d190adc6..0c5e4e4fb57 100644 --- a/src/devices/bus/ti99/peb/pcode.cpp +++ b/src/devices/bus/ti99/peb/pcode.cpp @@ -149,7 +149,7 @@ void ti_pcode_card_device::debugger_read(offs_t offset, uint8_t& value) { bool isrom0 = ((offset & 0xf000)==0x4000); bool isrom12 = ((offset & 0xf000)==0x5000); - if (isrom0) value = m_rom[m_address & 0x0fff]; + if (isrom0) value = m_rom[offset & 0x0fff]; else if (isrom12) value = m_rom[(m_bank_select<<12) | (offset & 0x0fff)]; } @@ -161,6 +161,7 @@ void ti_pcode_card_device::readz(offs_t offset, uint8_t *value) if (machine().side_effects_disabled()) { debugger_read(offset, *value); + return; } if (m_active && m_inDsrArea && m_selected) -- cgit v1.2.3-70-g09d2