mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
apple2: don't allow debugger to trigger slot switching [Peter Ferrie]
This commit is contained in:
parent
670748c6e4
commit
fffc0764df
@ -711,7 +711,11 @@ READ8_MEMBER(napple2_state::c800_r)
|
||||
{
|
||||
if (offset == 0x7ff)
|
||||
{
|
||||
m_cnxx_slot = -1;
|
||||
if (!space.debugger_access())
|
||||
{
|
||||
m_cnxx_slot = -1;
|
||||
}
|
||||
|
||||
return 0xff;
|
||||
}
|
||||
|
||||
@ -727,7 +731,11 @@ WRITE8_MEMBER(napple2_state::c800_w)
|
||||
{
|
||||
if (offset == 0x7ff)
|
||||
{
|
||||
m_cnxx_slot = -1;
|
||||
if (!space.debugger_access())
|
||||
{
|
||||
m_cnxx_slot = -1;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1985,8 +1985,12 @@ READ8_MEMBER(apple2e_state::c800_r)
|
||||
|
||||
if (offset == 0x7ff)
|
||||
{
|
||||
m_cnxx_slot = CNXX_UNCLAIMED;
|
||||
update_slotrom_banks();
|
||||
if (!space.debugger_access())
|
||||
{
|
||||
m_cnxx_slot = CNXX_UNCLAIMED;
|
||||
update_slotrom_banks();
|
||||
}
|
||||
|
||||
return 0xff;
|
||||
}
|
||||
|
||||
@ -2005,7 +2009,7 @@ READ8_MEMBER(apple2e_state::c800_int_r)
|
||||
return m_iicplus_ce00[offset-0x600];
|
||||
}
|
||||
|
||||
if (offset == 0x7ff)
|
||||
if ((offset == 0x7ff) && !space.debugger_access())
|
||||
{
|
||||
m_cnxx_slot = CNXX_UNCLAIMED;
|
||||
update_slotrom_banks();
|
||||
@ -2021,7 +2025,7 @@ READ8_MEMBER(apple2e_state::c800_b2_int_r)
|
||||
return m_iicplus_ce00[offset-0x600];
|
||||
}
|
||||
|
||||
if (offset == 0x7ff)
|
||||
if ((offset == 0x7ff) && !space.debugger_access())
|
||||
{
|
||||
m_cnxx_slot = CNXX_UNCLAIMED;
|
||||
update_slotrom_banks();
|
||||
@ -2040,8 +2044,12 @@ WRITE8_MEMBER(apple2e_state::c800_w)
|
||||
|
||||
if (offset == 0x7ff)
|
||||
{
|
||||
m_cnxx_slot = CNXX_UNCLAIMED;
|
||||
update_slotrom_banks();
|
||||
if (!space.debugger_access())
|
||||
{
|
||||
m_cnxx_slot = CNXX_UNCLAIMED;
|
||||
update_slotrom_banks();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user