aboutsummaryrefslogtreecommitdiff
path: root/src/consts.rs
blob: 3e464e34bff2d6680aac6211eb3ddf84147f4ab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
pub const PROGRAM_START_ADDRESS: u16 = 0x0;
pub const STACK_START_ADDRESS: u16 = 0x0;

pub const SPEEDUP_FACTOR: f64 = 1.0;

pub const DISPLAY_UPDATE_RATE: u64 = 120; // Hertz
pub const DISPLAY_UPDATE_SLEEP_TIME_MICROS: u64 =
    ((1000000 / DISPLAY_UPDATE_RATE) as f64 / SPEEDUP_FACTOR) as u64;

pub const CPU_CLOCK_SPEED: u64 = 4_194_304;
pub const CPU_CYCLE_LENGTH_NANOS: f64 =
    ((1_000_000_000. / CPU_CLOCK_SPEED as f64) / SPEEDUP_FACTOR) as f64;