From 001b314e067e52c32e9912c5fe479b589101fa37 Mon Sep 17 00:00:00 2001 From: yangkui <752544765@qq.com> Date: Tue, 28 Nov 2023 22:28:34 +0800 Subject: [PATCH] :ambulance: Fix bug --- bin/src/main/java/cn/navclub/nes4j/bin/ppu/PPU.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/src/main/java/cn/navclub/nes4j/bin/ppu/PPU.java b/bin/src/main/java/cn/navclub/nes4j/bin/ppu/PPU.java index 12a2cee..7415d37 100644 --- a/bin/src/main/java/cn/navclub/nes4j/bin/ppu/PPU.java +++ b/bin/src/main/java/cn/navclub/nes4j/bin/ppu/PPU.java @@ -212,7 +212,7 @@ public void tick() { this.render.tick(); if (mapper.type() == NMapper.MMC3) { var tmp = (this.v >> 12) & 1; - if ((this.PPU_A12 ^ 1 ^ tmp) == 0 && this.CpuM2 >= 3) { + if (this.PPU_A12 == 0 && tmp == 1 && this.CpuM2 >= 3) { mapper.tick(); } if ((tmp ^ this.PPU_A12) == 1) {