Moved _macros to lib/macros
h3rald h3rald@h3rald.com
Fri, 06 Feb 2026 10:15:28 +0100
11 files changed,
12 insertions(+),
11 deletions(-)
M
examples/_macros.xyw
→
examples/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.xyw
→
examples/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.xyw
→
examples/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.xyw
→
examples/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.xyw
→
examples/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.xyw
→
examples/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.xyw
→
examples/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.xyw
→
examples/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.xyw
→
examples/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.xyw
→
examples/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.xyw
→
examples/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