ti99: Fixed debugger_write in datamux, used wrong address variable for PEB access.

This commit is contained in:
Michael Zapf 2020-06-28 16:41:20 +02:00
parent ef00dd754e
commit 9dcaa32e10

View File

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