GBA: Remove unused portions of EEPROM state machine
Jeffrey Pfau jeffrey@endrift.com
Sat, 21 Mar 2015 00:23:19 -0700
2 files changed,
0 insertions(+),
5 deletions(-)
M
src/gba/savedata.c
→
src/gba/savedata.c
@@ -323,10 +323,8 @@ case EEPROM_COMMAND_PENDING:
savedata->command <<= 1; savedata->command |= value & 0x1; if (savedata->command == EEPROM_COMMAND_WRITE) { - savedata->addressBits = writeSize - 64 - 2; savedata->writeAddress = 0; } else { - savedata->addressBits = writeSize - 2; savedata->readAddress = 0; } break;@@ -338,7 +336,6 @@ savedata->writeAddress <<= 1;
savedata->writeAddress |= (value & 0x1) << 6; } else if (writeSize == 1) { savedata->command = EEPROM_COMMAND_NULL; - savedata->writePending = 1; } else { uint8_t current = savedata->data[savedata->writeAddress >> 3]; current &= ~(1 << (0x7 - (savedata->writeAddress & 0x7)));
M
src/gba/savedata.h
→
src/gba/savedata.h
@@ -70,8 +70,6 @@
int readBitsRemaining; int readAddress; int writeAddress; - int writePending; - int addressBits; uint8_t* currentBank;