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

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