This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
HelloWorld/Rys/HelloWorld.rys
TruncatedDinosour 18e9d0007a
Update HelloWorld.rys
Rewrote the compiler,
this needs updating :)

About to release it ;p
2022-02-18 21:06:44 +00:00

10 lines
512 B
Text

"hello world\n" 1 writefd -- This writes string "hello world" with a newline to
-- File descriptor 1, which on UNIX based OSes is
-- STDOUT
1 drop -- Write syscall n returns the number of bytes successfully
-- written into the file or -1 on failure, so we have to discard it
0 exit -- Exit with code 0 (success), this is required
-- Unless you want a segfault