diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-03 21:27:18 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-03 21:27:18 +0000 |
commit | bc4c57b243eaad8ef054d6ab7de7602b76b22f0d (patch) | |
tree | 0db4a1b4fc3b4ed48b5b896a04cdc1c82cd2eecf /examples/instruction-test.asm | |
parent | dea8e238074291c181f6780e445d046d08ca6668 (diff) | |
download | ovm-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.asm | 4 |
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 |