Fix DMA regression, fixes #495

This commit is contained in:
Lior Halphon 2022-09-16 12:20:59 +03:00
parent 0ebfdb840a
commit ea40a7be05
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ static uint8_t read_high_memory(GB_gameboy_t *gb, uint16_t addr)
return 0xFF;
}
if (GB_is_dma_active(gb)) {
if (GB_is_dma_active(gb) && gb->dma_current_dest != 0) {
/* Todo: Does reading from OAM during DMA causes the OAM bug? */
return 0xFF;
}