Wave RAM reads 0xFF while active on AGBs

This commit is contained in:
Lior Halphon 2020-11-20 19:39:54 +02:00
parent 7fdc58a07e
commit cd2310f0a7

View File

@ -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;
}