Skip to content

Commit 191b0a9

Browse files
authored
Update NES.ino - added mapper 399
added mapper 399
1 parent fde402a commit 191b0a9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Cart_Reader/NES.ino

+9
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ static const struct mapper_NES PROGMEM mapsize[] = {
323323
{ 366, 0, 6, 0, 8, 0, 0 }, // GN-45
324324
{ 380, 0, 5, 0, 0, 0, 0 }, // 970630C / KN-35A
325325
{ 396, 0, 6, 0, 0, 0, 0 }, // 晶太 [Jīngtài] YY850437C
326+
{ 399, 0, 6, 0, 0, 0, 0 }, // BATMAP-000
326327
{ 422, 1, 8, 0, 8, 0, 0 }, // TEC9719
327328
{ 446, 0, 8, 0, 0, 0, 0 }, // SMD172B_FPGA
328329
{ 470, 0, 11, 0, 0, 0, 0 }, // INX_007T_V01
@@ -3355,6 +3356,14 @@ void readPRG(bool readrom) {
33553356
}
33563357
break;
33573358

3359+
case 399:
3360+
banks = int_pow(2, prgsize);
3361+
for (size_t i = 0; i < banks; i++) {
3362+
write_prg_byte(0xE001, i);
3363+
dumpBankPRG(0x0, 0x4000, base);
3364+
}
3365+
break;
3366+
33583367
case 446:
33593368
banks = int_pow(2, prgsize) * 2;
33603369
write_prg_byte(0x5003, 0);

0 commit comments

Comments
 (0)