mirror of
https://github.com/holub/mame
synced 2025-05-25 23:35:26 +03:00
Eliminate remaining non-diexec PULSE_LINE hacks and disable some side effects (nw)
This commit is contained in:
parent
fd09d19f56
commit
252b61cca6
@ -30,8 +30,10 @@ static void mp1802_floppies(device_slot_interface &device)
|
||||
|
||||
WRITE_LINE_MEMBER( bml3bus_mp1802_device::bml3_wd17xx_intrq_w )
|
||||
{
|
||||
if (state) {
|
||||
m_bml3bus->set_nmi_line(PULSE_LINE);
|
||||
if (state)
|
||||
{
|
||||
m_bml3bus->set_nmi_line(ASSERT_LINE);
|
||||
m_bml3bus->set_nmi_line(CLEAR_LINE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -32,8 +32,10 @@ static const floppy_interface bml3_mp1805_floppy_interface =
|
||||
|
||||
WRITE_LINE_MEMBER( bml3bus_mp1805_device::bml3_mc6843_intrq_w )
|
||||
{
|
||||
if (state) {
|
||||
m_bml3bus->set_nmi_line(PULSE_LINE);
|
||||
if (state)
|
||||
{
|
||||
m_bml3bus->set_nmi_line(ASSERT_LINE);
|
||||
m_bml3bus->set_nmi_line(CLEAR_LINE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -568,23 +568,32 @@ WRITE32_MEMBER(jaguar_state::eeprom_w)
|
||||
if (m_eeprom_bit_count != 9) /* kill extra bit at end of address */
|
||||
{
|
||||
m_eeprom->di_write(data >> 31);
|
||||
m_eeprom->clk_write(PULSE_LINE);
|
||||
m_eeprom->clk_write(0);
|
||||
m_eeprom->clk_write(1);
|
||||
}
|
||||
}
|
||||
|
||||
READ32_MEMBER(jaguar_state::eeprom_clk)
|
||||
{
|
||||
m_eeprom->clk_write(PULSE_LINE); /* get next bit when reading */
|
||||
if (!machine().side_effects_disabled())
|
||||
{
|
||||
m_eeprom->clk_write(0);
|
||||
m_eeprom->clk_write(1); /* get next bit when reading */
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
READ32_MEMBER(jaguar_state::eeprom_cs)
|
||||
{
|
||||
m_eeprom->cs_write(CLEAR_LINE); /* must do at end of an operation */
|
||||
m_eeprom->cs_write(ASSERT_LINE); /* enable chip for next operation */
|
||||
m_eeprom->di_write(1); /* write a start bit */
|
||||
m_eeprom->clk_write(PULSE_LINE);
|
||||
m_eeprom_bit_count = 0;
|
||||
if (!machine().side_effects_disabled())
|
||||
{
|
||||
m_eeprom->cs_write(CLEAR_LINE); /* must do at end of an operation */
|
||||
m_eeprom->cs_write(ASSERT_LINE); /* enable chip for next operation */
|
||||
m_eeprom->di_write(1); /* write a start bit */
|
||||
m_eeprom->clk_write(0);
|
||||
m_eeprom->clk_write(1);
|
||||
m_eeprom_bit_count = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,11 @@ void renegade_state::machine_start()
|
||||
|
||||
READ8_MEMBER(renegade_state::mcu_reset_r)
|
||||
{
|
||||
m_mcu->reset_w(PULSE_LINE);
|
||||
if (!machine().side_effects_disabled())
|
||||
{
|
||||
m_mcu->reset_w(ASSERT_LINE);
|
||||
m_mcu->reset_w(CLEAR_LINE);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -275,9 +275,11 @@ CUSTOM_INPUT_MEMBER(xain_state::mcu_status_r)
|
||||
|
||||
READ8_MEMBER(xain_state::mcu_comm_reset_r)
|
||||
{
|
||||
if (m_mcu)
|
||||
m_mcu->reset_w(PULSE_LINE);
|
||||
|
||||
if (m_mcu.found() && !machine().side_effects_disabled())
|
||||
{
|
||||
m_mcu->reset_w(ASSERT_LINE);
|
||||
m_mcu->reset_w(CLEAR_LINE);
|
||||
}
|
||||
return 0xff;
|
||||
}
|
||||
|
||||
|
@ -34,9 +34,6 @@ void taitosj_state::machine_reset()
|
||||
/* never write to the bank selector register) */
|
||||
taitosj_bankswitch_w(space, 0, 0);
|
||||
|
||||
if (m_mcu)
|
||||
m_mcu->reset_w(PULSE_LINE);
|
||||
|
||||
m_spacecr_prot_value = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user