From cd04e59647a9440e6b362b3a46b36f46bf2b2576 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 30 Aug 2026 00:39:55 +0200 Subject: setup: prepare docker and build system --- examples/hello_world.hdass | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/hello_world.hdass (limited to 'examples/hello_world.hdass') 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 +} -- cgit v1.3