all repos — xyw @ c632e3a4cdd4d21b1f431030eb3723bbed10ae9d

A minimal virtual machine and assembler for terminals.

Moved _macros to lib/macros
h3rald h3rald@h3rald.com
Fri, 06 Feb 2026 10:15:28 +0100
commit

c632e3a4cdd4d21b1f431030eb3723bbed10ae9d

parent

648bdb2a57690f31ef43cab8c3f858f42edbbf2f

M examples/_macros.xywexamples/lib/macros.xyw

@@ -41,7 +41,8 @@ .macro beeper.samples $41

.macro beeper.n_samples $43 .macro beeper.on_stop $45 -; Other macros +;;; Other macros + .macro MOD DIV POP .macro LBYTE SWP POP .macro PUTC $11 STB
M examples/d6.xywexamples/d6.xyw

@@ -1,4 +1,4 @@

-.include "_macros.xyw" +.include "lib/macros.xyw" ; Get random number and calculate modulo 6 system.random LDB $6 MOD
M examples/factorial16.xywexamples/factorial16.xyw

@@ -1,4 +1,4 @@

-.include "_macros.xyw" +.include "lib/macros.xyw" ; Main program: calculate and print factorial of 7 $00 $07 fact JSRw
M examples/factorial8.xywexamples/factorial8.xyw

@@ -1,4 +1,4 @@

-.include "_macros.xyw" +.include "lib/macros.xyw" ; Main program: calculate and print factorial of 5 $5 fact JSRw
M examples/helloworld.xywexamples/helloworld.xyw

@@ -1,5 +1,5 @@

; include device macros -.include "_macros.xyw" +.include "lib/macros.xyw" ; main program hello print JSRw
M examples/lib/PUTD.xywexamples/lib/PUTD.xyw

@@ -1,4 +1,4 @@

-; .include "_macros.xyw" +; .include "lib/macros.xyw" ; Print an 8bit integer as decimal ; a8 -- | [x]
M examples/lib/PUTDw.xywexamples/lib/PUTDw.xyw

@@ -1,4 +1,4 @@

-; .include "_macros.xyw" +; .include "lib/macros.xyw" ; Print a 16bit integer as decimal ; a16 -- | [x]
M examples/lib/PUTS.xywexamples/lib/PUTS.xyw

@@ -1,4 +1,4 @@

-; .include "_macros.xyw" +; .include "lib/macros.xyw" ; Print a string starting at address ; a16 -- | [xw]
M examples/on-error.xywexamples/on-error.xyw

@@ -1,4 +1,4 @@

-.include "_macros.xyw" +.include "lib/macros.xyw" ; register on error handler on_error system.on_error STW
M examples/print-args.xywexamples/print-args.xyw

@@ -1,4 +1,4 @@

-.include "_macros.xyw" +.include "lib/macros.xyw" ; Set on_argument event handler print-args terminal.on_argument STW
M examples/print-stdin.xywexamples/print-stdin.xyw

@@ -1,5 +1,5 @@

-.include "_macros.xyw" +.include "lib/macros.xyw" ; Set on_keypress event handler print-key terminal.on_keypress STW