mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
eeprom.c: Changed the 'erase' function to force all data bits of the specified address to 1s. [Wilbert Pol]
This commit is contained in:
parent
97c7f04d5e
commit
d7bbbfd55c
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user