diff options
author | 2012-04-09 05:40:11 +0000 | |
---|---|---|
committer | 2012-04-09 05:40:11 +0000 | |
commit | 4f2850b93c17f5ce6e1ef787f47d7964f6d6249a (patch) | |
tree | f36899765dd1cdf8f0e4fdf2d9967ae359a21ee7 /src | |
parent | 955ad998cf81050e2999ac7c5a1e0b6e0712b584 (diff) |
MT04752: atarigt regressions.
Diffstat (limited to 'src')
-rw-r--r-- | src/mame/machine/atarigen.c | 2 | ||||
-rw-r--r-- | src/mame/machine/atarigen.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/mame/machine/atarigen.c b/src/mame/machine/atarigen.c index 108042d2e84..f27266d56f1 100644 --- a/src/mame/machine/atarigen.c +++ b/src/mame/machine/atarigen.c @@ -345,6 +345,8 @@ static TIMER_CALLBACK( scanline_interrupt_callback ) void atarigen_eeprom_reset(atarigen_state *state) { state->m_eeprom_unlocked = 0; + if (state->m_eeprom == NULL && state->m_eeprom32 != NULL) + state->m_eeprom.set_target(reinterpret_cast<UINT16 *>(state->m_eeprom32.target()), state->m_eeprom32.bytes()); } diff --git a/src/mame/machine/atarigen.h b/src/mame/machine/atarigen.h index b314ed9626a..43fcf2f9a04 100644 --- a/src/mame/machine/atarigen.h +++ b/src/mame/machine/atarigen.h @@ -97,7 +97,8 @@ public: atarigen_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_earom(*this, "earom"), - m_eeprom(*this, "eeprom") { } + m_eeprom(*this, "eeprom"), + m_eeprom32(*this, "eeprom") { } // users must call through to these virtual void machine_start(); @@ -114,6 +115,7 @@ public: UINT8 m_earom_control; optional_shared_ptr<UINT16> m_eeprom; + optional_shared_ptr<UINT32> m_eeprom32; UINT8 m_scanline_int_state; UINT8 m_sound_int_state; |