Implemented extern functions

This commit is contained in:
2025-02-12 00:04:30 +01:00
parent 1083db6ab2
commit 3b66dae1d4
24 changed files with 304 additions and 169 deletions

View File

@ -1,9 +1,9 @@
read(fd Int, address *Any, length Int) -> Int {
return syscall(0, fd, address, length)
read(fd Int, buffer *Any, length Int) -> Int {
return syscall(0, fd, buffer, length)
}
write(fd Int, address *Any, length Int) -> Int {
return syscall(1, fd, address, length)
write(fd Int, buffer *Any, length Int) -> Int {
return syscall(1, fd, buffer, length)
}
open(path *Any, flags Int, mode Int) -> Int {