... | ... |
@@ -57,9 +57,9 @@ |
57 | 57 |
|0100 ( -> ) |
58 | 58 |
|
59 | 59 |
( theme ) |
60 |
- #0f55 .System/r DEO2 |
|
61 |
- #0fc5 .System/g DEO2 |
|
62 |
- #0fa5 .System/b DEO2 |
|
60 |
+ #50f5 .System/r DEO2 |
|
61 |
+ #c0f5 .System/g DEO2 |
|
62 |
+ #a0f5 .System/b DEO2 |
|
63 | 63 |
|
64 | 64 |
( vectors ) |
65 | 65 |
;on-button .Controller/vector DEO2 |
... | ... |
@@ -68,7 +68,7 @@ |
68 | 68 |
#00 WIDTH 8** PAD 2** ++ .Screen/width DEO2 |
69 | 69 |
#00 HEIGHT 8** PAD 2** ++ .Screen/height DEO2 |
70 | 70 |
|
71 |
- #08 ;draw-input JSR2 |
|
71 |
+ #04 ;draw-input JSR2 |
|
72 | 72 |
|
73 | 73 |
LIT '. .path STZ |
74 | 74 |
|
... | ... |
@@ -90,12 +90,12 @@ BRK |
90 | 90 |
DUP #08 ! ,&no-backspace JCN |
91 | 91 |
#00 ;draw-input JSR2 |
92 | 92 |
;buffer ;spop JSR2 |
93 |
- #08 ;draw-input JSR2 |
|
93 |
+ #04 ;draw-input JSR2 |
|
94 | 94 |
&no-backspace |
95 | 95 |
DUP STHk #1f > STHr #7b < #0101 !! ,&no-valid JCN |
96 | 96 |
;buffer ;slen JSR2 #007f >> ,&no-valid JCN |
97 | 97 |
STHk ;buffer STHr ;sput JSR2 |
98 |
- #08 ;draw-input JSR2 |
|
98 |
+ #04 ;draw-input JSR2 |
|
99 | 99 |
&no-valid |
100 | 100 |
POP |
101 | 101 |
|
... | ... |
@@ -126,7 +126,7 @@ RTN |
126 | 126 |
@validate ( -- ) |
127 | 127 |
|
128 | 128 |
;clear JSR2 |
129 |
- ;get-cmd JSR2 #0003 ++ JSR2 |
|
129 |
+ ;get-cmd JSR2 ;commands-func ++ LDA2 JSR2 |
|
130 | 130 |
;buffer #0080 ;mclr JSR2 |
131 | 131 |
|
132 | 132 |
JMP2r |
... | ... |
@@ -136,49 +136,53 @@ JMP2r |
136 | 136 |
;commands/end ;commands |
137 | 137 |
&loop |
138 | 138 |
LDA2k ;buffer ;scmp-seg JSR2 #00 = ,&continue JCN |
139 |
- NIP2 LDA2 RTN |
|
139 |
+ NIP2 ;commands -- RTN |
|
140 | 140 |
&continue |
141 | 141 |
INC2 INC2 GTH2k ,&loop JCN |
142 | 142 |
&end |
143 |
- POP2 LDA2 |
|
143 |
+ POP2 ;commands -- |
|
144 | 144 |
|
145 | 145 |
RTN |
146 | 146 |
|
147 | 147 |
@cmd-ls |
148 | 148 |
&name "ls $1 |
149 |
- &run |
|
149 |
+ &docs "list_folder_content $1 |
|
150 |
+ &func |
|
151 |
+ |
|
150 | 152 |
;path .File/name DEO2 |
151 | 153 |
#8000 .File/length DEO2 |
152 | 154 |
;view .File/read DEO2 |
153 |
- |
|
154 | 155 |
PAD .Screen/x DEO2 |
155 | 156 |
PAD .Screen/y DEO2 |
156 |
- |
|
157 | 157 |
;view #01 ;draw-tx JSR2 |
158 | 158 |
|
159 | 159 |
RTN |
160 | 160 |
|
161 | 161 |
@cmd-cp |
162 | 162 |
&name "cp $1 |
163 |
- &run |
|
163 |
+ &docs "copy_file_to_name $1 |
|
164 |
+ &func |
|
164 | 165 |
|
165 | 166 |
RTN |
166 | 167 |
|
167 | 168 |
@cmd-mv |
168 | 169 |
&name "mv $1 |
169 |
- &run |
|
170 |
+ &docs "move_file_to_name $1 |
|
171 |
+ &func |
|
170 | 172 |
|
171 | 173 |
RTN |
172 | 174 |
|
173 | 175 |
@cmd-rm |
174 | 176 |
&name "rm $1 |
175 |
- &run |
|
177 |
+ &docs "remove_file $1 |
|
178 |
+ &func |
|
176 | 179 |
|
177 | 180 |
RTN |
178 | 181 |
|
179 | 182 |
@cmd-tx |
180 | 183 |
&name "tx $1 ( print file text ) |
181 |
- &run |
|
184 |
+ &docs "display_file_as_text $1 |
|
185 |
+ &func |
|
182 | 186 |
|
183 | 187 |
;buffer #0003 ++ .File/name DEO2 |
184 | 188 |
#8000 .File/length DEO2 |
... | ... |
@@ -199,7 +203,8 @@ RTN |
199 | 203 |
|
200 | 204 |
@cmd-hx |
201 | 205 |
&name "hx $1 ( print file hex ) |
202 |
- &run |
|
206 |
+ &docs "display_file_as_hex $1 |
|
207 |
+ &func |
|
203 | 208 |
|
204 | 209 |
;buffer #0003 ++ .File/name DEO2 |
205 | 210 |
#8000 .File/length DEO2 |
... | ... |
@@ -229,7 +234,8 @@ RTN |
229 | 234 |
|
230 | 235 |
@cmd-do |
231 | 236 |
&name "do $1 ( print file hex ) |
232 |
- &run |
|
237 |
+ &docs "run_file_as_rom $1 |
|
238 |
+ &func |
|
233 | 239 |
|
234 | 240 |
( release inputs ) |
235 | 241 |
#0000 .Controller/button DEO2 |
... | ... |
@@ -249,27 +255,39 @@ RTN |
249 | 255 |
|
250 | 256 |
@cmd-?? |
251 | 257 |
&name "-- $1 |
252 |
- &run |
|
258 |
+ &docs "display_commands $1 |
|
259 |
+ &func |
|
260 |
+ #aa DEBUG |
|
253 | 261 |
PAD .Screen/x DEO2 |
254 | 262 |
PAD .Screen/y DEO2 |
255 | 263 |
;&help-txt #01 ;draw-tx JSR2 |
256 |
- PAD #0020 ++ .Screen/y DEO2 |
|
264 |
+ PAD #0010 ++ .Screen/y DEO2 |
|
257 | 265 |
;commands/end ;commands |
258 | 266 |
&loop |
259 |
- PAD #0020 ++ .Screen/x DEO2 |
|
267 |
+ PAD #0008 ++ .Screen/x DEO2 |
|
260 | 268 |
LDA2k #02 ;draw-str JSR2 |
269 |
+ PAD #0030 ++ .Screen/x DEO2 |
|
270 |
+ DUP2 ;commands -- ;commands-docs ++ LDA2 #01 ;draw-str JSR2 |
|
261 | 271 |
.Screen/y DEI2k #0010 ++ ROT DEO2 |
262 | 272 |
INC2 INC2 GTH2k ,&loop JCN |
263 | 273 |
&end |
264 |
- POP2 LDA2 |
|
274 |
+ POP2 POP2 |
|
265 | 275 |
|
266 | 276 |
RTN |
267 |
- &help-txt "Available 20 "commands: $1 |
|
277 |
+ &help-txt "Commands: $1 |
|
268 | 278 |
|
269 | 279 |
@commands |
270 | 280 |
:cmd-ls :cmd-cp :cmd-mv :cmd-rm |
271 | 281 |
:cmd-hx :cmd-tx :cmd-do |
272 | 282 |
&end :cmd-?? |
283 |
+@commands-docs |
|
284 |
+ :cmd-ls/docs :cmd-cp/docs :cmd-mv/docs :cmd-rm/docs |
|
285 |
+ :cmd-hx/docs :cmd-tx/docs :cmd-do/docs |
|
286 |
+ &end :cmd-??/docs |
|
287 |
+@commands-func |
|
288 |
+ :cmd-ls/func :cmd-cp/func :cmd-mv/func :cmd-rm/func |
|
289 |
+ :cmd-hx/func :cmd-tx/func :cmd-do/func |
|
290 |
+ &end :cmd-??/func |
|
273 | 291 |
|
274 | 292 |
@draw-input ( color -- ) |
275 | 293 |
|
... | ... |
@@ -282,7 +300,12 @@ RTN |
282 | 300 |
|
283 | 301 |
#20 #00 ;draw-char JSR2 |
284 | 302 |
|
285 |
- ;buffer STHr ;draw-str JSR2 |
|
303 |
+ ;buffer STHkr ;draw-str JSR2 |
|
304 |
+ |
|
305 |
+ ;cursor-icn .Screen/addr DEO2 |
|
306 |
+ STHr .Screen/sprite DEOk DEO |
|
307 |
+ .Screen/y DEI2 #0010 -- .Screen/y DEO2 |
|
308 |
+ .Screen/x DEI2 #0008 ++ .Screen/x DEO2 |
|
286 | 309 |
|
287 | 310 |
JMP2r |
288 | 311 |
|
... | ... |
@@ -444,6 +467,10 @@ JMP2r |
444 | 467 |
@strings |
445 | 468 |
&you-said "You 20 "said 20 $1 |
446 | 469 |
|
470 |
+@cursor-icn |
|
471 |
+ aa55 aa55 aa55 aa55 aa55 aa55 aa55 aa55 |
|
472 |
+ aa55 aa55 aa55 aa55 aa55 aa55 aa55 aa55 |
|
473 |
+ |
|
447 | 474 |
@font ( terminus01x02 ) |
448 | 475 |
0000 0000 0000 0000 0000 0000 0000 0000 |
449 | 476 |
0000 183c 3c3c 1818 1800 1818 0000 0000 |