mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
ti99: Fixed debugger access to cartridge
This commit is contained in:
parent
9f21eabe21
commit
5be84f273e
@ -237,8 +237,9 @@ UINT16 ti99_datamux_device::debugger_read(address_space& space, UINT16 addr)
|
|||||||
UINT8 lval = 0;
|
UINT8 lval = 0;
|
||||||
UINT8 hval = 0;
|
UINT8 hval = 0;
|
||||||
|
|
||||||
if ((addr & 0xe000)==0x6000)
|
if ((addrb & 0xe000)==0x6000)
|
||||||
{
|
{
|
||||||
|
m_gromport->romgq_line(ASSERT_LINE);
|
||||||
m_gromport->readz(space, addrb+1, &lval);
|
m_gromport->readz(space, addrb+1, &lval);
|
||||||
m_gromport->readz(space, addrb, &hval);
|
m_gromport->readz(space, addrb, &hval);
|
||||||
}
|
}
|
||||||
@ -272,8 +273,9 @@ void ti99_datamux_device::debugger_write(address_space& space, UINT16 addr, UINT
|
|||||||
if (base32k != 0) m_ram16b[(addrb-base32k)>>1] = data;
|
if (base32k != 0) m_ram16b[(addrb-base32k)>>1] = data;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((addr & 0xe000)==0x6000)
|
if ((addrb & 0xe000)==0x6000)
|
||||||
{
|
{
|
||||||
|
m_gromport->romgq_line(ASSERT_LINE);
|
||||||
m_gromport->write(space, addr+1, data & 0xff);
|
m_gromport->write(space, addr+1, data & 0xff);
|
||||||
m_gromport->write(space, addr, (data>>8) & 0xff);
|
m_gromport->write(space, addr, (data>>8) & 0xff);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user