mirror of
https://github.com/holub/mame
synced 2025-06-21 19:56:53 +03:00
apple2e: add debugger guards to avoid accidentally banking out ROM [R. Belmont]
This commit is contained in:
parent
614507ce14
commit
1b2191db55
@ -2324,9 +2324,12 @@ READ8_MEMBER(apple2e_state::c800_int_r)
|
||||
|
||||
if ((offset == 0x7ff) && !machine().side_effects_disabled())
|
||||
{
|
||||
m_cnxx_slot = CNXX_UNCLAIMED;
|
||||
m_intc8rom = false;
|
||||
update_slotrom_banks();
|
||||
if (!machine().side_effects_disabled())
|
||||
{
|
||||
m_cnxx_slot = CNXX_UNCLAIMED;
|
||||
m_intc8rom = false;
|
||||
update_slotrom_banks();
|
||||
}
|
||||
}
|
||||
|
||||
if (m_iscec)
|
||||
@ -2346,9 +2349,12 @@ READ8_MEMBER(apple2e_state::c800_b2_int_r)
|
||||
|
||||
if ((offset == 0x7ff) && !machine().side_effects_disabled())
|
||||
{
|
||||
m_cnxx_slot = CNXX_UNCLAIMED;
|
||||
m_intc8rom = false;
|
||||
update_slotrom_banks();
|
||||
if (!machine().side_effects_disabled())
|
||||
{
|
||||
m_cnxx_slot = CNXX_UNCLAIMED;
|
||||
m_intc8rom = false;
|
||||
update_slotrom_banks();
|
||||
}
|
||||
}
|
||||
|
||||
return m_rom_ptr[0x4800 + offset];
|
||||
|
Loading…
Reference in New Issue
Block a user