chore(cpu): refactor SM83 implementation
All checks were successful
continuous-integration/drone/push Build is passing

Instruction::decode no longer requires mutable access to the CPU
This commit is contained in:
2021-07-31 20:29:13 -05:00
parent 2af673d7c5
commit 7112cd15e3
7 changed files with 1320 additions and 1381 deletions

View File

@@ -66,6 +66,10 @@ impl Bus {
self.cartridge.as_ref()?.title()
}
pub(crate) fn boot_mapped(&self) -> bool {
self.boot.is_some()
}
pub(crate) fn clock(&mut self) {
self.ppu.clock();
self.timer.clock();