chore: remove Cycle struct and begin scheduler design

This commit is contained in:
2021-09-12 04:55:14 -03:00
parent 10ac579c40
commit 6087e3b20b
8 changed files with 226 additions and 305 deletions

View File

@@ -1,4 +1,4 @@
use crate::instruction::cycle::Cycle;
use crate::Cycle;
#[derive(Debug, Default)]
pub(crate) struct DirectMemoryAccess {
@@ -56,7 +56,7 @@ impl DirectMemoryAccess {
}
fn reset(&mut self) {
self.cycle = Cycle::new(0);
self.cycle = 0;
self.state = DmaState::Disabled;
self.start.0 = None;
}