feat(ppu): introduce concept of 2 graphics engines + refactor

This commit is contained in:
2023-11-03 23:14:32 -05:00
parent 13f5497808
commit 16b3325fe3
8 changed files with 479 additions and 373 deletions

View File

@@ -66,7 +66,7 @@ pub fn handle(self: *@This(), bus_ptr: ?*anyopaque, event: Event, late: u64) voi
bus.ppu.onHdrawEnd(self, late);
},
.hblank => bus.ppu.onHblankEnd(self, late),
.vblank => bus.ppu.onHblankEnd(self, late),
.vblank => bus.ppu.onVblankEnd(self, late),
.sqrt => bus.io.sqrt.onSqrtCalc(),
.div => bus.io.div.onDivCalc(),
}