annotate level1/cmds/format_d64.asm @ 990:3c51c59f97c4

Small cosmetic changes
author boisy
date Fri, 21 Feb 2003 13:18:13 +0000
parents 7dea3d77ba0b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
162
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1 ********************************************************************
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
2 * Format - Initialize disk media
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
3 *
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
4 * $Id$
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
5 *
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
7 * ------------------------------------------------------------------
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 168
diff changeset
8 * 18 From Dragon OS-9 Level One VR 01.02.00
162
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
9
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
10 * The Dragon edition is slightly different from the Color Computer's
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
11 * Even though the strings "Change from 96tpi to 48tpi? "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
12 * and "Double sided? " are in here Dragon doesn't use them.
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
13
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
14 nam Format
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
15 ttl Initialize disk media
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
16
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
17 * Disassembled 02/07/09 18:53:41 by Disasm v1.6 (C) 1988 by RML
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
18
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
19 ifp1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
20 use defsfile
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
21 endc
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 168
diff changeset
22
162
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
23 tylg set Prgrm+Objct
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
24 atrv set ReEnt+rev
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
25 rev set $01
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 168
diff changeset
26 edition set 18
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 168
diff changeset
27
162
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
28 mod eom,name,tylg,atrv,start,size
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 168
diff changeset
29
162
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
30 u0000 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
31 u0001 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
32 PathNm rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
33 u0003 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
34 u0004 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
35 u0005 rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
36 u0007 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
37 u0008 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
38 u0009 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
39 u000A rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
40 u000B rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
41 u000C rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
42 u000E rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
43 u000F rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
44 u0010 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
45 u0011 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
46 u0012 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
47 u0013 rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
48 u0015 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
49 u0016 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
50 u0017 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
51 u0018 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
52 u0019 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
53 u001A rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
54 u001B rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
55 u001C rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
56 u001D rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
57 u001F rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
58 u0020 rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
59 u0022 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
60 u0023 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
61 u0024 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
62 ClustSz rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
63 u0026 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
64 u0027 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
65 u0028 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
66 u0029 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
67 u002A rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
68 u002B rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
69 u002C rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
70 u002D rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
71 u002F rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
72 u0030 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
73 u0031 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
74 u0032 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
75 u0033 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
76 u0034 rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
77 u0036 rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
78 u0038 rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
79 u003A rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
80 u003B rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
81 u003D rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
82 u003F rmb 4
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
83 u0043 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
84 u0044 rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
85 u0046 rmb 1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
86 DevPath rmb 1 Contains "/"
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
87 Device rmb 13
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
88 u0055 rmb 15
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
89 u0064 rmb 3
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
90 u0067 rmb 32
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
91 u0087 rmb 40
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
92 u00AF rmb 14
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
93 u00BD rmb 12
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
94 DateBf rmb 5
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
95 u00CE rmb 9
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
96 u00D7 rmb 17
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
97 u00E8 rmb 6
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
98 u00EE rmb 177
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
99 u019F rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
100 u01A1 rmb 2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
101 u01A3 rmb 12
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
102 DDBuf rmb 256
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
103 u02AF rmb 3
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
104 u02B2 rmb 9924
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
105 u2976 rmb 451
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
106 size equ .
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 168
diff changeset
107
162
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
108 name fcs /Format/
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 168
diff changeset
109 fcb edition
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 168
diff changeset
110
162
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
111 L0014 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
112 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
113 L0016 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
114 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
115 L0018 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
116 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
117 L001A fcb $80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
118 fcb $E5 e
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
119 fcb $80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
120 fcb $E5 e
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
121 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
122 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
123 L0020 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
124 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
125 fcb $28 (
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
126 fcb $FF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
127 fcb $06
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
128 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
129 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
130 fcb $FC
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
131 fcb $0C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
132 fcb $FF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
133 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
134 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
135 fcb $06
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
136 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
137 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
138 fcb $FE
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
139 fcb $04
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
140 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
141 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
142 fcb $F7 w
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
143 fcb $0A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
144 fcb $FF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
145 fcb $06
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
146 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
147 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
148 fcb $FB
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
149 fcb $80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
150 fcb $E5 e
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
151 fcb $80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
152 fcb $E5 e
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
153 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
154 fcb $F7 w
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
155 fcb $0A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
156 fcb $FF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
157 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
158 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
159 fcb $FF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
160 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
161 fcb $43 C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
162 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
163 fcb $28 (
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
164 L0049 fcb $50 P
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
165 fcb $4E N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
166 fcb $0C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
167 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
168 fcb $03
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
169 fcb $F6 v
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
170 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
171 fcb $FC
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
172 fcb $20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
173 fcb $4E N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
174 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
175 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
176 fcb $0C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
177 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
178 fcb $03
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
179 fcb $F5 u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
180 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
181 fcb $FE
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
182 fcb $04
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
183 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
184 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
185 fcb $F7 w
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
186 fcb $16
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
187 fcb $4E N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
188 fcb $0C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
189 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
190 fcb $03
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
191 fcb $F5 u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
192 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
193 fcb $FB
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
194 fcb $80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
195 fcb $E5 e
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
196 fcb $80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
197 fcb $E5 e
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
198 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
199 fcb $F7 w
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
200 fcb $16
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
201 fcb $4E N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
202 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
203 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
204 fcb $4E N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
205 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
206 fcb $90
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
207 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
208 fcb $52 R
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
209 L0076 fcb $20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
210 fcb $4E N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
211 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
212 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
213 fcb $08
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
214 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
215 fcb $03
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
216 fcb $F5 u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
217 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
218 fcb $FE
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
219 fcb $04
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
220 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
221 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
222 fcb $F7 w
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
223 fcb $16
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
224 fcb $4E N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
225 fcb $0C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
226 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
227 fcb $03
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
228 fcb $F5 u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
229 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
230 fcb $FB
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
231 fcb $80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
232 fcb $E5 e
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
233 fcb $80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
234 fcb $E5 e
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
235 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
236 fcb $F7 w
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
237 fcb $18
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
238 fcb $4E N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
239 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
240 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
241 fcb $4E N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
242 fcb $00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
243 fcb $2C ,
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
244 fcb $01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
245 fcb $50 P
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
246 start equ *
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
247 stu <u0000
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
248 bsr L00BE
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
249 bsr L00CF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
250 bsr L011A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
251 lbsr L0295
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
252 lbsr AskBoth
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
253 lbsr L04A9
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
254 lbsr L0589
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
255 lbsr L05BF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
256 lbsr L07C0
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
257 ldu <u0044
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
258 os9 I$Detach
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
259 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
260 Exit os9 F$Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
261
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
262 L00BE leay PathNm,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
263 pshs y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
264 leay >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
265 L00C6 clr ,-y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
266 cmpy ,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
267 bhi L00C6
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
268 puls pc,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
269
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
270 L00CF lda ,x+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
271 cmpa #'/
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
272 beq L00DA
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
273 L00D5 ldb #E$BPNam
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
274 lbra ErrExit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
275 L00DA os9 F$PrsNam
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
276 lbcs ErrExit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
277 lda #'/
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
278 cmpa ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
279 beq L00D5
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
280 sty <u0020
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
281 *
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
282 * Copy device name from arg to DevPath
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
283 leay <DevPath,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
284 L00ED sta ,y+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
285 lda ,x+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
286 decb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
287 bpl L00ED
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
288 leax <Device,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
289 lda #$20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
290 sta ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
291
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
292 clra 0 = Use device capabilities
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
293 os9 I$Attach
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
294 lbcs ErrExit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
295 stu <u0044
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
296 ldu <u0000
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
297 lda #$40
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
298 ldb #$20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
299 std ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
300 lda #WRITE.
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
301 leax <DevPath,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
302 os9 I$Open
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
303 bcs Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
304 sta <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
305 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
306 L011A bsr L0122
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
307 bsr L015D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
308 lbsr L0216
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
309 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
310
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
311 L0122 leax >DDBuf,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
312 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
313 os9 I$GetStt
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
314 bcs Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
315 ldb $07,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
316 stb <u0012
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
317 ldb $04,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
318 pshs b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
319 andb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
320 stb <u0010
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
321 puls b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
322 lsrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
323 andb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
324 stb <u0011
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
325 ldd $05,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
326 std <u0013
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
327 ldb $03,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
328 stb <u001B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
329 andb #$20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
330 stb <u0046
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
331 ldd $09,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
332 std <u0017
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
333 ldd $0B,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
334 std <u0019
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
335 ldb $0D,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
336 stb <u001F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
337 ldb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
338 stb <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
339 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
340 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
341 L015D ldx <u0020
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
342 L015F leay >L0188,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
343 bsr L0176
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
344 bcs L017F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
345 pshs b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
346 ldd $02,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
347 leay d,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
348 puls b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
349 jsr ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
350 bcc L015F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
351 lbra Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
352 L0176 lda ,x+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
353 L0178 cmpa ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
354 bne L0180
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
355 ldb $01,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
356 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
357 L017F rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
358 L0180 leay $04,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
359 tst ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
360 bne L0178
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
361 coma
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
362 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
363 L0188 fdb $5259,$002c,$7259,$0028
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
364 fdb $2200,$002d,$3a00,$005d,$4300,$0022,$6300,$001e
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
365 fdb $2800,$0013,$2900,$000f,$2c00,$000b,$2000,$0007
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
366 fdb $00d7,$1039,$d71c,$39d7,$1239,$0c46,$3931,$c867
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
367
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
368 ldb #$20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
369 L01C2 lda ,x+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
370 cmpa #$22
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
371 beq L01D9
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
372 sta ,y+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
373 decb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
374 bne L01C2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
375 L01CD ldb ,x+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
376 cmpb #$22
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
377 beq L01DF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
378 cmpb #$20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
379 bcc L01CD
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
380 bra L01DF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
381 L01D9 lda #$20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
382 cmpb #$20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
383 beq L01E3
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
384 L01DF leay -$01,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
385 lda ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
386 L01E3 adda #$80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
387 sta ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
388 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
389 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
390 lbsr L08AF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
391 ldd <u001D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
392 std <u0013
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
393 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
394 lbsr L08AF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
395 ldd <u001D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
396 tsta
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
397 beq L01FB
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
398 ldb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
399 L01FB stb <u001F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
400 L01FD rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
401 lbsr L08AF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
402 ldd <u001D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
403 tsta
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
404 beq L0208
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
405 ldb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
406 L0208 stb <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
407 negb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
408 decb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
409 andb <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
410 beq L0214
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
411 ldb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
412 stb <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
413 L0214 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
414 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
415 L0216 leax >Title,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
416 lbsr L0272
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
417 leay >DDBuf,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
418 ldx $0B,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
419 tst <u0010
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
420 beq L0229
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
421 ldx $09,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
422 L0229 stx <u0017
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
423 leax >FmtMsg,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
424 ldy #FmtMLen
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
425 lbsr L0276
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
426 leax <DevPath,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
427 tfr x,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
428 L023B lda ,y+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
429 cmpa #$40
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
430 bne L023B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
431 pshs y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
432 lda #$0D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
433 sta -$01,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
434 lbsr L0272
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
435 puls y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
436 lda #$40
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
437 sta -$01,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
438 lda <u001C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
439 bne L01FD
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
440 L0254 leax >Query,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
441 ldy #QueryLen
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
442 lbsr GetYN
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
443 anda #$DF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
444 cmpa #'Y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
445 beq L01FD
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
446 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
447 cmpa #'N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
448 lbeq Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
449 bra L0254
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
450 L026E leax >HelpCR,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
451 L0272 ldy #$0050
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
452 L0276 lda #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
453 os9 I$WritLn
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
454 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
455 *
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
456 * Read a one-byte answer
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
457 *
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
458 GetYN pshs u,y,x,b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
459 bsr L0276
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
460 leax ,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
461 ldy #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
462 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
463 os9 I$Read
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
464 lbcs Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
465 bsr L026E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
466 puls u,y,x,b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
467 anda #$7F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
468 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
469
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
470 L0295 leax >L001A,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
471 stx <u000A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
472 ldb <u001B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
473 bitb #$C0
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
474 bne L02B9
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
475 ldb <u0046
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
476 beq L02AB
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
477 leax >L0076,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
478 bra L02B9
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
479 L02AB leax >L0020,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
480 stx <u000A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
481 tst <u0010
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
482 beq L02B9
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
483 leax >L0049,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
484 L02B9 stx <u000C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
485 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
486 ldb <u0012
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
487 tfr d,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
488 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
489 ldx <u0013
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
490 bsr L0303
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
491 exg d,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
492 subd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
493 bcc L02CE
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
494 leax -$01,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
495 L02CE exg d,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
496 ldy <u0017
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
497 bsr L0303
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
498 exg d,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
499 addd <u0019
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
500 std <u0023
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
501 exg d,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
502 adcb #$00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
503 stb <u0022
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
504 lda #$08
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
505 pshs a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
506 ldx <u0023
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
507 ldb <u0022
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
508 bsr L034C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
509 lda <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
510 pshs a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
511 bsr L034C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
512 tstb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
513 beq L02FE
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
514 leax >ClustMsg,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
515 lbsr L0272
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
516 lbra L0528
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
517 L02FE leas $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
518 stx <u0026
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
519 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
520 L0303 lda #$08
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
521 L0305 clr ,-s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
522 deca
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
523 bne L0305
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
524 sty ,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
525 stb $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
526 stx $03,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
527 L0311 ldd ,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
528 beq L0334
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
529 lsra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
530 rorb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
531 std ,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
532 bcc L0327
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
533 ldd $03,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
534 addd $06,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
535 std $06,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
536 lda $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
537 adca $05,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
538 sta $05,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
539 L0327 ldd $03,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
540 lslb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
541 rola
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
542 std $03,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
543 lda $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
544 rola
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
545 sta $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
546 bra L0311
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
547 L0334 leas $05,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
548 puls pc,x,b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
549 L0338 pshs x,b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
550 lsr ,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
551 ror $01,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
552 ror $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
553 puls x,b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
554 exg d,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
555 adcb #$00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
556 adca #$00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
557 exg d,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
558 adcb #$00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
559 L034C lsr $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
560 bne L0338
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
561 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
562
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
563 AskBoth tst <u001B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
564 bpl L036B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
565 leax >Both,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
566 ldy #BothLen
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
567 lbsr GetYN
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
568 anda #$DF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
569 cmpa #'Y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
570 beq L036B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
571 cmpa #'N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
572 bne AskBoth
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
573 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
574
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
575 L036B lda <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
576 ldb #SS.Reset
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
577 os9 I$SetStt
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
578 lbcs Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
579 ldd #$0000
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
580 std <u0003
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
581 inca
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
582 sta <u0007
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
583 L037E clr <u0005
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
584 L0380 bsr L03DA
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
585 leax >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
586 ldu <u0003
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
587 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
588 tst <u0010
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
589 beq L039B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
590 tst <u0046
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
591 bne L0399
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
592 tst <u0004
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
593 bne L0399
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
594 tst <u0005
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
595 beq L039B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
596 L0399 orb #$02
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
597 L039B tst <u0011
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
598 beq L03A1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
599 orb #$04
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
600 L03A1 lda <u0005
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
601 beq L03A7
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
602 orb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
603 L03A7 tfr d,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
604 lda <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
605 ldb #SS.WTrk
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
606 os9 I$SetStt
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
607 lbcs Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
608 ldu <u0000
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
609 ldb <u0005
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
610 incb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
611 stb <u0005
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
612 cmpb <u0012
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
613 bcs L0380
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
614 ldd <u0003
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
615 addd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
616 std <u0003
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
617 cmpd <u0013
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
618 bcs L037E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
619 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
620 L03CC ldy <u000E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
621 L03CF ldd ,y++
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
622 beq L03E9
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
623 L03D3 stb ,x+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
624 deca
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
625 bne L03D3
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
626 bra L03CF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
627 L03DA lda <u001B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
628 bita #$C0
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
629 beq L03EA
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
630 ldy <u000C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
631 leax >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
632 bsr L03CF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
633 L03E9 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
634 L03EA ldy <u000C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
635 ldb <u0018
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
636 tst <u0046
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
637 bne L0400
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
638 tst <u0004
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
639 bne L0400
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
640 tst <u0005
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
641 bne L0400
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
642 ldy <u000A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
643 ldb <u001A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
644 L0400 sty <u000E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
645 stb <u0009
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
646 stb <u0016
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
647 bsr L0466
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
648 leax >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
649 bsr L03CF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
650 sty <u000E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
651 L0412 bsr L03CC
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
652 dec <u0009
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
653 bne L0412
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
654 lda ,y+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
655 sty <u000E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
656 stx <u003B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
657 leay >u2976,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
658 sty <u001D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
659 tfr a,b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
660 L0428 std ,x++
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
661 cmpx <u001D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
662 bcs L0428
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
663 ldy <u000E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
664 ldd ,y++
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
665 std <u003D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
666 ldd ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
667 std <u003F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
668 clr <u0009
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
669 leax >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
670 ldd <u003D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
671 leay >u0087,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
672 L0445 leax d,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
673 ldd <u0004
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
674 std ,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
675 ldb <u0009
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
676 lda b,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
677 incb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
678 stb <u0009
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
679 ldb <u0007
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
680 tst <u0046
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
681 beq L0459
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
682 inca
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
683 L0459 std $02,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
684 lda <u0009
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
685 cmpa <u0016
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
686 bcc L0465
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
687 ldd <u003F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
688 bra L0445
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
689 L0465 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
690 L0466 pshs y,b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
691 tfr b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
692 ldb <u0004
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
693 cmpb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
694 bhi L0492
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
695 leax >u0087,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
696 leay a,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
697 ldb <u001F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
698 bne L0481
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
699 L047A leax >Abort,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
700 lbra L0676
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
701 L0481 cmpb <u0016
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
702 bhi L047A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
703 nega
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
704 pshs y,x,b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
705 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
706 L0489 sta ,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
707 inca
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
708 cmpa <u0016
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
709 bne L0494
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
710 leas $06,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
711 L0492 puls pc,y,b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
712 L0494 ldb <u001F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
713 abx
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
714 cmpx $04,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
715 bcs L049F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
716 ldb ,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
717 leax b,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
718 L049F cmpx $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
719 bne L0489
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
720 leax $01,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
721 stx $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
722 bra L0489
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
723 L04A9 lbsr L081B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
724 ldd <u0023
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
725 std $01,x DD.TOT+1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
726 ldb <u0022
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
727 stb ,x DD.TOT?
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
728 ldd <u0017
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
729 std <$11,x DD.SPT?
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
730 stb $03,x DD.TKS?
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
731 lda <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
732 sta $07,x DD.BIT+1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
733 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
734 ldb <u0026
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
735 tst <u0027
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
736 beq L04C9
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
737 addd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
738 L04C9 addd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
739 addd #$0010
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
740 std $09,x DD.DIR?
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
741 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
742 tst <u0010
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
743 beq L04D8
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
744 ora #$02
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
745 L04D8 ldb <u0012
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
746 cmpb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
747 beq L04E0
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
748 ora #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
749 L04E0 tst <u0011
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
750 beq L04E6
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
751 ora #$04
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
752 L04E6 sta <$10,x DD.FMT?
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
753 ldd <u0026
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
754 std $04,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
755 lda #$FF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
756 sta $0D,x Is FF always put in DD.ATT?
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
757 leax >DateBf,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
758 os9 F$Time
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
759 leax >u00CE,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
760 leay <u0067,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
761 tst ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
762 beq L050B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
763 L0503 lda ,y+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
764 sta ,x+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
765 bpl L0503
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
766 bra L053E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
767 L050B leax >DName,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
768 ldy #DNameLen
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
769 lbsr L0276
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
770 leax >u00CE,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
771 ldy #$0021
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
772 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
773 os9 I$ReadLn
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
774 bcc L052F
168
3a847d2b4492 Cobbler, OS9Gen and format are all hardware dependent.
roug
parents: 162
diff changeset
775 cmpa #E$EOF
162
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
776 bne L050B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
777 L0528 leax >Aborted,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
778 lbra L0676
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
779 L052F tfr y,d
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
780 leax d,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
781 clr ,-x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
782 decb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
783 beq L050B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
784 lda ,-x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
785 ora #$80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
786 sta ,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
787 L053E leax >DateBf,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
788 leay <$40,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
789 pshs y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
790 ldd #$0000
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
791 L054A addd ,x++
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
792 cmpx ,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
793 bcs L054A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
794 leas $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
795 std >u00BD,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
796 ldd >L0014,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
797 std >u019F,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
798 ldd >L0016,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
799 std >u01A1,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
800 ldd >L0018,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
801 std >u01A3,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
802 lda <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
803 ldb #SS.Opt
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
804 leax >u00EE,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
805 os9 I$GetStt
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
806 ldb #SS.Reset
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
807 os9 I$SetStt
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
808 lbcs Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
809 leax >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
810 lbra L0827
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
811 L0589 lda <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
812 os9 I$Close
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
813 leax <DevPath,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
814 lda #READ.
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
815 os9 I$Open
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
816 lbcs L0672
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
817 sta <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
818 leax >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
819 ldy #$0100
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
820 os9 I$Read
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
821 lbcs L0672
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
822 lda <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
823 os9 I$Close
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
824 leax <DevPath,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
825 lda #UPDAT.
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
826 os9 I$Open
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
827 lbcs L0672
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
828 sta <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
829 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
830 L05BF lda <u001B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
831 clr <u0043
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
832 bita #$80
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
833 beq L05DE
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
834 L05C7 leax >Verify,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
835 ldy #VerifyLen
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
836 lbsr GetYN
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
837 anda #$DF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
838 cmpa #'Y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
839 beq L05DE
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
840 cmpa #'N
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
841 bne L05C7
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
842
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
843 sta <u0043
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
844 L05DE ldd <u0019
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
845 std <u0015
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
846 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
847 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
848 std <u0034
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
849 std <u0003
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
850 std <u0008
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
851 std <u0030
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
852 stb <u002F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
853 sta <u003A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
854 leax >DDBuf,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
855 stx <u0036
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
856 lbsr L081F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
857 leax >$0100,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
858 stx <u0038
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
859 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
860 ldb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
861 std <u0032
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
862 lda <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
863 sta <u0029
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
864 clr <u0028
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
865 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
866 ldb <u0026
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
867 tst <u0027
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
868 beq L0614
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
869 addd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
870 L0614 addd #$0009
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
871 addd #$0010
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
872 std <u002B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
873 lda <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
874 L061E lsra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
875 bcs L062F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
876 lsr <u002B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
877 ror <u002C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
878 bcc L061E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
879 inc <u002C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
880 bne L061E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
881 inc <u002B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
882 bra L061E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
883 L062F ldb <u002C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
884 stb <u002D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
885 lda <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
886 mul
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
887 std <u002B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
888 subd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
889 subb <u0026
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
890 sbca #$00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
891 subd #$0010
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
892 tst <u0027
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
893 beq L0649
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
894 subd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
895 L0649 stb <u002A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
896 L064B tst <u0043
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
897 bne L067D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
898 lda <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
899 leax >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
900 ldy #$0100
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
901 os9 I$Read
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
902 bcc L067D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
903 os9 F$PErr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
904 lbsr L084B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
905 lda #$FF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
906 sta <u0028
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
907 tst <u002F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
908 bne L067D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
909 ldx <u0030
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
910 cmpx <u002B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
911 bhi L067D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
912 L0672 leax >BadSect,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
913 L0676 lbsr L0272
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
914 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
915 lbra Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
916 L067D ldd <u0008
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
917 addd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
918 std <u0008
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
919 cmpd <u0015
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
920 bcs L06C2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
921 clr <u0008
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
922 clr <u0009
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
923 tst <u0043
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
924 bne L06B7
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
925 lda #$20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
926 pshs a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
927 lda <u0004
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
928 lbsr L0724
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
929 pshs b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
930 lda <u0003
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
931 lbsr L0724
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
932 pshs b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
933 tfr s,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
934 ldy #$0004
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
935 lbsr L0276
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
936 lda $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
937 cmpa #$46
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
938 bne L06B5
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
939 lbsr L026E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
940 L06B5 leas $04,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
941 L06B7 ldd <u0003
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
942 addd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
943 std <u0003
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
944 ldd <u0017
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
945 std <u0015
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
946 L06C2 dec <u0029
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
947 bne L06D8
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
948 bsr L0701
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
949 tst <u0028
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
950 bne L06D2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
951 ldx <u0034
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
952 leax $01,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
953 stx <u0034
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
954 L06D2 clr <u0028
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
955 lda <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
956 sta <u0029
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
957 L06D8 ldb <u002F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
958 ldx <u0030
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
959 leax $01,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
960 bne L06E1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
961 incb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
962 L06E1 cmpb <u0022
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
963 bcs L06E9
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
964 cmpx <u0023
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
965 bcc L06F0
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
966 L06E9 stb <u002F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
967 stx <u0030
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
968 lbra L064B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
969 L06F0 lda #$FF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
970 sta <u0028
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
971 leay >DDBuf,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
972 L06F8 cmpy <u0036
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
973 beq L073C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
974 bsr L0701
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
975 bra L06F8
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
976 L0701 ldx <u0036
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
977 lda <u0028
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
978 rora
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
979 rol ,x+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
980 inc <u003A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
981 lda <u003A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
982 cmpa #$08
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
983 bcs L0723
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
984 clr <u003A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
985 stx <u0036
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
986 cmpx <u0038
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
987 bne L0723
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
988 bsr L0780
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
989 leax >DDBuf,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
990 stx <u0036
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
991 lbsr L081F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
992 L0723 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
993 L0724 tfr a,b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
994 lsra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
995 lsra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
996 lsra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
997 lsra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
998 andb #$0F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
999 addd #$3030
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1000 cmpa #$39
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1001 bls L0735
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1002 adda #$07
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1003 L0735 cmpb #$39
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1004 bls L073B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1005 addb #$07
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1006 L073B rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1007 L073C lbsr L026E
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1008 leax >NumGood,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1009 ldy #NumGoodLen
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1010 lbsr L0276
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1011 ldb <ClustSz
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1012 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1013 ldx <u0034
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1014 pshs x,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1015 L0751 lsrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1016 bcs L075C
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1017 lsl $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1018 rol $01,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1019 rol ,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1020 bra L0751
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1021 L075C puls x,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1022 ldb #$0D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1023 pshs b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1024 tfr d,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1025 tfr x,d
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1026 tfr b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1027 bsr L0724
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1028 pshs b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1029 tfr x,d
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1030 bsr L0724
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1031 pshs b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1032 tfr y,d
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1033 bsr L0724
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1034 pshs b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1035 tfr s,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1036 lbsr L0272
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1037 leas $07,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1038 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1039 L0780 pshs y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1040 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1041 ldb #$01
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1042 cmpd <u0032
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1043 bne L079B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1044 leax >DDBuf,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1045 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1046 ldb <u002D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1047 tfr d,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1048 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1049 os9 F$AllBit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1050 lbcs L0672
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1051 L079B lbsr L0835
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1052 leax >DDBuf,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1053 lbsr L0827
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1054 ldd <u0022
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1055 cmpd <u002F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1056 bcs L07B7
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1057 bhi L07B4
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1058 ldb <u0024
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1059 cmpb <u0031
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1060 bcc L07B7
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1061 L07B4 lbsr L084B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1062 L07B7 ldd <u0032
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1063 addd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1064 std <u0032
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1065 puls pc,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1066 L07C0 ldd #$0010
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1067 addd <u0032
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1068 std <u0032
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1069 bsr L0835
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1070 leax >u02AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1071 bsr L081F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1072 leax >u02B2,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1073 os9 F$Time
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1074 leax >u02AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1075 lda #$BF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1076 sta ,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1077 lda #$02
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1078 sta $08,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1079 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1080 ldb #$40
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1081 std $0B,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1082 ldb <u002A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1083 decb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1084 stb <$14,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1085 ldd <u0032
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1086 addd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1087 std <$11,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1088 bsr L0827
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1089 bsr L081B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1090 ldd #$2EAE
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1091 std ,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1092 stb <$20,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1093 ldd <u0032
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1094 std <$1E,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1095 std <$3E,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1096 bsr L0827
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1097 bsr L081B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1098 ldb <u002A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1099 L080F decb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1100 bne L0813
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1101 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1102 L0813 pshs b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1103 bsr L0827
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1104 puls b
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1105 bra L080F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1106 L081B leax >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1107 L081F clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1108 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1109 L0821 sta d,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1110 decb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1111 bne L0821
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1112 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1113 L0827 lda <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1114 ldy #$0100
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1115 os9 I$Write
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1116 lbcs Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1117 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1118 L0835 clra
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1119 ldb <u0032
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1120 tfr d,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1121 lda <u0033
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1122 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1123 tfr d,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1124 L083F lda <PathNm
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1125 os9 I$Seek
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1126 ldu <u0000
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1127 lbcs Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1128 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1129 L084B ldx <u002F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1130 lda <u0031
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1131 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1132 addd #$0100
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1133 tfr d,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1134 bcc L083F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1135 leax $01,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1136 bra L083F
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1137 ldd ,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1138 leau >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1139 leax >L08A3,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1140 ldy #$2F20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1141 L0869 leay >$0100,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1142 subd ,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1143 bcc L0869
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1144 addd ,x++
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1145 pshs b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1146 ldd ,x
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1147 tfr y,d
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1148 beq L0891
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1149 ldy #$2F30
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1150 cmpd #$3020
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1151 bne L088B
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1152 ldy #$2F20
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1153 tfr b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1154 L088B sta ,u+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1155 puls b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1156 bra L0869
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1157 L0891 sta ,u+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1158 lda #$0D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1159 sta ,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1160 ldu <u0000
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1161 leas $02,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1162 leax >u00AF,u
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1163 lbsr L0272
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1164 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1165 L08A3
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1166 fdb $2710,$03e8,$0064,$000a,$0001,$0000
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1167
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1168 L08AF ldd #$0000
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1169 L08B2 bsr L08C2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1170 bcs L08BC
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1171 bne L08B2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1172 std <u001D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1173 bne L08C1
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1174 L08BC ldd #$0001
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1175 std <u001D
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1176 L08C1 rts
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1177 L08C2 pshs y,b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1178 ldb ,x+
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1179 subb #$30
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1180 cmpb #$0A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1181 bcc L08E0
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1182 lda #$00
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1183 ldy #$000A
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1184 L08D2 addd ,s
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1185 bcs L08DE
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1186 leay -$01,y
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1187 bne L08D2
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1188 std ,s
203
7dea3d77ba0b Used symbolics for andcc/orcc
boisy
parents: 200
diff changeset
1189 andcc #^Zero
162
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1190 L08DE puls pc,y,b,a
203
7dea3d77ba0b Used symbolics for andcc/orcc
boisy
parents: 200
diff changeset
1191 L08E0 orcc #Zero
162
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1192 puls pc,y,b,a
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1193
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1194 ErrExit lda #$02
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1195 os9 F$PErr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1196 leax <HelpMsg,pcr
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1197 ldy #$0154
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1198 lda #$02
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1199 os9 I$WritLn
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1200 clrb
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1201 os9 F$Exit
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1202
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1203 Title fcb C$LF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1204 fcc "DRAGON FORMAT UTILITY"
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1205 HelpCR fcb C$CR
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1206 HelpMsg fcc "Use: FORMAT /devname <opts>"
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1207 fcb C$LF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1208 fcc " opts: R - Ready"
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1209 fcb C$LF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1210 fcc / "disk name"/
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1211 fcb C$LF,C$CR
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1212 FmtMsg fcc "Formatting drive "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1213 FmtMLen equ *-FmtMsg
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1214
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1215 Query fcc "y (yes) or n (no)"
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1216 fcb C$LF
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1217 fcc "Ready? "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1218 QueryLen equ *-Query
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1219
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1220 Abort fcc "ABORT Interleave value out of range"
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1221 fcb C$CR
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1222 DName fcc "Disk name: "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1223 DNameLen equ *-DName
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1224 fcc "How many Cylinders (Tracks?) : "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1225 BadSect fcc "Bad system sector, "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1226 Aborted fcc "FORMAT ABORTED"
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1227 fcb C$CR
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1228 ClustMsg fcc "Cluster size mismatch"
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1229 fcb C$CR
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1230 fcc "Double density? "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1231 TPIChg fcc "Change from 96tpi to 48tpi? "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1232 DSided fcc "Double sided? "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1233 NumGood fcc "Number of good sectors: $"
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1234 NumGoodLen equ *-NumGood
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1235 Both fcc "Both PHYSICAL and LOGICAL format? "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1236 BothLen equ *-Both
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1237 Verify fcc "Physical Verify desired? "
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1238 VerifyLen equ *-Verify
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1239
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1240 emod
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1241 eom equ *
3310d08dd353 Analysis of format.
roug
parents:
diff changeset
1242 end