git.y1.nz

SameBoy

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

commit 939dd6ad5b6205a816b1a151e8f3895aa324de62
parent 21af55dcc045107e389b8e7978f8ad22e8a69b5a
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Fri,  3 Oct 2025 21:12:19 +0300

Needs to be done in secondary DIV events as well

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

diff --git a/Core/apu.c b/Core/apu.c @@ -721,6 +721,8 @@ void GB_apu_div_event(GB_gameboy_t *gb) void GB_apu_div_secondary_event(GB_gameboy_t *gb) { GB_apu_run(gb, true); + gb->apu.pcm_mask[0] = gb->apu.pcm_mask[1] = 0xFF; + if (!gb->apu.global_enable) return; unrolled for (unsigned i = GB_SQUARE_2 + 1; i--;) { uint8_t nrx2 = gb->io_registers[i == GB_SQUARE_1? GB_IO_NR12 : GB_IO_NR22];

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