git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit d67580c96405c7ee07168b3dcedd7a29d4b18041
parent ef9671010b0ae181e6c65ff4c228d2a06f3ee6d9
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sun, 31 Jan 2021 17:16:59 +0200

Oops, that was reversed

Diffstat:
MCore/apu.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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) {

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.