apple2e: add debugger guards to avoid accidentally banking out ROM [R. Belmont]

This commit is contained in:
arbee 2018-06-24 14:13:53 -04:00
parent 614507ce14
commit 1b2191db55

View File

@ -2324,9 +2324,12 @@ READ8_MEMBER(apple2e_state::c800_int_r)
if ((offset == 0x7ff) && !machine().side_effects_disabled()) if ((offset == 0x7ff) && !machine().side_effects_disabled())
{ {
m_cnxx_slot = CNXX_UNCLAIMED; if (!machine().side_effects_disabled())
m_intc8rom = false; {
update_slotrom_banks(); m_cnxx_slot = CNXX_UNCLAIMED;
m_intc8rom = false;
update_slotrom_banks();
}
} }
if (m_iscec) if (m_iscec)
@ -2346,9 +2349,12 @@ READ8_MEMBER(apple2e_state::c800_b2_int_r)
if ((offset == 0x7ff) && !machine().side_effects_disabled()) if ((offset == 0x7ff) && !machine().side_effects_disabled())
{ {
m_cnxx_slot = CNXX_UNCLAIMED; if (!machine().side_effects_disabled())
m_intc8rom = false; {
update_slotrom_banks(); m_cnxx_slot = CNXX_UNCLAIMED;
m_intc8rom = false;
update_slotrom_banks();
}
} }
return m_rom_ptr[0x4800 + offset]; return m_rom_ptr[0x4800 + offset];