annotate level1/cmds/shell_21.asm @ 1325:84ea83668304

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