From bc4c57b243eaad8ef054d6ab7de7602b76b22f0d Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 3 Nov 2023 21:27:18 +0000 Subject: Use label features and entry points for examples --- examples/memory-print.asm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/memory-print.asm') 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 -- cgit v1.2.3-13-gbd6f