annotate level2/modules/vdgint.asm @ 68:8ffca4533723

Merged boot_kenton and boot_tc3 into boot_scsi
author boisy
date Wed, 01 May 2002 12:15:18 +0000
parents 6641a883d6b0
children 02a8ba2b9092
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 nam VDGInt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 ttl CoCo 3 VDG I/O module
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * Disassembled 98/09/31 12:15:57 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 tylg set Systm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12 rev set $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 edition set 3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 u0000 rmb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 fcb $07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 name fcs /VDGInt/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 start lbra L0076
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 lbra L016A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 lbra L045F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 lbra L0522
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 lbra L004A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 cmpa #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 bne L0035
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 ldb <$37,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 lbne L066E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 ldd <$44,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 lbra L0396
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 L0035 cmpa #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 beq L003B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 L003B ldx <$00A5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 leax <$54,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 ldd ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 ldd $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 L004A pshs u,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 L004E pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 lbsr L063B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 lbsr L065B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 bne L004E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 clr <$1E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 ldd #$0200
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 ldu <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 beq L0069
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 os9 F$SRtMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 L0069 ldb #$E1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 leax <$1F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 L006F sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 bne L006F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 bra L00D5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 L0076 pshs u,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 bsr L00D8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 lda #$AF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 sta <$41,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 ldd #768
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 os9 F$SRqMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 tfr u,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 tfr u,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 bita #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 beq L0095
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 leax >$0100,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 bra L0099
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 L0095 leau >$0200,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 L0099 ldd #256
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 os9 F$SRtMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 stx <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 stx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 leax >$0200,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 stx <$3A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 lda #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 sta <$3E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 sta <$40,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 lbsr L02E6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 inc <$1E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 ldd <$1F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 lbsr L054C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 leax <$7C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 stx <$2F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 stx <$31,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 ldu <$00A5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 ldb <$24,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 orb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 stb <$24,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 L00D5 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 puls pc,u,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 L00D8 pshs u,y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 lda #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 sta <$7B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 leax >L011A,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 leay <$6B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 L00E6 leau >L00F8,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 L00EA pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 leau >L012A,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 ldb #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 L00F2 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 jmp [,s]
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 L00F6 lda a,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 L00F8 sta ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 bne L00F2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 L00FF puls pc,u,y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 L0101 pshs u,y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 lda >$100A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 beq L00FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 leax <$6B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 ldy #$FFB0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 lda >$1009
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 bne L00E6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 leau >L00F6,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 bra L00EA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 L011A fdb $1236,$0924,$3f1b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 fdb $2d26,$0012,$003f,$0012,$0026
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 L012A fdb $000c,$020e,$0709
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 fdb $0510,$1c2c,$0d1d,$0b1b,$0a2b,$2211,$1221,$0301
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 fdb $1332,$1e2d,$1f2e,$0f3c,$2f3d,$1708,$1506,$2716
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 fdb $2636,$192a,$1a3a,$1829,$2838,$1404
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 fcb $23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 L015D leau $05,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 puls y,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 rti
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 leay -$02,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 pulu y,x,dp,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 swi
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 fcb $30 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 L016A cmpa #$0E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 bls L01CF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 cmpa #$1B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 lbeq L01FA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 cmpa #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 lbls L01CD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 tsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 bmi L01BA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 ldb <$35,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 beq L019A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 cmpa #$5E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 bne L018A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 lda #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 bra L01BA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 L018A cmpa #$5F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 bne L0192
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 lda #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 bra L01BA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 L0192 cmpa #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 bne L01AA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 lda #$67
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 bra L01BA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 L019A cmpa #$7C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 bne L01A2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 lda #$21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 bra L01BA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 L01A2 cmpa #$7E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 bne L01AA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 lda #$2D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 bra L01BA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 L01AA cmpa #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 bcs L01B2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 suba #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 bra L01BA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 L01B2 cmpa #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 bcs L01B8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 suba #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 L01B8 eora #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 L01BA ldx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 stx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 cmpx <$3A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 bcs L01CA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 lbsr L0273
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 L01CA lbsr L029C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 L01CD clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 L01CF leax >L01D8,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 ldd a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 jmp d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 L01D8 fdb $fff5,$011b,$0160,$0199
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 fdb $018b,$012f,$00fc,$fff5,$00ee,$01ab,$00d5,$010a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 fdb $010e,$00bb,$01bc,$53c6,$f539
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 L01FA ldx <$2F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 cmpa #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 bne L0209
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 lbsr L00D8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 lbra L026E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 L0209 cmpa #$31
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 lbeq L0258
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 cmpa #$21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 lbne L01CD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 ldx $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 ldx <$0050
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 cmpa >$00AC,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 beq L0249
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 ldb >$00AC,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 sta >$00AC,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 bsr L024A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 ldy $02,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 ldx <$00A5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 cmpy <$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 bne L0248
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 inc <$23,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 ldy <$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 sty <$22,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 stu <$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 L0248 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 L0249 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 L024A leax <$30,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 lda b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 ldx <$0088
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 os9 F$Find64
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 ldy $03,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 L0258 leax <L0260,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 lbra L0457
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 L0260 ldx <$2F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 ldd ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 anda #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 andb #$3F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 leax <$6B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 stb a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 L026E inc <$23,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 L0273 ldx <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 leax <$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 L0279 ldd ,x++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 std <-$22,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 cmpx <$3A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 bcs L0279
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 leax <-$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 stx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 ldb #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 L028D stb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 bne L028D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 L0293 bsr L02FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 tfr x,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 andb #$E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 stb <$3D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 L029C ldx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 sta <$3E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 lda <$41,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 beq L02AB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 L02A9 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 L02AB clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 bsr L02FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 leax <$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 cmpx <$3A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 bcs L02C1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 leax <-$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 lbsr L0273
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 L02C1 stx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 bra L029C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 bsr L02FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 cmpx <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 bls L02D2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 leax -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 stx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 L02D2 bra L029C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 bsr L02FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 cmpx <$3A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 bcc L02E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 stx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 L02E0 bra L029C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 bsr L02FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 bra L02E8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 L02E6 bsr L02F3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 L02E8 lda #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 L02EA sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 cmpx <$3A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 bcs L02EA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 bra L029C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 L02F3 bsr L02FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 ldx <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 stx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 bra L029C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 L02FD ldx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 lda <$3E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 lda <$7C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 suba #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 bne L0313
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
317 sta <$41,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
318 bra L02FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 L0313 cmpa #$0B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
320 bge L02AB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 cmpa #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
322 bgt L031F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 lda #$AF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
324 bra L032F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 L031F cmpa #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 bgt L0327
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327 lda #$A0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 bra L032F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 L0327 subb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
331 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
333 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334 ora #$8F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
335 L032F sta <$41,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
336 ldx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
337 lbra L02A9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
338 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
339 leax <L0340,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
340 lbra L0457
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
341 L0340 bsr L02FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
342 ldb <$7D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
343 subb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
344 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
345 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
346 addb <$7C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
347 adca #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
348 subd #$0020
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
349 addd <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
350 cmpd <$3A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
351 lbcc L02AB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
352 std <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
353 lbra L029C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
354 bsr L02FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
355 tfr x,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
356 andb #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
357 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
358 ldb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
359 subb ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
360 bra L0376
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
361 lbsr L0293
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
362 ldb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
363 L0376 lda #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
364 ldx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
365 L037B sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
366 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
367 bne L037B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
368 lbra L029C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
369 lbsr L02FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
370 leax <-$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
371 cmpx <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
372 bcs L0391
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
373 stx <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
374 L0391 lbra L029C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
375 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
376 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
377 L0396 pshs x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
378 stb <$45,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
379 clr <$37,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
380 lda >PIA1Base+2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
381 anda #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
382 ora ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
383 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
384 bne L03AD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
385 anda #$EF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
386 ora <$35,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
387 L03AD sta <$44,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
388 tst >$100A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
389 lbeq L0440
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
390 sta >PIA1Base+2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
391 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
392 bne L03CB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
393 stb >$FFC0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
394 stb >$FFC2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
395 stb >$FFC4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
396 lda <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
397 bra L03D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
398 L03CB stb >$FFC0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
399 stb >$FFC3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
400 stb >$FFC5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
401 lda <$47,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
402 L03D7 lbsr L0101
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
403 ldb <$0090
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
404 orb #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
405 stb <$0090
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
406 stb >$FF90
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
407 ldb <$0098
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
408 andb #$78
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
409 stb >$FF98
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
410 stb <$0098
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
411 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
412 stb >$FF99
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
413 stb <$0099
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
414 stb >BordReg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
415 stb <$009A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
416 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
417 andb #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
418 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
419 anda #$E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
420 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
421 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
422 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
423 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
424 ldx <$004C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
425 leax a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
426 ldb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
427 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
428 andb #$38
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
429 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
430 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
431 stb <$009D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
432 stb >$FF9D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
433 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
434 stb <$009E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
435 stb >$FF9E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
436 ldb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
437 stb <$009C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
438 stb >$FF9C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
439 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
440 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
441 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
442 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
443 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
444 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
445 ora ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
446 ldb #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
447 ldx #$FFC6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
448 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
449 L0430 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
450 bcs L0439
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
451 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
452 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
453 bra L043D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
454 L0439 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
455 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
456 L043D decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
457 bne L0430
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
458 L0440 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
459 puls pc,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
460 pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
461 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
462 ldb $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
463 ldx <$004E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
464 leax d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
465 puls b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
466 L044E sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
467 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
468 bne L044E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
469 puls pc,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
470 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
471 L0457 stb <$2C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
472 stx <$2D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
473 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
474 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
475 L045F ldx $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
476 cmpa #$1C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
477 beq L049B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
478 cmpa #$26
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
479 beq L0477
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
480 cmpa #$25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
481 beq L04C7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
482 cmpa #$91
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
483 lbeq L0484
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
484 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
485 ldb #$D0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
486 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
487 L0477 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
488 ldb <$42,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
489 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
490 ldb <$43,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
491 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
492 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
493 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
494 L0484 pshs u,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
495 leay <$6B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
496 ldu $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
497 ldx <$0050
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
498 ldb $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
499 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
500 tfr y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
501 ldy #$0010
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
502 os9 F$Move
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
503 puls pc,u,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
504 L049B ldd <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
505 anda #$E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
506 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
507 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
508 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
509 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
510 ldy <$004C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
511 ldd a,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
512 lbsr L06E1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
513 bcs L0521
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
514 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
515 ldd <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
516 anda #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
517 addd ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
518 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
519 ldd <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
520 anda #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
521 addd ,s++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
522 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
523 lda <$21,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
524 bra L051E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
525 L04C7 ldd <$3C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
526 subd <$38,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
527 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
528 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
529 andb #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
530 addb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
531 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
532 puls b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
533 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
534 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
535 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
536 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
537 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
538 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
539 andb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
540 addb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
541 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
542 ldb <$35,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
543 lda <$3E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
544 bmi L051E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
545 cmpa #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
546 bcc L0509
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
547 cmpa #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
548 bcc L050D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
549 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
550 beq L0507
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
551 cmpa #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
552 bne L04FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
553 lda #$5E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
554 bra L051E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
555 L04FF cmpa #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
556 bne L0507
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
557 lda #$5F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
558 bra L051E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
559 L0507 ora #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
560 L0509 eora #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
561 bra L051E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
562 L050D tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
563 bne L051E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
564 cmpa #$21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
565 bne L0518
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
566 lda #$7C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
567 bra L051E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
568 L0518 cmpa #$2D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
569 bne L051E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
570 lda #$7E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
571 L051E sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
572 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
573 L0521 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
574 L0522 ldx $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
575 cmpa #$28
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
576 beq L054A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
577 cmpa #$8F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
578 lbeq L05B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
579 cmpa #$8C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
580 lbeq L062F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
581 cmpa #$8E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
582 lbeq L05F3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
583 cmpa #$8B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
584 lbeq L056A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
585 cmpa #$8D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
586 lbeq L0647
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
587 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
588 ldb #$D0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
589 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
590 L054A ldd $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
591 L054C ldb #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
592 bita #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
593 bne L0553
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
594 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
595 L0553 stb <$35,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
596 ldd #$2010
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
597 inc <$23,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
598 std <$42,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
599 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
600 L0560 fdb $1402,$1502,$1602
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
601 fdb $1d04,$1e04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
602 L056A ldb $05,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
603 cmpb #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
604 bhi L05B5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
605 lda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
606 pshs y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
607 lda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
608 ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
609 leay <$4D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
610 lbsr L06C7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
611 bcs L05AF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
612 sta ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
613 ldb $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
614 stb $02,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
615 leax >L0560,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
616 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
617 leax b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
618 ldb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
619 stb $01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
620 lbsr L06DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
621 bcs L05AF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
622 stb ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
623 lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
624 ldy $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
625 tst $04,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
626 bne L05A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
627 lbsr L06E3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
628 bcs L05AF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
629 L05A6 ldx $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
630 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
631 ldb ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
632 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
633 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
634 L05AF leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
635 puls pc,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
636 L05B3 leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
637 L05B5 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
638 ldb #$BB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
639 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
640 L05B9 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
641 ldb $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
642 bmi L05C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
643 bsr L05DE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
644 bcs L05DC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
645 lbsr L06FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
646 bcs L05DC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
647 L05C8 ldx ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
648 ldb $07,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
649 bmi L05DB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
650 bsr L05DE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
651 bcs L05DC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
652 lbsr L06E3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
653 bcs L05DC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
654 ldx ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
655 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
656 L05DB clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
657 L05DC puls pc,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
658 L05DE beq L05F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
659 cmpb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
660 bhi L05F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
661 bsr L063B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
662 beq L05F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
663 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
664 beq L05F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
665 lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
666 andcc #^Carry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
667 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
668 L05F1 bra L05B5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
669 L05F3 ldd $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
670 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
671 cmpd #$0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
672 bhi L05B3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
673 leax >L0560,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
674 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
675 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
676 lda b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
677 sta ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
678 ldx $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
679 bsr L061B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
680 bcs L05B3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
681 lda ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
682 cmpa $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
683 bhi L05B3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
684 lda $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
685 sta $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
686 leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
687 bra L0633
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
688 L061B ldd $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
689 bmi L05B5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
690 beq L0633
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
691 cmpd #$0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
692 bgt L05B5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
693 bsr L063B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
694 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
695 beq L05B5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
696 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
697 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
698 L062F bsr L061B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
699 bcs L063A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
700 L0633 stb <$37,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
701 inc <$23,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
702 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
703 L063A rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
704 L063B pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
705 leax <$4A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
706 lda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
707 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
708 leax b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
709 puls pc,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
710 L0647 tst $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
711 bne L05F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
712 ldb $07,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
713 cmpb <$37,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
714 beq L05F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
715 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
716 lbsr L05DE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
717 bcs L05F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
718 lbsr L06FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
719 L065B lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
720 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
721 beq L066D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
722 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
723 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
724 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
725 tfr d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
726 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
727 os9 F$DelRAM
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
728 L066D rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
729 L066E cmpb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
730 bhi L06C6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
731 bsr L063B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
732 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
733 beq L06C6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
734 ldb $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
735 cmpb #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
736 bhi L06C6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
737 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
738 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
739 leax >L0560,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
740 ldb b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
741 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
742 stb >$FF99
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
743 stb >$0099
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
744 lda >$0090
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
745 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
746 sta >$0090
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
747 sta >$FF90
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
748 lda >$0098
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
749 ora #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
750 anda #$F8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
751 sta >$0098
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
752 sta >$FF98
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
753 clr >$009A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
754 clr >BordReg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
755 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
756 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
757 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
758 sta >$009D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
759 sta >$FF9D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
760 clr >$009E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
761 clr >$FF9E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
762 clr >$009C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
763 clr >$FF9C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
764 lbsr L0101
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
765 L06C6 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
766 L06C7 clr ,-s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
767 inc ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
768 L06CB tst ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
769 beq L06D9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
770 leay b,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
771 inc ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
772 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
773 bne L06CB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
774 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
775 ldb #$CB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
776 L06D9 puls pc,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
777 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
778 L06DD os9 F$AlHRAM
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
779 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
780 L06E1 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
781 L06E3 pshs u,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
782 bsr L0710
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
783 bcc L06F9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
784 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
785 ldb $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
786 tfr d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
787 ldb ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
788 os9 F$MapBlk
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
789 stb $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
790 tfr u,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
791 bcs L06FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
792 L06F9 leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
793 puls pc,u,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
794 L06FD puls pc,u,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
795 L06FF pshs y,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
796 bsr L0710
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
797 bcs L070E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
798 ldd #$333E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
799 L0708 std ,x++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
800 dec ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
801 bne L0708
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
802 L070E puls pc,y,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
803 L0710 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
804 lda #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
805 sta $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
806 ldx <$0050
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
807 leax <$50,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
808 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
809 addb ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
810 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
811 L071F cmpd ,--x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
812 beq L072A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
813 dec $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
814 bne L071F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
815 bra L0743
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
816 L072A dec $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
817 dec ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
818 beq L0738
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
819 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
820 cmpd ,--x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
821 beq L072A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
822 bra L0743
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
823 L0738 lda $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
824 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
825 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
826 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
827 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
828 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
829 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
830 leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
831 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
832 L0743 puls b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
833 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
834 ldb #E$BPAddr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
835 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
836
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
837 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
838 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
839 end