aboutsummaryrefslogtreecommitdiff
path: root/examples/instruction-test.asm
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-11-03 21:27:18 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-11-03 21:27:18 +0000
commitbc4c57b243eaad8ef054d6ab7de7602b76b22f0d (patch)
tree0db4a1b4fc3b4ed48b5b896a04cdc1c82cd2eecf /examples/instruction-test.asm
parentdea8e238074291c181f6780e445d046d08ca6668 (diff)
downloadovm-bc4c57b243eaad8ef054d6ab7de7602b76b22f0d.tar.gz
ovm-bc4c57b243eaad8ef054d6ab7de7602b76b22f0d.tar.bz2
ovm-bc4c57b243eaad8ef054d6ab7de7602b76b22f0d.zip
Use label features and entry points for examples
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