annotate level1/modules/aciapak.asm @ 201:668388823050

Fixed headers to be consistent
author boisy
date Mon, 15 Jul 2002 03:52:49 +0000
parents 6641a883d6b0
children 9e9648e17298
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 * ACIAPAK - RS-232 Pak 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: 0
diff changeset
8 * 10 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 ACIAPAK
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl RS-232 Pak driver
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * Disassembled 98/08/23 20:25:56 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 use scfdefs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 tylg set Drivr+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 rev set $01
201
668388823050 Fixed headers to be consistent
boisy
parents: 0
diff changeset
23 edition set 10
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 rmb V.SCF SCF storage requirements
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 u001D rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 u001E rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u001F rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u0020 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u0021 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u0022 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u0023 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u0024 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u0025 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u0027 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 u0028 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 u0029 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 u002A rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 u002B rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 orgDFIRQ rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 u002E rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 u0030 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 u0032 rmb 25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 u004B rmb 34
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 u006D rmb 17
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 u007E rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 u0080 rmb 128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 fcb $03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 name fcs /ACIAPAK/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 fcb $0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 start lbra Init
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 lbra Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 lbra Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 lbra GetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 lbra SetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 lbra Term
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 IRQPckt fcb $00,$80,$0a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 * Driver supplied D.FIRQ routine
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 FIRQRtn tst ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 bmi L003B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 leas -$01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 pshs y,x,dp,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 lda $08,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 stu $07,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 ora #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 L003B jmp [>D.SvcIRQ]
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 * Init
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 * Y = address of device descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 Init ldx V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 stb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 ldd <IT.COL,y get column size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 std <u002A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 ldd <IT.PAR,y get parity/baud rate
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 lbsr L01CF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 ldd V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 addd #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 leax >IRQPckt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 leay >L024E,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 os9 F$IRQ
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 bcs L0085
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 pshs cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 ldd <D.FIRQ get current D.FIRQ vector
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 std <orgDFIRQ,u save it off locally
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 leax >FIRQRtn,pcr get our D.FIRQ routine
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 stx <D.FIRQ and put it in system global vector
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 lda >PIA.U8+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 anda #$FC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 ora #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 sta >PIA.U8+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 lda >PIA.U8+2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 puls cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 lda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 sta >MPI.Slct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 L0085 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 L0086 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 ldb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 ldb >PIA.U8+2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 ldb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 bmi L00FB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 sta <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 andb #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 std <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 std <u001D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 std <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 sta <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 std <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 andcc #^IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 * Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 * A = character read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 L00B2 bsr L00FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 Read lda <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 ble L00CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 ldb <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 cmpb #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 bhi L00CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 ldb V.XON,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 orb #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 stb <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 ldb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 lbsr L037D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 L00CC tst <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 bne L00FB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 ldb <u001E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 leax <u002E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 cmpb <u001D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 beq L00B2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 dec <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 cmpb #$4F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 bls L00EA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 L00EA stb <u001E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 ldb V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 beq L015E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 stb <PD.ERR,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 clr V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 ldb #E$Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 bra L015F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 L00FB comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 ldb #E$NotRdy
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 L00FF pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 lda V.BUSY,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 sta V.WAKE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 andcc #^IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 os9 F$Sleep
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 ldx <D.Proc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 ldb <P$Signal,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 beq L0118
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 cmpb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 bls L012E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 L0118 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 lda P$State,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 bita #Condem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 bne L012E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 ldb #$DC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 lda V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 bita #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 bne L0129
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 puls pc,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 L0129 inc <PD.PST,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 clr V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 L012E leas $06,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 * Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 * A = character to write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 L0132 bsr L00FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 Write leax <u007E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 ldb <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 cmpb #$81
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 bls L0143
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 L0143 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 cmpb <u0021,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 beq L0132
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 stb <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 lda <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 beq L015E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 anda #$FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 sta <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 bne L015E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 ldb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 lbsr L037D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 L015E clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 L015F andcc #^IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 * GetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 * A = function code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 GetStat ldx PD.RGS,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 cmpa #SS.Ready
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 bne L0171
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 ldb <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 beq L00FB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 stb R$B,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 L016F clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 L0171 cmpa #SS.EOF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 beq L016F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 cmpa #SS.ScSiz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 beq L0184
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 cmpa #SS.ComSt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 bne L0191
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 ldd <u0028,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 std R$Y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 bra L016F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 L0184 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 ldb <u002A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 std R$X,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 ldb <u002B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 std R$Y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 bra L016F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 L0191 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 ldb #E$UnkSvc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 * SetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 * A = function code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 SetStat ldx PD.RGS,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 cmpa #SS.SSig
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 bne L01B2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 lda PD.CPR,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 ldb R$X+1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 tst <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 bne L01AB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 std <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 bra L015E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 L01AB andcc #^IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 os9 F$Send
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 L01B2 cmpa #SS.Open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 beq L01FA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 cmpa #SS.Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 beq L020A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 cmpa #SS.Relea
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312 bne L01C9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 lda PD.CPR,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 cmpa <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 bne L016F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 clr <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
317 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
318 L01C9 cmpa #SS.ComSt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 bne L0191
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
320 ldd R$Y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 L01CF std <u0028,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
322 andb #$E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
324 ldb <u0029,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 andb #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 leax <L01F2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327 ldb b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 orb ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 anda #$E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 sta V.TYPE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
331 ldx V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 lda $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
333 anda #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334 ora V.TYPE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
335 std $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
336 bra L0227
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
337 L01F2 fdb $1316,$1718,$1a1c,$1e1f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
338 L01FA ldb #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
339 lda R$Y+1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
340 cmpa #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
341 bne L0227
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
342 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
343 lbsr L037D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
344 lbra L0086
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
345 L020A lda R$Y+1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
346 bne L0227
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
347 ldb #$0B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
348 lda <u0028,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
349 bita #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
350 beq L0218
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
351 L0217 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
352 L0218 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
353 bsr L022C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
354 bcs L0217
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
355 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
356 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
357 lbsr L037D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
358 andcc #^IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
359 L0227 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
360 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
361
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
362 L0229 lbsr L00FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
363 L022C ldb <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
364 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
365 cmpb <u0021,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
366 bne L0229
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
367 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
368
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
369 * Term
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
370 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
371 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
372 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
373 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
374 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
375 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
376 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
377 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
378 Term ldx <D.Proc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
379 lda P$ID,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
380 sta V.BUSY,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
381 sta V.LPRC,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
382 bsr L0217
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
383 ldd <orgDFIRQ,u get saved D.FIRQ vector
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
384 std <D.FIRQ and put it back in system global
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
385 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
386 os9 F$IRQ deinstall IRQ svc routine
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
387 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
388 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
389
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
390 * ISR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
391 L024E ldb >PIA.U8+2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
392 ldx V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
393 sta <u0027,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
394 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
395 andb #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
396 cmpb <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
397 beq L0299
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
398 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
399 eorb <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
400 sta <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
401 lda <u0027,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
402 bitb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
403 beq L028C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
404 bita #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
405 beq L028C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
406 lda <u0028,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
407 bita #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
408 beq L02EC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
409 ldx <V.PDLHd,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
410 beq L0286
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
411 L027E inc <$3F,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
412 ldx <$3D,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
413 bne L027E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
414 L0286 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
415 bsr L02F6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
416 bra L02E1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
417 L028C bitb #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
418 beq L02EC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
419 bita #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
420 lbne L03AF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
421 lbra L039E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
422 L0299 bita #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
423 bne L02FB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
424 bita #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
425 beq L02EC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
426 lda <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
427 bpl L02B6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
428 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
429 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
430 eora V.XON,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
431 sta <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
432 lda <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
433 bne L02DC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
434 bra L02EC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
435 L02B6 leay <u007E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
436 ldb <u0021,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
437 cmpb <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
438 beq L02D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
439 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
440 lda d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
441 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
442 cmpb #$81
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
443 bls L02CA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
444 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
445 L02CA stb <u0021,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
446 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
447 cmpb <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
448 bne L02E1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
449 L02D4 lda <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
450 ora #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
451 sta <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
452 L02DC ldb #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
453 lbsr L037F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
454 L02E1 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
455 lda V.WAKE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
456 L02E5 beq L02EC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
457 clr V.WAKE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
458 L02E9 os9 F$Send
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
459 L02EC ldx V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
460 lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
461 lbmi L024E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
462 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
463 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
464 L02F6 ora V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
465 sta V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
466 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
467 L02FB bita #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
468 beq L030F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
469 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
470 tst ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
471 anda #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
472 bsr L02F6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
473 lda $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
474 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
475 sta $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
476 bra L02EC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
477 L030F lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
478 beq L032A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
479 cmpa V.INTR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
480 beq L038D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
481 cmpa V.QUIT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
482 beq L0391
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
483 cmpa V.PCHR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
484 beq L0385
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
485 cmpa V.XON,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
486 beq L039E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
487 cmpa <V.XOFF,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
488 lbeq L03AF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
489 L032A leax <u002E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
490 ldb <u001D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
491 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
492 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
493 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
494 cmpb #$4F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
495 bls L0339
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
496 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
497 L0339 cmpb <u001E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
498 bne L0344
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
499 lda #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
500 bsr L02F6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
501 bra L02E1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
502 L0344 stb <u001D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
503 inc <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
504 tst <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
505 beq L0357
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
506 ldd <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
507 clr <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
508 bra L02E9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
509 L0357 lda <V.XOFF,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
510 beq L02E1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
511 ldb <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
512 cmpb #$46
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
513 lbcs L02E1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
514 ldb <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
515 lbne L02E1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
516 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
517 sta <V.XOFF,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
518 ora #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
519 sta <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
520 ldb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
521 bsr L037D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
522 lbra L02E1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
523 L037D ldx V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
524 L037F orb V.TYPE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
525 stb $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
526 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
527 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
528 L0385 ldx V.DEV2,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
529 beq L032A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
530 sta $08,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
531 bra L032A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
532 L038D ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
533 bra L0393
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
534 L0391 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
535 L0393 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
536 lda V.LPRC,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
537 lbsr L02E5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
538 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
539 bra L032A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
540 L039E lda <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
541 anda #$FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
542 sta <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
543 bne L03AC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
544 ldb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
545 bsr L037F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
546 L03AC lbra L02EC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
547 L03AF lda <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
548 bne L03B8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
549 ldb #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
550 bsr L037F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
551 L03B8 ora #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
552 sta <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
553 bra L03AC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
554
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
555 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
556 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
557 end
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
558