From c1b550ebf48e13bb0f3e47146335f948e37f4ab2 Mon Sep 17 00:00:00 2001 From: LeotendoDev Date: Sun, 20 Mar 2022 15:56:08 +0100 Subject: [PATCH] Change assembly examples --- README.md | 4 +++- examples/test.hasm | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7787eb2..6f22cd9 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,11 @@ then put the following code into the created file: ```assembly %include "std.hasm" -main: +main { msg: string "Hello, World!" print msg + syscall +} ``` diff --git a/examples/test.hasm b/examples/test.hasm index 190a180..bf239dc 100644 --- a/examples/test.hasm +++ b/examples/test.hasm @@ -1 +1,7 @@ -123 +%include "std.hasm" + +main { + msg: string "Hello, World!" + print msg + syscall +}