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/memory-print.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/memory-print.asm')
-rw-r--r-- | examples/memory-print.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/memory-print.asm b/examples/memory-print.asm index ed32b7a..9a2bb06 100644 --- a/examples/memory-print.asm +++ b/examples/memory-print.asm @@ -1,5 +1,9 @@ ;;; memory-print: An example program that features a subroutine for ;;; printing a memory buffer, of any length, as characters. + + ;; Setup label for entrypoint + global main +main: ;; Allocate a buffer of 3 characters malloc.byte 3 mov.word 0 |