feat: reimplement cycles newtype
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
use crate::instruction::Cycles;
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct Timer {
|
||||
pub control: TimerControl,
|
||||
}
|
||||
|
||||
impl Timer {
|
||||
pub fn step(&mut self, _cycles: Cycles) {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Timer {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
Reference in New Issue
Block a user