From c0bb8bc5da074dcbbb309c54966203c4b1141f8f Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Tue, 16 Aug 2016 23:02:42 +0200 Subject: [PATCH] kaneko_calc3: Stop trashing memory [O. Galibert] --- src/mame/machine/kaneko_calc3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/machine/kaneko_calc3.cpp b/src/mame/machine/kaneko_calc3.cpp index 79b20362875..a05ffaae412 100644 --- a/src/mame/machine/kaneko_calc3.cpp +++ b/src/mame/machine/kaneko_calc3.cpp @@ -1338,9 +1338,9 @@ int kaneko_calc3_device::decompress_table(int tabnum, UINT8* dstram, int dstoffs { eeprom_serial_93cxx_device *eeprom = space.machine().device(":eeprom"); - for (i=0;i<0x80;i++) + for (i=0;i<0x40;i++) { - eeprom->internal_write(i, space.read_byte(m_eeprom_addr+0x200000+i)); + eeprom->internal_write(i, space.read_word(m_eeprom_addr+0x200000+2*i)); } }