diff options
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 |