Skip to content

Commit

Permalink
Fixed mapper 342 (#391).
Browse files Browse the repository at this point in the history
  • Loading branch information
punesemu committed Apr 11, 2024
1 parent bcb4e47 commit 90ec4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mappers/mapper_342.c
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ INLINE static BYTE mapper13_cpu_rd(UNUSED(BYTE nidx), WORD address, BYTE openbus
}
INLINE static BYTE mapper15_cpu_rd(UNUSED(BYTE nidx), WORD address, BYTE openbus) {
// MMC5
if (address == 0x0204) {
if (address == 0x5204) {
BYTE value = (m342.mmc5.irq.out << 7) |
(!m342.mmc5.ppu.rendering || ((m342.mmc5.ppu.scanline + 1) >= 241) ? 0 : 0x40);

Expand Down

0 comments on commit 90ec4a9

Please sign in to comment.