all repos — xyw @ 997e522eaeebf929ad5387a964ba611d287b1923

A minimal virtual machine and assembler for terminals.

examples/launcher.xyw

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
.include "lib/macros.xyw"

executing puts JSRw fileops.xim puts JSRw NL PUTC
fileops.xim system.image_exec STW

executing puts JSRw helloworld.xim puts JSRw NL PUTC
helloworld.xim system.image_exec STW

done puts JSRw NL PUTC 
HLT

.label executing
    .string "Executing: "
.label done
    .string "Done!"
.label fileops.xim
    .string "fileops.xim"
.label helloworld.xim
    .string "helloworld.xim"

.include "lib/puts.xyw"