Merge pull request #659 from splash5/famicom

Add NES mapper 209
This commit is contained in:
sanni 2022-12-14 11:52:50 +01:00 committed by GitHub
commit d13d8f6817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 10 deletions

View File

@ -130,6 +130,7 @@ static const byte PROGMEM mapsize[] = {
203, 1, 4, 1, 4, 0, 0, // various NROM-128 multicarts [UNLICENSED]
206, 1, 3, 2, 4, 0, 0, // dxrom
207, 4, 4, 5, 5, 0, 0, // taito x1-005 variant (fudou myouou den)
209, 0, 7, 1, 8, 0, 0, // J.Y. Company ASIC [UNLICENSED]
210, 3, 5, 5, 6, 0, 0, // namco 175/340
212, 0, 3, 0, 4, 0, 0, // BMC Super HiK 300-in-1 [UNLICENSED]
213, 1, 6, 1, 6, 0, 0, // BMC-GKB (C)NROM-based multicarts, duplicate of mapper 58 [UNLICENSED]
@ -3380,6 +3381,19 @@ void readPRG(boolean readrom) {
}
break;
case 209:
banks = int_pow(2, prgsize) * 2;
write_prg_byte(0xD000, 0x02);
for (byte i = 0; i < banks; i++) {
write_prg_byte(0xD003, (((i >> 5) & 0x06) | 0x20));
write_prg_byte(0x8000, (i & 0x3f));
for (word address = 0x0; address < 0x2000; address += 512) {
dumpPRG(base, address);
}
}
break;
case 210: // 128K/256K
banks = int_pow(2, prgsize) * 2;
for (int i = 0; i < banks; i += 2) {
@ -4353,6 +4367,19 @@ void readCHR(boolean readrom) {
}
break;
case 209:
banks = int_pow(2, chrsize) / 2;
write_prg_byte(0xD000, 0x02);
for (int i = 0; i < banks; i++) {
write_prg_byte(0xD003, (((i >> 3) & 0x18) | 0x20));
write_prg_byte(0x9000, (i & 0x3f));
for (word address = 0x0; address < 0x2000; address += 512) {
dumpCHR(address);
}
}
break;
case 210: // 128K/256K
banks = int_pow(2, chrsize) * 4;
write_prg_byte(0xE800, 0xC0); // CHR RAM DISABLE (Bit 6 and 7) [WRITE NO RAM]

20
sd/nes.txt Normal file → Executable file
View File

@ -350,7 +350,7 @@ Akuma-kun - Makai no Wana (Japan).nes
2C4421B2,E5591129,4E45531A081000184000000000000001
Akumajou Densetsu (Japan).nes
E349AF38,10C17796,4E45531A101080180000000000000001
E349AF38,5F99D75D,4E45531A101080180000000000000001
Akumajou Dracula (Japan).nes
A0F99BB8,6401699F,4E45531A080021082000000700000001
@ -1826,7 +1826,7 @@ Datach - Crayon Shin-chan - Ora to Poi Poi (Japan).nes
894EFDBC,EEE7EF5F,4E45531A1000D0980000000700000001
Datach - Dragon Ball Z - Gekitou Tenkaichi Budoukai (Japan).nes
19E81461,1F302C8D,4E45531A1000D0980000000700000001
19E81461,CDE4215A,4E45531A1000D0980000000700000001
Datach - J.League Super Top Players (Japan).nes
BE06853F,BC4999BA,4E45531A1000D0980000000700000001
@ -2249,7 +2249,7 @@ Dragon Quest III - Soshite Densetsu e... (Japan).nes
A49B48B8,D4F18F91,4E45531A100012080000700700000001
Dragon Quest IV - Michibikareshi Monotachi (Japan) (Rev 1).nes
0794F2A5,81231C15,4E45531A200012080000700700000001
0794F2A5,36148EBF,4E45531A200012080000700700000001
Dragon Quest IV - Michibikareshi Monotachi (Japan).nes
2DD71ACB,81231C15,4E45531A200012080000700700000001
@ -2582,7 +2582,7 @@ Famicom Igo Nyuumon (Japan).nes
2470402B,C56D1EDC,4E45531A080412080000700000000001
Famicom Jump - Eiyuu Retsuden (Japan).nes
D343C66A,38540529,4E45531A101000184000000000000001
D343C66A,A1989DBD,4E45531A101000184000000000000001
Famicom Jump II - Saikyou no 7 Nin (Japan).nes
3F15D20D,033DD3B4,4E45531A200092980000700700000001
@ -3164,7 +3164,7 @@ Getsu Fuuma Den (Japan) (Beta).nes
E6C94541,4A666A61,4E45531A081070183000000000000001
Getsu Fuuma Den (Japan).nes
49123146,91970181,4E45531A081070183000000000000001
49123146,BC81DF5C,4E45531A081070183000000000000001
Ghost Lion (USA).nes
04766130,1B299B84,4E45531A081012080000700000000001
@ -4145,7 +4145,7 @@ Jurassic Park (USA).nes
3B7F5B3B,7B05BD9C,4E45531A081040080000070000000001
Just Breed (Japan).nes
9CBADC25,40760EFD,4E45531A202052080000700000000001
9CBADC25,122EE160,4E45531A202052080000700000000001
Justice Duel (USA) (RetroGameCon 5 Edition) (Aftermarket) (Unl).nes
E3879A83,4C16FA70,4E45531A041042080000070002000002
@ -4334,7 +4334,7 @@ Kidou Senshi Z Gundam - Hot Scramble (Japan).nes
CE07194F,B690BBB3,4E45531A080420480000000000000001
King Kong 2 - Ikari no Megaton Punch (Japan).nes
B06C0674,569D0FBC,4E45531A0810B0480000000000000001
B06C0674,BAF1179C,4E45531A0810B0480000000000000001
King Neptune's Adventure (USA) (Beta) (Unl).nes
4BC75F16,BCB2A2EF,4E45531A0408B1080000000000000001
@ -6857,7 +6857,7 @@ Route-16 Turbo (Japan).nes
728BFA8D,33E2E2E9,4E45531A020100080000000000000001
Royal Blood (Japan).nes
BC80FB52,485DFCF4,4E45531A102052080000700000000001
BC80FB52,E6B9BE88,4E45531A102052080000700000000001
RPG Jinsei Game (Japan).nes
07D92C31,EDF4F5FD,4E45531A101062780000700000000001
@ -7166,7 +7166,7 @@ Shikinjou (Japan).nes
9B53F848,C17D1CE6,4E45531A080010080000000700000001
Shin 4 Nin Uchi Mahjong - Yakuman Tengoku (Japan).nes
D532E98F,F417743F,4E45531A101052080000700000000001
D532E98F,26AD9644,4E45531A101052080000700000000001
Shin Jinrui - The New Type (Japan).nes
43B0944B,17C00A10,4E45531A020431082000000000000001
@ -8255,7 +8255,7 @@ Tenchi o Kurau II - Shokatsu Koumei Den (Japan).nes
CB32E243,EBF2AA27,4E45531A200042080000700700000001
Tenka no Goikenban - Mito Koumon (Japan).nes
21F8C4AB,4C8A9D52,4E45531A081090580000000000000001
21F8C4AB,5C7919F8,4E45531A081090580000000000000001
Tenkaichi Bushi - Keru Naguuru (Japan).nes
5397E80B,E8FFE34B,4E45531A0808E1C80000000000000001