Browse code

(screen.tal) Ported to the new auto-byte

neauoire authored on 06/03/2022 18:25:27
Showing 1 changed files
... ...
@@ -53,6 +53,7 @@
53 53
 	;draw-2bpp JSR2
54 54
 	;draw-pixels JSR2
55 55
 	;draw-autobytes JSR2
56
+	AUTO-NONE
56 57
 	
57 58
 BRK
58 59
 
... ...
@@ -149,16 +150,27 @@ RTN
149 150
 
150 151
 	.center/x LDZ2 #0090 ++ .Screen/x DEO2
151 152
 	.center/y LDZ2 #0040 -- .Screen/y DEO2
152
-	#02 #03 ;23x-icns #04 ;draw-x JSR2
153
+	;23x-icns .Screen/addr DEO2
154
+	#16 .Screen/auto DEO
155
+	#04 .Screen/sprite DEOk DEOk DEO
156
+
153 157
 	.center/x LDZ2 #00a8 ++ .Screen/x DEO2
154 158
 	.center/y LDZ2 #0030 -- .Screen/y DEO2
155
-	#02 #03 ;23y-icns #0c ;draw-y JSR2
159
+	;23y-icns .Screen/addr DEO2
160
+	#25 .Screen/auto DEO
161
+	#0c .Screen/sprite DEOk DEO
162
+
156 163
 	.center/x LDZ2 #00a0 ++ .Screen/x DEO2
157 164
 	.center/y LDZ2 #0040 -- .Screen/y DEO2
158
-	#03 #02 ;32x-icns #01 ;draw-x JSR2
165
+	;32x-icns .Screen/addr DEO2
166
+	#26 .Screen/auto DEO
167
+	#01 .Screen/sprite DEOk DEO
168
+
159 169
 	.center/x LDZ2 #0090 ++ .Screen/x DEO2
160 170
 	.center/y LDZ2 #0028 -- .Screen/y DEO2
161
-	#03 #02 ;32y-icns #03 ;draw-y JSR2
171
+	;32y-icns .Screen/addr DEO2
172
+	#15 .Screen/auto DEO
173
+	#03 .Screen/sprite DEOk DEOk DEO
162 174
 
163 175
 RTN
164 176
 
... ...
@@ -194,52 +206,6 @@ RTN
194 206
 
195 207
 RTN
196 208
 
197
-@draw-x ( w h addr* color -- )
198
-
199
-	STH
200
-	.Screen/addr DEO2
201
-	SWP ,&w STR
202
-	.Screen/x DEI2 ,&x STR2
203
-	AUTO-XADDR
204
-	#00
205
-	&ver
206
-		[ LIT &w $1 ] #00
207
-		&hor
208
-			STHkr .Screen/sprite DEO
209
-			INC GTHk ,&hor JCN
210
-		POP2
211
-		.Screen/y DEI2k #0008 ++ ROT DEO2
212
-		[ LIT2 &x $2 ] .Screen/x DEO2
213
-		INC GTHk ,&ver JCN
214
-	POP2
215
-	POPr
216
-	AUTO-NONE
217
-
218
-RTN
219
-
220
-@draw-y ( w h addr* color -- )
221
-
222
-	STH
223
-	.Screen/addr DEO2
224
-	,&h STR
225
-	.Screen/y DEI2 ,&y STR2
226
-	AUTO-YADDR
227
-	#00
228
-	&hor
229
-		[ LIT &h $1 ] #00
230
-		&ver
231
-			STHkr .Screen/sprite DEO
232
-			INC GTHk ,&ver JCN
233
-		POP2
234
-		.Screen/x DEI2k #0008 ++ ROT DEO2
235
-		[ LIT2 &y $2 ] .Screen/y DEO2
236
-		INC GTHk ,&hor JCN
237
-	POP2
238
-	POPr
239
-	AUTO-NONE
240
-
241
-RTN
242
-
243 209
 @preview_icn
244 210
 	0f38 675f dfbf bfbf 0007 1820 2344 4848
245 211