annotate level1/modules/ccio.asm @ 256:9e9648e17298

Additional source improvements
author boisy
date Sat, 20 Jul 2002 14:20:13 +0000
parents 668388823050
children c93ecc262253
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 * CCIO - OS-9 Level One V2 CoCo I/O driver
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
201
668388823050 Fixed headers to be consistent
boisy
parents: 164
diff changeset
8 * 12 From Tandy OS-9 Level One VR 02.00.00
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam CCIO
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl OS-9 Level One V2 CoCo I/O driver
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 use scfdefs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 tylg set Drivr+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 rev set $01
201
668388823050 Fixed headers to be consistent
boisy
parents: 164
diff changeset
21 edition set 12
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 u0000 rmb 3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 u0003 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 u0004 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 u0005 rmb 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 u0009 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u000B rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u000C rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u000D rmb 11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u0018 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u0019 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u001A rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u001B rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u001D rmb 7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 u0024 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 u0025 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 u0026 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 u0028 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 u0029 rmb 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 u002D rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 u002E rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 u002F rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 u0030 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 u0031 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 u0032 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 u0033 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 u0035 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 u0037 rmb 9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 u0040 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 u0042 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 u0044 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 u0045 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 u0047 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 u0048 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 u0049 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 u004B rmb 5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 u0050 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 u0051 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 u0052 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 u0053 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 u0055 rmb 6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 u005B rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 u005D rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 u005F rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 u0060 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 u0061 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 u0063 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 u0065 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 u0066 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 u0067 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 u0068 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 u0069 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 u006A rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 u006B rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 u006C rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 u006D rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 u006E rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 u006F rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 u0070 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 u0071 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 u0072 rmb 6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 u0078 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 u0079 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 u007A rmb 128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89
256
9e9648e17298 Additional source improvements
boisy
parents: 201
diff changeset
90 fcb UPDAT.+EXEC.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 name fcs /CCIO/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 start lbra Init
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 lbra Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 lbra Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 lbra GetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 lbra SetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 lbra Term
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 * Init
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 * Y = address of device descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 Init stu >D.KbdSta store devmem ptr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 leax <u001D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 ldb #$5D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 L002E sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 bne L002E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 coma A = $FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 comb B = $FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 stb <u0050,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 std <u005F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 std <u0061,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 lda #$3C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 sta <u0051,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 leax >AltIRQ,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 stx >D.AltIRQ
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 leax >L03CC,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 stx <u005B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 leax >L050F,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 stx <u005D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 ldd <$26,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 lbra L05CE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 * Term
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 Term pshs cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 orcc #IRQMask
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 ldx >D.Clock
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 stx >D.AltIRQ
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 puls pc,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 * Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 * A = character read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 Read leax <u007A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 ldb <u0079,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 orcc #IRQMask
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 cmpb <u0078,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 beq L0082
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 bsr L009D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 stb <u0079,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 andcc #^(IRQMask+Carry)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 L0082 lda V.BUSY,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 sta V.WAKE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 andcc #^IRQMask
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 os9 F$Sleep
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 clr V.WAKE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 ldx <D.Proc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 ldb <P$Signal,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 beq Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 cmpb #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 bcc Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 L009D incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 cmpb #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 bls L00A3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 L00A3 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 AltIRQ ldu >D.KbdSta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 ldb <u0032,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 beq L00B7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 ldb <u002F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 beq L00B7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 lda <u0030,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 lbsr L03CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 L00B7 ldx #PIA.U4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 std <u006A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 bsr L00E8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 bne L00CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 clr $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 bne L00F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 L00CC clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 std <u006E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 tst <u006D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 bne L00DA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 sta <u005F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 L00DA stb <u006D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 sta <u0060,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 std <u0061,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 L00E4 jmp [>D.Clock]
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 L00E8 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 stb $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 andb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 L00F1 bsr L015C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 bmi L00CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 bsr L00E8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 bne L00CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 cmpa <u006F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 bne L010E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 ldb <u0051,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 beq L010A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 L0105 stb <u0051,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 bra L00E4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 L010A ldb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 bra L011A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 L010E sta <u006F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 ldb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 tst <u006B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 bne L0105
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 ldb #$3C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 L011A stb <u0051,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 ldb <u0078,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 leax <u007A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 lbsr L009D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 cmpb <u0079,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 beq L012F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 stb <u0078,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 L012F sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 beq L014F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 cmpa u000D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 bne L013F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 ldx u0009,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 beq L014F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 sta $08,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 bra L014F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 L013F ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 cmpa u000B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 beq L014B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 cmpa u000C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 bne L014F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 L014B lda u0003,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 bra L0153
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 L014F ldb #S$Wake
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 lda V.WAKE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 L0153 beq L0158
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 os9 F$Send
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 L0158 clr V.WAKE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 bra L00E4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 L015C clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 std <u0066,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 std <u0068,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 std <u0063,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 sta <u0065,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 sta $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 L016F lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 beq L0183
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 ldb #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 L0178 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 bcc L017F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 lbsr L0221
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 L017F cmpb #$06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 bcs L0178
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 L0183 inc <u0068,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 orcc #Carry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 rol $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 bcs L016F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 lbsr L0289
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 bmi L020A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 cmpa <u005F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 bne L0199
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 inc <u006B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 L0199 sta <u005F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 beq L01B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 suba #$1A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 bhi L01B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 adda #$1A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 ldb <u0067,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312 bne L01E9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 adda #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 ldb <u0066,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 eorb <u0050,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 andb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
317 bne L01E9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
318 adda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 bra L01E9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
320 L01B9 ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
322 lda <u0066,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 beq L01C4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
324 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 bra L01CB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 L01C4 lda <u0067,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327 beq L01CB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 addb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 L01CB lda <u006C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 beq L01D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
331 cmpb #$11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 ble L0208
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
333 L01D4 cmpb #$4C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334 blt L01DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
335 inc <u0069,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
336 subb #$06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
337 L01DD pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
338 leax >L0321,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
339 lda b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
340 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
341 bmi L01FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
342 L01E9 ldb <u0069,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
343 beq L01FA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
344 cmpa #$3F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
345 bls L01F8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
346 cmpa #$5B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
347 bcc L01F8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
348 ora #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
349 L01F8 ora #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
350 L01FA andcc #^Negative
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
351 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
352 L01FD inc <u006D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
353 ldb <u006B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
354 bne L0208
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
355 com <u0050,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
356 L0208 orcc #Negative
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
357 L020A rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
358 L020B pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
359 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
360 orcc #Carry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
361 inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
362 L0211 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
363 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
364 bne L0211
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
365 bra L0219
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
366 L0217 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
367 L0219 orb <u006A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
368 stb <u006A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
369 puls pc,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
370 L0221 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
371 cmpb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
372 bne L0230
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
373 lda <u0068,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
374 cmpa #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
375 blt L0230
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
376 bsr L020B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
377 L0230 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
378 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
379 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
380 addb <u0068,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
381 beq L025D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
382 cmpb #$33
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
383 bne L0243
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
384 inc <u0069,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
385 ldb #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
386 bra L0219
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
387 L0243 cmpb #$31
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
388 beq L024B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
389 cmpb #$34
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
390 bne L0252
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
391 L024B inc <u0067,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
392 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
393 bra L0219
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
394 L0252 cmpb #$37
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
395 bne L0262
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
396 com <u0066,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
397 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
398 bra L0219
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
399 L025D ldb #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
400 bsr L0217
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
401 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
402 L0262 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
403 leax <u0063,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
404 bsr L026D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
405 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
406 puls pc,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
407 L026D pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
408 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
409 bpl L0279
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
410 stb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
411 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
412 puls pc,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
413 L0279 lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
414 bpl L0283
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
415 stb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
416 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
417 puls pc,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
418 L0283 stb $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
419 ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
420 puls pc,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
421 L0289 pshs y,x,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
422 bsr L02EE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
423 ldb <u006E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
424 beq L02C5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
425 leax <u0060,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
426 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
427 L0297 leay <u0063,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
428 ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
429 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
430 bmi L02B6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
431 L02A0 cmpa ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
432 bne L02AA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
433 clr ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
434 com ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
435 bra L02B6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
436 L02AA leay $01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
437 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
438 bne L02A0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
439 lda #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
440 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
441 dec <u006E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
442 L02B6 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
443 dec ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
444 bne L0297
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
445 leas $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
446 ldb <u006E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
447 beq L02C5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
448 bsr L0309
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
449 L02C5 leax <u0063,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
450 lda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
451 L02CA ldb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
452 bpl L02DE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
453 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
454 bne L02CA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
455 ldb <u006E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
456 beq L02EA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
457 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
458 leax <u0060,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
459 lda b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
460 bra L02E8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
461 L02DE tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
462 leax <u0060,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
463 bsr L026D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
464 stb <u006E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
465 L02E8 puls pc,y,x,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
466 L02EA orcc #Negative
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
467 puls pc,y,x,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
468 L02EE ldd <u0066,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
469 bne L0301
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
470 lda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
471 leax <u0063,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
472 L02F8 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
473 beq L0302
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
474 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
475 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
476 bne L02F8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
477 L0301 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
478 L0302 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
479 stb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
480 inc <u0069,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
481 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
482 L0309 leax <u0060,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
483 bsr L0314
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
484 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
485 bsr L0314
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
486 leax -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
487 L0314 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
488 bpl L0320
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
489 ldb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
490 bmi L0320
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
491 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
492 stb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
493 L0320 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
494
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
495 L0321 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
496 fdb $4060,$0c1c,$130a,$1a12,$0818,$1009,$1911
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
497 fdb $2020,$2030,$3081,$3121,$7c32,$2200,$3323,$7e34
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
498 fdb $2400,$3525,$0036,$2600,$3727,$5e38,$285b,$3929
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
499 fdb $5d3a,$2a00,$3b2b,$002c,$3c7b,$2d3d,$5f2e,$3e7d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
500 fdb $2f3f,$5c0d,$0d0d,$0000,$0005,$031b,$3133,$3532,$3436
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
501
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
502 * Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
503 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
504 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
505 * A = character to write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
506 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
507 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
508 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
509 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
510 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
511 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
512 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
513 Write ldb <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
514 bne L03A3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
515 sta <u0052,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
516 cmpa #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
517 bcc L038E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
518 cmpa #$1E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
519 bcc L03B8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
520 cmpa #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
521 lbcc L063B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
522 cmpa #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
523 lbeq L07C6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
524 L038E lda <u0053,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
525 L0391 ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
526 L0393 leax <u0072,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
527 ldx a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
528 beq L039F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
529 lda <u0052,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
530 L039D jmp b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
531 L039F comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
532 ldb #$DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
533 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
534 L03A3 cmpb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
535 beq L03B0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
536 sta <u0029,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
537 clr <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
538 jmp [<u0026,u]
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
539 L03B0 sta <u0028,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
540 dec <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
541 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
542 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
543 L03B8 beq L03C5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
544 leax <L03C7,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
545 L03BD ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
546 L03BF stx <u0026,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
547 stb <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
548 L03C5 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
549 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
550 L03C7 ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
551 lbra L055F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
552 L03CC pshs x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
553 stb <u002F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
554 lda >PIA.U8+2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
555 anda #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
556 ora ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
557 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
558 bne L03DE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
559 ora <u0071,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
560 L03DE sta >PIA.U8+2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
561 sta <u0030,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
562 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
563 bne L03F5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
564 stb >$FFC0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
565 stb >$FFC2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
566 stb >$FFC4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
567 lda <u001D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
568 bra L0401
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
569 L03F5 stb >$FFC0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
570 stb >$FFC3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
571 stb >$FFC5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
572 lda <u0033,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
573 L0401 ldb #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
574 ldx #$FFC6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
575 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
576 L0407 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
577 bcs L0410
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
578 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
579 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
580 bra L0414
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
581 L0410 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
582 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
583 L0414 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
584 bne L0407
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
585 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
586 puls pc,x
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
587
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
588 GRFO fcs /GRFO/
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
589 CO32 fcs /CO32/
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
590 CO80 fcs /CO80/
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
591
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
592 * GetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
593 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
594 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
595 * A = function code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
596 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
597 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
598 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
599 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
600 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
601 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
602 *
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
603 GetStat sta <u0052,u
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
604 cmpa #SS.Ready
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
605 bne L0439
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
606 lda <u0079,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
607 suba <u0078,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
608 lbeq L0660
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
609 SSEOF clrb
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
610 rts
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
611 L0439 cmpa #SS.EOF
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
612 beq SSEOF
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
613 ldx PD.RGS,y
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
614 cmpa #SS.Joy
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
615 beq SSJOY
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
616 cmpa #SS.ScSiz
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
617 beq SSSCSIZ
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
618 cmpa #SS.KySns
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
619 beq SSKYSNS
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
620 cmpa #SS.DStat
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
621 lbeq SSDSTAT
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
622 ldb #$06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
623 lbra L055F
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
624
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
625 SSKYSNS ldb <u006A,u
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
626 stb R$A,x
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
627 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
628 rts
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
629
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
630 SSSCSIZ clra
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
631 ldb <u002D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
632 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
633 ldb <u002E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
634 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
635 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
636 rts
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
637
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
638 SSJOY pshs y,cc
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
639 orcc #IRQMask
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
640 lda #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
641 sta >PIA.U4+2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
642 ldb >PIA.U4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
643 ldy $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
644 bne L0481
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
645 andb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
646 bne L0485
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
647 bra L0486
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
648 L0481 andb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
649 beq L0486
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
650 L0485 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
651 L0486 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
652 lda >PIA.U4+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
653 ora #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
654 ldy $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
655 bne L0494
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
656 anda #$F7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
657 L0494 sta >PIA.U4+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
658 lda >PIA.U4+1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
659 anda #$F7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
660 bsr L04B3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
661 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
662 lda >PIA.U4+1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
663 ora #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
664 bsr L04B3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
665 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
666 ldd #$003F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
667 subd ,s++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
668 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
669 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
670 puls pc,y,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
671 L04B3 sta >PIA.U4+1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
672 lda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
673 ldb #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
674 bra L04C7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
675 L04BC lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
676 cmpb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
677 bhi L04C7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
678 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
679 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
680 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
681 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
682 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
683 L04C7 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
684 sta >PIA.U8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
685 tst >PIA.U4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
686 bpl L04D5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
687 adda ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
688 bra L04BC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
689 L04D5 suba ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
690 bra L04BC
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
691
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
692 SSDSTAT lbsr L065B
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
693 bcs L050E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
694 ldd <u0045,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
695 bsr L050F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
696 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
697 andb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
698 L04E7 bita #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
699 bne L04F6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
700 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
701 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
702 tst <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
703 bmi L04E7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
704 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
705 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
706 bra L04E7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
707 L04F6 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
708 ldb <u004B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
709 andb #$FC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
710 orb ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
711 ldx $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
712 stb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
713 ldd <u0045,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
714 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
715 ldd <u0033,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
716 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
717 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
718 L050E rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
719 L050F pshs y,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
720 ldb <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
721 bpl L0517
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
722 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
723 L0517 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
724 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
725 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
726 ldb #$BF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
727 subb $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
728 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
729 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
730 addb ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
731 adca #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
732 ldy <u0033,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
733 leay d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
734 lda ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
735 sty ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
736 anda <u0044,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
737 ldx <u0042,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
738 lda a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
739 puls pc,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
740
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
741 * SetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
742 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
743 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
744 * A = function code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
745 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
746 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
747 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
748 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
749 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
750 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
751 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
752 SetStat sta <u0052,u
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
753 ldx PD.RGS,y
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
754 cmpa #SS.ComSt
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
755 lbeq SSCOMST
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
756 cmpa #SS.AAGBf
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
757 beq SSAAGBF
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
758 cmpa #SS.SLGBf
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
759 beq SSSLGBF
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
760 cmpa #SS.KySns
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
761 bne L055D
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
762 ldd R$X,x
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
763 beq L0558
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
764 ldb #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
765 L0558 stb <u006C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
766 L055B clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
767 L055C rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
768 L055D ldb #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
769 L055F pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
770 lda <u0053,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
771 lbsr L0393
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
772 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
773 bcc L055B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
774 tst <u0072,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
775 beq L055C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
776 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
777 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
778 lbra L0393
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
779
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
780 SSAAGBF ldb <u0031,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
781 lbeq L0660
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
782 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
783 leay <u0037,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
784 ldd ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
785 beq L058E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
786 leay $02,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
787 inc ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
788 ldd ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
789 bne L059E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
790 L058E lbsr L0685
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
791 bcs L05A1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
792 std ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
793 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
794 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
795 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
796 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
797 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
798 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
799 L059E ldb #E$BMode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
800 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
801 L05A1 puls pc,a
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
802
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
803 SSSLGBF ldb <u0031,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
804 lbeq L0660
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
805 ldd R$Y,x
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
806 cmpd #$0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
807 bhi L05C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
808 leay <u0035,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
809 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
810 ldd b,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
811 beq L05C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
812 std <u0033,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
813 ldd $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
814 beq L05C3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
815 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
816 L05C3 stb <u0032,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
817 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
818 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
819 L05C8 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
820 ldb #E$BMode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
821 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
822
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
823 SSCOMST ldd R$Y,x
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
824 L05CE bita #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
825 bne L05E9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
826 ldb #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
827 bita #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
828 bne L05D9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
829 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
830 L05D9 stb <u0071,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
831 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
832 ldx #$2010
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
833 pshs u,y,x,a
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
834 leax >CO32,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
835 bra L05F4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
836 L05E9 lda #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
837 ldx #$5018
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
838 pshs u,y,x,a
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
839 leax >CO80,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
840 L05F4 bsr L0601
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
841 puls u,y,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
842 bcs L0600
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
843 stx <u002D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
844 sta <u0053,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
845 L0600 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
846 L0601 bita <u0070,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
847 beq L0608
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
848 L0606 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
849 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
850 L0608 pshs y,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
851 lbsr L062E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
852 bcc L061F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
853 ldx $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
854 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
855 os9 F$Load
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
856 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
857 bcc L061F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
858 puls y,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
859 lbra L039F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
860 L061F leax <u0072,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
861 lda ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
862 sty a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
863 puls y,x,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
864 ldb #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
865 lbra L0393
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
866 L062E pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
867 lda #Systm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
868 os9 F$Link
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
869 puls pc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
870
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
871 L0637 fdb $0055,$aaff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
872
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
873 L063B cmpa #$15
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
874 bcc L0664
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
875 cmpa #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
876 beq L06B4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
877 suba #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
878 bsr L065B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
879 bcs L0663
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
880 leax <L0651,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
881 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
882 ldd a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
883 jmp d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
884
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
885 L0651 fdb $0140,$00fd,$0111,$0160,$016f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
886
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
887 L065B ldb <u0031,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
888 bne L0606
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
889 L0660 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
890 ldb #E$NotRdy
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
891 L0663 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
892 L0664 bsr L065B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
893 bcs L0663
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
894 ldx <u0072,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
895 bne L0681
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
896 pshs y,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
897 bne L067F
164
20f0878b4a7f Added more verbosity to source
boisy
parents: 0
diff changeset
898 leax >GRFO,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
899 bsr L062E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
900 bcc L067B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
901 puls pc,y,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
902 L067B sty <u0072,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
903 L067F puls y,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
904 L0681 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
905 lbra L0391
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
906 L0685 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
907 ldd #$1900
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
908 os9 F$SRqMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
909 bcc L0691
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
910 puls pc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
911 L0691 tfr u,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
912 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
913 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
914 bita #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
915 beq L069F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
916 adda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
917 bra L06A1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
918 L069F addb #$18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
919 L06A1 pshs u,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
920 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
921 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
922 tfr d,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
923 ldd #$0100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
924 os9 F$SRtMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
925 puls u,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
926 bcs L06B3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
927 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
928 L06B3 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
929 L06B4 leax <L06BC,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
930 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
931 lbra L03BF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
932 L06BC ldb <u0031,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
933 bne L06D1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
934 bsr L0685
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
935 bcs L06EF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
936 std <u0033,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
937 std <u0035,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
938 inc <u0031,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
939 lbsr L07B1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
940 L06D1 lda <u0029,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
941 sta <u004B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
942 anda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
943 leax >L0637,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
944 lda a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
945 sta <u0047,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
946 sta <u0048,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
947 lda <u0028,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
948 cmpa #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
949 bls L06F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
950 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
951 ldb #E$BMode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
952 L06EF rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
953 L06F0 tsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
954 beq L0710
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
955 ldd #$C003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
956 std <u0049,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
957 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
958 sta <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
959 lda #$E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
960 ldb <u0029,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
961 andb #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
962 beq L0709
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
963 lda #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
964 L0709 ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
965 leax <L0742,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
966 bra L072D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
967 L0710 ldd #$8001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
968 std <u0049,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
969 lda #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
970 tst <u0047,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
971 beq L0723
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
972 sta <u0047,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
973 sta <u0048,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
974 L0723 sta <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
975 lda #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
976 ldb #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
977 leax <L0746,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
978 L072D stb <u0044,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
979 stx <u0042,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
980 ldb <u0029,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
981 andb #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
982 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
983 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
984 ora ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
985 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
986 lbra L03CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
987
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
988 L0742 fcb $c0,$30,$0c,$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
989 L0746 fcb $80,$40,$20,$10,$08,$04,$02,$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
990 fcb $30,$8C,$03,$16,$fC,$69,$6f,$C8,$28
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
991 fcb $A6,$C8,$24,$2B,$03,$6C,$C8,$28,$16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
992 fcb $FF,$6F,$30,$C8,$35,$10,$8E,$00,$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
993 fcb $C6,$03,$34,$44
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
994
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
995 L076D ldd #$1800
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
996 ldu ,x++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
997 beq L077A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
998 sty -$02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
999 os9 F$SRtMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1000 L077A dec ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1001 bgt L076D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1002 ldu ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1003 beq L0788
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1004 ldd #$0200
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1005 os9 F$SRtMem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1006 L0788 puls u,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1007 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1008 sta <u0031,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1009 lbra L03CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1010 leax <L0797,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1011 lbra L03BD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1012 L0797 lda <u0029,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1013 tst <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1014 bpl L07A7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1015 ldb #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1016 anda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1017 beq L07B1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1018 bra L07B2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1019 L07A7 anda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1020 leax >L0637,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1021 ldb a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1022 bra L07B2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1023 L07B1 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1024 L07B2 ldx <u0033,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1025 leax >$1801,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1026 L07B9 stb ,-x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1027 cmpx <u0033,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1028 bhi L07B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1029 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1030 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1031 std <u0045,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1032 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1033 L07C6 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1034 lda >PIA.U4+1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1035 ldb >PIA.U4+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1036 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1037 anda #$F7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1038 andb #$F7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1039 sta >PIA.U4+1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1040 stb >PIA.U4+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1041 lda >PIA.U8+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1042 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1043 ora #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1044 sta >PIA.U8+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1045 ldb #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1046 L07E6 lda #$FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1047 bsr L0800
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1048 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1049 bsr L0800
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1050 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1051 bne L07E6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1052 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1053 sta >PIA.U8+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1054 puls b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1055 sta >PIA.U4+1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1056 stb >PIA.U4+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1057 puls pc,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1058 L0800 sta >PIA.U8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1059 lda #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1060 L0805 inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1061 bne L0805
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1062 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1063
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1064 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1065 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1066 end