annotate 3rdparty/packages/basic09/basic09.real.mul.68.asm @ 3054:22ddd48b4ec2

level1 krn: Fix scheduler bug that only affected 6309 The original 6809 binary was correct, but it was disassembled and interpreted wrongly, so that reassembly went wrong on 6309.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 25 Jan 2015 22:36:02 +0100
parents 7a5d3fcbe2d8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
477
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
1 * Main routine for REAL multiply - 6809 version
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
2 L40D3 pshs x Preserve X
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
3 lda 2,y Get 1st byte of mantissa
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
4 bpl L40DD If mantissa is in lower range, force result to 0
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
5 lda 8,y Get 1st byte of mantissa from 2nd number
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
6 bmi L40E9 If in upper range, go do multiply
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
7 L40DD clra
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
8 clrb
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
9 std 7,y Save 0 as result
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
10 std 9,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
11 sta $B,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
12 leay 6,y Eat temp var
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
13 puls pc,x
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
14
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
15 * Check for possible over/underflows before doing multiply
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
16 L40E9 lda 1,y Get exponent from temp var
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
17 adda 7,y Add to exponent from 1st var
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
18 bvc L40F6 If within 8 bit range, go do multiply
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
19 L40EF bpl L40DD If resulting exponent is too small, result=0
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
20 comb Resulting exponent too big, exit with
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
21 ldb #$32 Floating overflow error
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
22 puls pc,x
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
23
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
24 * Exponent possibly in range, process
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
25 L40F6 sta 7,y Save resultant exponent overtop 1st vars
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
26 ldb $B,y Get sign bit of 2nd #
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
27 eorb 5,y EOR with sign bit of 1st #
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
28 andb #$01 Only keep resulting sign bit
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
29 stb ,y Save what sign of result will be
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
30 lda $B,y Now, for actual multiply, force to positive
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
31 anda #$FE
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
32 sta $B,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
33 ldb 5,y Force both mantissa's to positive
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
34 andb #$FE
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
35 stb 5,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
36 * Possible 32x32 bit multiply routine?
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
37 mul Multiply LSB's together
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
38 sta ,-s Save MSB of result only (drop LSB)
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
39 clr ,-s And make 2 zero hi-bytes (result is 3 byte #)
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
40 clr ,-s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
41 lda $B,y LSB * 2nd LSB
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
42 ldb 4,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
43 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
44 addd 1,s Add to previous #
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
45 std 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
46 bcc L4120 No carry required, skip ahead
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
47 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
48 L4120 lda $A,y 2nd LSB * LSB
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
49 ldb 5,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
50 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
51 addd 1,s Add with carry to previous #
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
52 std 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
53 bcc L412D
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
54 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
55 L412D ldx ,s Done 16x8 multiply, now just keep MSW
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
56 stx 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
57 clr ,s Zero out hi-byte in 3 byte #
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
58 lda $B,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
59 ldb 3,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
60 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
61 addd 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
62 std 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
63 bcc L4142
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
64 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
65 L4142 lda $0A,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
66 ldb $04,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
67 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
68 addd $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
69 std $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
70 bcc L414F
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
71 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
72 L414F lda $09,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
73 ldb $05,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
74 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
75 addd 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
76 std 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
77 bcc L415C
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
78 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
79 L415C ldb 2,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
80 ldx ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
81 stx 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
82 clr ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
83 lda $B,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
84 ldb $2,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
85 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
86 addd 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
87 std 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
88 bhs L4171
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
89 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
90 L4171 lda $A,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
91 ldb $3,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
92 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
93 addd 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
94 std 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
95 bhs L417E
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
96 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
97 L417E lda 9,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
98 ldb 4,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
99 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
100 addd 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
101 std 1,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
102 bhs L418B
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
103 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
104 L418B lda $08,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
105 ldb $05,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
106 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
107 addd $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
108 std $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
109 bhs L4198
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
110 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
111 L4198 ldb $02,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
112 ldx ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
113 stx $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
114 clr ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
115 stb $0B,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
116 lda $0A,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
117 ldb $02,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
118 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
119 addd $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
120 std $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
121 bcc L41AF
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
122 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
123 L41AF lda $09,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
124 ldb $03,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
125 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
126 addd $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
127 std $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
128 bcc L41BC
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
129 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
130 L41BC lda $08,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
131 ldb $04,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
132 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
133 addd $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
134 std $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
135 bcc L41C9
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
136 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
137 L41C9 ldb $02,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
138 ldx ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
139 stx $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
140 clr ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
141 stb $0A,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
142 lda $09,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
143 ldb $02,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
144 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
145 addd $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
146 std $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
147 bcc L41E0
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
148 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
149 L41E0 lda $08,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
150 ldb $03,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
151 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
152 addd $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
153 std $01,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
154 bcc L41ED
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
155 inc ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
156 L41ED lda $08,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
157 ldb $02,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
158 mul
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
159 addd ,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
160 bmi L4202
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
161 lsl $0B,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
162 rol $0A,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
163 rol $02,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
164 rolb
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
165 rola
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
166 dec 7,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
167 bvs L421B
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
168 L4202 std 8,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
169 lda 2,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
170 ldb $A,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
171 addd #$0001
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
172 bcc L4220
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
173 inc 9,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
174 bne L4222
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
175 inc 8,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
176 bne L4222
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
177 ror 8,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
178 inc 7,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
179 bvc L4222
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
180 L421B leas 3,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
181 lbra L40EF
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
182
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
183 L4220 andb #$FE
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
184 L4222 orb ,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
185 std $A,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
186 leay 6,y
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
187 leas 3,s
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
188 clrb No error, restore & return
7a5d3fcbe2d8 Added Basic09 sources from Curtis Boyle
boisy
parents:
diff changeset
189 puls pc,x