summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Michael Zapf <github@mizapf.de>2020-06-28 16:41:20 +0200
committer Michael Zapf <github@mizapf.de>2020-06-28 16:42:49 +0200
commit9dcaa32e1007eafa916f168b356269afdbf28359 (patch)
tree2c6b79ba7543f52dd5e2b64464791edb76eaedc4
parentef00dd754ec4675e7190aef3074794097054936a (diff)
ti99: Fixed debugger_write in datamux, used wrong address variable for PEB access.
-rw-r--r--src/devices/bus/ti99/internal/datamux.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/bus/ti99/internal/datamux.cpp b/src/devices/bus/ti99/internal/datamux.cpp
index 2e55600ffd4..90bf2447bec 100644
--- a/src/devices/bus/ti99/internal/datamux.cpp
+++ b/src/devices/bus/ti99/internal/datamux.cpp
@@ -312,14 +312,14 @@ void datamux_device::debugger_write(uint16_t addr, uint16_t data)
if ((addrb & 0xe000)==0x6000)
{
m_gromport->romgq_line(ASSERT_LINE);
- m_gromport->write(addr+1, data & 0xff);
- m_gromport->write(addr, (data>>8) & 0xff);
+ m_gromport->write(addrb+1, data & 0xff);
+ m_gromport->write(addrb, (data>>8) & 0xff);
m_gromport->romgq_line(m_romgq_state); // reset to previous state
}
m_ioport->memen_in(ASSERT_LINE);
- m_ioport->write(addr+1, data & 0xff);
- m_ioport->write(addr, (data>>8) & 0xff);
+ m_ioport->write(addrb+1, data & 0xff);
+ m_ioport->write(addrb, (data>>8) & 0xff);
m_ioport->memen_in(m_memen_state); // reset to previous state
}
}