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

@@ -2,6 +2,10 @@
;;; order, with proper calling convention. Used to test lexer and
;;; parser but isn't a semantically correct program, but may be run as
;;; first instruction is halt (so program will stop immediately).
;; setup entrypoint
global main
main:
halt
push.byte 1
push.hword 2