fix: don't start HDMA in vblank
This commit is contained in:
parent
81c669fe64
commit
887bd89668
|
@ -569,7 +569,9 @@ pub const Ppu = struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// See if HBlank DMA is present and not enabled
|
// See if HBlank DMA is present and not enabled
|
||||||
pollBlankingDma(&cpu.bus, .HBlank);
|
|
||||||
|
if (!self.dispstat.vblank.read())
|
||||||
|
pollBlankingDma(&cpu.bus, .HBlank);
|
||||||
|
|
||||||
self.dispstat.hblank.set();
|
self.dispstat.hblank.set();
|
||||||
self.sched.push(.HBlank, 68 * 4 -| late);
|
self.sched.push(.HBlank, 68 * 4 -| late);
|
||||||
|
|
Loading…
Reference in New Issue