2021-03-30 16:28:11 +00:00
|
|
|
( a blank file )
|
|
|
|
|
2022-01-05 17:27:01 +00: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 18:45:34 +00:00
|
|
|
|10 @Console &vector $2 &read $1 &pad $5 &write $1 &error $1
|
2022-01-05 17:27:01 +00: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 19:21:56 +00: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 18:55:09 +00:00
|
|
|
|80 @Controller &vector $2 &button $1 &key $1 &func $1
|
2021-12-28 19:21:56 +00:00
|
|
|
|90 @Mouse &vector $2 &x $2 &y $2 &state $1 &pad $3 &scrollx $2 &scrolly $2
|
2022-03-17 18:57:22 +00: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 20:13:39 +00:00
|
|
|
|
|
|
|
( variables )
|
|
|
|
|
|
|
|
|0000
|
|
|
|
|
|
|
|
( program )
|
|
|
|
|
|
|
|
|0100 ( -> )
|
2021-03-30 16:28:11 +00:00
|
|
|
|
2021-07-04 03:24:36 +00:00
|
|
|
( theme )
|
|
|
|
#0fe5 .System/r DEO2
|
|
|
|
#0fc5 .System/g DEO2
|
|
|
|
#0f25 .System/b DEO2
|
|
|
|
|
2021-12-11 22:28:10 +00:00
|
|
|
BRK
|
2021-07-04 03:24:36 +00:00
|
|
|
|
2022-02-11 03:29:50 +00:00
|
|
|
@print ( short* -- )
|
|
|
|
|
2022-05-28 03:12:59 +00:00
|
|
|
SWP ,&byte JSR
|
2022-02-11 03:29:50 +00:00
|
|
|
&byte ( byte -- ) DUP #04 SFT ,&char JSR
|
2022-05-28 03:12:59 +00:00
|
|
|
&char ( char -- ) #0f AND DUP #09 GTH #27 MUL ADD #30 ADD #18 DEO
|
2021-07-04 03:24:36 +00:00
|
|
|
|
2022-05-28 03:12:59 +00:00
|
|
|
JMP2r
|
2021-07-04 03:24:36 +00:00
|
|
|
|
2022-05-28 03:12:59 +00:00
|
|
|
@print-str ( str* -- )
|
2021-12-11 22:28:10 +00:00
|
|
|
|
|
|
|
&while
|
2022-05-28 03:12:59 +00:00
|
|
|
LDAk #18 DEO
|
|
|
|
INC2 LDAk ,&while JCN
|
2021-12-11 22:28:10 +00:00
|
|
|
POP2
|
2021-04-23 02:57:47 +00:00
|
|
|
|
2022-05-28 03:12:59 +00:00
|
|
|
JMP2r
|