all repos — mgba @ 073dbd6b8df389ea050b31e2398f1e2f82337602

mGBA Game Boy Advance Emulator

GBA: Remove unused portions of EEPROM state machine
Jeffrey Pfau jeffrey@endrift.com
Sat, 21 Mar 2015 00:23:19 -0700
commit

073dbd6b8df389ea050b31e2398f1e2f82337602

parent

64b396aff9fd048bc5b3c9bc158d2c22b67faf13

2 files changed, 0 insertions(+), 5 deletions(-)

jump to
M src/gba/savedata.csrc/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.hsrc/gba/savedata.h

@@ -70,8 +70,6 @@

int readBitsRemaining; int readAddress; int writeAddress; - int writePending; - int addressBits; uint8_t* currentBank;