eeprom.c: Changed the 'erase' function to force all data bits of the specified address to 1s. [Wilbert Pol]

This commit is contained in:
Wilbert Pol 2011-12-23 21:38:11 +00:00
parent 97c7f04d5e
commit d7bbbfd55c

View File

@ -453,9 +453,9 @@ void eeprom_device::write(int bit)
if (m_locked == 0)
{
if (m_data_bits == 16)
m_addrspace[0]->write_word(address * 2, 0x0000);
m_addrspace[0]->write_word(address * 2, 0xFFFF);
else
m_addrspace[0]->write_byte(address, 0x00);
m_addrspace[0]->write_byte(address, 0xFF);
}
else
logerror("Error: EEPROM %s is locked\n", tag());