This repository has been archived on 2025-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive-2/Nub.Lang/Nub.Lang/Input/program.nub
2025-01-26 20:22:22 +01:00

12 lines
186 B
Plaintext

let SYS_WRITE = 1;
let STD_IN = 0;
let STD_OUT = 1;
let STD_ERR = 2;
func main() {
write("test\n");
}
func write(msg: String) {
syscall(SYS_WRITE, STD_OUT, msg, strlen(msg));
}