mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Make syscall names closer to libc
This commit is contained in:
parent
1b868adf87
commit
6735b159ac
17 changed files with 103 additions and 79 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue