annotate level1/cmds/shell_21.asm @ 0:6641a883d6b0

Initial revision
author boisy
date Thu, 04 Apr 2002 16:34:12 +0000
parents
children d4eb10b30e72
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 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * 20 Original Microware distribution version
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam Shell
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl OS-9 Command Interpreter
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * Disassembled 02/04/03 22:01:32 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 use os9defs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 rev set $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 u0000 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 u0001 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 u0003 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 u0004 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 u0005 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 u0006 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 u0008 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 u000A rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u000B rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u000C rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u000D rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u000E rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u000F rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u0010 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u0011 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u0012 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 u0013 rmb 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 u0017 rmb 14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 u0025 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 u0026 rmb 7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 u002D rmb 17
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 u003E rmb 5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 u0043 rmb 8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 u004B rmb 19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 u005E rmb 46
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 u008C rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 u008D rmb 25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 u00A6 rmb 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 u00AA rmb 17
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 u00BB rmb 25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 u00D4 rmb 3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 u00D7 rmb 40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 u00FF rmb 438
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 name equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 L000D fcs /Shell/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 fcb $14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 L0013 fcb $13
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 fcb $50 P
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 fcb $61 a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 fcb $73 s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 fcb $63 c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 fcb $61 a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 fcb $6C l
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 fcb $D3 S
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 fcb $25 %
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 fcb $52 R
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 fcb $75 u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 fcb $6E n
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 fcb $C3 C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 fcb $22 "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 fcb $52 R
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 fcb $75 u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 fcb $6E n
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 fcb $C2 B
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 L002E fcb $0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 fcb $53 S
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 fcb $68 h
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 fcb $6C l
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 fcb $6C l
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 fcb $0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 L0035 fcb $0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 L0036 fcb $4F O
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 fcb $53 S
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 fcb $39 9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 fcb $3A :
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 L003A fcb $D7 W
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 fcb $0E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 fcb $3B ;
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 start equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 leas -$05,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 pshs y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 ldb #$24
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 lbsr L00C9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 leax <L003A,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 os9 F$Icpt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 puls x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 std <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 beq L005B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 lbsr L0131
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 bcs L00BC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 tst <u000C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 bne L00BB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 L005B lds ,s++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 leax <L002E,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 tst <u000F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 bne L0074
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 bsr L00BF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 L0067 leax <L0035,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 ldy #$0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 L006E tst <u000F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 bne L0074
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 bsr L00C3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 L0074 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 leax <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 ldy #$00C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 os9 I$ReadLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 bcc L008E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 cmpb #$D3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 beq L00B2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 L0085 tst <u0011
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 bne L00BC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 os9 F$PErr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 bra L0067
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 L008E cmpy #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 bhi L009E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 leax >L0036,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 ldy #$0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 bra L006E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 L009E tst <u0010
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 beq L00A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 bsr L00BF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 L00A4 lbsr L0131
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 bcc L0067
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 bne L0085
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 bra L0067
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 eim #$6F,$06,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 tst <u000D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 clr <u0026
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 eim #$30,<u008C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 bitb >$8D04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 L00BB clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 L00BC os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 L00BF ldy #$0050
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 L00C3 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 L00C9 clr b,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 L00CB decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 bpl L00C9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 L00CF oim #$B7,<u00AA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 aim #$89,<u00D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 oim #$93,<u0043
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 andb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 ora #$43
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 eorb <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 fcb $45 E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 eorb <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 adcb <u004B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 rola
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 ldd #$0195
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 eorb <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 lda <u002D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 eorb <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 jmp >$D001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 jmp >$2DD0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 oim #$7F,<u00D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 oim #$80,<u002D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 andb <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 orb -u000D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 fcb $45 E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 negb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 sbcb <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 lsr <u00BB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 neg <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 L010A com <u005E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 cmpa $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 beq L00CB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 aim #$3D,<u00A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 aim #$1A,<u008D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 L0116 oim #$B8,<u003E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 ldx >$01AF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 cmpx >$01B8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 ldx >$01EF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 subd $00,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 neg <u000D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 bvc L0151
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 stu >$0D21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 bls L0153
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 rti
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 cwai #$3E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 stu >$C60E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 bsr L00C9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 L0135 clr <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 clr <u000E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 leay <L00CF,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 lbsr L01C3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 bcs L0192
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 cmpa #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 beq L0192
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 sta <u000C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 cmpa #$28
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 bne L016F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 leay >L000D,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 sty <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 stx <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 L0156 inc <u000D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 L0158 leay <L0125,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 bsr L01DB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 cmpa #$28
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 beq L0156
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 cmpa #$29
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 bne L018A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 dec <u000D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 bne L0158
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 lda #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 sta -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 bra L0173
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 L016F bsr L0195
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 bcs L0192
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 L0173 leay <L0129,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 bsr L01DB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 tfr x,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 subd <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 std <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 leax -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 leay <L010A,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 bsr L01C3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 bcs L0192
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 ldy <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 L018A lbne L02BE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 cmpa #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 bne L0135
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 L0192 lbra L028F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 L0195 stx <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 bsr L01A8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 bcs L01A7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 L019B bsr L01A8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 bcc L019B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 leay >L0116,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 bsr L01C3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 stx <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 L01A7 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 L01A8 os9 F$PrsNam
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 bcc L01B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 cmpa #$2E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 bne L01BD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 cmpa ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 beq L01BB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 leay -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 L01B9 leax ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 L01BB clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 L01BD comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 leax -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 ldb #$D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 L01C3 bsr L01E9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 bsr L020C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 bcs L01D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 ldd ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 jsr d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 bcc L01C3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 L01D4 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 puls pc,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 L01D9 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 L01DB pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 L01DF tst ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 bmi L01D9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 cmpa ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 bne L01DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 puls pc,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 L01E9 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 cmpa #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 beq L01FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 cmpa #$2C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 beq L01FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 leax >L0129,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 L01F9 cmpa ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 bhi L01F9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 puls pc,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 L01FF leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 L0203 cmpa ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 beq L0203
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312 leax -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 andcc #$FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 L020C pshs y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 leay $02,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
317 L0210 ldx ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
318 L0212 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 cmpa #$61
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
320 bcs L021A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 suba #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
322 L021A eora ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
324 bne L022E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 bcc L0212
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 lda -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327 cmpa #$C1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 bcs L022B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 bsr L01E9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 bcs L022E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
331 L022B clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 puls pc,y,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
333 L022E leay -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334 L0230 lda ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
335 bpl L0230
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
336 sty $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
337 ldd ,y++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
338 bne L0210
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
339 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
340 puls pc,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
341 lbsr L0195
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
342 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
343 bsr L0260
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
344 bsr L025F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
345 bsr L025F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
346 bsr L0286
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
347 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
348 tfr x,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
349 subd <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
350 std <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
351 leas >u00FF,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
352 lbsr L0394
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
353 os9 F$Chain
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
354 os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
355 L025F inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
356 L0260 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
357 bra L02AB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
358 lda #$84
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
359 bra L026A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
360 lda #$83
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
361 L026A os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
362 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
363 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
364 bra L0273
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
365 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
366 L0273 sta <u000F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
367 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
368 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
369 bra L027B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
370 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
371 L027B sta <u0010
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
372 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
373 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
374 bra L0283
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
375 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
376 L0283 sta <u0011
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
377 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
378 L0286 lda #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
379 L0288 cmpa ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
380 bne L0288
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
381 cmpa ,-x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
382 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
383 L028F pshs b,a,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
384 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
385 L0292 bsr L029D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
386 inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
387 cmpa #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
388 bls L0292
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
389 ror ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
390 puls pc,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
391 L029D pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
392 tst a,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
393 beq L02B6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
394 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
395 lda a,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
396 os9 I$Dup
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
397 L02AB ldb ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
398 lda b,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
399 beq L02B6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
400 clr b,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
401 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
402 L02B6 puls pc,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
403 L02B8 asrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
404 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
405 fcb $41 A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
406 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
407 swi
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
408 fcb $0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
409 L02BE bsr L028F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
410 leax <L02B8,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
411 lbsr L00BF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
412 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
413 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
414 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
415 L02C9 ldd #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
416 bra L02E3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
417 ldd #$020D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
418 stb -$02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
419 bra L02D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
420 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
421 L02D7 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
422 bra L02E3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
423 tst a,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
424 bne L02BE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
425 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
426 bra L02ED
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
427 L02E3 tst a,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
428 bne L02BE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
429 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
430 ldb #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
431 stb -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
432 L02ED os9 I$Dup
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
433 bcs L030D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
434 ldb ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
435 sta b,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
436 lda ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
437 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
438 lda $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
439 bita #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
440 bne L0306
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
441 os9 I$Open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
442 bra L030B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
443 L0306 ldb #$0B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
444 os9 I$Create
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
445 L030B stb $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
446 L030D puls pc,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
447 ldb #$0D
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
452 eora #$4B
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
462 leax -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
463 lbsr L03C7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
464 bra L0337
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
465 lbsr L03C3
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
476 lbsr L03C3
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
482 clra
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
488 cmpb #$02
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
511 L0394 lda #$11
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
517 L03A0 lda #$04
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
539 L03D7 cmpa #$11
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
562 lbsr L02C9
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
572 leax >L000D,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
573 L0423 stx <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
574 L0425 ldx <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
575 lda #$11
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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
598 L045D ldb #$EA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
599 L045F coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
600 puls pc,u,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
601 ble L04D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
602 rol -$10,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
603 eim #$0D,-$0C,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
604 addr a,0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
605 bitb >$CC01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
606 com <u0017
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
607 ldu >$6835
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
608 lbcs L568F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
609 stu >$4925
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
610 tsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
611 lda ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
612 bne L0487
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
613 os9 I$Dup
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
614 bcs L04C9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
615 sta ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
616 L0487 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
617 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
618 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
619 os9 I$Dup
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
620 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
621 lbra L029D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
622 L0495 pshs y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
623 pshs y,x,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
624 leax $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
625 ldb #$2F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
626 L049D incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
627 suba #$64
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
628 bcc L049D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
629 stb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
630 ldb #$3A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
631 L04A6 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
632 adda #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
633 bcc L04A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
634 stb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
635 adda #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
636 ldb #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
637 std ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
638 leax ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
639 lbsr L00BF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
640 leas $05,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
641 puls pc,y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
642 bsr L04CA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
643 cmpb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
644 bcs L04E5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
645 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
646 ldb #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
647 os9 F$Send
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
648 L04C9 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
649 L04CA clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
650 L04CB lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
651 suba #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
652 cmpa #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
653 bhi L04DC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
654 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
655 lda #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
656 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
657 addb ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
658 bcc L04CB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
659 L04DC lda ,-x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
660 bcs L04E3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
661 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
662 bne L04C9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
663 L04E3 leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
664 L04E5 lbra L02BE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
665 bsr L04CA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
666 stb <u0012
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
667 lbsr L01E9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
668 bsr L04CA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
669 lda <u0012
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
670 os9 F$SPrior
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
671 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
672 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
673 eom equ *