void a2bus_softcard_device::write_cnxx(address_space &space, UINT8 offset, UINT8 data) { if (!m_bEnabled) { m_z80->set_input_line(INPUT_LINE_HALT, CLEAR_LINE); set_maincpu_halt(ASSERT_LINE); if (m_FirstZ80Boot) { m_FirstZ80Boot = false; m_z80->reset(); } m_bEnabled = true; } else { m_z80->set_input_line(INPUT_LINE_HALT, ASSERT_LINE); set_maincpu_halt(CLEAR_LINE); m_bEnabled = false; } }
void a2bus_transwarp_device::device_reset() { m_bEnabled = true; m_bReadA2ROM = false; set_maincpu_halt(ASSERT_LINE); if (!(m_dsw2->read() & 0x80)) { if (m_dsw1->read() & 0x80) { m_ourcpu->set_unscaled_clock(XTAL_14_31818MHz/8); } else { m_ourcpu->set_unscaled_clock(XTAL_14_31818MHz/4); } } else { m_ourcpu->set_unscaled_clock(1021800); } }