Core/examples/con.rs

17 lines
320 B
Rust
Raw Permalink Normal View History

2024-01-30 13:56:39 +01:00
#![no_std]
#![no_main]
use kos::{dll::Console, threads::exit};
extern crate alloc;
#[no_mangle]
pub fn kol_main() {
let con_lib = Console::import(None).unwrap();
2024-05-08 19:42:41 +02:00
con_lib.init(u32::MAX, u32::MAX, u32::MAX, u32::MAX, c"Rust!");
con_lib.write_string("Hi from Rust!");
2024-01-30 13:56:39 +01:00
con_lib.exit(false);
exit();
}