annotate level1/modules/modpak.asm @ 556:28a203bbd2cc

findstr and signal finished.
author roug
date Tue, 22 Oct 2002 19:09:04 +0000
parents 9e9648e17298
children 10957d54bf16
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 * MODPAK - DC Modem Pak device 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 MODPAK
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl DC Modem Pak device driver
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * Disassembled 98/08/23 17:41:18 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
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 edition set $0A
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 u002C rmb 5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 u0031 rmb 26
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 u004B rmb 53
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 u0080 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 u0081 rmb 45
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 u00AE rmb 82
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 size equ .
256
9e9648e17298 Additional source improvements
boisy
parents: 201
diff changeset
49
9e9648e17298 Additional source improvements
boisy
parents: 201
diff changeset
50 fcb UPDAT.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 name fcs /MODPAK/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 start lbra Init
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 lbra Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 lbra Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 lbra GetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 lbra SetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 lbra Term
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 IRQPckt fcb $00,$80,$0a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 * Init
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 * Y = address of device descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 Init ldx V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 stb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 ldd <IT.COL,y get column size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 std <u002A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 ldd <IT.PAR,y get parity/baud
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 lbsr L01A9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 ldd V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 addd #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 leax >IRQPckt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 leay >L022C,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 os9 F$IRQ
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 bcs L0061
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 leay <u002C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 lda #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 sta $04,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 ldd #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 std $02,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 ldx #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 os9 F$VIRQ
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 bcs L0061
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 L0061 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 L0062 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 ldb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 ldb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 bmi L00D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 lda #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 sta <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 andb #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 std <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 std <u001D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 std <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 sta <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 std <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 andcc #^IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 * Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 * A = character read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 L008B bsr L00D8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 Read lda <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 ble L00A5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 ldb <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 cmpb #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 bhi L00A5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 ldb V.XON,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 orb #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 stb <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 ldb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 lbsr L0359
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 L00A5 tst <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 bne L00D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 ldb <u001E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 leax <u0031,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 cmpb <u001D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 beq L008B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 dec <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 cmpb #$4F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 bls L00C3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 L00C3 stb <u001E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 ldb V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 beq L0138
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 stb <$3A,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 clr V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 ldb #E$Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 bra L0139
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 L00D4 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 ldb #E$NotRdy
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 L00D8 pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 lda V.BUSY,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 sta V.WAKE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 andcc #^IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 os9 F$Sleep
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 ldx <D.Proc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 ldb <P$Signal,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 beq L00F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 cmpb #S$Intrpt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 bls L0107
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 L00F1 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 lda P$State,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 bita #Condem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 bne L0107
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 ldb #$DC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 lda V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 bita #TimOut
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 bne L0102
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 puls pc,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 L0102 inc <$3F,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 clr V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 L0107 leas $06,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 * Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 * A = character to write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 L010B bsr L00D8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 Write leax >u0081,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 ldb <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 cmpb #$7E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 bls L011D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 L011D orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 cmpb <u0021,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 beq L010B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 stb <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 lda <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 beq L0138
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 anda #$FD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 sta <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 bne L0138
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 ldb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 lbsr L0359
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 L0138 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 L0139 andcc #^IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 * GetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 * A = function code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 GetStat ldx $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 cmpa #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 bne L014B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 ldb <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 beq L00D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 stb $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 L0149 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 L014B cmpa #$06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 beq L0149
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 cmpa #$26
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 beq L015E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 cmpa #$28
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 bne L016B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 ldd <u0028,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 bra L0149
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 L015E clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 ldb <u002A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 std $04,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 ldb <u002B,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 std $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 bra L0149
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 L016B comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 ldb #E$UnkSvc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 * SetStat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 * A = function code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 * Y = address of path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 SetStat ldx $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 cmpa #$1A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 bne L018C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 lda $05,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 ldb $05,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 tst <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 bne L0185
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 std <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 bra L0138
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 L0185 andcc #^IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 os9 F$Send
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 L018C cmpa #$29
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 beq L01D4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 cmpa #$2A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 beq L01E4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 cmpa #$1B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 bne L01A3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 lda $05,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 cmpa <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 bne L0149
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 clr <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 L01A3 cmpa #$28
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 bne L016B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 ldd $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 L01A9 std <u0028,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 andb #$E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 ldb <u0029,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 andb #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 leax <L01CC,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 ldb b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 orb ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 anda #$E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 sta V.TYPE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 ldx V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312 lda $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 anda #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 ora V.TYPE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 std $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 bra L0201
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
317 L01CC fcb $13,$16,$17,$18,$1a,$1c,$1e,$1f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
318 L01D4 ldb #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 lda $07,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
320 cmpa #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 bne L0201
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
322 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 lbsr L0359
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
324 lbra L0062
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 L01E4 lda $07,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 bne L0201
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327 ldb #$0B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 lda <u0028,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 bita #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 beq L01F2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
331 L01F1 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 L01F2 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
333 bsr L0206
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334 bcs L01F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
335 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
336 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
337 lbsr L0359
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
338 andcc #^IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
339 L0201 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
340 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
341 L0203 lbsr L00D8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
342 L0206 ldb <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
343 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
344 cmpb <u0021,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
345 bne L0203
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
346 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
347
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
348 * Term
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
349 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
350 * Entry:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
351 * U = address of device memory area
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
352 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
353 * Exit:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
354 * CC = carry set on error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
355 * B = error code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
356 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
357 Term ldx <D.Proc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
358 lda P$ID,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
359 sta V.BUSY,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
360 sta V.LPRC,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
361 bsr L01F1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
362 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
363 leay <u002C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
364 os9 F$VIRQ
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
365 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
366 os9 F$IRQ
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
367 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
368 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
369 L022C ldx V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
370 sta <u0027,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
371 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
372 andb #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
373 cmpb <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
374 beq L0274
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
375 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
376 eorb <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
377 sta <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
378 lda <u0027,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
379 bitb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
380 beq L0267
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
381 bita #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
382 beq L0267
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
383 lda <u0028,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
384 bita #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
385 beq L02C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
386 ldx <V.PDLHd,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
387 beq L0261
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
388 L0259 inc <$3F,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
389 ldx <$3D,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
390 bne L0259
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
391 L0261 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
392 bsr L02D2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
393 bra L02BD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
394 L0267 bitb #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
395 beq L02C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
396 bita #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
397 lbne L038B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
398 lbra L037A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
399 L0274 bita #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
400 bne L02D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
401 bita #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
402 beq L02C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
403 lda <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
404 bpl L0291
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
405 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
406 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
407 eora V.XON,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
408 sta <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
409 lda <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
410 bne L02B8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
411 bra L02C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
412 L0291 leay >u0081,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
413 ldb <u0021,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
414 cmpb <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
415 beq L02B0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
416 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
417 lda d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
418 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
419 cmpb #$7E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
420 bls L02A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
421 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
422 L02A6 stb <u0021,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
423 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
424 cmpb <u0020,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
425 bne L02BD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
426 L02B0 lda <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
427 ora #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
428 sta <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
429 L02B8 ldb #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
430 lbsr L035B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
431 L02BD ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
432 lda V.WAKE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
433 L02C1 beq L02C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
434 clr V.WAKE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
435 L02C5 os9 F$Send
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
436 L02C8 ldx V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
437 lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
438 lbmi L022C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
439 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
440 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
441 L02D2 ora V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
442 sta V.ERR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
443 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
444 L02D7 bita #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
445 beq L02EB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
446 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
447 tst ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
448 anda #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
449 bsr L02D2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
450 lda $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
451 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
452 sta $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
453 bra L02C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
454 L02EB lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
455 beq L0306
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
456 cmpa V.INTR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
457 beq L0369
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
458 cmpa V.QUIT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
459 beq L036D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
460 cmpa V.PCHR,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
461 beq L0361
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
462 cmpa V.XON,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
463 beq L037A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
464 cmpa <V.XOFF,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
465 lbeq L038B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
466 L0306 leax <u0031,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
467 ldb <u001D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
468 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
469 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
470 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
471 cmpb #$4F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
472 bls L0315
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
473 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
474 L0315 cmpb <u001E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
475 bne L0320
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
476 lda #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
477 bsr L02D2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
478 bra L02BD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
479 L0320 stb <u001D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
480 inc <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
481 tst <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
482 beq L0333
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
483 ldd <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
484 clr <u0025,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
485 bra L02C5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
486 L0333 lda <V.XOFF,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
487 beq L02BD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
488 ldb <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
489 cmpb #$46
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
490 lbcs L02BD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
491 ldb <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
492 lbne L02BD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
493 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
494 sta <V.XOFF,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
495 ora #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
496 sta <u0023,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
497 ldb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
498 bsr L0359
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
499 lbra L02BD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
500 L0359 ldx V.PORT,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
501 L035B orb V.TYPE,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
502 stb $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
503 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
504 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
505 L0361 ldx V.DEV2,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
506 beq L0306
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
507 sta $08,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
508 bra L0306
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
509 L0369 ldb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
510 bra L036F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
511 L036D ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
512 L036F pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
513 lda V.LPRC,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
514 lbsr L02C1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
515 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
516 bra L0306
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
517 L037A lda <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
518 anda #$FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
519 sta <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
520 bne L0388
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
521 ldb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
522 bsr L035B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
523 L0388 lbra L02C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
524 L038B lda <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
525 bne L0394
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
526 ldb #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
527 bsr L035B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
528 L0394 ora #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
529 sta <u0022,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
530 bra L0388
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
531
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
532 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
533 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
534 end
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
535