1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,146 +0,0 @@ |
1 |
-( GUI Picture ) |
|
2 |
- |
|
3 |
-%RTN { JMP2r } |
|
4 |
-%LOAD-IMAGE { .File/length DEO2 .File/name DEO2 ;image .File/read DEO2 } |
|
5 |
- |
|
6 |
-( devices ) |
|
7 |
- |
|
8 |
-|00 @System [ &vector $2 &pad $6 &r $2 &g $2 &b $2 ] |
|
9 |
-|20 @Screen [ &vector $2 &width $2 &height $2 &auto $1 &pad $1 &x $2 &y $2 &addr $2 &pixel $1 &sprite $1 ] |
|
10 |
-|a0 @File [ &vector $2 &success $2 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2 ] |
|
11 |
- |
|
12 |
-( variables ) |
|
13 |
- |
|
14 |
-|0000 |
|
15 |
- |
|
16 |
-@position |
|
17 |
- &x $2 &y $2 |
|
18 |
-@size |
|
19 |
- &width $2 &height $2 |
|
20 |
- |
|
21 |
-( program ) |
|
22 |
- |
|
23 |
-|0100 |
|
24 |
- |
|
25 |
- ( theme ) |
|
26 |
- #072f .System/r DEO2 |
|
27 |
- #072f .System/g DEO2 |
|
28 |
- #072f .System/b DEO2 |
|
29 |
- |
|
30 |
- ( background ) ;checker-icn #02 ;cover-pattern JSR2 |
|
31 |
- |
|
32 |
- ( load ) ;icn1-path #1800 LOAD-IMAGE |
|
33 |
- ( draw ) #0008 #0008 #0100 #00c0 ;image #01 ;draw-icn JSR2 |
|
34 |
- ( load ) ;icn2-path #0800 LOAD-IMAGE |
|
35 |
- ( draw ) #0010 #00a8 #0080 #0080 ;image #03 ;draw-icn JSR2 |
|
36 |
- ( load ) ;chr1-path #4000 LOAD-IMAGE |
|
37 |
- ( draw ) #00e8 #0080 #0100 #0080 ;image #81 ;draw-chr JSR2 |
|
38 |
- ( load ) ;chr2-path #0900 LOAD-IMAGE |
|
39 |
- ( draw ) #0068 #0098 #0060 #0060 ;image #85 ;draw-chr JSR2 |
|
40 |
- |
|
41 |
- |
|
42 |
- ( auto-x ) |
|
43 |
- #01 .Screen/auto DEO |
|
44 |
- #0070 .Screen/x DEO2 |
|
45 |
- #0070 .Screen/y DEO2 |
|
46 |
- ;checker-icn .Screen/addr DEO2 |
|
47 |
- #03 .Screen/sprite DEO |
|
48 |
- #03 .Screen/sprite DEO |
|
49 |
- #03 .Screen/sprite DEO |
|
50 |
- #03 .Screen/sprite DEO |
|
51 |
- #03 .Screen/sprite DEO |
|
52 |
- #00 .Screen/auto DEO |
|
53 |
- |
|
54 |
-BRK |
|
55 |
- |
|
56 |
-@draw-icn ( x* y* width* height* addr* color -- ) |
|
57 |
- |
|
58 |
- ( load ) STH .Screen/addr DEO2 .size/height STZ2 .size/width STZ2 .position/y STZ2 .position/x STZ2 |
|
59 |
- .size/height LDZ2 #0000 |
|
60 |
- &ver |
|
61 |
- ( save ) DUP2 .position/y LDZ2 ADD2 .Screen/y DEO2 |
|
62 |
- .size/width LDZ2 #0000 |
|
63 |
- &hor |
|
64 |
- ( save ) DUP2 .position/x LDZ2 ADD2 .Screen/x DEO2 |
|
65 |
- ( draw ) STHkr .Screen/sprite DEO |
|
66 |
- ( incr ) .Screen/addr DEI2 #0008 ADD2 .Screen/addr DEO2 |
|
67 |
- #0008 ADD2 GTH2k ,&hor JCN |
|
68 |
- POP2 POP2 |
|
69 |
- #0008 ADD2 GTH2k ,&ver JCN |
|
70 |
- POP2 POP2 |
|
71 |
- POPr |
|
72 |
- |
|
73 |
-RTN |
|
74 |
- |
|
75 |
-@draw-icn-pixels ( x* y* width* height* addr* color -- ) |
|
76 |
- |
|
77 |
- ( load ) STH .Screen/addr DEO2 .size/height STZ2 .size/width STZ2 .position/y STZ2 .position/x STZ2 |
|
78 |
- .size/height LDZ2 #0000 |
|
79 |
- &ver |
|
80 |
- ( save ) DUP2 .position/y LDZ2 ++ .Screen/y DEO2 |
|
81 |
- .size/width LDZ2 #0000 |
|
82 |
- &hor |
|
83 |
- ( get x,y ) STH2 OVR2 STH2r SWP2 OVR2 SWP2 |
|
84 |
- ( save ) OVR2 .position/x LDZ2 ++ .Screen/x DEO2 |
|
85 |
- ( draw ) ,get-icn-pixel JSR STHkr * .Screen/pixel DEO |
|
86 |
- INC2 GTH2k ,&hor JCN |
|
87 |
- POP2 POP2 |
|
88 |
- INC2 GTH2k ,&ver JCN |
|
89 |
- POP2 POP2 |
|
90 |
- POPr |
|
91 |
- |
|
92 |
-RTN |
|
93 |
- |
|
94 |
-@get-icn-pixel ( x* y* -- color ) |
|
95 |
- |
|
96 |
- ( get row ) OVR2 SWP2 DUP2 8MOD2 |
|
97 |
- ( get tile ) SWP2 8// 80** ++ SWP2 STEP8 ++ ;source ++ LDA |
|
98 |
- ( get mask ) ROT ROT NIP 8MOD |
|
99 |
- ( get pixel ) #07 SWP - SFT #01 AND |
|
100 |
- |
|
101 |
-RTN |
|
102 |
- |
|
103 |
-@draw-chr ( x* y* width* height* addr* color -- ) |
|
104 |
- |
|
105 |
- ( load ) STH .Screen/addr DEO2 .size/height STZ2 .size/width STZ2 .position/y STZ2 .position/x STZ2 |
|
106 |
- .size/height LDZ2 #0000 |
|
107 |
- &ver |
|
108 |
- ( save ) DUP2 .position/y LDZ2 ADD2 .Screen/y DEO2 |
|
109 |
- .size/width LDZ2 #0000 |
|
110 |
- &hor |
|
111 |
- ( save ) DUP2 .position/x LDZ2 ADD2 .Screen/x DEO2 |
|
112 |
- ( draw ) STHkr .Screen/sprite DEO |
|
113 |
- ( incr ) .Screen/addr DEI2 #0010 ADD2 .Screen/addr DEO2 |
|
114 |
- #0008 ADD2 GTH2k ,&hor JCN |
|
115 |
- POP2 POP2 |
|
116 |
- #0008 ADD2 GTH2k ,&ver JCN |
|
117 |
- POP2 POP2 |
|
118 |
- POPr |
|
119 |
- |
|
120 |
-RTN |
|
121 |
- |
|
122 |
-@cover-pattern ( addr* color -- ) |
|
123 |
- |
|
124 |
- ( load ) STH .Screen/addr DEO2 |
|
125 |
- .Screen/height DEI2 #0000 |
|
126 |
- &ver |
|
127 |
- ( save ) DUP2 .Screen/y DEO2 |
|
128 |
- .Screen/width DEI2 #0000 |
|
129 |
- &hor |
|
130 |
- ( save ) DUP2 .Screen/x DEO2 |
|
131 |
- ( draw ) STHkr .Screen/sprite DEO |
|
132 |
- #0008 ADD2 GTH2k ,&hor JCN |
|
133 |
- POP2 POP2 |
|
134 |
- #0008 ADD2 GTH2k ,&ver JCN |
|
135 |
- POP2 POP2 |
|
136 |
- POPr |
|
137 |
- |
|
138 |
-RTN |
|
139 |
- |
|
140 |
-@checker-icn f0f0 f0f0 0f0f 0f0f |
|
141 |
-@icn1-path "projects/pictures/ergo100x0c0.bit 00 |
|
142 |
-@icn2-path "projects/pictures/dafu80x80.bit 00 |
|
143 |
-@chr1-path "projects/pictures/pc98.chr 00 |
|
144 |
-@chr2-path "projects/pictures/felix0cx0c.chr 00 |
|
145 |
- |
|
146 |
-@image [ ] |
|
147 | 0 |
\ No newline at end of file |