diff options
author | 2022-02-03 13:22:32 +0100 | |
---|---|---|
committer | 2022-02-03 13:24:18 +0100 | |
commit | 074495f55362b98d1bff21df61f1711d3e9320ad (patch) | |
tree | 20ca6394fec1dd329a51391192463e5ea5abb0b7 /src/devices/bus/ti99/peb | |
parent | 758b08fa27899ae0a2359a199230527e94f87b47 (diff) |
ti99: pcode: Fixed missing return and wrong address variable in debug read handling.
Diffstat (limited to 'src/devices/bus/ti99/peb')
-rw-r--r-- | src/devices/bus/ti99/peb/pcode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) |