Fix MD Zero Wing (E) (thx to jaffa225)

More info: https://github.com/sanni/cartreader/issues/664
This commit is contained in:
sanni 2022-12-20 10:31:35 +01:00
parent f7cbdec9a2
commit d977b14cf4
4 changed files with 137 additions and 136 deletions

View File

@ -4,8 +4,8 @@
This project represents a community-driven effort to provide
an easy to build and easy to modify cartridge dumper.
Date: 18.11.2022
Version: 11.4
Date: 20.12.2022
Version: 11.5
SD lib: https://github.com/greiman/SdFat
LCD lib: https://github.com/olikraus/u8g2
@ -15,7 +15,7 @@
RTC lib: https://github.com/adafruit/RTClib
Frequency lib: https://github.com/PaulStoffregen/FreqCount
Compiled with Arduino IDE 2.0.2
Compiled with Arduino IDE 2.0.3
Thanks to:
MichlK - ROM Reader for Super Nintendo
@ -57,7 +57,7 @@
**********************************************************************************/
char ver[5] = "11.4";
char ver[5] = "11.5";
//******************************************
// !!! CHOOSE HARDWARE VERSION !!!

View File

@ -704,6 +704,9 @@ void getCartInfo_MD() {
cartSize = 0x100000; //1MB instead of 512KB
chksum = 0xF204;
break;
case 0x95C9: //Zero Wing (E) 8Mbit
cartSize = 0x100000; //1MB instead of 512KB
break;
}
}

View File

@ -793,8 +793,7 @@ void getCartInfo_SNES() {
println_Msg(F("SDD1"));
} else if (romChips == 69) {
println_Msg(F("SDD1 BATT"));
}
else if (romChips == 85)
} else if (romChips == 85)
println_Msg(F("SRTC RAM BATT"));
else if (romChips == 227)
println_Msg(F("RAM GBoy"));
@ -1452,8 +1451,7 @@ void readROM_SNES() {
// Daikaijuu Monogatari 2, keeps out S-RTC register area
readHiRomBanks(192, 192 + 64, &myFile);
readHiRomBanks(64, numBanks, &myFile); // (64 + (numBanks - 64))
}
else {
} else {
readHiRomBanks(192, numBanks + 192, &myFile);
}
}