chore(bus): implement read/write blocks when dma is active

This commit is contained in:
2021-06-05 20:53:35 -05:00
parent 2e42513d71
commit b7b213b6b9
4 changed files with 28 additions and 21 deletions

View File

@@ -96,6 +96,8 @@ impl Cpu {
// self.log_state(handle).unwrap();
// }
self.handle_interrupts();
let cycles = match self.halted() {
Some(state) => {
use HaltState::*;
@@ -119,7 +121,7 @@ impl Cpu {
};
self.bus.step(cycles);
self.handle_interrupts();
self.bus.step_dma(cycles);
cycles
}