annotate level1/modules/kbvdio.asm @ 1071:853a796a1bcd

Removed logbook
author boisy
date Mon, 31 Mar 2003 14:10:56 +0000
parents c93ecc262253
children 86af8d633dce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1 ********************************************************************
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
2 * KBVDIO - keyboard/video driver
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
3 *
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
4 * $Id$
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
5 *
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
7 * ------------------------------------------------------------------
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
8 * - Original Dragon Data distribution version
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
9
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
10 nam KBVDIO
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
11 ttl os9 device driver
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
12
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
13 * Disassembled 02/04/21 22:37:57 by Disasm v1.6 (C) 1988 by RML
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
14
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
15 ifp1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
16 use defsfile
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
17 endc
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
18
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
19 tylg set Drivr+Objct
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
20 atrv set ReEnt+rev
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
21 rev set $01
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
22 edition set 4
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
23
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
25
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
26 u0000 rmb 2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
27 u0002 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
28 u0003 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
29 u0004 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
30 u0005 rmb 4
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
31 u0009 rmb 2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
32 u000B rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
33 u000C rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
34 u000D rmb 11
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
35 u0018 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
36 u0019 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
37 u001A rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
38 u001B rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
39 u001C rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
40 u001D rmb 2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
41 u001F rmb 2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
42 u0021 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
43 u0022 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
44 u0023 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
45 u0024 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
46 u0025 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
47 u0026 rmb 2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
48 u0028 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
49 u0029 rmb 2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
50 u002B rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
51 u002C rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
52 u002D rmb 2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
53 u002F rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
54 u0030 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
55 u0031 rmb 2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
56 u0033 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
57 u0034 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
58 u0035 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
59 u0036 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
60 u0037 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
61 u0038 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
62 u0039 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
63 u003A rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
64 u003B rmb 2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
65 u003D rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
66 u003E rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
67 u003F rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
68 u0040 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
69 u0041 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
70 u0042 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
71 u0043 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
72 u0044 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
73 u0045 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
74 u0046 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
75 u0047 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
76 u0048 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
77 u0049 rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
78 u004A rmb 1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
79 u004B rmb 10
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
80 u0055 rmb 26
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
81 u006F rmb 91
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
82 size equ .
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
83 fcb $07
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
84
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
85 name fcs /KBVDIO/
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
86 fcb edition
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
87
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
88 start lbra Init
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
89 lbra Read
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
90 lbra Write
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
91 lbra GetStat
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
92 lbra SetStat
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
93 lbra Term
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
94
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
95 Init lbsr L02BA
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
96 lbra L002D
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
97 L002D pshs cc
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
98 orcc #$10
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
99 stu >D.KbdSta
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
100 ldd >D.IRQ
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
101 std >D.AltIRQ
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
102 leax >L00B0,pcr
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
103 stx >D.IRQ
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
104 ldx #$FF00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
105 stx <u003B,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
106 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
107 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
108 std <u0048,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
109 sta $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
110 sta ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
111 sta $03,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
112 comb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
113 stb <u003D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
114 stb $02,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
115 stb <u003F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
116 stb <u0040,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
117 stb <u0041,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
118 lda #$34
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
119 sta $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
120 lda #$3F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
121 sta $03,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
122 lda $02,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
123 puls pc,cc
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
124 ldb #$F5
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
125 orcc #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
126 rts
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
127 GetStat cmpa #$01
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
128 bne L0082
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
129 lda <u0049,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
130 suba <u0048,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
131 bne L00AE
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
132 ldb #$F6
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
133 bra L009A
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
134 L0082 cmpa #$06
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
135 beq L00AE
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
136 cmpa #$12
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
137 lbeq L04E0+4
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
138 cmpa #$13
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
139 lbeq L085F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
140 cmpa #$1C
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
141 lbeq L04CD
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
142
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
143 SetStat ldb #E$UnkSvc
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
144 L009A orcc #Carry
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
145 rts
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
146
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
147 Term pshs cc
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
148 orcc #$10
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
149 ldx >D.AltIRQ
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
150 stx >D.IRQ
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
151 puls pc,cc
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
152
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
153 L00A9 incb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
154 cmpb #$7F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
155 bls L00AF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
156 L00AE clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
157 L00AF rts
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
158 L00B0 ldu >D.KbdSta
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
159 ldx <u003B,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
160 lda $03,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
161 bmi L00BE
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
162 jmp [>D.SvcIRQ]
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
163 L00BE lda $02,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
164 lda #$FF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
165 sta $02,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
166 lda ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
167 coma
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
168 anda #$03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
169 bne L00D4
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
170 clr $02,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
171 lda ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
172 coma
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
173 anda #$7F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
174 bne L00F1
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
175 L00D4 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
176 coma
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
177 sta <u003F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
178 sta <u0040,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
179 sta <u0041,u
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
180 L00DF lda >D.DskTmr
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
181 beq L00ED
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
182 deca
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
183 sta >D.DskTmr
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
184 bne L00ED
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
185 sta >$FF48
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
186 L00ED jmp [>D.AltIRQ]
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
187 L00F1 bsr L013F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
188 bmi L00DF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
189 sta <u0047,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
190 cmpa #$1F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
191 bne L0101
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
192 com <u003D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
193 bra L00DF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
194 L0101 ldb <u0048,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
195 leax <u004A,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
196 abx
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
197 bsr L00A9
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
198 cmpb <u0049,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
199 beq L0112
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
200 stb <u0048,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
201 L0112 sta ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
202 beq L0132
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
203 cmpa u000D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
204 bne L0122
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
205 ldx u0009,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
206 beq L0132
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
207 sta $08,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
208 bra L0132
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
209 L0122 ldb #$03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
210 cmpa u000B,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
211 beq L012E
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
212 ldb #$02
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
213 cmpa u000C,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
214 bne L0132
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
215 L012E lda u0003,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
216 bra L0136
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
217 L0132 ldb #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
218 lda u0005,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
219 L0136 beq L013B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
220 os9 F$Send
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
221 L013B clr u0005,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
222 bra L00DF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
223 L013F clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
224 sta <u003E,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
225 sta <u0045,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
226 sta <u0046,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
227 coma
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
228 sta <u0042,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
229 sta <u0043,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
230 sta <u0044,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
231 deca
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
232 sta $02,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
233 L0156 lda ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
234 coma
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
235 anda #$7F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
236 beq L0169
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
237 ldb #$FF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
238 L015F incb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
239 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
240 bcc L0165
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
241 bsr L01AF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
242 L0165 cmpb #$06
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
243 bcs L015F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
244 L0169 inc <u003E,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
245 orcc #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
246 rol $02,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
247 bcs L0156
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
248 lbsr L01F8
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
249 bmi L01AE
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
250 suba #$1B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
251 bcc L0191
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
252 adda #$1B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
253 ldb <u0046,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
254 bne L0190
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
255 adda #$40
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
256 ldb <u0045,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
257 eorb <u003D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
258 andb #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
259 bne L0190
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
260 adda #$20
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
261 L0190 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
262 L0191 ldb #$03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
263 mul
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
264 lda <u0045,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
265 beq L019C
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
266 incb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
267 bra L01A3
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
268 L019C lda <u0046,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
269 beq L01A3
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
270 addb #$02
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
271 L01A3 pshs x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
272 leax >L023E,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
273 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
274 lda d,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
275 puls x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
276 L01AE rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
277 L01AF pshs b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
278 cmpb #$06
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
279 beq L01BF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
280 cmpb #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
281 bhi L01BD
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
282 addb #$04
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
283 bra L01BF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
284 L01BD subb #$02
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
285 L01BF lslb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
286 lslb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
287 lslb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
288 addb <u003E,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
289 cmpb #$31
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
290 bne L01CE
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
291 inc <u0046,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
292 puls pc,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
293 L01CE cmpb #$37
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
294 bne L01D7
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
295 com <u0045,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
296 puls pc,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
297 L01D7 pshs x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
298 leax <u0042,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
299 bsr L01E2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
300 puls x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
301 puls pc,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
302 L01E2 pshs a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
303 lda ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
304 bpl L01EC
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
305 stb ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
306 puls pc,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
307 L01EC lda $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
308 bpl L01F4
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
309 stb $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
310 puls pc,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
311 L01F4 stb $02,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
312 puls pc,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
313 L01F8 pshs y,x,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
314 leax <u003F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
315 ldb #$03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
316 pshs b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
317 L0201 leay <u0042,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
318 ldb #$03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
319 lda ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
320 bmi L021D
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
321 L020A cmpa ,y
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
322 bne L0214
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
323 clr ,y
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
324 com ,y
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
325 bra L021D
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
326 L0214 leay $01,y
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
327 decb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
328 bne L020A
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
329 lda #$FF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
330 sta ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
331 L021D leax $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
332 dec ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
333 bne L0201
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
334 leas $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
335 leax <u0042,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
336 lda #$03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
337 L022A ldb ,x+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
338 bpl L0235
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
339 deca
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
340 bne L022A
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
341 orcc #$08
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
342 puls pc,y,x,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
343 L0235 leax <u003F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
344 bsr L01E2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
345 tfr b,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
346 puls pc,y,x,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
347 L023E inc <u001C
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
348 sync
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
349 dec <u001A
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
350 nop
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
351 lsl <u0018
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
352 fcb $10
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
353 rol <u0019
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
354 fcb $11
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
355 bra L026C
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
356 bra L027D+1
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
357 leax -$01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
358 leay $01,y
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
359 inc >$3222
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
360 neg <u0033
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
361 bls L02D6+1
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
362 pshs y,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
363 neg <u0035
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
364 bcs L025F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
365 L025F pshu y,b,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
366 neg <u0037
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
367 beq L02C2+1
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
368 fcb $38 8
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
369 bvc L02C2+1
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
370 rts
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
371 bvs L02C7+1
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
372 abx
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
373 L026C bpl L026E
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
374 L026E rti
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
375 bmi L0271
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
376 L0271 bge L02AF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
377 tim #$2D,>$3D5F
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
378 bgt L02B6+1
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
379 tst >$2F3F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
380 incb
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
381 L027D tst <u000D
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
382 tst <u0000
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
383 neg <u0000
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
384 eim #$03,<u001B
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
385
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
386 Read leax <u004A,u
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
387 ldb <u0049,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
388 orcc #$10
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
389 cmpb <u0048,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
390 beq L029F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
391 abx
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
392 lda ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
393 lbsr L00A9
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
394 stb <u0049,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
395 andcc #$EE
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
396 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
397 L029F lda u0004,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
398 sta u0005,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
399 andcc #$EF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
400 ldx #$0000
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
401 os9 F$Sleep
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
402 clr u0005,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
403 ldx <u004B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
404 L02AF ldb <$36,x
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
405 beq Read
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
406 cmpb #$04
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
407 L02B6 bcc Read
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
408 coma
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
409 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
410 L02BA pshs y,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
411 clr <u0025,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
412 clr <u002C,u
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
413 L02C2 pshs u
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
414 ldd #$0300
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
415 L02C7 os9 F$SRqMem
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
416 tfr u,d
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
417 tfr u,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
418 bita #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
419 beq L02D8
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
420 leax >$0100,x
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
421 L02D6 bra L02DC
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
422 L02D8 leau >$0200,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
423 L02DC ldd #$0100
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
424 os9 F$SRtMem
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
425 puls u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
426 stx <u001D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
427 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
428 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
429 bsr L0303
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
430 stx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
431 leax >$0200,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
432 stx <u001F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
433 lbsr L0459
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
434 lda #$60
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
435 sta <u0023,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
436 sta <u002B,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
437 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
438 puls pc,y,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
439 L0303 pshs x,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
440 lda >$FF22
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
441 anda #$07
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
442 ora ,s+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
443 sta >$FF22
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
444 tstb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
445 bne L0320
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
446 stb >$FFC0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
447 stb >$FFC2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
448 stb >$FFC4
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
449 lda <u001D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
450 bra L032C
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
451 L0320 stb >$FFC0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
452 stb >$FFC3
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
453 stb >$FFC5
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
454 lda <u002D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
455 L032C ldb #$07
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
456 ldx #$FFC6
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
457 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
458 L0332 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
459 bcs L033B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
460 sta ,x+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
461 leax $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
462 bra L033F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
463 L033B leax $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
464 sta ,x+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
465 L033F decb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
466 bne L0332
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
467 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
468 puls pc,x
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
469 Write ldb <u0025,u
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
470 bne L0387
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
471 tsta
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
472 bmi L0371
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
473 cmpa #$1F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
474 bls L03BC
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
475 cmpa #$7C
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
476 bne L0359
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
477 lda #$61
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
478 bra L0371
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
479 L0359 cmpa #$7E
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
480 bne L0361
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
481 lda #$6D
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
482 bra L0371
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
483 L0361 cmpa #$60
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
484 bcs L036B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
485 suba #$20
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
486 ora #$40
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
487 bra L0371
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
488 L036B cmpa #$40
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
489 bcs L0371
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
490 suba #$40
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
491 L0371 ldx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
492 eora #$40
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
493 sta ,x+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
494 stx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
495 cmpx <u001F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
496 bcs L0382
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
497 bsr L039C
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
498 L0382 lbsr L0415
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
499 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
500 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
501 L0387 cmpb #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
502 beq L0394
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
503 clr <u0025,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
504 sta <u0029,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
505 jmp [<u0026,u]
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
506 L0394 sta <u0028,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
507 inc <u0025,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
508 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
509 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
510 L039C ldx <u001D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
511 leax <$20,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
512 L03A2 ldd ,x++
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
513 std <-$22,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
514 cmpx <u001F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
515 bcs L03A2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
516 leax <-$20,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
517 stx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
518 lda #$20
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
519 ldb #$60
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
520 L03B6 stb ,x+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
521 deca
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
522 bne L03B6
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
523 L03BB rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
524 L03BC cmpa #$1B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
525 bcc L03BB
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
526 cmpa #$10
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
527 bcs L03CE
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
528 ldb <u002C,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
529 bne L03CE
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
530 ldb #$F6
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
531 orcc #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
532 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
533 L03CE leax <L03D6,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
534 lsla
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
535 ldd a,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
536 jmp d,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
537 L03D6 stu >$C400
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
538 cmpa <u0000
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
539 fcb $A5
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
540 fcb $00 bita $00,x
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
541 subb <$FF
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
542 andb #$FF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
543 andb #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
544 eim #$FF,>$C400
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
545 fcb $67 asr $00,x
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
546 fcb $00
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
547 fcb $E2 sbcb $00,x
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
548 fcb $00
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
549 fcb $4E N
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
550 stu >$C400
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
551 subd #$0036
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
552 neg <$00F2
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
553 oim #$4A,<u0002
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
554 bgt L03FB
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
555 rol <u0002
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
556 L03FB sex
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
557 aim #$4E,<u0002
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
558 rolb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
559 aim #$72,<u0002
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
560 stu <u0002
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
561 orb <u0002
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
562 adca #$02
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
563 anda #$03
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
564 fcb $A8
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
565 L040C fcb $8D
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
566 fcb $64
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
567 fcb $1F
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
568 fcb $10
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
569 andb #$E0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
570 stb <u0022,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
571 L0415 ldx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
572 lda ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
573 sta <u0023,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
574 lda #$20
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
575 sta ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
576 andcc #$FE
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
577 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
578 bsr L0472
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
579 leax <$20,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
580 cmpx <u001F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
581 bcs L0438
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
582 leax <-$20,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
583 pshs x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
584 lbsr L039C
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
585 puls x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
586 L0438 stx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
587 bra L0415
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
588 bsr L0472
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
589 cmpx <u001D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
590 bls L0449
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
591 leax -$01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
592 stx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
593 L0449 bra L0415
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
594 bsr L0472
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
595 leax $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
596 cmpx <u001F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
597 bcc L0457
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
598 stx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
599 L0457 bra L0415
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
600 L0459 bsr L0467
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
601 lda #$60
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
602 L045D sta ,x+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
603 cmpx <u001F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
604 bcs L045D
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
605 lbra L0415
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
606 L0467 bsr L0472
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
607 ldx <u001D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
608 stx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
609 lbra L0415
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
610 L0472 ldx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
611 lda <u0023,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
612 sta ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
613 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
614 leax <L0481,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
615 lbra L064B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
616 L0481 bsr L0472
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
617 ldb <u0029,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
618 subb #$20
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
619 lda #$20
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
620 mul
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
621 addb <u0028,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
622 adca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
623 subd #$0020
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
624 addd <u001D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
625 cmpd <u001F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
626 bcc L04A3
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
627 std <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
628 lbsr L0415
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
629 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
630 L04A3 lbra L0415
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
631 lbsr L040C
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
632 ldb #$20
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
633 lda #$60
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
634 ldx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
635 L04B0 sta ,x+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
636 decb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
637 bne L04B0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
638 lbra L0415
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
639 bsr L0472
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
640 leax <-$20,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
641 cmpx <u001D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
642 bcs L04C5
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
643 stx <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
644 L04C5 lbra L0415
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
645 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
646 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
647 lbra L0303
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
648 L04CD ldx $06,y
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
649 ldd <u001D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
650 std $04,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
651 ldd <u0021,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
652 std $06,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
653 ldb <u003D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
654 stb $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
655 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
656 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
657 L04E0 neg <u0055
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
658 fcb $AA ora [>$A6C8]
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
659 fcb $FF
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
660 fcb $A6
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
661 fcb $C8
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
662 bge L050E
242
7f477aec20d1 Assembles correctly
roug
parents: 241
diff changeset
663 eim #$C6,<$F6
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
664 orcc #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
665 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
666 ldd <u0034,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
667 lbsr L0684
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
668 tfr a,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
669 andb ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
670 L04F8 bita #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
671 bne L0507
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
672 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
673 lsrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
674 tst <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
675 bmi L04F8
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
676 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
677 lsrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
678 bra L04F8
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
679 L0507 pshs b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
680 ldb <u003A,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
681 andb #$FC
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
682 L050E orb ,s+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
683 ldx $06,y
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
684 stb $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
685 ldd <u0034,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
686 std $06,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
687 ldd <u002D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
688 std $04,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
689 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
690 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
691 leax <L0526,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
692 lbra L064B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
693 L0526 ldb <u002C,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
694 bne L0566
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
695 pshs u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
696 ldd #$1900
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
697 os9 F$SRqMem
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
698 tfr u,d
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
699 puls u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
700 bcs L0585
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
701 tfr a,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
702 bita #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
703 beq L0543
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
704 adda #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
705 bra L0545
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
706 L0543 addb #$18
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
707 L0545 pshs u,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
708 tfr b,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
709 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
710 tfr d,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
711 ldd #$0100
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
712 os9 F$SRtMem
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
713 puls u,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
714 bcs L0585
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
715 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
716 std <u002D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
717 addd #$1800
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
718 std <u002F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
719 inc <u002C,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
720 lbsr L0624
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
721 L0566 lda <u0029,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
722 sta <u003A,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
723 anda #$03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
724 leax >L04E0,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
725 lda a,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
726 sta <u0036,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
727 sta <u0037,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
728 lda <u0028,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
729 cmpa #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
730 bls L0586
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
731 ldb #$CB
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
732 orcc #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
733 L0585 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
734 L0586 tsta
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
735 beq L05A6
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
736 ldd #$C003
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
737 std <u0038,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
738 lda #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
739 sta <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
740 lda #$E0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
741 ldb <u0029,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
742 andb #$08
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
743 beq L059F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
744 lda #$F0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
745 L059F ldb #$03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
746 leax <L05D3,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
747 bra L05BE
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
748 L05A6 ldd #$8001
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
749 std <u0038,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
750 lda #$FF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
751 sta <u0036,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
752 sta <u0037,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
753 sta <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
754 lda #$F0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
755 ldb #$07
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
756 leax <L05D7,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
757 L05BE stb <u0033,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
758 stx <u0031,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
759 ldb <u0029,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
760 andb #$04
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
761 lslb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
762 pshs b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
763 ora ,s+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
764 ldb #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
765 lbra L0303
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
766 L05D3 subb #$30
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
767 inc <u0003
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
768 L05D7 suba #$40
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
769 bra L05EB
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
770 lsl <u0004
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
771 aim #$01,<u0030
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
772 cmpx #$0316
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
773 oim #$9C,<u006F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
774 eorb #$28
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
775 lda <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
776 L05EB bmi L05F0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
777 inc <u0028,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
778 L05F0 lbra L0566
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
779 pshs u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
780 ldu <u002D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
781 ldd #$1800
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
782 os9 F$SRtMem
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
783 puls u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
784 clr <u002C,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
785 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
786 leax <L060A,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
787 lbra L0781
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
788 L060A lda <u0029,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
789 tst <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
790 bpl L061A
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
791 ldb #$FF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
792 anda #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
793 beq L0624
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
794 bra L0625
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
795 L061A anda #$03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
796 leax >L04E0,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
797 ldb a,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
798 bra L0625
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
799 L0624 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
800 L0625 ldx <u002D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
801 L0628 stb ,x+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
802 cmpx <u002F,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
803 bcs L0628
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
804 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
805 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
806 std <u0034,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
807 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
808 L0635 ldd <u0028,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
809 cmpb #$C0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
810 bcs L063E
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
811 ldb #$BF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
812 L063E tst <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
813 bmi L0644
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
814 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
815 L0644 std <u0028,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
816 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
817 leax <L0653,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
818 L064B stx <u0026,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
819 inc <u0025,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
820 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
821 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
822 L0653 bsr L0635
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
823 std <u0034,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
824 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
825 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
826 clr <u0036,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
827 bra L065F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
828 L065F leax <L0664,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
829 bra L064B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
830 L0664 bsr L0635
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
831 std <u0034,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
832 bsr L0673
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
833 lda <u0037,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
834 sta <u0036,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
835 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
836 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
837 L0673 bsr L0684
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
838 tfr a,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
839 comb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
840 andb ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
841 stb ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
842 anda <u0036,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
843 ora ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
844 sta ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
845 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
846 L0684 pshs y,b,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
847 ldb <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
848 bpl L068C
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
849 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
850 L068C lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
851 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
852 pshs a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
853 ldb #$BF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
854 subb $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
855 lda #$20
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
856 mul
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
857 addb ,s+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
858 adca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
859 ldy <u002D,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
860 leay d,y
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
861 lda ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
862 sty ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
863 anda <u0033,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
864 ldx <u0031,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
865 lda a,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
866 puls pc,y,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
867 clr <u0036,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
868 bra L06B5
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
869 L06B5 leax <L06BA,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
870 bra L064B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
871 L06BA lbsr L0635
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
872 leas -$0E,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
873 std $0C,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
874 bsr L0684
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
875 stx $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
876 sta $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
877 ldd <u0034,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
878 bsr L0684
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
879 sta ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
880 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
881 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
882 std $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
883 lda #$BF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
884 suba <u0035,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
885 sta <u0035,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
886 lda #$BF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
887 suba <u0029,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
888 sta <u0029,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
889 lda #$FF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
890 sta $06,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
891 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
892 ldb <u0034,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
893 subb <u0028,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
894 sbca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
895 bpl L06F7
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
896 nega
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
897 negb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
898 sbca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
899 neg $06,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
900 L06F7 std $08,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
901 bne L0700
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
902 ldd #$FFFF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
903 std $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
904 L0700 lda #$E0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
905 sta $07,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
906 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
907 ldb <u0035,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
908 subb <u0029,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
909 sbca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
910 bpl L0715
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
911 nega
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
912 negb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
913 sbca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
914 neg $07,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
915 L0715 std $0A,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
916 bra L0721
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
917 L0719 sta ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
918 ldd $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
919 subd $0A,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
920 std $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
921 L0721 lda ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
922 tfr a,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
923 anda <u0036,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
924 comb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
925 andb ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
926 pshs b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
927 ora ,s+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
928 sta ,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
929 cmpx $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
930 bne L073B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
931 lda ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
932 cmpa $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
933 beq L076F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
934 L073B ldd $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
935 bpl L0749
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
936 addd $08,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
937 std $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
938 lda $07,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
939 leax a,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
940 bra L0721
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
941 L0749 lda ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
942 ldb $06,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
943 bpl L075F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
944 lsla
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
945 ldb <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
946 bmi L0756
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
947 lsla
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
948 L0756 bcc L0719
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
949 lda <u0039,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
950 leax -$01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
951 bra L0719
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
952 L075F lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
953 ldb <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
954 bmi L0766
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
955 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
956 L0766 bcc L0719
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
957 lda <u0038,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
958 leax $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
959 bra L0719
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
960 L076F ldd $0C,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
961 std <u0034,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
962 leas $0E,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
963 lda <u0037,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
964 sta <u0036,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
965 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
966 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
967 leax <L0789,pcr
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
968 L0781 stx <u0026,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
969 com <u0025,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
970 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
971 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
972 L0789 leas -$04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
973 ldb <u0029,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
974 stb $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
975 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
976 sta ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
977 addb $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
978 adca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
979 nega
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
980 negb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
981 sbca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
982 addd #$0003
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
983 std $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
984 L07A0 lda ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
985 cmpa $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
986 bcc L07D2
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
987 ldb $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
988 bsr L07E0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
989 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
990 ldb $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
991 bpl L07BA
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
992 ldb ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
993 lslb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
994 rola
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
995 lslb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
996 rola
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
997 addd #$0006
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
998 bra L07CA
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
999 L07BA dec $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1000 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1001 ldb ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1002 subb $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1003 sbca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1004 lslb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1005 rola
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1006 lslb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1007 rola
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1008 addd #$000A
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1009 L07CA addd $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1010 std $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1011 inc ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1012 bra L07A0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1013 L07D2 lda ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1014 cmpa $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1015 bne L07DC
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1016 ldb $01,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1017 bsr L07E0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1018 L07DC leas $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1019 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1020 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1021 L07E0 leas -$08,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1022 sta ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1023 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1024 std $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1025 nega
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1026 negb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1027 sbca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1028 std $06,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1029 ldb ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1030 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1031 std ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1032 nega
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1033 negb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1034 sbca #$00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1035 std $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1036 ldx $06,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1037 bsr L0829
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1038 ldd $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1039 ldx $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1040 bsr L0829
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1041 ldd ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1042 ldx $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1043 bsr L0829
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1044 ldd ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1045 ldx $06,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1046 bsr L0829
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1047 ldd $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1048 ldx ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1049 bsr L0829
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1050 ldd $02,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1051 ldx $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1052 bsr L0829
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1053 ldd $06,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1054 ldx $04,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1055 bsr L0829
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1056 ldd $06,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1057 ldx ,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1058 bsr L0829
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1059 leas $08,s
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1060 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1061 L0829 pshs b,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1062 ldb <u0035,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1063 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1064 leax d,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1065 cmpx #$0000
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1066 bmi L083B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1067 cmpx #$00BF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1068 ble L083D
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1069 L083B puls pc,b,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1070 L083D ldb <u0034,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1071 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1072 tst <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1073 bmi L0848
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1074 lslb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1075 rola
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1076 L0848 addd ,s++
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1077 tsta
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1078 beq L084E
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1079 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1080 L084E pshs b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1081 tfr x,d
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1082 puls a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1083 tst <u0024,u
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1084 lbmi L0673
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1085 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1086 lbra L0673
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1087 L085F ldx $06,y
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1088 pshs y,cc
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1089 orcc #$10
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1090 lda #$FF
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1091 clr >$FF02
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1092 ldb >$FF00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1093 ldy $04,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1094 bne L0878
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1095 andb #$01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1096 bne L087C
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1097 bra L087D
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1098 L0878 andb #$02
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1099 beq L087D
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1100 L087C clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1101 L087D sta $01,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1102 lda >$FF03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1103 ora #$08
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1104 ldy $04,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1105 bne L088B
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1106 anda #$F7
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1107 L088B sta >$FF03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1108 lda >$FF01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1109 anda #$F7
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1110 bsr L08AA
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1111 std $04,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1112 lda >$FF01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1113 ora #$08
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1114 bsr L08AA
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1115 pshs b,a
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1116 ldd #$003F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1117 subd ,s++
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1118 std $06,x
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1119 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1120 puls pc,y,cc
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1121 L08AA sta >$FF01
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1122 clrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1123 bsr L08BA
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1124 bsr L08BA
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1125 bsr L08BA
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1126 bsr L08BA
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1127 lsrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1128 lsrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1129 clra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1130 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1131 L08BA pshs b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1132 lda #$7F
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1133 tfr a,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1134 L08C0 lsrb
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1135 cmpb #$03
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1136 bhi L08CC
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1137 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1138 lsra
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1139 tfr a,b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1140 addb ,s+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1141 rts
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1142 L08CC addb #$02
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1143 andb #$FC
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1144 pshs b
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1145 anda #$FC
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1146 sta >$FF20
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1147 tst >$FF00
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1148 bpl L08E0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1149 adda ,s+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1150 bra L08C0
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1151 L08E0 suba ,s+
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1152 bra L08C0
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
1153
241
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1154 emod
16748cbd3fd5 Forgot kbvdio
roug
parents:
diff changeset
1155 eom equ *
257
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
1156 end
c93ecc262253 More source enhancements
boisy
parents: 242
diff changeset
1157