From d67580c96405c7ee07168b3dcedd7a29d4b18041 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sun, 31 Jan 2021 17:16:59 +0200 Subject: [PATCH] Oops, that was reversed --- Core/apu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/apu.c b/Core/apu.c index 8f871b0..126dd43 100644 --- a/Core/apu.c +++ b/Core/apu.c @@ -791,7 +791,7 @@ static inline uint16_t effective_channel4_counter(GB_gameboy_t *gb) break; #if 0 case GB_MODEL_CGB_D: - if (effective_counter & ((gb->io_registers[GB_IO_NR43] & 8) ?0x80 : 0x40)) { // This is so weird + if (effective_counter & ((gb->io_registers[GB_IO_NR43] & 8) ?0x40 : 0x80)) { // This is so weird effective_counter |= 0xFF; } if (effective_counter & 0x100) { @@ -812,7 +812,7 @@ static inline uint16_t effective_channel4_counter(GB_gameboy_t *gb) break; #endif case GB_MODEL_CGB_E: - if (effective_counter & ((gb->io_registers[GB_IO_NR43] & 8) ?0x80 : 0x40)) { // This is so weird + if (effective_counter & ((gb->io_registers[GB_IO_NR43] & 8) ?0x40 : 0x80)) { // This is so weird effective_counter |= 0xFF; } if (effective_counter & 0x1000) {