aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader
diff options
context:
space:
mode:
authorsanni <[email protected]>2022-11-18 10:46:13 +0100
committersanni <[email protected]>2022-11-18 10:46:13 +0100
commit46dd333bd46821e1578d9049355da20215a85abf (patch)
tree8db4f21b4e5c16293279cc350ab27f042bd96403 /Cart_Reader
parent4fad4463e9055726c91d45a4714e089f0b06e1d2 (diff)
downloadcartreader-46dd333bd46821e1578d9049355da20215a85abf.tar.gz
cartreader-46dd333bd46821e1578d9049355da20215a85abf.zip
Fix NES mapper selection
Diffstat (limited to 'Cart_Reader')
-rw-r--r--Cart_Reader/Cart_Reader.ino10
-rw-r--r--Cart_Reader/MD.ino1
-rw-r--r--Cart_Reader/NES.ino20
3 files changed, 15 insertions, 16 deletions
diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino
index 1a8cd7f..9471069 100644
--- a/Cart_Reader/Cart_Reader.ino
+++ b/Cart_Reader/Cart_Reader.ino
@@ -4,8 +4,8 @@
This project represents a community-driven effort to provide
an easy to build and easy to modify cartridge dumper.
- Date: 12.11.2022
- Version: 11.3
+ Date: 18.11.2022
+ Version: 11.4
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.1
+ Compiled with Arduino IDE 2.0.2
Thanks to:
MichlK - ROM Reader for Super Nintendo
@@ -38,7 +38,7 @@
jiyunomegami, splash5, Kreeblah, ramapcsx2, PsyK0p4T, Dakkaron, majorpbx, Pickle, sdhizumi,
Uzlopak, sakman55, Tombo89, scrap-a, borti4938, vogelfreiheit, CaitSith2, Modman,
philenotfound, karimhadjsalem, nsx0r, ducky92, niklasweber, Lesserkuma, BacteriaMage,
- vpelletier
+ vpelletier, Ancyker
And to nocash for figuring out the secrets of the SFC Nintendo Power cartridge.
@@ -57,7 +57,7 @@
**********************************************************************************/
-char ver[5] = "11.3";
+char ver[5] = "11.4";
//******************************************
// !!! CHOOSE HARDWARE VERSION !!!
diff --git a/Cart_Reader/MD.ino b/Cart_Reader/MD.ino
index cfeb0ff..57a1fdb 100644
--- a/Cart_Reader/MD.ino
+++ b/Cart_Reader/MD.ino
@@ -1415,7 +1415,6 @@ void readROM_MD() {
compareCRC("32x.txt", 0, 1, 0);
else
compareCRC("md.txt", 0, 1, 0);
-
}
/******************************************
diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino
index 7c88d47..85ed008 100644
--- a/Cart_Reader/NES.ino
+++ b/Cart_Reader/NES.ino
@@ -566,7 +566,7 @@ void getMapping() {
}
}
if (database.available()) {
- browseDatabase = false;
+ browseDatabase = true;
} else {
// File searched until end but nothing found
println_Msg(F(""));
@@ -2921,7 +2921,7 @@ void readPRG(boolean readrom) {
case 154: // 128K
case 206: // 32/64/128K
banks = int_pow(2, prgsize) * 2;
- for (int i = 0; i < banks-2; i += 2) {
+ for (int i = 0; i < banks - 2; i += 2) {
write_prg_byte(0x8000, 6);
write_prg_byte(0x8001, i);
write_prg_byte(0x8000, 7);
@@ -2931,8 +2931,8 @@ void readPRG(boolean readrom) {
}
}
for (word address = 0x4000; address < 0x8000; address += 512) {
- dumpPRG(base, address);
- }
+ dumpPRG(base, address);
+ }
break;
case 79:
@@ -3066,7 +3066,7 @@ void readPRG(boolean readrom) {
}
}
break;
-
+
case 111:
banks = int_pow(2, prgsize) / 2;
for (int i = 0; i < banks; i++) {
@@ -3152,7 +3152,7 @@ void readPRG(boolean readrom) {
}
}
break;
-
+
case 226:
banks = int_pow(2, prgsize);
for (int i = 0; i < banks; i += 2) {
@@ -3163,16 +3163,16 @@ void readPRG(boolean readrom) {
}
}
break;
-
+
case 228:
banks = int_pow(2, prgsize);
- for (int i = 0; i < banks; i += 2) { // up to 1024k PRG
+ for (int i = 0; i < banks; i += 2) { // up to 1024k PRG
write_prg_byte(0x8000 + ((i & 0x3F) << 6), 0);
for (word address = 0x0; address < 0x8000; address += 512) {
dumpPRG(base, address);
}
}
- if (prgsize > 6) { // reading the 3rd 512k PRG chip (Action 52)
+ if (prgsize > 6) { // reading the 3rd 512k PRG chip (Action 52)
for (int i = 0; i < 32; i += 2) {
write_prg_byte(0x9800 + ((i & 0x1F) << 6), 0);
for (word address = 0x0; address < 0x8000; address += 512) {
@@ -3992,7 +3992,7 @@ void readCHR(boolean readrom) {
}
}
break;
-
+
case 228:
banks = int_pow(2, chrsize) / 2;
for (int i = 0; i < banks; i++) {