screen tearing kinda poop

This commit is contained in:
2025-09-14 19:12:17 -06:00
parent 919744dbec
commit d934036965
4 changed files with 27 additions and 16 deletions

View File

@@ -40,13 +40,13 @@ pub fn print(msg: &str) {
}
}
pub type SleepAbi = extern "Rust" fn(ticks: u64);
pub type SleepAbi = extern "Rust" fn(ms: u64);
pub fn sleep(ticks: u64) {
pub fn sleep(ms: u64) {
unsafe {
let ptr = CALL_ABI_TABLE[CallAbiTable::Print as usize];
let f: SleepAbi = core::mem::transmute(ptr);
f(ticks);
f(ms);
}
}