MT04752: atarigt regressions.

This commit is contained in:
Aaron Giles 2012-04-09 05:40:11 +00:00
parent 955ad998cf
commit 4f2850b93c
2 changed files with 5 additions and 1 deletions

View File

@ -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());
}

View File

@ -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;