Browse code

(wireworld.tal) Clear on select+start

neauoire authored on 22/01/2022 22:54:02
Showing 1 changed files
... ...
@@ -51,9 +51,9 @@
51 51
 |0100 ( -> )
52 52
 
53 53
 	( theme ) 
54
-	#0ff0 .System/r DEO2 
55
-	#0d0a .System/g DEO2 
56
-	#040f .System/b DEO2
54
+	#0f7f .System/r DEO2 
55
+	#0fe0 .System/g DEO2 
56
+	#0fc0 .System/b DEO2
57 57
 	( size )
58 58
 	#00 WIDTH 4** .Screen/width DEO2
59 59
 	#00 HEIGHT 4** .Screen/height DEO2
... ...
@@ -89,6 +89,10 @@ BRK
89 89
 	DUP #02 ! ,&no-b JCN      #02 .color STZ &no-b
90 90
 	DUP #04 ! ,&no-select JCN #03 .color STZ &no-select
91 91
 	DUP #08 ! ,&no-start JCN  #00 .color STZ &no-start
92
+	DUP #0c ! ,&no-both JCN
93
+		;past-world LENGTH 2** ;mclr JSR2
94
+		;redraw JSR2
95
+		&no-both
92 96
 	POP
93 97
 	( space )
94 98
 	.Controller/key DEI #20 ! ,&no-space JCN
... ...
@@ -198,6 +202,16 @@ RTN
198 202
 
199 203
 JMP2r
200 204
 
205
+@mclr ( addr* len* -- )
206
+
207
+	OVR2 ++ SWP2
208
+	&loop
209
+		STH2k #00 STH2r STA
210
+		INC2 GTH2k ,&loop JCN
211
+	POP2 POP2
212
+
213
+JMP2r
214
+
201 215
 @pointer-icn 
202 216
 	80c0 e0f0 f8e0 1000
203 217
 @cell-icn