ti8*: remove the gross boot hack, break the driver, don't give a shit [O. Galibert]

This commit is contained in:
Olivier Galibert 2017-03-31 18:27:51 +02:00
parent 6dd15ad2a8
commit 080dc67aba

View File

@ -268,20 +268,6 @@ MACHINE_RESET_MEMBER(ti85_state,ti85)
m_PCR = 0xc0;
}
DIRECT_UPDATE_MEMBER(ti85_state::ti83p_direct_update_handler)
{
if (m_booting)
{
if (((m_ti83p_port4 & 1) && (address >= 0x4000 && address < 0xc000)) || (address >= 0x4000 && address < 0x8000))
{
m_booting = false;
update_ti83p_memory();
}
}
return address;
}
MACHINE_RESET_MEMBER(ti85_state,ti83p)
{
m_PCR = 0x00;
@ -307,7 +293,6 @@ MACHINE_START_MEMBER(ti85_state,ti83p)
m_model = TI83P;
//address_space &space = m_maincpu->space(AS_PROGRAM);
//m_bios = memregion("flash")->base();
m_maincpu->space(AS_PROGRAM).set_direct_update_handler(direct_update_delegate(&ti85_state::ti83p_direct_update_handler, this));
m_timer_interrupt_mask = 0;
m_timer_interrupt_status = 0;
@ -371,8 +356,6 @@ void ti85_state::ti8xpse_init_common()
m_flash_unlocked = 0;
ti85_state::update_ti83pse_memory();
m_maincpu->space(AS_PROGRAM).set_direct_update_handler(direct_update_delegate(&ti85_state::ti83p_direct_update_handler, this));
machine().scheduler().timer_pulse(attotime::from_hz(256), timer_expired_delegate(FUNC(ti85_state::ti83_timer1_callback),this));
machine().scheduler().timer_pulse(attotime::from_hz(512), timer_expired_delegate(FUNC(ti85_state::ti83_timer2_callback),this));