fa/examples/hello_world.fa
Ari Archer c30a3de674
Deprecate mutability contexts
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-07-27 13:41:50 +03:00

10 lines
312 B
Text

include 'std/std.fa'
"hello world\n" -- Read only string
%STDOUT -- Set file descriptor to stdout
%SYS_write sys 4 -- Call SYS_write
pop -- Drop return value
%EXIT_SUCCESS -- Set exit code to success
%SYS_exit sys 2 -- Call SYS_exit
pop -- Drop return value