diff options
| author | hachem <im@hachem.wtf> | 2026-08-30 00:39:55 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-30 00:39:55 +0200 |
| commit | cd04e59647a9440e6b362b3a46b36f46bf2b2576 (patch) | |
| tree | 14a5182dfc421ed0339e2986241c6328fa0f6389 /examples/hello_world.hdass | |
| parent | b419298e454ad3d035ac8ab7c60dc58420f8af07 (diff) | |
setup: prepare docker and build system
Diffstat (limited to 'examples/hello_world.hdass')
| -rw-r--r-- | examples/hello_world.hdass | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/hello_world.hdass b/examples/hello_world.hdass new file mode 100644 index 0000000..59dac80 --- /dev/null +++ b/examples/hello_world.hdass @@ -0,0 +1,19 @@ +const SYS_WRITE = 1 +const SYS_EXIT = 60 + +const STDOUT = 1 + +data message = "Hello, World!\n" + +proc main +{ + rax = SYS_WRITE + rdi = STDOUT + rsi = message + rdx = message.len + syscall + + rax = SYS_EXIT + rdi = 0 + syscall +} |
