aboutsummaryrefslogtreecommitdiff
path: root/examples/memory-print.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/memory-print.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/memory-print.asm')
-rw-r--r--examples/memory-print.asm4
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