annotate 3rdparty/drivers/sdisk/sdisk.asm @ 1163:5cbcbfd738ae

Added
author boisy
date Thu, 08 May 2003 20:50:59 +0000
parents c27957a6a705
children
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 * SDisk - D.P. Johnson floppy driver for CoCo
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 * 18 D.P. Johnson original version
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam SDisk
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl D.P. Johnson floppy driver for CoCo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 tylg set Drivr+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 rev set $02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 edition set $12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
22 maxdrv set 3
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
23
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
26 rmb DRVBEG+(DRVMEM*maxdrv)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 u0081 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 u0083 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 u0084 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u0085 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u0086 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u0087 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u0088 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u008A rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u008C rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u008D rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u008E rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 fcb $FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 name fcs /SDisk/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 fcc "Copyright 1984 D.P.Johnson"
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
46 fcb C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 fcc "ALL RIGHTS RESERVED"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 start lbra Init
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 lbra Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 lbra Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 lbra GetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 lbra SetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 lbra Term
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 Init clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 sta >D.DskTmr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 sta >u0086,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 lda #$D0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 sta >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 lbsr L0419
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 lda >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 lda #$FF
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
64 ldb #maxdrv
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 leax DRVBEG,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 L006D sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 sta <$15,x
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
68 leax <DRVMEM,x
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 bne L006D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 leax >L0235,pcr
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
72 stx >D.XNMI
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 lda #$7E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 sta >$0109
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 ldd #256
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 os9 F$SRqMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 tfr u,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 bcs L0097
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 stx >u0088,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 L0097 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 Term ldu >u0088,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 ldd #256
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 os9 F$SRtMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 L00A2 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 Read lbsr L0150
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 lda #$91
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 cmpx #$0000 LSN0?
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 bne L00D5 branch if not
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 bsr L00D5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 bcs L00A2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 tst >u0086,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 bne L00A2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 ldx $08,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 pshs y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 ldy >u0081,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 ldb #$14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 L00C2 lda b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 sta b,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 bpl L00C2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 puls pc,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 L00CC bcc L00D5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 lbsr L04D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 puls x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 L00D5 pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 bsr L00E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 puls x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 bcc L00A2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 bne L00CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 L00E0 lbsr L02A5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 bcs L00A2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 ldx $08,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 pshs y,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 ldy #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 ldb #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 stb >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 ldb #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 orb >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 stb >$FF40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 ldb #$88
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 orb >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 lbsr L041C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 tst >u0084,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 beq L012F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 L010E bita >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 bne L0125
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 leay -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 bne L010E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 L0117 lda >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 ora #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 sta >$FF40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 puls y,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 lbra L026A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 L0125 lda >$FF4B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 stb >$FF40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 bra L0125
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 L012F ldb >u008D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 L0133 bita >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 bne L0145
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 leay -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 bne L0133
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 bra L0117
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 L013E lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 bita >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 beq L013E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 L0145 lda >$FF4B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 bne L013E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 lbra L0237
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 L0150 clr >u008D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 clr >u008C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 Write bsr L0150
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 L015B lda #$91
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 L015D pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 bsr L017F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 puls x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 bcs L0171
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 tst <$28,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 bne L016F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 lbsr L026E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 bcs L0171
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 L016F clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 L0170 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 L0171 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 beq L01C1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 bcc L015D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 lbsr L04D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 puls x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 bra L015D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 L017F lbsr L02A5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 bcs L0170
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 ldx $08,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 ldb #$A0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 pshs y,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 ldy #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 stb >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 ldb #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 orb >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 stb >$FF40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 ldb #$88
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 orb >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 lbsr L041C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 tst >u0084,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 beq L01CE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 L01AD bita >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 bne L01C4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 leay -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 bne L01AD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 L01B6 lda >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 ora #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 sta >$FF40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 puls y,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 L01C1 lbra L0266
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 L01C4 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 sta >$FF4B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 stb >$FF40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 bra L01C4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 L01CE ldb >u008D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 L01D2 bita >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 bne L01E4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 leay -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 bne L01D2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 bra L01B6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 L01DD lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 L01DF bita >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 beq L01DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 L01E4 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 sta >$FF4B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 bne L01DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 bra L0237
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 L01EE pshs y,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 ldy #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 stb >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 ldb #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 orb >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 stb >$FF40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 ldb #$88
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 orb >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 lbsr L041C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 tst >u0084,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 bne L01AD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 L0215 bita >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 bne L022E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 leay -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 bne L0215
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 bra L01B6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 L0220 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 L0222 bita >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 bne L022E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 bitb >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 bne L0222
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 bra L0237
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 L022E lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 sta >$FF4B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 bra L0220
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 L0235 leas $0C,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 L0237 puls y,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 ldb >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 bitb #$FC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 beq L0260
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 bitb #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 bne L026A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 lda #$F6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 bitb #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 bne L0262
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 lda #$F2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 bitb #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 bne L0262
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 bitb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 bne L0266
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 lda #$F7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 bitb #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 bne L0262
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 lda #$F3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 bitb #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 bne L0262
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 L0260 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 L0262 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 L0266 comb
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
284 ldb #E$Write
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 L026A comb
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
287 ldb #E$Read
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 L026E pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 ldx $08,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 ldx >u0088,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 stx $08,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 ldx $04,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 lbsr L00E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 stx $08,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 bcs L02A3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 pshs u,y,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 ldy >u0088,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 tfr x,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 L0290 ldx ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 cmpx ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 bne L02A0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 leau 8,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 leay $08,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 dec ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 bne L0290
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 bra L02A1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 L02A0 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312 L02A1 puls u,y,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 L02A3 puls pc,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 L02A5 clr >u0087,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 lbsr L03C1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 tst >u008C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
317 beq L02D3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
318 ldx $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 ldd $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
320 bitb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 beq L02BE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
322 com >u0083,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 L02BE bitb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
324 beq L02C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 sta >u0084,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327 L02C8 ldd $08,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 stb >$FF4A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 ldx >u0081,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 bra L034E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
331 L02D3 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 bne L02E7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
333 tfr x,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334 ldx >u0081,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
335 cmpd #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
336 beq L0329
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
337 cmpd $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
338 bcs L02EB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
339 L02E7 comb
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
340 ldb #E$Sect
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
341 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
342 L02EB subd <$2B,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
343 bcc L02F5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
344 addd <$2B,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
345 bra L0329
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
346 L02F5 clr ,-s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
347 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
348 ldb <$10,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
349 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
350 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
351 bcc L0310
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
352 L0301 com >u0083,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
353 bne L0309
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
354 inc ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
355 L0309 subd <$11,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
356 bcc L0301
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
357 bra L0317
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
358 L0310 inc ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
359 subd <$11,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
360 bcc L0310
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
361 L0317 lda <$10,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
362 bita #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
363 beq L0324
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
364 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
365 sta >u0084,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
366 L0324 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
367 addb <$12,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
368 L0329 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
369 lda <$23,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
370 bita #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
371 beq L0342
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
372 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
373 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
374 sta >u0084,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
375 lda #$15
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
376 cmpa ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
377 bcc L0342
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
378 lbsr L04BF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
379 L0342 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
380 stb >$FF4A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
381 L0347 ldb <$10,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
382 stb >u008E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
383 L034E pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
384 ldb <$15,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
385 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
386 ldb >u008E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
387 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
388 bitb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
389 beq L036B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
390 eorb <$24,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
391 bitb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
392 beq L0375
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
393 leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
394 comb
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
395 ldb #E$BTyp
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
396 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
397 L036B eorb <$24,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
398 bitb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
399 beq L0375
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
400 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
401 lsl ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
402 L0375 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
403 stb >$FF49
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
404 tst >u0087,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
405 bne L0387
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
406 ldb ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
407 cmpb <$15,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
408 beq L03A2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
409 L0387 sta <$15,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
410 sta >$FF4B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
411 ldb #$1B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
412 eorb <$22,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
413 bsr L03FA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
414 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
415 lda #$1E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
416 L0398 ldb #$B2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
417 L039A decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
418 bne L039A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
419 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
420 bne L0398
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
421 puls b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
422 L03A2 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
423 sta <$15,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
424 sta >$FF49
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
425 ldb #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
426 andb >u0083,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
427 orb >u0084,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
428 orb >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
429 stb >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
430 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
431 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
432 L03BE fcb $01,$02,$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
433 L03C1 lbsr L04F8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
434 lda <$21,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
435 cmpa #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
436 bcs L03CF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
437 comb
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
438 ldb #E$Unit
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
439 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
440 L03CF pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
441 leax >L03BE,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
442 ldb a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
443 stb >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
444 leax DRVBEG,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
445 ldb #$26
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
446 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
447 leax d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
448 cmpx >u0081,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
449 beq L03F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
450 stx >u0081,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
451 com >u0087,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
452 L03F0 clr >u0083,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
453 clr >u0084,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
454 puls pc,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
455 L03FA bsr L0417
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
456 L03FC ldb >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
457 bitb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
458 beq L041F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
459 lda #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
460 sta >$006F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
461 bra L03FC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
462 L040A lda #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
463 ora >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
464 sta >$FF40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
465 stb >$FF48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
466 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
467 L0417 bsr L040A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
468 L0419 lbsr L041C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
469 L041C lbsr L041F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
470 L041F rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
471
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
472 GetStat ldx PD.RGS,y
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
473 ldb R$B,x
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
474 cmpb #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
475 bne L046F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
476 bsr L0439
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
477 lda #$91
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
478 lbsr L00D5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
479 L042F pshs b,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
480 ldd >u008A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
481 std $08,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
482 puls pc,b,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
483 L0439 ldd $08,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
484 std >u008A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
485 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
486 sta >u008C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
487 ldx $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
488 ldd $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
489 std $08,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
490 ldd $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
491 sta >u008D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
492 stb >u008E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
493 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
494
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
495 SetStat ldx PD.RGS,y
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
496 ldb R$B,x
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
497 cmpb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
498 beq L04D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
499 cmpb #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
500 beq L0482
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
501 cmpb #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
502 beq L0473
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
503 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
504 cmpb #$81
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
505 beq L0475
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
506 cmpb #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
507 beq L047B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
508 L046F comb
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
509 ldb #E$UnkSvc
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
510 L0472 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
511 L0473 lda #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
512 L0475 sta >u0086,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
513 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
514 L047A rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
515 L047B bsr L0439
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
516 lbsr L015B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
517 bra L042F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
518 L0482 lbsr L03C1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
519 bcs L0472
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
520 lda $09,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
521 ldb <$23,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
522 bitb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
523 beq L0496
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
524 cmpa #$15
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
525 bls L0496
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
526 bsr L04BF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
527 L0496 ldb $07,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
528 ldx >u0081,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
529 stb <$10,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
530 bitb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
531 beq L04A7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
532 com >u0083,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
533 L04A7 bitb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
534 beq L04B1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
535 ldb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
536 stb >u0084,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
537 L04B1 lbsr L0347
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
538 bcs L0472
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
539 ldx $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
540 ldx $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
541 ldb #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
542 lbra L01EE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
543 L04BF pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
544 lda <$26,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
545 cmpa #$23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
546 bne L04D2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
547 lda >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
548 ora #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
549 sta >u0085,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
550 L04D2 puls pc,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
551 L04D4 lbsr L03C1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
552 bcs L047A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
553 ldx >u0081,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
554 clr <$15,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
555 lda #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
556 L04E2 ldb #$4B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
557 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
558 eorb <$22,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
559 bsr L04F5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
560 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
561 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
562 bne L04E2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
563 ldb #$0B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
564 eorb <$22,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
565 L04F5 lbra L03FA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
566 L04F8 pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
567 lda >$006F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
568 bne L050D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
569 lda #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
570 sta >$FF40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
571 ldx #$A000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
572 L0507 nop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
573 nop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
574 leax -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
575 bne L0507
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
576 L050D lda #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
577 sta >$006F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
578 puls pc,x,b,a
277
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
579
c27957a6a705 More source enhancements
boisy
parents: 0
diff changeset
580 fdb $01E9
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
581
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
582 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
583 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
584 end