2021-03-30 12:28:11 -04:00
|
|
|
( a blank file )
|
|
|
|
|
2022-01-05 12:27:01 -05:00
|
|
|
|00 @System &vector $2 &wst $1 &rst $1 &eaddr $2 &ecode $1 &pad $1 &r $2 &g $2 &b $2 &debug $1 &halt $1
|
2021-12-28 13:45:34 -05:00
|
|
|
|10 @Console &vector $2 &read $1 &pad $5 &write $1 &error $1
|
2022-01-05 12:27:01 -05:00
|
|
|
|20 @Screen &vector $2 &width $2 &height $2 &auto $1 &pad $1 &x $2 &y $2 &addr $2 &pixel $1 &sprite $1
|
2021-12-28 14:21:56 -05:00
|
|
|
|30 @Audio0 &vector $2 &position $2 &output $1 &pad $3 &adsr $2 &length $2 &addr $2 &volume $1 &pitch $1
|
|
|
|
|40 @Audio1 &vector $2 &position $2 &output $1 &pad $3 &adsr $2 &length $2 &addr $2 &volume $1 &pitch $1
|
|
|
|
|50 @Audio2 &vector $2 &position $2 &output $1 &pad $3 &adsr $2 &length $2 &addr $2 &volume $1 &pitch $1
|
|
|
|
|60 @Audio3 &vector $2 &position $2 &output $1 &pad $3 &adsr $2 &length $2 &addr $2 &volume $1 &pitch $1
|
2022-01-07 13:55:09 -05:00
|
|
|
|80 @Controller &vector $2 &button $1 &key $1 &func $1
|
2021-12-28 14:21:56 -05:00
|
|
|
|90 @Mouse &vector $2 &x $2 &y $2 &state $1 &pad $3 &scrollx $2 &scrolly $2
|
2022-03-17 14:57:22 -04:00
|
|
|
|a0 @File0 &vector $2 &success $2 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2
|
|
|
|
|b0 @File1 &vector $2 &success $2 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2
|
|
|
|
|c0 @DateTime &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1
|
2021-04-21 16:13:39 -04:00
|
|
|
|
|
|
|
( variables )
|
|
|
|
|
|
|
|
|0000
|
|
|
|
|
|
|
|
( program )
|
|
|
|
|
|
|
|
|0100 ( -> )
|
2021-03-30 12:28:11 -04:00
|
|
|
|
2021-07-03 23:24:36 -04:00
|
|
|
( theme )
|
|
|
|
#0fe5 .System/r DEO2
|
|
|
|
#0fc5 .System/g DEO2
|
|
|
|
#0f25 .System/b DEO2
|
|
|
|
|
2021-12-11 17:28:10 -05:00
|
|
|
BRK
|
2021-07-03 23:24:36 -04:00
|
|
|
|
2022-02-10 22:29:50 -05:00
|
|
|
@print ( short* -- )
|
|
|
|
|
2022-05-27 23:12:59 -04:00
|
|
|
SWP ,&byte JSR
|
2022-02-10 22:29:50 -05:00
|
|
|
&byte ( byte -- ) DUP #04 SFT ,&char JSR
|
2022-05-27 23:12:59 -04:00
|
|
|
&char ( char -- ) #0f AND DUP #09 GTH #27 MUL ADD #30 ADD #18 DEO
|
2021-07-03 23:24:36 -04:00
|
|
|
|
2022-05-27 23:12:59 -04:00
|
|
|
JMP2r
|
2021-07-03 23:24:36 -04:00
|
|
|
|
2022-05-27 23:12:59 -04:00
|
|
|
@print-str ( str* -- )
|
2021-12-11 17:28:10 -05:00
|
|
|
|
|
|
|
&while
|
2022-05-27 23:12:59 -04:00
|
|
|
LDAk #18 DEO
|
|
|
|
INC2 LDAk ,&while JCN
|
2021-12-11 17:28:10 -05:00
|
|
|
POP2
|
2021-04-22 22:57:47 -04:00
|
|
|
|
2022-05-27 23:12:59 -04:00
|
|
|
JMP2r
|