Make syscall names closer to libc

This commit is contained in:
Toby Jaffey 2025-12-08 16:28:00 +00:00
parent 1b868adf87
commit 6735b159ac
17 changed files with 103 additions and 79 deletions

View file

@ -28,14 +28,14 @@ fn println(message: &str) {
syscall(UVM32_SYSCALL_PRINTLN, addr_value);
}
fn printd(n: u32) {
syscall(UVM32_SYSCALL_PRINTD, n);
fn printdec(n: u32) {
syscall(UVM32_SYSCALL_PRINTDEC, n);
}
#[no_mangle]
pub extern "C" fn main() {
for i in 0..10 {
printd(i);
printdec(i);
}
println("Hello, world!\0");
}