print syscall

This commit is contained in:
2025-08-29 15:05:19 -06:00
parent f3c67beb00
commit 1bbd988ef7
4 changed files with 26 additions and 1 deletions

View File

@@ -3,6 +3,16 @@
use abi_sys::{Syscall, call_abi};
use shared::keyboard::{KeyCode, KeyEvent, KeyState, Modifiers};
pub fn print(msg: &str) {
let syscall = Syscall::Print {
msg: msg.as_ptr(),
len: msg.len(),
};
unsafe {
call_abi(&syscall);
}
}
pub mod display {
use crate::{Syscall, call_abi};
use embedded_graphics::{