Current implementation is placeholder. Assembly is generated by mr. chat and is currently unchecked. Also only 64 bit ints are supported
12 lines
188 B
Plaintext
12 lines
188 B
Plaintext
let SYS_WRITE = 1;
|
|
let STD_IN = 0;
|
|
let STD_OUT = 1;
|
|
let STD_ERR = 2;
|
|
|
|
func main() {
|
|
let x = 5 * 5 + 5;
|
|
}
|
|
|
|
func write(msg: String) {
|
|
syscall(SYS_WRITE, STD_OUT, msg, strlen(msg));
|
|
} |