Skip to content

Commit be1312c

Browse files
authored
Update NES.ino - fix mapper 115/248
Update NES.ino - fix mapper 115/248
1 parent 5433749 commit be1312c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cart_Reader/NES.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -2164,7 +2164,7 @@ void readPRG(bool readrom) {
21642164
write_prg_byte(0x6000, (i & 0x70) >> 4);
21652165
}
21662166
if ((mapper == 115) || (mapper == 248)) {
2167-
write_prg_byte(0x6000, (i & 0x10) << 2); // A18
2167+
write_prg_byte(0x6000, (i & 0x20) << 1); // A18
21682168
}
21692169
if (mapper == 116) {
21702170
write_prg_byte(0x4100, 0x01); // MMC3 mode
@@ -3541,7 +3541,7 @@ void readCHR(bool readrom) {
35413541
write_prg_byte(0x6000, (i & 0x180) >> 3 | (i & 0x200) >> 7);
35423542
}
35433543
if ((mapper == 115) || (mapper == 248)) {
3544-
write_prg_byte(0x6000, (i & 0x100) >> 8); // A18
3544+
write_prg_byte(0x6001, (i & 0x100) >> 8); // A18
35453545
}
35463546
if (mapper == 116) {
35473547
write_prg_byte(0x4100, 0x01 | ((i & 0x100) >> 6)); // A18

0 commit comments

Comments
 (0)