GB Video: Hblank IRQs should mask LYC=LY IRQs (fixes #466)

This commit is contained in:
Jeffrey Pfau 2016-12-23 17:11:19 -08:00
parent 2bd8dd2fa2
commit eaec17488e
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ Bugfixes:
- GB Video: Initialize LCDC in renderer
- GBA I/O: Mask off WAITCNT bits that cannot be written
- GB Memory: Fix HDMA5 value after DMA completes
- GB Video: Hblank IRQs should mask LYC=LY IRQs
Misc:
- SDL: Remove scancode key input
- GBA Video: Clean up unused timers

View File

@ -138,7 +138,7 @@ int32_t GBVideoProcessEvents(struct GBVideo* video, int32_t cycles) {
callbacks->videoFrameEnded(callbacks->context);
}
}
if (GBRegisterSTATIsLYCIRQ(video->stat) && lyc == video->ly) {
if (!GBRegisterSTATIsHblankIRQ(video->stat) && GBRegisterSTATIsLYCIRQ(video->stat) && lyc == video->ly) {
video->p->memory.io[REG_IF] |= (1 << GB_IRQ_LCDSTAT);
}
GBUpdateIRQs(video->p);