Merge pull request #573 from nsx0r/patch-17

added NES mapper 242
This commit is contained in:
sanni 2022-10-21 00:54:35 +02:00 committed by GitHub
commit 3b0a046d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,7 @@ static const byte PROGMEM mapsize[] = {
207, 4, 4, 5, 5, 0, 0, // taito x1-005 variant (fudou myouou den) 207, 4, 4, 5, 5, 0, 0, // taito x1-005 variant (fudou myouou den)
210, 3, 5, 5, 6, 0, 0, // namco 175/340 210, 3, 5, 5, 6, 0, 0, // namco 175/340
235, 6, 8, 0, 0, 0, 0, // "Golden Game" multicarts [UNLICENSED] 235, 6, 8, 0, 0, 0, 0, // "Golden Game" multicarts [UNLICENSED]
242, 5, 5, 0, 0, 0, 0, // ET-113 [UNLICENSED]
}; };
/****************************************** /******************************************
@ -3509,6 +3510,21 @@ void readPRG(boolean readrom) {
} }
} }
break; break;
case 242: // total size is 640k THIS IS NORMAL
for (int i = 0; i < 32; i++) { // dump 1st chip of 512k
write_prg_byte(0x8400 + (i * 4), 0);
for (word address = 0x0; address < 0x4000; address += 512) {
dumpPRG(base, address);
}
}
for (int i = 0; i < 8; i++) { // dump 2nd chip of 128k
write_prg_byte(0x8000 + (i * 4), 0);
for (word address = 0x0; address < 0x4000; address += 512) {
dumpPRG(base, address);
}
}
break;
} }
if (!readrom) { if (!readrom) {
myFile.flush(); myFile.flush();