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
|
|
@ -26,10 +26,10 @@ fn mandel() void {
|
|||
y2 = (y * y) >> 12;
|
||||
uvm.yield();
|
||||
}
|
||||
uvm.printc(' ' + @as(u8, @intCast(iter)));
|
||||
uvm.putc(' ' + @as(u8, @intCast(iter)));
|
||||
cx += dx;
|
||||
}
|
||||
uvm.printc('\n');
|
||||
uvm.putc('\n');
|
||||
cy += dy;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ pub inline fn yield() void {
|
|||
_ = syscall(uvm32.UVM32_SYSCALL_YIELD, 0);
|
||||
}
|
||||
|
||||
pub inline fn printc(c:u8) void {
|
||||
_ = syscall(uvm32.UVM32_SYSCALL_PRINTC, c);
|
||||
pub inline fn putc(c:u8) void {
|
||||
_ = syscall(uvm32.UVM32_SYSCALL_PUTC, c);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue