Browse code

(clock.tal) Fixed routine comments

Devine Lu Linvega authored on 20/11/2021 18:12:12
Showing 1 changed files
... ...
@@ -39,9 +39,6 @@
39 39
 
40 40
 |0000
41 41
 
42
-@date-buf $4
43
-@time-buf
44
-	&h $2 &s1 $1 &m $2 &s2 $1 &s $3
45 42
 @last 
46 43
 	&day $1 &sec $1
47 44
 @center
... ...
@@ -55,6 +52,8 @@
55 52
 	&mx $2 &my $2 
56 53
 	&sx $2 &sy $2
57 54
 	&zx $2 &zy $2
55
+@buf
56
+	&d $3 &h $2 &s1 $1 &m $2 &s2 $1 &s $3
58 57
 @line
59 58
 	&x0 $2 &y0 $2 &x $2 &y $2 &sx $2 &sy $2 
60 59
 	&dx $2 &dy $2 &e1 $2 &e2 $2 &color $1
... ...
@@ -103,10 +102,10 @@
103 102
 	POP2
104 103
 
105 104
 	LIT ': 
106
-		DUP .time-buf/s1 STZ
107
-		.time-buf/s2 STZ
105
+		DUP .buf/s1 STZ
106
+		.buf/s2 STZ
108 107
 
109
-BRK
108
+( continue )
110 109
 
111 110
 @on-frame ( -> )
112 111
 
... ...
@@ -114,13 +113,13 @@ BRK
114 113
 	.DateTime/second DEI 
115 114
 	DUP .last/sec LDZ = ,&same-sec JCN
116 115
 		( make time )
117
-		.DateTime/hour DEI .time-buf/h ;decimal JSR2
118
-		.DateTime/minute DEI .time-buf/m ;decimal JSR2
119
-		DUP .time-buf/s ;decimal JSR2
116
+		.DateTime/hour DEI .buf/h ;decimal JSR2
117
+		.DateTime/minute DEI .buf/m ;decimal JSR2
118
+		DUP .buf/s ;decimal JSR2
120 119
 		( draw label )
121 120
 		.time/x LDZ2 .Screen/x DEO2
122 121
 		.time/y LDZ2 .Screen/y DEO2
123
-		;time-buf ;draw-text JSR2
122
+		;buf/h ;draw-text JSR2
124 123
 		( draw needles )
125 124
 		#00 ;draw-needles JSR2
126 125
 		;make-needles JSR2
... ...
@@ -133,13 +132,13 @@ BRK
133 132
 	.DateTime/day DEI 
134 133
 	DUP .last/day LDZ = ,&same-day JCN
135 134
 		( make date )
136
-		DUP .date-buf ;decimal JSR2
135
+		DUP .buf/d ;decimal JSR2
137 136
 		( draw label )
138 137
 		.date/x LDZ2 .Screen/x DEO2
139 138
 		.date/y LDZ2 .Screen/y DEO2
140 139
 		.DateTime/dotw DEI 4* TOS ;week-txt ++ ;draw-text JSR2
141 140
 		.DateTime/month DEI 4* TOS ;month-txt ++ ;draw-text JSR2
142
-		;date-buf ;draw-text JSR2
141
+		;buf/d ;draw-text JSR2
143 142
 		DUP .last/day STZ
144 143
 		&same-day
145 144
 	POP
... ...
@@ -158,6 +157,7 @@ BRK
158 157
 		.needles/mx LDZ2 .needles/my LDZ2 #01 STHkr * ;draw-line JSR2
159 158
 		OVR2 OVR2
160 159
 		.needles/hx LDZ2 .needles/hy LDZ2 #01 STHr * ;draw-line JSR2
160
+		( middle )
161 161
 		#0001 -- .Screen/y DEO2 #0001 -- .Screen/x DEO2
162 162
 		;middle-icn .Screen/addr DEO2
163 163
 		#0a .Screen/sprite DEO
... ...
@@ -192,7 +192,7 @@ RTN
192 192
 	&slash POP ;font/slash ,&end JMP
193 193
 	&colon POP ;font/colon ,&end JMP
194 194
 
195
-@draw-line ( x1 y1 x2 y2 color -- )
195
+@draw-line ( x1* y1* x2* y2* color -- )
196 196
 	
197 197
 	( load ) .line/color STZ .line/y0 STZ2 .line/x0 STZ2 .line/y STZ2 .line/x STZ2
198 198
 	.line/x0 LDZ2 .line/x LDZ2 -- ABS2 .line/dx STZ2
... ...
@@ -234,7 +234,7 @@ RTN
234 234
 
235 235
 RTN
236 236
 
237
-@circle ( cx cy radius* -- )
237
+@circle ( cx cy radius* -- y* x* )
238 238
 
239 239
 	STH2 SWP
240 240
 	TOS 10** STH2kr // .center/x LDZ2 ++ #0080 10** STH2kr // -- 
... ...
@@ -244,7 +244,7 @@ RTN
244 244
 
245 245
 RTN
246 246
 
247
-@decimal ( value* label -- )
247
+@decimal ( value* zp-label -- )
248 248
 
249 249
 	STH
250 250
 	DUP #0a DIV #30 + STHkr STZ
... ...
@@ -255,6 +255,7 @@ RTN
255 255
 @week-txt
256 256
 	"Sun $1 "Mon $1 "Tue $1 "Wed $1 "Thu $1 "Fri $1 
257 257
 	"Sat $1
258
+
258 259
 @month-txt
259 260
 	"Jan $1 "Feb $1 "Mar $1 "Apr $1 "May $1 "Jun $1
260 261
 	"Jul $1 "Aug $1 "Sep $1 "Oct $1 "Nov $1 "Dec $1