diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-05-15 15:17:11 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-05-15 15:17:32 -0400 |
commit | 252b61cca6495361a50bc9632f133cff3d68f16b (patch) | |
tree | 28e7c12296ed88eb4f3d8ce8894dd53a579e40e7 /src/mame/drivers/jaguar.cpp | |
parent | fd09d19f56b54c5bb4915cd7805bb64d5bbc8dee (diff) |
Eliminate remaining non-diexec PULSE_LINE hacks and disable some side effects (nw)
Diffstat (limited to 'src/mame/drivers/jaguar.cpp')
-rw-r--r-- | src/mame/drivers/jaguar.cpp | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/mame/drivers/jaguar.cpp b/src/mame/drivers/jaguar.cpp index 1d59c1f1f7a..29b11e35080 100644 --- a/src/mame/drivers/jaguar.cpp +++ b/src/mame/drivers/jaguar.cpp @@ -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; } |