git.y1.nz

SameBoy

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

commit cd2310f0a749499130cd148cafa2386c32491832
parent 7fdc58a07ef48b155c28d97f4004f81de7a82c36
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Fri, 20 Nov 2020 19:39:54 +0200

Wave RAM reads 0xFF while active on AGBs

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

diff --git a/Core/apu.c b/Core/apu.c @@ -596,6 +596,9 @@ uint8_t GB_apu_read(GB_gameboy_t *gb, uint8_t reg) if (!GB_is_cgb(gb) && !gb->apu.wave_channel.wave_form_just_read) { return 0xFF; } + if (gb->model == GB_MODEL_AGB) { + return 0xFF; + } reg = GB_IO_WAV_START + gb->apu.wave_channel.current_sample_index / 2; }

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