mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
la120: Fix remaining problems with ER1400 accesses (nw)
This commit is contained in:
parent
d0ac21c996
commit
7c2220e8ca
@ -137,11 +137,19 @@ WRITE8_MEMBER( decwriter_state::la120_LED_w )
|
||||
*/
|
||||
READ8_MEMBER( decwriter_state::la120_NVR_r )
|
||||
{
|
||||
// one wait state inserted
|
||||
if (!machine().side_effect_disabled())
|
||||
m_maincpu->adjust_icount(-1);
|
||||
|
||||
return (m_nvm->data_r() << 7) | 0x7e;
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( decwriter_state::la120_NVR_w )
|
||||
{
|
||||
// one wait state inserted
|
||||
if (!machine().side_effect_disabled())
|
||||
m_maincpu->adjust_icount(-1);
|
||||
|
||||
// ER1400 has negative logic, but 7406 inverters are used
|
||||
m_nvm->c3_w(BIT(offset, 10));
|
||||
m_nvm->c2_w(BIT(offset, 9));
|
||||
@ -150,7 +158,7 @@ WRITE8_MEMBER( decwriter_state::la120_NVR_w )
|
||||
// C2 is used to disable pullup on data line
|
||||
m_nvm->data_w(!BIT(offset, 9) ? 0 : !BIT(data, 7));
|
||||
|
||||
m_nvm->clock_w(BIT(offset, 0));
|
||||
m_nvm->clock_w(!BIT(offset, 0));
|
||||
}
|
||||
|
||||
/* todo: fully reverse engineer DC305 ASIC */
|
||||
|
Loading…
Reference in New Issue
Block a user