Mercurial > hg > Members > kono > nitros9-code
annotate level1/cmds/shell_21.asm @ 1:d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
author | boisy |
---|---|
date | Fri, 05 Apr 2002 06:58:35 +0000 |
parents | 6641a883d6b0 |
children | 25d626c770e9 |
rev | line source |
---|---|
0 | 1 ******************************************************************** |
2 * Shell - OS-9 Command Interpreter | |
3 * | |
4 * $Id$ | |
5 * | |
6 * Ed. Comments Who YY/MM/DD | |
7 * ------------------------------------------------------------------ | |
8 * 20 Original Microware distribution version | |
9 | |
10 nam Shell | |
11 ttl OS-9 Command Interpreter | |
12 | |
13 * Disassembled 02/04/03 22:01:32 by Disasm v1.6 (C) 1988 by RML | |
14 | |
15 ifp1 | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
16 use defsfile |
0 | 17 endc |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
18 |
0 | 19 tylg set Prgrm+Objct |
20 atrv set ReEnt+rev | |
21 rev set $01 | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
22 |
0 | 23 mod eom,name,tylg,atrv,start,size |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
24 |
0 | 25 u0000 rmb 1 |
26 u0001 rmb 2 | |
27 u0003 rmb 1 | |
28 u0004 rmb 1 | |
29 u0005 rmb 1 | |
30 u0006 rmb 2 | |
31 u0008 rmb 2 | |
32 u000A rmb 1 | |
33 u000B rmb 1 | |
34 u000C rmb 1 | |
35 u000D rmb 1 | |
36 u000E rmb 1 | |
37 u000F rmb 1 | |
38 u0010 rmb 1 | |
39 u0011 rmb 1 | |
40 u0012 rmb 1 | |
41 u0013 rmb 4 | |
42 u0017 rmb 14 | |
43 u0025 rmb 1 | |
44 u0026 rmb 7 | |
45 u002D rmb 17 | |
46 u003E rmb 5 | |
47 u0043 rmb 8 | |
48 u004B rmb 19 | |
49 u005E rmb 46 | |
50 u008C rmb 1 | |
51 u008D rmb 25 | |
52 u00A6 rmb 4 | |
53 u00AA rmb 17 | |
54 u00BB rmb 25 | |
55 u00D4 rmb 3 | |
56 u00D7 rmb 40 | |
57 u00FF rmb 438 | |
58 size equ . | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
59 |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
60 name fcs /Shell/ |
0 | 61 fcb $14 |
62 L0013 fcb $13 | |
63 fcb $50 P | |
64 fcb $61 a | |
65 fcb $73 s | |
66 fcb $63 c | |
67 fcb $61 a | |
68 fcb $6C l | |
69 fcb $D3 S | |
70 fcb $25 % | |
71 fcb $52 R | |
72 fcb $75 u | |
73 fcb $6E n | |
74 fcb $C3 C | |
75 fcb $22 " | |
76 fcb $52 R | |
77 fcb $75 u | |
78 fcb $6E n | |
79 fcb $C2 B | |
80 fcb $00 | |
81 fcb $00 | |
82 fcb $00 | |
83 fcb $00 | |
84 fcb $00 | |
85 fcb $00 | |
86 fcb $00 | |
87 fcb $00 | |
88 fcb $00 | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
89 L002E fcb C$LF |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
90 fcc "Shell" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
91 fcb C$CR |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
92 L0035 fcb C$LF |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
93 L0036 fcc "OS9:" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
94 |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
95 L003A stb <u000E |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
96 rti |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
97 |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
98 start leas -$05,s |
0 | 99 pshs y,x,b,a |
100 ldb #$24 | |
101 lbsr L00C9 | |
102 leax <L003A,pcr | |
103 os9 F$Icpt | |
104 puls x,b,a | |
105 std <u0006 | |
106 beq L005B | |
107 lbsr L0131 | |
108 bcs L00BC | |
109 tst <u000C | |
110 bne L00BB | |
111 L005B lds ,s++ | |
112 leax <L002E,pcr | |
113 tst <u000F | |
114 bne L0074 | |
115 bsr L00BF | |
116 L0067 leax <L0035,pcr | |
117 ldy #$0005 | |
118 L006E tst <u000F | |
119 bne L0074 | |
120 bsr L00C3 | |
121 L0074 clra | |
122 leax <u0025,u | |
123 ldy #$00C8 | |
124 os9 I$ReadLn | |
125 bcc L008E | |
126 cmpb #$D3 | |
127 beq L00B2 | |
128 L0085 tst <u0011 | |
129 bne L00BC | |
130 os9 F$PErr | |
131 bra L0067 | |
132 L008E cmpy #$0001 | |
133 bhi L009E | |
134 leax >L0036,pcr | |
135 ldy #$0004 | |
136 bra L006E | |
137 L009E tst <u0010 | |
138 beq L00A4 | |
139 bsr L00BF | |
140 L00A4 lbsr L0131 | |
141 bcc L0067 | |
142 tstb | |
143 bne L0085 | |
144 bra L0067 | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
145 L00AE fcc "eof" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
146 fcb C$CR |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
147 L00B2 tst <u000F |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
148 bne L00BB |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
149 leax <L00AE,pcr |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
150 bsr L00BF |
0 | 151 L00BB clrb |
152 L00BC os9 F$Exit | |
153 L00BF ldy #$0050 | |
154 L00C3 lda #$02 | |
155 os9 I$WritLn | |
156 rts | |
157 L00C9 clr b,u | |
158 L00CB decb | |
159 bpl L00C9 | |
160 rts | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
161 L00CF fdb L0286-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
162 fcs "*" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
163 fdb L035B-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
164 fcs "W" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
165 fdb L0268-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
166 fcs "CHD" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
167 fdb L0264-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
168 fcs "CHX" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
169 fdb L023E-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
170 fcs "EX" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
171 fdb L04BC-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
172 fcs "KILL" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
173 fdb L027E-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
174 fcs "X" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
175 fdb L0282-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
176 fcs "-X" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
177 fdb L026E-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
178 fcs "P" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
179 fdb L0271-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
180 fcs "-P" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
181 fdb L0276-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
182 fcs "T" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
183 fdb L027A-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
184 fcs "-T" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
185 fdb L04E8-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
186 fcs "SETPR" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
187 fdb L0209-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
188 fcs ";" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
189 fdb $0000 |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
190 L010A fcb $03 |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
191 fcb $5E ^ symbol |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
192 fcb $A1 ! symbol |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
193 fdb L0334-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
194 fcs ";" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
195 fdb L034D-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
196 fcs "&" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
197 fdb L032D-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
198 fcb $8D |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
199 L0116 fdb L02CE-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
200 fcs ">>" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
201 fdb L02C9-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
202 fcs "<" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
203 fdb L02D5-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
204 fcs ">" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
205 fdb L030F-* |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
206 fcs "#" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
207 fdb $0000 |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
208 L0125 fcb $0d |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
209 fcc "()" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
210 fcb $FF |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
211 L0129 fcb $0D |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
212 fcb $21,$23,$26,$3b,$3c,$3e,$ff |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
213 L0131 fcb $c6,$0E,$8d,$94 |
0 | 214 L0135 clr <u0003 |
215 clr <u000E | |
216 leay <L00CF,pcr | |
217 lbsr L01C3 | |
218 bcs L0192 | |
219 cmpa #$0D | |
220 beq L0192 | |
221 sta <u000C | |
222 cmpa #$28 | |
223 bne L016F | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
224 leay >name,pcr |
0 | 225 sty <u0004 |
226 leax $01,x | |
227 stx <u0008 | |
228 L0156 inc <u000D | |
229 L0158 leay <L0125,pcr | |
230 bsr L01DB | |
231 cmpa #$28 | |
232 beq L0156 | |
233 cmpa #$29 | |
234 bne L018A | |
235 dec <u000D | |
236 bne L0158 | |
237 lda #$0D | |
238 sta -$01,x | |
239 bra L0173 | |
240 L016F bsr L0195 | |
241 bcs L0192 | |
242 L0173 leay <L0129,pcr | |
243 bsr L01DB | |
244 tfr x,d | |
245 subd <u0008 | |
246 std <u0006 | |
247 leax -$01,x | |
248 leay <L010A,pcr | |
249 bsr L01C3 | |
250 bcs L0192 | |
251 ldy <u0004 | |
252 L018A lbne L02BE | |
253 cmpa #$0D | |
254 bne L0135 | |
255 L0192 lbra L028F | |
256 L0195 stx <u0004 | |
257 bsr L01A8 | |
258 bcs L01A7 | |
259 L019B bsr L01A8 | |
260 bcc L019B | |
261 leay >L0116,pcr | |
262 bsr L01C3 | |
263 stx <u0008 | |
264 L01A7 rts | |
265 L01A8 os9 F$PrsNam | |
266 bcc L01B9 | |
267 lda ,x+ | |
268 cmpa #$2E | |
269 bne L01BD | |
270 cmpa ,x+ | |
271 beq L01BB | |
272 leay -$01,x | |
273 L01B9 leax ,y | |
274 L01BB clra | |
275 rts | |
276 L01BD comb | |
277 leax -$01,x | |
278 ldb #$D7 | |
279 rts | |
280 L01C3 bsr L01E9 | |
281 pshs y | |
282 bsr L020C | |
283 bcs L01D4 | |
284 ldd ,y | |
285 jsr d,y | |
286 puls y | |
287 bcc L01C3 | |
288 rts | |
289 L01D4 clra | |
290 lda ,x | |
291 puls pc,y | |
292 L01D9 puls y | |
293 L01DB pshs y | |
294 lda ,x+ | |
295 L01DF tst ,y | |
296 bmi L01D9 | |
297 cmpa ,y+ | |
298 bne L01DF | |
299 puls pc,y | |
300 L01E9 pshs x | |
301 lda ,x+ | |
302 cmpa #$20 | |
303 beq L01FF | |
304 cmpa #$2C | |
305 beq L01FF | |
306 leax >L0129,pcr | |
307 L01F9 cmpa ,x+ | |
308 bhi L01F9 | |
309 puls pc,x | |
310 L01FF leas $02,s | |
311 lda #$20 | |
312 L0203 cmpa ,x+ | |
313 beq L0203 | |
314 leax -$01,x | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
315 L0209 andcc #$FE |
0 | 316 rts |
317 L020C pshs y,x | |
318 leay $02,y | |
319 L0210 ldx ,s | |
320 L0212 lda ,x+ | |
321 cmpa #$61 | |
322 bcs L021A | |
323 suba #$20 | |
324 L021A eora ,y+ | |
325 lsla | |
326 bne L022E | |
327 bcc L0212 | |
328 lda -$01,y | |
329 cmpa #$C1 | |
330 bcs L022B | |
331 bsr L01E9 | |
332 bcs L022E | |
333 L022B clra | |
334 puls pc,y,b,a | |
335 L022E leay -$01,y | |
336 L0230 lda ,y+ | |
337 bpl L0230 | |
338 sty $02,s | |
339 ldd ,y++ | |
340 bne L0210 | |
341 comb | |
342 puls pc,y,x | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
343 L023E lbsr L0195 |
0 | 344 clra |
345 bsr L0260 | |
346 bsr L025F | |
347 bsr L025F | |
348 bsr L0286 | |
349 leax $01,x | |
350 tfr x,d | |
351 subd <u0008 | |
352 std <u0006 | |
353 leas >u00FF,u | |
354 lbsr L0394 | |
355 os9 F$Chain | |
356 os9 F$Exit | |
357 L025F inca | |
358 L0260 pshs a | |
359 bra L02AB | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
360 L0264 lda #$84 |
0 | 361 bra L026A |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
362 L0268 lda #$83 |
0 | 363 L026A os9 I$ChgDir |
364 rts | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
365 L026E clra |
0 | 366 bra L0273 |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
367 L0271 lda #$01 |
0 | 368 L0273 sta <u000F |
369 rts | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
370 L0276 lda #$01 |
0 | 371 bra L027B |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
372 L027A clra |
0 | 373 L027B sta <u0010 |
374 rts | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
375 L027E lda #$01 |
0 | 376 bra L0283 |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
377 L0282 clra |
0 | 378 L0283 sta <u0011 |
379 rts | |
380 L0286 lda #$0D | |
381 L0288 cmpa ,x+ | |
382 bne L0288 | |
383 cmpa ,-x | |
384 rts | |
385 L028F pshs b,a,cc | |
386 clra | |
387 L0292 bsr L029D | |
388 inca | |
389 cmpa #$02 | |
390 bls L0292 | |
391 ror ,s+ | |
392 puls pc,b,a | |
393 L029D pshs a | |
394 tst a,u | |
395 beq L02B6 | |
396 os9 I$Close | |
397 lda a,u | |
398 os9 I$Dup | |
399 L02AB ldb ,s | |
400 lda b,u | |
401 beq L02B6 | |
402 clr b,u | |
403 os9 I$Close | |
404 L02B6 puls pc,a | |
405 L02B8 asrb | |
406 lsla | |
407 fcb $41 A | |
408 lsrb | |
409 swi | |
410 fcb $0D | |
411 L02BE bsr L028F | |
412 leax <L02B8,pcr | |
413 lbsr L00BF | |
414 clrb | |
415 coma | |
416 rts | |
417 L02C9 ldd #$0001 | |
418 bra L02E3 | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
419 L02CE ldd #$020D |
0 | 420 stb -$02,x |
421 bra L02D7 | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
422 L02D5 lda #$01 |
0 | 423 L02D7 ldb #$02 |
424 bra L02E3 | |
425 tst a,u | |
426 bne L02BE | |
427 pshs b,a | |
428 bra L02ED | |
429 L02E3 tst a,u | |
430 bne L02BE | |
431 pshs b,a | |
432 ldb #$0D | |
433 stb -$01,x | |
434 L02ED os9 I$Dup | |
435 bcs L030D | |
436 ldb ,s | |
437 sta b,u | |
438 lda ,s | |
439 os9 I$Close | |
440 lda $01,s | |
441 bita #$02 | |
442 bne L0306 | |
443 os9 I$Open | |
444 bra L030B | |
445 L0306 ldb #$0B | |
446 os9 I$Create | |
447 L030B stb $01,s | |
448 L030D puls pc,b,a | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
449 L030F ldb #$0D |
0 | 450 stb -$01,x |
451 ldb <u0003 | |
452 bne L02BE | |
453 lbsr L04CA | |
454 eora #$4B | |
455 anda #$DF | |
456 bne L0328 | |
457 leax $01,x | |
458 lda #$04 | |
459 mul | |
460 tsta | |
461 bne L02BE | |
462 L0328 stb <u0003 | |
463 lbra L01E9 | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
464 L032D leax -$01,x |
0 | 465 lbsr L03C7 |
466 bra L0337 | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
467 L0334 lbsr L03C3 |
0 | 468 L0337 bcs L034A |
469 lbsr L028F | |
470 bsr L035C | |
471 L033E bcs L034A | |
472 lbsr L01E9 | |
473 cmpa #$0D | |
474 bne L0349 | |
475 leas $04,s | |
476 L0349 clrb | |
477 L034A lbra L028F | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
478 L034D lbsr L03C3 |
0 | 479 bcs L034A |
480 bsr L034A | |
481 ldb #$26 | |
482 lbsr L0495 | |
483 bra L033E | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
484 L035B clra |
0 | 485 L035C pshs a |
486 L035E os9 F$Wait | |
487 tst <u000E | |
488 beq L0376 | |
489 ldb <u000E | |
490 cmpb #$02 | |
491 bne L038E | |
492 lda ,s | |
493 beq L038E | |
494 os9 F$Send | |
495 clr ,s | |
496 bra L035E | |
497 L0376 bcs L0392 | |
498 cmpa ,s | |
499 beq L038E | |
500 tst ,s | |
501 beq L0383 | |
502 tstb | |
503 beq L035E | |
504 L0383 pshs b | |
505 bsr L034A | |
506 ldb #$2D | |
507 lbsr L0495 | |
508 puls b | |
509 L038E tstb | |
510 beq L0392 | |
511 coma | |
512 L0392 puls pc,a | |
513 L0394 lda #$11 | |
514 ldb <u0003 | |
515 ldx <u0004 | |
516 ldy <u0006 | |
517 ldu <u0008 | |
518 rts | |
519 L03A0 lda #$04 | |
520 os9 I$Open | |
521 bcs L03FE | |
522 leax <u0013,u | |
523 ldy #$000D | |
524 os9 I$Read | |
525 pshs b,cc | |
526 os9 I$Close | |
527 puls b,cc | |
528 lbcs L045F | |
529 lda $06,x | |
530 ldy $0B,x | |
531 bra L03D7 | |
532 L03C3 lda #$0D | |
533 sta -$01,x | |
534 L03C7 pshs u,y,x | |
535 clra | |
536 ldx <u0004 | |
537 os9 F$Link | |
538 bcs L03A0 | |
539 ldy u000B,u | |
540 os9 F$UnLink | |
541 L03D7 cmpa #$11 | |
542 beq L0425 | |
543 sty <u000A | |
544 leax >L0013,pcr | |
545 L03E2 tst ,x | |
546 beq L045D | |
547 cmpa ,x+ | |
548 beq L03F0 | |
549 L03EA tst ,x+ | |
550 bpl L03EA | |
551 bra L03E2 | |
552 L03F0 ldd <u0008 | |
553 subd <u0004 | |
554 addd <u0006 | |
555 std <u0006 | |
556 ldd <u0004 | |
557 std <u0008 | |
558 bra L0423 | |
559 L03FE ldx <u0006 | |
560 leax $05,x | |
561 stx <u0006 | |
562 ldx <u0004 | |
563 ldu $04,s | |
564 lbsr L02C9 | |
565 bcs L045F | |
566 ldu <u0008 | |
567 ldd #$5820 | |
568 std ,--u | |
569 ldd #$5020 | |
570 std ,--u | |
571 ldb #$2D | |
572 stb ,-u | |
573 stu <u0008 | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
574 leax >name,pcr |
0 | 575 L0423 stx <u0004 |
576 L0425 ldx <u0004 | |
577 lda #$11 | |
578 os9 F$Link | |
579 bcc L0433 | |
580 os9 F$Load | |
581 bcs L045F | |
582 L0433 pshs u | |
583 tst <u0003 | |
584 bne L0442 | |
585 ldd u000B,u | |
586 addd <u000A | |
587 addd #$00FF | |
588 sta <u0003 | |
589 L0442 lbsr L0394 | |
590 os9 F$Fork | |
591 puls u | |
592 pshs b,cc | |
593 bcs L0454 | |
594 ldx #$0001 | |
595 os9 F$Sleep | |
596 L0454 clr <u0004 | |
597 clr <u0005 | |
598 os9 F$UnLink | |
599 puls pc,u,y,x,b,cc | |
600 L045D ldb #$EA | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
601 |
0 | 602 L045F coma |
603 puls pc,u,y,x | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
604 |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
605 L0462 fcc "/pipe" |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
606 fcb C$CR |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
607 L0468 fcb $34,$10,$30,$8c,$f5,$cc,$01,$03 |
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
608 fdb $17FE,$6835,$1025,$5217,$FF49,$254D,$A6C4,$2607 |
0 | 609 os9 I$Dup |
610 bcs L04C9 | |
611 sta ,u | |
612 L0487 clra | |
613 os9 I$Close | |
614 lda #$01 | |
615 os9 I$Dup | |
616 lda #$01 | |
617 lbra L029D | |
618 L0495 pshs y,x,b,a | |
619 pshs y,x,b | |
620 leax $01,s | |
621 ldb #$2F | |
622 L049D incb | |
623 suba #$64 | |
624 bcc L049D | |
625 stb ,x+ | |
626 ldb #$3A | |
627 L04A6 decb | |
628 adda #$0A | |
629 bcc L04A6 | |
630 stb ,x+ | |
631 adda #$30 | |
632 ldb #$0D | |
633 std ,x | |
634 leax ,s | |
635 lbsr L00BF | |
636 leas $05,s | |
637 puls pc,y,x,b,a | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
638 L04BC bsr L04CA |
0 | 639 cmpb #$02 |
640 bcs L04E5 | |
641 tfr b,a | |
642 ldb #$00 | |
643 os9 F$Send | |
644 L04C9 rts | |
645 L04CA clrb | |
646 L04CB lda ,x+ | |
647 suba #$30 | |
648 cmpa #$09 | |
649 bhi L04DC | |
650 pshs a | |
651 lda #$0A | |
652 mul | |
653 addb ,s+ | |
654 bcc L04CB | |
655 L04DC lda ,-x | |
656 bcs L04E3 | |
657 tstb | |
658 bne L04C9 | |
659 L04E3 leas $02,s | |
660 L04E5 lbra L02BE | |
1
d4eb10b30e72
Disassembled and commented shell.asm, removed shell binary
boisy
parents:
0
diff
changeset
|
661 L04E8 bsr L04CA |
0 | 662 stb <u0012 |
663 lbsr L01E9 | |
664 bsr L04CA | |
665 lda <u0012 | |
666 os9 F$SPrior | |
667 rts | |
668 emod | |
669 eom equ * |