annotate level1/cmds/dir.asm @ 168:3a847d2b4492

Cobbler, OS9Gen and format are all hardware dependent.
author roug
date Thu, 11 Jul 2002 18:57:35 +0000
parents 6641a883d6b0
children e9ce43cc215e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 * Dir - Show directory
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * 7 Made compliant with 1900-2155 BGP 99/05/11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam Dir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl Show directory
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * Disassembled 99/04/11 17:39:33 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 rev set $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 edition set 7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 u0000 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 u0002 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 u0003 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 u0004 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u0005 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u0006 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u0007 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u0008 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u0009 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u000A rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u000B rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u000C rmb 3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 u000F rmb 3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 u0012 rmb 29
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 u002F rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 u0030 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 u0031 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 u0032 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 u0033 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 u0035 rmb 6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 u003B rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 u003D rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 u003F rmb 530
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 name fcs /Dir/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 L0011 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 fcs " Directory of "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 L0020 fcc "."
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 L0022 fcc "@"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 WideDir fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 fcc "Owner Last modified Attributes Sector Bytecount Name"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 fcc "----- --------------- ---------- ------ --------- ----------"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 WideDirL equ *-WideDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 NrrwDir fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 fcc "Modified on Owner Name"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 fcc " Attr Sector Size"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 fcc "==============================="
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 NrrwDirL equ *-NrrwDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 start leay <u003F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 sty <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 clr <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 clr <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 clr <u0009
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 lda #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 ldb #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 std <u0007
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 pshs y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 ldb #$26
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 os9 I$GetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 bcc L0111
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 cmpb #$D0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 beq L011E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 puls y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 lbra L0258
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 L0111 cmpx #80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 beq L011E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 inc <u0009
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 lda #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 ldb #$14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 std <u0007
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 L011E puls y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 lbsr L032F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 lda ,-x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 cmpa #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 bne L012D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 leax >L0020,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 L012D stx <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 lda #$81
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 ora <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 pshs x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 os9 I$Open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 sta <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 puls x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 lbcs L0258
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 lbcs L0258
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 leay >L0011,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 lbsr L02CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 ldx <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 L0152 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 lbsr L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 cmpx ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 bcs L0152
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 lbsr L032F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 lbsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 lbsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 leax u000C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 os9 F$Time
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 leax u000F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 lbsr L0302
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 lbsr L02D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 tst <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 beq L01A3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 ora <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 leax >L0022,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 os9 I$Open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 lbcs L0258
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 sta <u0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 tst <u0009
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 bne L0196
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 leax >WideDir,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 ldy #WideDirL
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 bra L019E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 L0196 leax >NrrwDir,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 ldy #NrrwDirL
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 L019E lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 L01A3 lda <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 ldu #$0040
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 os9 I$Seek
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 lbra L0243
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 L01B5 tst <u0012
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 lbeq L0243
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 tst <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 bne L01D8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 leay <u0012,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 lbsr L02CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 L01C5 lbsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 ldb <u000B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 subb #$3F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 cmpb <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 bhi L021C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 L01D0 subb <u0007
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 bhi L01D0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 bne L01C5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 bra L0243
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 L01D8 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 lda <u0031
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 tfr d,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 ldx <u002F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 lda <u0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 os9 I$Seek
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 bcs L0258
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 leax <u0032,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 ldy #$000D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 os9 I$Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 bcs L0258
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 tst <u0009
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 bne L0221
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 ldd <u0033
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 clr <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 bsr L0263
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 lbsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 lbsr L02ED
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 lbsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 lbsr L02B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 lbsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 lbsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 bsr L025D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 bsr L026F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 leay <u0012,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 lbsr L02CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 L021C lbsr L02D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 bra L0243
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 L0221 lbsr L02ED
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 ldd <u0033
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 clr <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 bsr L0263
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 bsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 leay <u0012,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 lbsr L02CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 lbsr L02D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 lbsr L02B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 bsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 bsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 bsr L025D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 bsr L026F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 lbsr L02D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 L0243 leax <u0012,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 ldy #$0020
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 lda <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 os9 I$Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 lbcc L01B5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 cmpb #$D3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 bne L0258
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 L0258 bsr L02D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 L025D lda <u002F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 bsr L0287
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 ldd <u0030
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 L0263 bsr L0289
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 bsr L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 inc <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 bsr L028B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 bra L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 L026F ldd <u003B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 bsr L0287
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 bsr L0289
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 bsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 ldd <u003D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 bra L0263
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 L027D pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 bsr L028D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 puls pc,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 L0287 clr <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 L0289 bsr L027D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 L028B anda #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 L028D tsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 beq L0292
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 sta <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 L0292 tst <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 bne L029A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 bra L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 L029A adda #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 cmpa #$39
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 bls L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 adda #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 bra L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 L02A4 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 L02A6 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 ldx <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 stx <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 puls pc,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 L02B0 fcc "dsewrewr"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 fcb $FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 L02B9 fcb $D6,$32
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 leax <L02B0,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 L02C0 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 bcs L02C5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 lda #$2D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 L02C5 bsr L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 bpl L02C0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 L02CC lda ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 bsr L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 lda ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 bpl L02CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 L02D7 pshs y,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 lda #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 bsr L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 leax <u003F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 stx <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 ldy #$0050
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 puls pc,y,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 L02ED leax <u0035,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 cmpb #100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 blo L1900
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 subb #100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 cmpb #100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 blo L2000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 L2100 subb #100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 stb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 ldb #21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 bra PrCnty
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 L1900 stb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 ldb #19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 bra PrCnty
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 L2000 stb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 ldb #20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312 PrCnty bsr L030C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 bsr L030A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 bsr L02FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 bsr L02FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 bsr L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
317 bsr L030A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
318 bsr L030A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 bra L02A4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
320 L02FE lda #$2F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 bra L0308
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
322 L0302 bsr L030A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 bsr L0306
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
324 L0306 lda #$3A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 L0308 lbsr L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 L030A ldb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327 L030C lda #$2F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 cmpb #$64
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 bcs L0313
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
331 L0313 inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 subb #$64
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
333 bcc L0313
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334 cmpa #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
335 beq L031E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
336 lbsr L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
337 L031E lda #$3A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
338 L0320 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
339 addb #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
340 bcc L0320
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
341 lbsr L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
342 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
343 adda #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
344 lbra L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
345 L032F ldd ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
346 cmpa #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
347 beq L032F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
348 cmpa #$2C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
349 beq L032F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
350 eora #$45
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
351 anda #$DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
352 bne L0347
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
353 cmpb #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
354 bcc L0347
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
355 inc <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
356 bra L032F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
357 L0347 lda -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
358 eora #$58
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
359 anda #$DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
360 bne L0359
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
361 cmpb #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
362 bcc L0359
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
363 lda #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
364 sta <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
365 bra L032F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
366 L0359 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
367
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
368 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
369 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
370 end