chore: don't init bus in Arm7tdmi init

This commit is contained in:
2022-07-27 13:44:24 -03:00
parent c397b7069d
commit 53eec5c3ff
3 changed files with 17 additions and 18 deletions

View File

@@ -573,7 +573,7 @@ pub const Ppu = struct {
// See if HBlank DMA is present and not enabled
if (!self.dispstat.vblank.read())
pollBlankingDma(&cpu.bus, .HBlank);
pollBlankingDma(cpu.bus, .HBlank);
self.dispstat.hblank.set();
self.sched.push(.HBlank, 68 * 4 -| late);
@@ -615,7 +615,7 @@ pub const Ppu = struct {
self.aff_bg[1].latchRefPoints();
// See if Vblank DMA is present and not enabled
pollBlankingDma(&cpu.bus, .VBlank);
pollBlankingDma(cpu.bus, .VBlank);
}
if (scanline == 227) self.dispstat.vblank.unset();