This commit is contained in:
nub31
2025-01-30 18:05:59 +01:00
parent 1f4b2a42eb
commit b6c80af6c4
11 changed files with 67 additions and 14 deletions

View File

@@ -2,8 +2,14 @@ let SYS_WRITE = 1;
let STD_OUT = 1;
let STD_ERR = 2;
extern func print_int(value: int64);
func print(msg: String) {
syscall(SYS_WRITE, STD_OUT, msg, strlen(msg));
syscall(SYS_WRITE, STD_OUT, msg, str_len(msg));
}
func print(value: int64) {
print_int(value);
}
func print(value: bool) {
@@ -27,3 +33,8 @@ func println(value: bool) {
print(value);
println();
}
func println(value: int64) {
print(value);
println();
}