- Added special detection for games that use unusual EEPROM address calls

- 4kbit EEPROM uses 9 bit and 2 bit autodetect sizes
- 64kbit EEPROM uses 12 bit and 22 bit autodetect sizes
This commit is contained in:
amponzi 2006-11-17 20:28:49 +00:00
parent 60dab6aa7c
commit e18043343e
1 changed files with 2 additions and 2 deletions

View File

@ -103,14 +103,14 @@ void mc_reset_com(memory_chip_t *mc)
mc->type = MC_TYPE_EEPROM2;
mc->size = MC_SIZE_512KBITS;
}
else if (mc->autodetectsize == (32+2))
else if (mc->autodetectsize == (32+2) || mc->autodetectsize == (20+2) || mc->autodetectsize == (10+2))
{
// 64 Kbit EEPROM
addr = (mc->autodetectbuf[0] << 8) | mc->autodetectbuf[1];
mc->type = MC_TYPE_EEPROM2;
mc->size = MC_SIZE_64KBITS;
}
else if (mc->autodetectsize == (16+1))
else if (mc->autodetectsize == (16+1) || mc->autodetectsize == (8+1) || mc->autodetectsize == (1+1))
{
// 4 Kbit EEPROM
addr = mc->autodetectbuf[0];