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

Initial revision
author boisy
date Thu, 04 Apr 2002 16:34:12 +0000
parents
children 0912ac5dc2ff
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 * Copy - Copy data from one path to another
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 * 7 Original Microware distribution version
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam Copy
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl Copy data from one path to another
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * Disassembled 02/04/03 23:12:01 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 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 u0002 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 u0003 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 u0004 rmb 2
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 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u000C rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u000E rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u000F rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u0010 rmb 496
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u0200 rmb 256
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u0300 rmb 4096
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 name equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 fcs /Copy/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 fcb $07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 L0012 fcb $52 R
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 fcb $61 a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 fcb $64 d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 fcb $79 y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 fcb $53 S
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 fcb $4F O
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 fcb $55 U
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 fcb $52 R
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 fcb $43 C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 fcb $45 E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 fcb $2C ,
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 fcb $68 h
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 fcb $43 C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 fcb $6F o
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 fcb $63 c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 fcb $6F o
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 fcb $6E n
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 fcb $6E n
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 fcb $75 u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 fcb $3A :
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 L0033 fcb $52 R
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 fcb $61 a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 fcb $64 d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 fcb $79 y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 fcb $44 D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 fcb $45 E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 fcb $53 S
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 fcb $54 T
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 fcb $49 I
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 fcb $4E N
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 fcb $41 A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 fcb $54 T
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 fcb $49 I
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 fcb $4F O
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 fcb $4E N
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 fcb $2C ,
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 fcb $68 h
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 fcb $43 C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 fcb $6F o
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 fcb $63 c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 fcb $6F o
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 fcb $6E n
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 fcb $6E n
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 fcb $75 u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 fcb $3A :
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 L0059 fcb $0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 L005A fcb $55 U
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 fcb $73 s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 fcb $3A :
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 fcb $43 C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 fcb $6F o
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 fcb $70 p
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 fcb $79 y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 fcb $3C <
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 fcb $50 P
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 fcb $61 a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 fcb $68 h
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 fcb $31 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 fcb $3E >
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 fcb $3C <
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 fcb $50 P
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 fcb $61 a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 fcb $68 h
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 fcb $32 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 fcb $3E >
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 fcb $5B [
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 fcb $2D -
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 fcb $73 s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 fcb $5D ]
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 fcb $0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 fcb $2D -
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 fcb $73 s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 fcb $3D =
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 fcb $73 s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 fcb $6E n
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 fcb $67 g
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 fcb $6C l
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 fcb $64 d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 fcb $72 r
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 fcb $76 v
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 fcb $63 c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 fcb $6F o
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 fcb $70 p
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 fcb $79 y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 fcb $28 (
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 fcb $50 P
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 fcb $61 a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 fcb $68 h
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 fcb $32 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 fcb $6D m
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 fcb $75 u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 fcb $73 s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 fcb $62 b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 fcb $63 c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 fcb $6F o
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 fcb $6D m
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 fcb $70 p
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 fcb $6C l
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 fcb $70 p
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 fcb $61 a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 fcb $68 h
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 fcb $6C l
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 fcb $73 s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 fcb $29 )
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 fcb $0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 L00B4 fcb $07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 fcb $45 E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 fcb $72 r
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 fcb $72 r
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 fcb $6F o
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 fcb $72 r
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 fcb $2D -
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 fcb $77 w
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 fcb $72 r
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 fcb $76 v
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 fcb $72 r
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 fcb $66 f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 fcb $63 c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 fcb $61 a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 fcb $74 t
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 fcb $6F o
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 fcb $6E n
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 fcb $66 f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 fcb $61 a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 fcb $69 i
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 fcb $6C l
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 fcb $65 e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 fcb $64 d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 fcb $2E .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 fcb $0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 start equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 leas >u0200,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 leau <u0010,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 L00E1 clr ,-u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 cmpu ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 bhi L00E1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 tfr y,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 subd ,s++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 subd #$0300
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 std <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 L00F4 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 cmpa #$2D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 beq L0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 cmpa #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 bne L00F4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 bra L0113
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 L0100 ldd ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 eora #$53
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 anda #$DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 bne L0110
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 cmpb #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 bcc L0110
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 inc <u000E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 bra L00F4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 L0110 lbra L0276
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 L0113 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 os9 I$Open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 bcc L0125
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 cmpb #$D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 lbeq L0276
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 lbra L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 L0125 sta <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 tst <u000E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 beq L0135
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 ldb #$D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 cmpa #$2F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 lbne L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 L0135 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 lda <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 leax <u0010,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 ldb #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 os9 I$GetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 lbcs L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 sta <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 ldb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 cmpa #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 bne L0165
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 pshs u,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 lda <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 os9 I$GetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 lbcs L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 stx <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 stu <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 puls u,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 ldb <$13,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 L0165 stb <u000F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 lbsr L028A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 lda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 ldb <u000F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 os9 I$Create
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 bcc L0184
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 inc <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 ldb <u000F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 os9 I$Create
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312 lbcs L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 L0184 sta <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 leax <u0010,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 ldb #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 os9 I$GetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
317 lbcs L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
318 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 cmpb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
320 beq L019C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 inc <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
322 bra L01DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 L019C tst <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
324 bne L01AD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 stb $08,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327 ldb #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 os9 I$SetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 lbcs L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 L01AD lda <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
331 cmpa #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 bne L01DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
333 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334 lda <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
335 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
336 ldx <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
337 ldu <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
338 os9 I$SetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
339 lbcs L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
340 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
341 leax <u0010,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
342 ldy #$0010
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
343 lda <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
344 ldb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
345 os9 I$GetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
346 bcs L01DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
347 lda <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
348 ldb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
349 os9 I$SetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
350 L01DD leax >u0300,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
351 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
352 lbsr L028A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
353 lda <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
354 ldy <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
355 os9 I$Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
356 bcs L025A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
357 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
358 lbsr L028A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
359 lda <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
360 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
361 lbcs L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
362 tst <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
363 bne L024D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
364 pshs u,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
365 ldx <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
366 ldu <u000C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
367 lda <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
368 os9 I$Seek
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
369 bcs L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
370 ldu $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
371 leau >u0300,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
372 ldd ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
373 addd <u000C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
374 std <u000C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
375 ldd ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
376 bcc L0222
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
377 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
378 stx <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
379 L0222 ldy #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
380 std ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
381 tsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
382 bne L022D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
383 tfr d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
384 L022D ldx $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
385 leax >$0200,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
386 lda <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
387 os9 I$Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
388 bcs L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
389 L023A lda ,u+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
390 cmpa ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
391 bne L026B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
392 leay -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
393 bne L023A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
394 ldd ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
395 subd #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
396 bhi L0222
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
397 puls u,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
398 L024D lda <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
399 ldb #$06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
400 os9 I$GetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
401 bcc L01DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
402 cmpb #$D3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
403 beq L0262
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
404 L025A cmpb #$D3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
405 bne L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
406 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
407 bsr L028A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
408 L0262 lda <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
409 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
410 bcc L027C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
411 bra L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
412 L026B leax >L00B4,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
413 bsr L0280
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
414 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
415 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
416 bra L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
417 L0276 leax >L005A,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
418 bsr L0280
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
419 L027C clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
420 L027D os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
421 L0280 ldy #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
422 L0284 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
423 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
424 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
425 L028A tst <u000E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
426 beq L02C7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
427 pshs y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
428 L0290 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
429 tsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
430 bne L029F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
431 leax >L0012,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
432 ldy #$0021
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
433 bra L02A7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
434 L029F leax >L0033,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
435 ldy #$0026
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
436 L02A7 bsr L0284
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
437 leax ,-s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
438 ldy #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
439 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
440 os9 I$Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
441 lda ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
442 eora #$43
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
443 anda #$DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
444 beq L02C1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
445 bsr L02C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
446 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
447 bne L0290
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
448 L02C1 bsr L02C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
449 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
450 puls y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
451 L02C7 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
452 L02C8 pshs y,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
453 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
454 leax >L0059,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
455 ldy #$0050
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
456 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
457 puls pc,y,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
458 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
459 eom equ *