SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 52a4c09855ee45c6349af422d36cba3d9415e16a parent 6a245982666f80a9a8eb59bf7fb3a67f27c4e947 Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 25 Jun 2022 20:08:14 +0300 More accurate PPU/OAM-DMA conflicts, artifacts in "It Came from Planet Zilog" should match hardware now Diffstat:
| M | Core/display.c | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Core/display.c b/Core/display.c @@ -473,7 +473,9 @@ static inline uint8_t oam_read(GB_gameboy_t *gb, uint8_t addr) if (gb->hdma_in_progress) { return GB_read_oam(gb, (gb->hdma_current_src & ~1) | (addr & 1)); } - return gb->oam[((gb->dma_current_dest - 1 + (gb->halted || gb->stopped)) & ~1) | (addr & 1)]; + if (gb->dma_current_dest != 0xA0) { + return gb->oam[(gb->dma_current_dest & ~1) | (addr & 1)]; + } } return gb->oam[addr]; }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.