From 90ec4a9500637349eb5e10ea4b6ee66512d0e1a7 Mon Sep 17 00:00:00 2001 From: Fabio Cavallo Date: Thu, 11 Apr 2024 09:29:39 +0200 Subject: [PATCH] Fixed mapper 342 (#391). --- src/core/mappers/mapper_342.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mappers/mapper_342.c b/src/core/mappers/mapper_342.c index c61efe934..af398e9c3 100644 --- a/src/core/mappers/mapper_342.c +++ b/src/core/mappers/mapper_342.c @@ -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);