aboutsummaryrefslogtreecommitdiff
path: root/examples/instruction-test.asm
diff options
context:
space:
mode:
Diffstat (limited to 'examples/instruction-test.asm')
-rw-r--r--examples/instruction-test.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/instruction-test.asm b/examples/instruction-test.asm
index 8e8ca2e..bd31c68 100644
--- a/examples/instruction-test.asm
+++ b/examples/instruction-test.asm
@@ -2,6 +2,10 @@
;;; order, with proper calling convention. Used to test lexer and
;;; parser but isn't a semantically correct program, but may be run as
;;; first instruction is halt (so program will stop immediately).
+
+ ;; setup entrypoint
+ global main
+main:
halt
push.byte 1
push.hword 2