annotate level2/modules/joydrv_6552M.asm @ 2122:055c774cb633

Commented out D.SysMAP updating code, as per bug 1783594 on SF
author boisy
date Tue, 28 Aug 2007 19:36:17 +0000
parents ac2f5aa71f93
children
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 * JoyDrv - Joystick Driver for 6551/Microsoft Mouse
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 *
1263
205b4fbc08cd Fixed comments, revs to zero
boisy
parents: 0
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
205b4fbc08cd Fixed comments, revs to zero
boisy
parents: 0
diff changeset
7 * Comment
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
1263
205b4fbc08cd Fixed comments, revs to zero
boisy
parents: 0
diff changeset
9 * 6 1988/??/??
205b4fbc08cd Fixed comments, revs to zero
boisy
parents: 0
diff changeset
10 * L2 Upgrade distribution version.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12 nam JoyDrv
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 ttl Joystick Driver for 6552/Microsoft Mouse
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 * Disassembled 98/09/09 09:58:38 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 MPI set 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
2114
ac2f5aa71f93 made certain pseudo-ops uppercase
boisy
parents: 1846
diff changeset
19 IFP1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 use defsfile
2114
ac2f5aa71f93 made certain pseudo-ops uppercase
boisy
parents: 1846
diff changeset
21 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 tylg set Systm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 atrv set ReEnt+rev
1263
205b4fbc08cd Fixed comments, revs to zero
boisy
parents: 0
diff changeset
25 rev set $00
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 edition set 6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u0000 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u0002 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u0003 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u0005 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u0006 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u0007 rmb 121
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u0080 rmb 18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u0092 rmb 21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 u00A7 rmb 65213
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 name fcs /JoyDrv/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 start lbra Init
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 lbra Term
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 lbra SSMsBtn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 lbra SSMsXY
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 lbra SSJoyBtn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 SSJoyXY pshs x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 ldx #PIA0Base
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 lda <$23,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 ldb <$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 anda #$F7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 sta <$23,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 ldb $03,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 andb #$F7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 lsr $04,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 bcs L0043
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 orb #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 L0043 stb $03,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 lda ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 ora #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 bsr L0065
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 std $06,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 lda ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 anda #$F7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 bsr L0065
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 std $04,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 puls b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 stb $03,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 puls b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 stb <$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 sta <$23,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 puls pc,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 L0065 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 lda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 ldb #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 bra L0078
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 L006D lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 cmpb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 bhi L0078
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 L0078 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 sta <$20,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 tst ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 bpl L0085
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 adda ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 bra L006D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 L0085 suba ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 bra L006D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 L0089 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 L008A fcb $07,$01
1846
7a973074acbe Fixed makefile error for dskcopy target
boisy
parents: 1263
diff changeset
102
7a973074acbe Fixed makefile error for dskcopy target
boisy
parents: 1263
diff changeset
103 Init ldd #$00007
7a973074acbe Fixed makefile error for dskcopy target
boisy
parents: 1263
diff changeset
104 L008F sta b,u
7a973074acbe Fixed makefile error for dskcopy target
boisy
parents: 1263
diff changeset
105 decb
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 bpl L008F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 ldd >M$Mem,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 leax >L0089,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 leay >L0150,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 os9 F$IRQ
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 bcs L00F5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 tfr d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 ldd #$46C0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 pshs cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 stb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 clr $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 lda >PIA1Base+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 anda #$FC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 sta >PIA1Base+3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 lda >PIA1Base+2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 ldd #$0187
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 ora <u0092
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 sta <u0092
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 sta >IrqEnR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 stb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 ldb $03,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 ldb $03,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 andb >L008A,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 bne L00DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134
2114
ac2f5aa71f93 made certain pseudo-ops uppercase
boisy
parents: 1846
diff changeset
135 IFEQ MPI-1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 lda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 sta MPI.Slct
2114
ac2f5aa71f93 made certain pseudo-ops uppercase
boisy
parents: 1846
diff changeset
138 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 puls pc,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 Term pshs cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 L00DF ldx >M$Mem,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 lda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 puls cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 tfr x,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 leay >L0150,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 os9 F$IRQ
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 L00F5 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 SSJoyBtn ldb #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 ldx #PIA0Base
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 stb $02,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 andb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 SSMsBtn lda ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 bita #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 beq L010C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 orb #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 L010C bita #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 beq L0112
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 orb #$0C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 L0112 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 anda #$FA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 andb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 orb u0007,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 leax <L0132,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 lda b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 anda #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 sta u0007,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 ldb b,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 andb #$85
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 bpl L012F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 ldb u0002,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 andb #$C0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 L012F orb ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 L0132 fdb $0003,$0003,$0806,$0206,$8002,$0002,$0806,$0a06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 SSMsXY pshs cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 orcc #IntMasks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 ldx u0003,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 ldd u0005,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 rorb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 tfr d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 puls pc,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 L0150 ldx >M$Mem,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 bita #$06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 beq L0162
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 ldb $03,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 L015A lda u0002,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 anda #$FC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 L015E sta u0002,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 L0160 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 L0162 bita #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 beq L0160
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 ldb $03,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 lda u0002,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 anda #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 bne L0178
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 bitb #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 beq L0160
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 L0172 stb a,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 inc u0002,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 L0178 bitb #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 bne L015A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 cmpa #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 bcs L0172
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 ldx #$017E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 lda ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 leax u0005,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 bsr L01A7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 ldd ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 ldx #$027F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 stx ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 leax u0003,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 bsr L01A7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 leas $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 lda #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 ldx u0003,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 cmpx #$0140
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 bcc L015E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 ora #$C0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 bra L015E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 L01A7 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 rorb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 rorb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 sex
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 bpl L01B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 orb #$07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 addd #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 bra L01BB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 L01B9 andb #$F8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 L01BB asra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 rorb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 addd ,s++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 addd ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 bpl L01C5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 L01C5 cmpd $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 bls L01CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 ldd $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 L01CC std ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 end