... | ... |
@@ -7,15 +7,11 @@ |
7 | 7 |
|
8 | 8 |
%RTN { JMP2r } |
9 | 9 |
%TOS { #00 SWP } |
10 |
-%LTS2 { #8000 ++ SWP2 #8000 ++ >> } %GTS2 { #8000 ++ SWP2 #8000 ++ << } |
|
11 |
- |
|
12 |
-%DEBUG { ;print-hex JSR2 #0a .Console/write DEO } |
|
13 |
-%DEBUG2 { SWP ;print-hex JSR2 ;print-hex JSR2 #0a .Console/write DEO } |
|
10 |
+%LTS2 { #8000 ++ SWP2 #8000 ++ >> } |
|
14 | 11 |
|
15 | 12 |
( devices ) |
16 | 13 |
|
17 | 14 |
|00 @System [ &vector $2 &pad $6 &r $2 &g $2 &b $2 ] |
18 |
-|10 @Console [ &vector $2 &read $1 &pad $5 &write $1 ] |
|
19 | 15 |
|20 @Screen [ &vector $2 &width $2 &height $2 &pad $2 &x $2 &y $2 &addr $2 &pixel $1 &sprite $1 ] |
20 | 16 |
|80 @Controller [ &vector $2 &button $1 &key $1 ] |
21 | 17 |
|
... | ... |
@@ -26,17 +22,14 @@ |
26 | 22 |
@center |
27 | 23 |
&x $2 |
28 | 24 |
&y $2 |
29 |
- |
|
30 |
-@position |
|
31 |
- &x $2 |
|
32 |
- &y $2 |
|
33 | 25 |
@frame |
34 | 26 |
&w $2 &h $2 |
35 | 27 |
&x0 $2 &y0 $2 |
36 | 28 |
&x1 $2 &y1 $2 |
37 |
- |
|
38 | 29 |
@color $1 |
39 |
-@rect [ &x1 $2 &y1 $2 &x2 $2 &y2 $2 ] |
|
30 |
+@rect |
|
31 |
+ &x1 $2 &y1 $2 |
|
32 |
+ &x2 $2 &y2 $2 |
|
40 | 33 |
|
41 | 34 |
( init ) |
42 | 35 |
|
... | ... |
@@ -172,16 +165,6 @@ RTN |
172 | 165 |
|
173 | 166 |
RTN |
174 | 167 |
|
175 |
-@print-hex ( value -- ) |
|
176 |
- |
|
177 |
- STHk #04 SFT ,&parse JSR .Console/write DEO |
|
178 |
- STHr #0f AND ,&parse JSR .Console/write DEO |
|
179 |
- RTN |
|
180 |
- &parse ( value -- char ) |
|
181 |
- DUP #09 GTH ,&above JCN #30 ADD RTN &above #09 SUB #60 ADD RTN |
|
182 |
- |
|
183 |
-RTN |
|
184 |
- |
|
185 | 168 |
@controller-icn |
186 | 169 |
&dpad ffff ffff ffff ffff |
187 | 170 |
&dpad-up 7eff e7c3 ffff ffff |