Use label features and entry points for examples

This commit is contained in:
2023-11-03 21:27:18 +00:00
parent dea8e23807
commit bc4c57b243
4 changed files with 20 additions and 5 deletions

View File

@@ -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