all repos — xyw @ 481fe7eafa064f39b9ea831d00de282712f3ef06

A minimal virtual machine and assembler for terminals.

examples/window.xyw

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
.include "devices.xyw"
; vm will skip the first 3 bytes
; and try to process metadata wrapped by ---
init JMPw
; metadata
.string "---" ; metadata marker
.string "Test Program" ; title
.string "Just a test program" ; description 
.string "H3RALD" ; author
.string "2025-12-18" ; date
.string "---" ; metadata marker

.label init
; actual program starts here 
$10 display.x STB
$10 display.y STB
$1 display.fill STB
$11 display.x STB
$10 display.y STB
$1 display.fill STB
$12 display.x STB
$10 display.y STB
$1 display.fill STB