Unverified Commit 254f6eff authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #105 from negativeExponent/flash_erase_ff

Flash : Erased memory is FFh-filled
parents eb6c434e 983ea451
Pipeline #70251 passed with stages
in 10 minutes and 18 seconds
......@@ -172,13 +172,13 @@ void flashWrite(uint32_t address, uint8_t byte)
if (byte == 0x30) {
// SECTOR ERASE
memset(&flashSaveMemory[(flashBank << 16) + (address & 0xF000)],
0,
0xff,
0x1000);
systemSaveUpdateCounter = SYSTEM_SAVE_UPDATED;
flashReadState = FLASH_ERASE_COMPLETE;
} else if (byte == 0x10) {
// CHIP ERASE
memset(flashSaveMemory, 0, flashSize);
memset(flashSaveMemory, 0xff, flashSize);
systemSaveUpdateCounter = SYSTEM_SAVE_UPDATED;
flashReadState = FLASH_ERASE_COMPLETE;
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment