Wave RAM reads 0xFF while active on AGBs
This commit is contained in:
parent
7fdc58a07e
commit
cd2310f0a7
@ -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) {
|
if (!GB_is_cgb(gb) && !gb->apu.wave_channel.wave_form_just_read) {
|
||||||
return 0xFF;
|
return 0xFF;
|
||||||
}
|
}
|
||||||
|
if (gb->model == GB_MODEL_AGB) {
|
||||||
|
return 0xFF;
|
||||||
|
}
|
||||||
reg = GB_IO_WAV_START + gb->apu.wave_channel.current_sample_index / 2;
|
reg = GB_IO_WAV_START + gb->apu.wave_channel.current_sample_index / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user