all repos — xyw @ 6fc232901e6b09cf345728dbd826968a5ad8562a

A minimal virtual machine and assembler for terminals.

Style fixes.
h3rald h3rald@h3rald.com
Wed, 04 Feb 2026 18:20:20 +0100
commit

6fc232901e6b09cf345728dbd826968a5ad8562a

parent

f9db54986add6293b8bea565ec774c09a442e75b

1 files changed, 9 insertions(+), 9 deletions(-)

jump to
M examples/on-error.xywexamples/on-error.xyw

@@ -9,14 +9,14 @@ end JMPw

; on error handler .label on_error - system.error LDB $1 EQU on_error.div-by-zero.print JCNw - unknown-error print JSRw - $0 system.error STB + system.error LDB $1 EQU on_error.div-by-zero.print JCNw + unknown-error print JSRw + $0 system.error STB + RTS + .label on_error.div-by-zero.print + div-by-zero-error print JSRw + $3 system.error STB RTS - .label on_error.div-by-zero.print - div-by-zero-error print JSRw - $3 system.error STB - RTS ; printing subroutine ; a16 --

@@ -25,8 +25,8 @@ POPxw

.label print.loop LDBxw terminal.output STB INCxw LDBxw print.loop JCNw - CLRxw - RTS + CLRxw + RTS .label div-by-zero-error .string "Error: Division by zero.\n"