mirror of
https://github.com/FranLMSP/rmg-001.git
synced 2026-08-05 17:50:04 -04:00
Timer implement
This commit is contained in:
@@ -830,6 +830,12 @@ pub enum Opcode {
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct Cycles(pub usize);
|
||||
|
||||
impl Cycles {
|
||||
pub fn to_t(&self) -> usize {
|
||||
self.0 * 4
|
||||
}
|
||||
}
|
||||
|
||||
pub struct CPU {
|
||||
registers: Registers,
|
||||
cycles: Cycles,
|
||||
|
||||
Reference in New Issue
Block a user