chore: change how bus components are clocked

This commit is contained in:
2021-06-09 19:41:10 -05:00
parent aa4a898a6b
commit 50efe12aec
5 changed files with 125 additions and 134 deletions

View File

@@ -136,8 +136,10 @@ impl Cpu {
}
};
self.bus.step(cycles);
self.bus.step_dma(cycles);
let pending: u32 = cycles.into();
for _ in 0..pending {
self.bus.clock();
}
self.handle_interrupts();