From dc6ed42f14c08466ca1b417dabb906ee22d3a0f5 Mon Sep 17 00:00:00 2001 From: Scott Smith Date: Sat, 28 Oct 2017 19:27:25 -0400 Subject: [PATCH] Fix for games larger than 96 banks (Nintendo Power Fire Emblem 5 Thracia 776) --- Cart_Reader/SNES.ino | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Cart_Reader/SNES.ino b/Cart_Reader/SNES.ino index eb42881..a5aac71 100644 --- a/Cart_Reader/SNES.ino +++ b/Cart_Reader/SNES.ino @@ -907,8 +907,13 @@ void readROM_SNES() { //Dump Low-type ROM else if (romType == LO) { + if(romSize > 24) { + // ROM > 96 banks (up to 128 banks) + readLoRomBanks( 0x80, numBanks + 0x80, &myFile ); + } else { // Read up to 96 banks starting at bank 0×00. - readLoRomBanks( 0, numBanks, &myFile ); + readLoRomBanks( 0, numBanks, &myFile ); + } } // Dump High-type ROM @@ -1833,4 +1838,4 @@ boolean eraseSRAM (byte b) { //****************************************** // End of File -//****************************************** \ No newline at end of file +//******************************************