Skip to content

Commit

Permalink
🚑 Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GZYangKui committed Nov 28, 2023
1 parent 03b1cf1 commit 001b314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/src/main/java/cn/navclub/nes4j/bin/ppu/PPU.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 001b314

Please sign in to comment.