aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4a69904..4cf4444 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,8 @@ This is where hdass comes in. It's not quite high-level enough to be a C-like la
## Examples
Here's a simple "Hello, World!" world program written using hdass' syntax:
```hdass
+[entry: main]
+
const SYS_WRITE = 1
const SYS_EXIT = 60
@@ -60,7 +62,7 @@ From inside the container you can build the compiler and take a program all the
premake5 gmake && make config=debug
./bin/debug-linux/hdass examples/hello_world.hdass -o hello.asm
nasm -f elf64 hello.asm -o hello.o
-ld hello.o -o hello
+ld -e main hello.o -o hello
./hello
```