summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Pierpaolo Prazzoli <pierpaol@mamedev.org>2009-03-04 21:06:57 +0000
committer Pierpaolo Prazzoli <pierpaol@mamedev.org>2009-03-04 21:06:57 +0000
commitcaf233e1fc1fbbb7a388e361584a908d19fbdf6e (patch)
tree945224694a0073ae2ec011ef081ffd13382e7a7c /src
parent1c544a0426a6a1ff23c0ad21ab3815f509aa2ec9 (diff)
Changed eeprom erase command to write 0xff values.
-------------------------------------------------- I see that eeprom_data is initialized with a memeset of 0xff so I don't think this change will break anything.
Diffstat (limited to 'src')
-rw-r--r--src/emu/machine/eeprom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/machine/eeprom.c b/src/emu/machine/eeprom.c
index 8db3e9ab6f0..6df782121a4 100644
--- a/src/emu/machine/eeprom.c
+++ b/src/emu/machine/eeprom.c
@@ -209,11 +209,11 @@ logerror("EEPROM erase address %02x\n",address);
{
if (intf->data_bits == 16)
{
- eeprom_data[2*address+0] = 0x00;
- eeprom_data[2*address+1] = 0x00;
+ eeprom_data[2*address+0] = 0xff;
+ eeprom_data[2*address+1] = 0xff;
}
else
- eeprom_data[address] = 0x00;
+ eeprom_data[address] = 0xff;
}
else
logerror("Error: EEPROM is locked\n");