all repos — xyw @ 09909160cf03d85143caee8059e5d650b24658ac

A minimal virtual machine and assembler for terminals.

examples/_macros.xyw

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
;;; Devices

;system
.macro system.state           $00
.macro system.error           $01
.macro system.ssp             $02
.macro system.usp             $03
.macro system.page            $04
.macro system.random          $05
.macro system.on_error        $06

;terminal
.macro terminal.input          $10
.macro terminal.output         $11
.macro terminal.on_keypress    $12
.macro terminal.on_argument    $14

;clock
.macro clock.year             $20
.macro clock.month            $22
.macro clock.monthday         $23
.macro clock.weekday          $24
.macro clock.hour             $25
.macro clock.minute           $26
.macro clock.second           $27
.macro clock.timer            $29
.macro clock.on_timer         $2A

;file
.macro file.path              $30
.macro file.operation         $32
.macro file.state             $33
.macro file.type              $34
.macro file.read              $35
.macro file.write             $36
.macro file.append            $37

;beeper
.macro beeper.state           $40
.macro beeper.samples         $41
.macro beeper.n_samples       $43
.macro beeper.on_stop         $45