|
4
|
1 |
; =============== S U B R O U T I N E =======================================
|
|
|
2 |
|
|
|
3 |
|
|
7
|
4 |
sub_BD1:
|
|
|
5 |
|
|
|
6 |
|
|
4
|
7 |
|
|
|
8 |
call OP1ToOP3
|
|
|
9 |
call OP2ToOP4
|
|
8
|
10 |
jp cpop1op2
|
|
4
|
11 |
; End of function sub_BD1
|
|
|
12 |
|
|
|
13 |
; ---------------------------------------------------------------------------
|
|
|
14 |
|
|
|
15 |
Min:
|
|
|
16 |
call sub_BD1
|
|
8
|
17 |
jp c, OP3ToOP1
|
|
|
18 |
jp OP4ToOP1
|
|
4
|
19 |
; ---------------------------------------------------------------------------
|
|
|
20 |
|
|
|
21 |
Max:
|
|
|
22 |
call sub_BD1
|
|
8
|
23 |
jp c, OP4ToOP1
|
|
|
24 |
jp OP3ToOP1
|
|
4
|
25 |
; ---------------------------------------------------------------------------
|
|
|
26 |
|
|
|
27 |
page0_BEC:
|
|
|
28 |
call Mov9ToOP2
|
|
8
|
29 |
jr FPAdd
|
|
4
|
30 |
; ---------------------------------------------------------------------------
|
|
|
31 |
|
|
|
32 |
BCALL_405A:
|
|
|
33 |
call ClrOP1S
|
|
|
34 |
call ClrOP2S
|
|
8
|
35 |
jr FPAdd
|
|
4
|
36 |
; ---------------------------------------------------------------------------
|
|
|
37 |
|
|
|
38 |
BCALL_405D:
|
|
|
39 |
call page0_14E1
|
|
8
|
40 |
ret z
|
|
|
41 |
ld a, (OP1)
|
|
4
|
42 |
push af
|
|
|
43 |
call Trunc
|
|
8
|
44 |
pop af
|
|
|
45 |
and 80h ; ''
|
|
|
46 |
jr nz, Minus1
|
|
4
|
47 |
ret
|
|
|
48 |
; ---------------------------------------------------------------------------
|
|
|
49 |
|
|
|
50 |
page0_C0A:
|
|
|
51 |
call InvOP1S
|
|
8
|
52 |
jr page0_C3D
|
|
4
|
53 |
|
|
|
54 |
; =============== S U B R O U T I N E =======================================
|
|
|
55 |
|
|
|
56 |
|
|
7
|
57 |
Trunc:
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
4
|
62 |
|
|
8
|
63 |
rst 8
|
|
4
|
64 |
call frac
|
|
|
65 |
|
|
|
66 |
InvSub:
|
|
|
67 |
call InvOP1S
|
|
8
|
68 |
jr FPAdd
|
|
4
|
69 |
; ---------------------------------------------------------------------------
|
|
|
70 |
|
|
|
71 |
Times2:
|
|
8
|
72 |
rst 8
|
|
|
73 |
jr FPAdd
|
|
4
|
74 |
; ---------------------------------------------------------------------------
|
|
|
75 |
|
|
7
|
76 |
Plus1:
|
|
4
|
77 |
call OP2Set1
|
|
8
|
78 |
jr FPAdd
|
|
4
|
79 |
; ---------------------------------------------------------------------------
|
|
|
80 |
|
|
|
81 |
page0_C20:
|
|
|
82 |
call Mov9ToOP2
|
|
8
|
83 |
jr FPAdd
|
|
4
|
84 |
; ---------------------------------------------------------------------------
|
|
|
85 |
|
|
|
86 |
page0_C25:
|
|
|
87 |
call Mov9ToOP2
|
|
8
|
88 |
jr FPSub
|
|
4
|
89 |
; ---------------------------------------------------------------------------
|
|
|
90 |
|
|
7
|
91 |
Minus1:
|
|
4
|
92 |
call OP2Set1
|
|
|
93 |
|
|
7
|
94 |
FPSub:
|
|
8
|
95 |
ld hl, 8483h
|
|
|
96 |
ld a, (hl)
|
|
|
97 |
xor 80h ; ''
|
|
|
98 |
ld (hl), a
|
|
4
|
99 |
|
|
7
|
100 |
FPAdd:
|
|
8
|
101 |
res 6, (iy+0Eh)
|
|
4
|
102 |
call page0_FB5
|
|
8
|
103 |
jr page0_C41
|
|
4
|
104 |
; ---------------------------------------------------------------------------
|
|
|
105 |
|
|
7
|
106 |
page0_C3D:
|
|
8
|
107 |
set 6, (iy+0Eh)
|
|
4
|
108 |
|
|
7
|
109 |
page0_C41:
|
|
4
|
110 |
call CkOP2FP0
|
|
8
|
111 |
ret z
|
|
4
|
112 |
call CkOP1FP0
|
|
8
|
113 |
jp z, OP2ToOP1
|
|
4
|
114 |
call OP1MOP2EXP
|
|
8
|
115 |
jr nc, page0_C8E
|
|
|
116 |
add a, (hl)
|
|
|
117 |
ld d, (hl)
|
|
|
118 |
ld e, a
|
|
|
119 |
ld a, d
|
|
|
120 |
ld (unk_8479), a
|
|
|
121 |
sub e
|
|
|
122 |
cp 10h
|
|
|
123 |
jp nc, OP2ToOP1
|
|
|
124 |
ld b, a
|
|
4
|
125 |
|
|
7
|
126 |
page0_C5E:
|
|
8
|
127 |
ld hl, 847Ah
|
|
4
|
128 |
call SHR16
|
|
|
129 |
djnz page0_C5E
|
|
8
|
130 |
ld a, (OP2)
|
|
|
131 |
and 80h ; ''
|
|
|
132 |
ld c, a
|
|
|
133 |
ld a, (OP1)
|
|
|
134 |
and 80h ; ''
|
|
|
135 |
xor c
|
|
|
136 |
ld a, c
|
|
|
137 |
ld (OP1), a
|
|
|
138 |
jr z, page0_CAD
|
|
4
|
139 |
call sub_1415
|
|
8
|
140 |
jr nc, page0_CCF
|
|
4
|
141 |
call sub_1397
|
|
|
142 |
call page0_141D
|
|
8
|
143 |
ld a, (OP1)
|
|
|
144 |
xor 80h ; ''
|
|
|
145 |
ld (OP1), a
|
|
|
146 |
jp page0_CD2
|
|
4
|
147 |
; ---------------------------------------------------------------------------
|
|
|
148 |
|
|
7
|
149 |
page0_C8E:
|
|
8
|
150 |
jr z, page0_C9C
|
|
|
151 |
cp 10h
|
|
|
152 |
ret nc
|
|
|
153 |
ld b, a
|
|
4
|
154 |
|
|
7
|
155 |
page0_C94:
|
|
8
|
156 |
ld hl, 8485h
|
|
4
|
157 |
call SHR16
|
|
|
158 |
djnz page0_C94
|
|
|
159 |
|
|
7
|
160 |
page0_C9C:
|
|
8
|
161 |
ld a, (OP1)
|
|
|
162 |
and 80h ; ''
|
|
|
163 |
ld (OP1), a
|
|
|
164 |
ld c, a
|
|
|
165 |
ld a, (OP2)
|
|
|
166 |
and 80h ; ''
|
|
|
167 |
xor c
|
|
|
168 |
jr nz, page0_CC4
|
|
4
|
169 |
|
|
7
|
170 |
page0_CAD:
|
|
4
|
171 |
call page0_139F
|
|
8
|
172 |
jr nc, page0_CB8
|
|
4
|
173 |
call sub_12F5
|
|
|
174 |
call INCO1EXP
|
|
|
175 |
|
|
7
|
176 |
page0_CB8:
|
|
4
|
177 |
call sub_CDF
|
|
8
|
178 |
bit 6, (iy+0Eh)
|
|
|
179 |
jr z, page0_D06
|
|
|
180 |
jp LJNORND
|
|
4
|
181 |
; ---------------------------------------------------------------------------
|
|
|
182 |
|
|
7
|
183 |
page0_CC4:
|
|
4
|
184 |
call page0_141D
|
|
8
|
185 |
jr nc, page0_CD2
|
|
4
|
186 |
call page0_139F
|
|
|
187 |
call sub_1415
|
|
|
188 |
|
|
7
|
189 |
page0_CCF:
|
|
4
|
190 |
call OP2ToOP1
|
|
|
191 |
|
|
7
|
192 |
page0_CD2:
|
|
4
|
193 |
call sub_CDF
|
|
8
|
194 |
bit 6, (iy+0Eh)
|
|
|
195 |
jp z, LJRND
|
|
|
196 |
jp LJNORND
|
|
4
|
197 |
; End of function Trunc
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
; =============== S U B R O U T I N E =======================================
|
|
|
201 |
|
|
|
202 |
|
|
7
|
203 |
sub_CDF:
|
|
6
|
204 |
; Trunc:loc_CD2p
|
|
4
|
205 |
|
|
7
|
206 |
|
|
|
207 |
|
|
4
|
208 |
|
|
8
|
209 |
ld hl, 847Ah
|
|
|
210 |
ld b, 6
|
|
4
|
211 |
call sub_1525
|
|
8
|
212 |
ret nz
|
|
|
213 |
ld a, (hl)
|
|
|
214 |
cp 10h
|
|
|
215 |
ret nc
|
|
|
216 |
xor a
|
|
|
217 |
inc hl
|
|
|
218 |
ld (hl), a
|
|
|
219 |
jp OP1Set0
|
|
4
|
220 |
; End of function sub_CDF
|
|
|
221 |
|
|
|
222 |
|
|
|
223 |
; =============== S U B R O U T I N E =======================================
|
|
|
224 |
|
|
|
225 |
|
|
7
|
226 |
page0_CF2:
|
|
|
227 |
|
|
|
228 |
|
|
4
|
229 |
|
|
8
|
230 |
ld a, 5
|
|
|
231 |
jr page0_CF7
|
|
4
|
232 |
; ---------------------------------------------------------------------------
|
|
|
233 |
|
|
7
|
234 |
page0_CF6:
|
|
8
|
235 |
xor a
|
|
4
|
236 |
|
|
7
|
237 |
page0_CF7:
|
|
4
|
238 |
call GETCONOP2
|
|
|
239 |
|
|
|
240 |
page0_CFA:
|
|
8
|
241 |
set 6, (iy+0Eh)
|
|
|
242 |
jr page0_D26
|
|
4
|
243 |
; End of function page0_CF2
|
|
|
244 |
|
|
|
245 |
; ---------------------------------------------------------------------------
|
|
|
246 |
|
|
|
247 |
DToR:
|
|
|
248 |
call page0_FB5
|
|
|
249 |
call page0_CF2
|
|
|
250 |
; START OF FUNCTION CHUNK FOR Trunc
|
|
|
251 |
|
|
7
|
252 |
page0_D06:
|
|
8
|
253 |
jp page0_E2D
|
|
4
|
254 |
; END OF FUNCTION CHUNK FOR Trunc
|
|
|
255 |
; ---------------------------------------------------------------------------
|
|
|
256 |
|
|
|
257 |
RToD:
|
|
|
258 |
call page0_FB5
|
|
|
259 |
call page0_CF6
|
|
8
|
260 |
jr page0_D06
|
|
4
|
261 |
; ---------------------------------------------------------------------------
|
|
|
262 |
|
|
|
263 |
Cube:
|
|
|
264 |
call FPSquare
|
|
8
|
265 |
jr FPMult
|
|
4
|
266 |
; ---------------------------------------------------------------------------
|
|
|
267 |
|
|
|
268 |
TimesPt5:
|
|
8
|
269 |
ld hl, page0_FC3
|
|
4
|
270 |
|
|
|
271 |
page0_D19:
|
|
|
272 |
call Mov9ToOP2
|
|
8
|
273 |
jr FPMult
|
|
4
|
274 |
|
|
|
275 |
; =============== S U B R O U T I N E =======================================
|
|
|
276 |
|
|
|
277 |
|
|
7
|
278 |
FPSquare:
|
|
8
|
279 |
rst 8
|
|
4
|
280 |
|
|
7
|
281 |
FPMult:
|
|
8
|
282 |
res 6, (iy+0Eh)
|
|
4
|
283 |
call page0_FB5
|
|
|
284 |
; End of function FPSquare
|
|
|
285 |
|
|
|
286 |
; START OF FUNCTION CHUNK FOR page0_CF2
|
|
|
287 |
|
|
7
|
288 |
page0_D26:
|
|
4
|
289 |
call CkOP1FP0
|
|
8
|
290 |
ret z
|
|
4
|
291 |
call CkOP2FP0
|
|
8
|
292 |
jp z, OP2ToOP1
|
|
4
|
293 |
call page0_E9E
|
|
8
|
294 |
ld a, d
|
|
|
295 |
ld (unk_8479), a
|
|
4
|
296 |
|
|
|
297 |
page0_D37:
|
|
|
298 |
call ZeroOP3
|
|
8
|
299 |
ld b, 8
|
|
|
300 |
ld hl, 848Dh
|
|
4
|
301 |
|
|
7
|
302 |
page0_D3F:
|
|
8
|
303 |
dec hl
|
|
|
304 |
cp (hl)
|
|
|
305 |
jr nz, page0_D4F
|
|
4
|
306 |
djnz page0_D3F
|
|
|
307 |
|
|
7
|
308 |
page0_D45:
|
|
8
|
309 |
ld hl, 848Fh
|
|
4
|
310 |
call SHR16
|
|
|
311 |
rrd
|
|
8
|
312 |
pop hl
|
|
|
313 |
dec hl
|
|
4
|
314 |
|
|
7
|
315 |
page0_D4F:
|
|
4
|
316 |
push hl
|
|
|
317 |
push bc
|
|
8
|
318 |
ld a, (hl)
|
|
|
319 |
ld c, a
|
|
|
320 |
and 0Fh
|
|
|
321 |
jr z, page0_D96
|
|
|
322 |
ld b, a
|
|
4
|
323 |
|
|
7
|
324 |
page0_D58:
|
|
8
|
325 |
ld de, 8497h
|
|
|
326 |
ld hl, (unk_8480)
|
|
|
327 |
ld a, (de)
|
|
|
328 |
add a, h
|
|
4
|
329 |
daa
|
|
8
|
330 |
ld (de), a
|
|
|
331 |
dec de
|
|
|
332 |
ld a, (de)
|
|
4
|
333 |
adc a, l
|
|
|
334 |
daa
|
|
8
|
335 |
ld (de), a
|
|
|
336 |
dec de
|
|
|
337 |
ld hl, (unk_847E)
|
|
|
338 |
ld a, (de)
|
|
4
|
339 |
adc a, h
|
|
|
340 |
daa
|
|
8
|
341 |
ld (de), a
|
|
|
342 |
dec de
|
|
|
343 |
ld a, (de)
|
|
4
|
344 |
adc a, l
|
|
|
345 |
daa
|
|
8
|
346 |
ld (de), a
|
|
|
347 |
dec de
|
|
|
348 |
ld hl, (unk_847C)
|
|
|
349 |
ld a, (de)
|
|
4
|
350 |
adc a, h
|
|
|
351 |
daa
|
|
8
|
352 |
ld (de), a
|
|
|
353 |
dec de
|
|
|
354 |
ld a, (de)
|
|
4
|
355 |
adc a, l
|
|
|
356 |
daa
|
|
8
|
357 |
ld (de), a
|
|
|
358 |
dec de
|
|
|
359 |
ld hl, (OP1M)
|
|
|
360 |
ld a, (de)
|
|
4
|
361 |
adc a, h
|
|
|
362 |
daa
|
|
8
|
363 |
ld (de), a
|
|
|
364 |
dec de
|
|
|
365 |
ld a, (de)
|
|
4
|
366 |
adc a, l
|
|
|
367 |
daa
|
|
8
|
368 |
ld (de), a
|
|
|
369 |
jp nc, page0_D94
|
|
|
370 |
dec de
|
|
|
371 |
ex de, hl
|
|
|
372 |
inc (hl)
|
|
4
|
373 |
|
|
7
|
374 |
page0_D94:
|
|
4
|
375 |
djnz page0_D58
|
|
|
376 |
|
|
7
|
377 |
page0_D96:
|
|
8
|
378 |
ld hl, 848Fh
|
|
4
|
379 |
call SHR16
|
|
|
380 |
rrd
|
|
8
|
381 |
ld a, c
|
|
4
|
382 |
rra
|
|
|
383 |
rra
|
|
|
384 |
rra
|
|
|
385 |
rra
|
|
8
|
386 |
and 0Fh
|
|
|
387 |
jr z, page0_DE6
|
|
|
388 |
ld b, a
|
|
4
|
389 |
|
|
7
|
390 |
page0_DA8:
|
|
8
|
391 |
ld de, 8497h
|
|
|
392 |
ld hl, (unk_8480)
|
|
|
393 |
ld a, (de)
|
|
|
394 |
add a, h
|
|
4
|
395 |
daa
|
|
8
|
396 |
ld (de), a
|
|
|
397 |
dec de
|
|
|
398 |
ld a, (de)
|
|
4
|
399 |
adc a, l
|
|
|
400 |
daa
|
|
8
|
401 |
ld (de), a
|
|
|
402 |
dec de
|
|
|
403 |
ld hl, (unk_847E)
|
|
|
404 |
ld a, (de)
|
|
4
|
405 |
adc a, h
|
|
|
406 |
daa
|
|
8
|
407 |
ld (de), a
|
|
|
408 |
dec de
|
|
|
409 |
ld a, (de)
|
|
4
|
410 |
adc a, l
|
|
|
411 |
daa
|
|
8
|
412 |
ld (de), a
|
|
|
413 |
dec de
|
|
|
414 |
ld hl, (unk_847C)
|
|
|
415 |
ld a, (de)
|
|
4
|
416 |
adc a, h
|
|
|
417 |
daa
|
|
8
|
418 |
ld (de), a
|
|
|
419 |
dec de
|
|
|
420 |
ld a, (de)
|
|
4
|
421 |
adc a, l
|
|
|
422 |
daa
|
|
8
|
423 |
ld (de), a
|
|
|
424 |
dec de
|
|
|
425 |
ld hl, (OP1M)
|
|
|
426 |
ld a, (de)
|
|
4
|
427 |
adc a, h
|
|
|
428 |
daa
|
|
8
|
429 |
ld (de), a
|
|
|
430 |
dec de
|
|
|
431 |
ld a, (de)
|
|
4
|
432 |
adc a, l
|
|
|
433 |
daa
|
|
8
|
434 |
ld (de), a
|
|
|
435 |
jp nc, page0_DE4
|
|
|
436 |
dec de
|
|
|
437 |
ex de, hl
|
|
|
438 |
inc (hl)
|
|
4
|
439 |
|
|
7
|
440 |
page0_DE4:
|
|
4
|
441 |
djnz page0_DA8
|
|
|
442 |
|
|
7
|
443 |
page0_DE6:
|
|
8
|
444 |
pop bc
|
|
|
445 |
dec b
|
|
|
446 |
jp nz, page0_D45
|
|
|
447 |
pop hl
|
|
|
448 |
ld a, (unk_848F)
|
|
|
449 |
and a
|
|
|
450 |
jr z, page0_DFD
|
|
|
451 |
ld hl, 848Fh
|
|
4
|
452 |
call SHR16
|
|
|
453 |
rrd
|
|
|
454 |
call INCO1EXP
|
|
|
455 |
|
|
7
|
456 |
page0_DFD:
|
|
4
|
457 |
call page0_11CB
|
|
8
|
458 |
bit 6, (iy+0Eh)
|
|
|
459 |
ret nz
|
|
|
460 |
jr page0_E2D
|
|
4
|
461 |
; END OF FUNCTION CHUNK FOR page0_CF2
|
|
|
462 |
; ---------------------------------------------------------------------------
|
|
|
463 |
; START OF FUNCTION CHUNK FOR Trunc
|
|
|
464 |
|
|
7
|
465 |
LJRND:
|
|
8
|
466 |
ld hl, 847Ah
|
|
|
467 |
ld a, (hl)
|
|
|
468 |
and 0F0h ;
|
|
|
469 |
jr nz, page0_E2D
|
|
|
470 |
ld c, 10h
|
|
4
|
471 |
|
|
7
|
472 |
page0_E11:
|
|
8
|
473 |
dec c
|
|
|
474 |
jp z, OP1Set0
|
|
4
|
475 |
call page0_1301
|
|
8
|
476 |
inc hl
|
|
|
477 |
ld a, (hl)
|
|
|
478 |
and 0F0h ;
|
|
|
479 |
jp z, page0_E11
|
|
|
480 |
ld a, 10h
|
|
|
481 |
sub c
|
|
|
482 |
ld c, a
|
|
|
483 |
ld a, (unk_8479)
|
|
|
484 |
sub c
|
|
|
485 |
jp c, OP1Set0
|
|
|
486 |
ld (unk_8479), a
|
|
4
|
487 |
|
|
7
|
488 |
page0_E2D:
|
|
6
|
489 |
; page0_CF2+113j ...
|
|
8
|
490 |
ld a, (OP1)
|
|
|
491 |
and 80h ; ''
|
|
|
492 |
ld (OP1), a
|
|
|
493 |
ld hl, 8481h
|
|
|
494 |
ld a, (hl)
|
|
|
495 |
ld (hl), 0
|
|
|
496 |
dec hl
|
|
|
497 |
add a, 0B0h ; 'Ч
|
|
|
498 |
ret nc
|
|
4
|
499 |
call sub_1373
|
|
8
|
500 |
ret nc
|
|
|
501 |
inc hl
|
|
|
502 |
ld (hl), 10h
|
|
|
503 |
jp INCO1EXP
|
|
4
|
504 |
; END OF FUNCTION CHUNK FOR Trunc
|
|
|
505 |
; ---------------------------------------------------------------------------
|
|
|
506 |
|
|
|
507 |
InvOP1SC:
|
|
|
508 |
call InvOP2S
|
|
|
509 |
|
|
|
510 |
; =============== S U B R O U T I N E =======================================
|
|
|
511 |
|
|
|
512 |
|
|
7
|
513 |
InvOP1S:
|
|
6
|
514 |
; Trunc:InvSubp
|
|
4
|
515 |
call CkOP1FP0
|
|
8
|
516 |
ld a, (OP1)
|
|
|
517 |
jr nz, page0_E56
|
|
|
518 |
or 80h ; ''
|
|
4
|
519 |
|
|
7
|
520 |
page0_E56:
|
|
8
|
521 |
xor 80h ; ''
|
|
|
522 |
ld (OP1), a
|
|
4
|
523 |
ret
|
|
|
524 |
; End of function InvOP1S
|
|
|
525 |
|
|
|
526 |
|
|
|
527 |
; =============== S U B R O U T I N E =======================================
|
|
|
528 |
|
|
|
529 |
|
|
7
|
530 |
InvOP2S:
|
|
4
|
531 |
call CkOP2FP0
|
|
8
|
532 |
ld a, (OP2)
|
|
|
533 |
jr nz, page0_E66
|
|
|
534 |
or 80h ; ''
|
|
4
|
535 |
|
|
7
|
536 |
page0_E66:
|
|
8
|
537 |
xor 80h ; ''
|
|
|
538 |
ld (OP2), a
|
|
4
|
539 |
ret
|
|
|
540 |
; End of function InvOP2S
|
|
|
541 |
|
|
|
542 |
; ---------------------------------------------------------------------------
|
|
8
|
543 |
and 80h ; ''
|
|
|
544 |
ld (OP1), a
|
|
4
|
545 |
ret
|
|
|
546 |
|
|
|
547 |
; =============== S U B R O U T I N E =======================================
|
|
|
548 |
|
|
|
549 |
|
|
7
|
550 |
frac:
|
|
4
|
551 |
call CkOP1FP0
|
|
8
|
552 |
ret z
|
|
|
553 |
xor a
|
|
|
554 |
ld (unk_8481), a
|
|
|
555 |
ld a, (unk_8479)
|
|
|
556 |
sub 80h ; ''
|
|
|
557 |
ret c
|
|
|
558 |
cp 0Fh
|
|
|
559 |
jr c, page0_E8E
|
|
|
560 |
jr page0_EBE
|
|
4
|
561 |
; ---------------------------------------------------------------------------
|
|
|
562 |
|
|
7
|
563 |
page0_E86:
|
|
8
|
564 |
ld a, (unk_8479)
|
|
|
565 |
cp 80h ; ''
|
|
|
566 |
jp c, LJRND
|
|
4
|
567 |
|
|
7
|
568 |
page0_E8E:
|
|
4
|
569 |
call page0_12EF
|
|
|
570 |
call DecO1Exp
|
|
8
|
571 |
jr page0_E86
|
|
4
|
572 |
; ---------------------------------------------------------------------------
|
|
|
573 |
|
|
7
|
574 |
page0_E96:
|
|
8
|
575 |
ld a, (unk_8484)
|
|
4
|
576 |
cpl
|
|
8
|
577 |
inc a
|
|
|
578 |
ld d, a
|
|
|
579 |
jr page0_EA2
|
|
4
|
580 |
; ---------------------------------------------------------------------------
|
|
|
581 |
|
|
7
|
582 |
page0_E9E:
|
|
8
|
583 |
ld a, (unk_8484)
|
|
|
584 |
ld d, a
|
|
4
|
585 |
|
|
7
|
586 |
page0_EA2:
|
|
8
|
587 |
ld a, (unk_8479)
|
|
|
588 |
add a, d
|
|
|
589 |
jr nc, page0_EAF
|
|
|
590 |
add a, 80h ; ''
|
|
|
591 |
jr nc, page0_EB3
|
|
|
592 |
jp ErrOverflow
|
|
4
|
593 |
; ---------------------------------------------------------------------------
|
|
|
594 |
|
|
7
|
595 |
page0_EAF:
|
|
8
|
596 |
add a, 80h ; ''
|
|
|
597 |
jr nc, page0_EBD
|
|
4
|
598 |
|
|
7
|
599 |
page0_EB3:
|
|
8
|
600 |
ld d, a
|
|
|
601 |
ld a, (OP2)
|
|
|
602 |
ld hl, 8478h
|
|
|
603 |
xor (hl)
|
|
|
604 |
ld (hl), a
|
|
4
|
605 |
ret
|
|
|
606 |
; ---------------------------------------------------------------------------
|
|
|
607 |
|
|
7
|
608 |
page0_EBD:
|
|
8
|
609 |
pop bc
|
|
4
|
610 |
|
|
7
|
611 |
page0_EBE:
|
|
8
|
612 |
jp OP1Set0
|
|
4
|
613 |
; End of function frac
|
|
|
614 |
|
|
|
615 |
; ---------------------------------------------------------------------------
|
|
|
616 |
|
|
|
617 |
page0_EC1:
|
|
|
618 |
call Mov9ToOP2
|
|
8
|
619 |
jr fpdiv
|
|
4
|
620 |
; ---------------------------------------------------------------------------
|
|
|
621 |
|
|
|
622 |
page0_EC6:
|
|
8
|
623 |
set 6, (iy+0Eh)
|
|
|
624 |
jr page0_ED7
|
|
4
|
625 |
; ---------------------------------------------------------------------------
|
|
|
626 |
|
|
|
627 |
fprecip:
|
|
8
|
628 |
rst 8
|
|
4
|
629 |
call OP1Set1
|
|
|
630 |
|
|
7
|
631 |
fpdiv:
|
|
8
|
632 |
res 6, (iy+0Eh)
|
|
4
|
633 |
call page0_FB5
|
|
|
634 |
|
|
7
|
635 |
page0_ED7:
|
|
4
|
636 |
call CkOP2FP0
|
|
8
|
637 |
jp z, ErrDivBy0
|
|
4
|
638 |
call CkOP1FP0
|
|
8
|
639 |
ret z
|
|
4
|
640 |
call page0_E96
|
|
8
|
641 |
ld e, a
|
|
|
642 |
ld (OP3), de
|
|
|
643 |
xor a
|
|
|
644 |
ld (unk_8479), a
|
|
|
645 |
ld b, 0Fh
|
|
|
646 |
bit 6, (iy+0Eh)
|
|
|
647 |
jr z, page0_EF7
|
|
|
648 |
ld b, 10h
|
|
4
|
649 |
|
|
7
|
650 |
page0_EF7:
|
|
8
|
651 |
ld hl, 8490h
|
|
4
|
652 |
push hl
|
|
8
|
653 |
ld c, a
|
|
|
654 |
ld hl, 848Ch
|
|
|
655 |
ld de, 8481h
|
|
4
|
656 |
call SUB16D
|
|
8
|
657 |
jr nc, page0_F24
|
|
|
658 |
ld hl, 848Fh
|
|
|
659 |
dec (hl)
|
|
|
660 |
ld a, (hl)
|
|
|
661 |
cp 0FFh
|
|
|
662 |
jr nz, page0_F13
|
|
|
663 |
pop hl
|
|
|
664 |
jr page0_EBE
|
|
4
|
665 |
; ---------------------------------------------------------------------------
|
|
|
666 |
|
|
7
|
667 |
page0_F13:
|
|
8
|
668 |
ld c, 0
|
|
4
|
669 |
|
|
7
|
670 |
page0_F15:
|
|
8
|
671 |
ld hl, 848Ch
|
|
|
672 |
ld de, 8481h
|
|
4
|
673 |
call ADD16D
|
|
|
674 |
call page0_1301
|
|
8
|
675 |
ld (hl), a
|
|
|
676 |
jr page0_F25
|
|
4
|
677 |
; ---------------------------------------------------------------------------
|
|
|
678 |
|
|
7
|
679 |
page0_F24:
|
|
8
|
680 |
inc c
|
|
4
|
681 |
|
|
7
|
682 |
page0_F25:
|
|
8
|
683 |
ld de, 8481h
|
|
|
684 |
ld hl, (unk_848B)
|
|
|
685 |
ld a, (de)
|
|
|
686 |
sub h
|
|
4
|
687 |
daa
|
|
8
|
688 |
ld (de), a
|
|
|
689 |
dec de
|
|
|
690 |
ld a, (de)
|
|
|
691 |
sbc a, l
|
|
4
|
692 |
daa
|
|
8
|
693 |
ld (de), a
|
|
|
694 |
dec de
|
|
|
695 |
ld hl, (unk_8489)
|
|
|
696 |
ld a, (de)
|
|
|
697 |
sbc a, h
|
|
4
|
698 |
daa
|
|
8
|
699 |
ld (de), a
|
|
|
700 |
dec de
|
|
|
701 |
ld a, (de)
|
|
|
702 |
sbc a, l
|
|
4
|
703 |
daa
|
|
8
|
704 |
ld (de), a
|
|
|
705 |
dec de
|
|
|
706 |
ld hl, (unk_8487)
|
|
|
707 |
ld a, (de)
|
|
|
708 |
sbc a, h
|
|
4
|
709 |
daa
|
|
8
|
710 |
ld (de), a
|
|
|
711 |
dec de
|
|
|
712 |
ld a, (de)
|
|
|
713 |
sbc a, l
|
|
4
|
714 |
daa
|
|
8
|
715 |
ld (de), a
|
|
|
716 |
dec de
|
|
|
717 |
ld hl, (OP2M)
|
|
|
718 |
ld a, (de)
|
|
|
719 |
sbc a, h
|
|
4
|
720 |
daa
|
|
8
|
721 |
ld (de), a
|
|
|
722 |
dec de
|
|
|
723 |
ld a, (de)
|
|
|
724 |
sbc a, l
|
|
4
|
725 |
daa
|
|
8
|
726 |
ld (de), a
|
|
|
727 |
jp nc, page0_F24
|
|
|
728 |
dec de
|
|
|
729 |
ex de, hl
|
|
|
730 |
dec (hl)
|
|
|
731 |
jp p, page0_F24
|
|
|
732 |
bit 6, (iy+0Eh)
|
|
|
733 |
jr z, page0_F70
|
|
|
734 |
bit 0, b
|
|
|
735 |
jr z, page0_F74
|
|
|
736 |
jr page0_F7F
|
|
4
|
737 |
; ---------------------------------------------------------------------------
|
|
|
738 |
|
|
7
|
739 |
page0_F70:
|
|
8
|
740 |
bit 0, b
|
|
|
741 |
jr z, page0_F7F
|
|
4
|
742 |
|
|
7
|
743 |
page0_F74:
|
|
8
|
744 |
ld a, c
|
|
|
745 |
add a, a
|
|
|
746 |
add a, a
|
|
|
747 |
add a, a
|
|
|
748 |
add a, a
|
|
|
749 |
ld c, a
|
|
|
750 |
dec b
|
|
|
751 |
jr z, page0_F8A
|
|
|
752 |
jr page0_F15
|
|
4
|
753 |
; ---------------------------------------------------------------------------
|
|
|
754 |
|
|
7
|
755 |
page0_F7F:
|
|
8
|
756 |
pop hl
|
|
|
757 |
ld (hl), c
|
|
|
758 |
dec b
|
|
|
759 |
jr z, page0_F8C
|
|
|
760 |
inc hl
|
|
4
|
761 |
push hl
|
|
8
|
762 |
ld c, 0
|
|
|
763 |
jr page0_F15
|
|
4
|
764 |
; ---------------------------------------------------------------------------
|
|
|
765 |
|
|
7
|
766 |
page0_F8A:
|
|
8
|
767 |
pop hl
|
|
|
768 |
ld (hl), c
|
|
4
|
769 |
|
|
7
|
770 |
page0_F8C:
|
|
4
|
771 |
call OP3ToOP1
|
|
8
|
772 |
bit 6, (iy+0Eh)
|
|
|
773 |
jp z, LJRND
|
|
|
774 |
jr LJNORND
|
|
4
|
775 |
; START OF FUNCTION CHUNK FOR Trunc
|
|
|
776 |
|
|
7
|
777 |
LJNORND:
|
|
8
|
778 |
ld c, 11h
|
|
4
|
779 |
|
|
7
|
780 |
page0_F9A:
|
|
8
|
781 |
ld a, (OP1M)
|
|
|
782 |
and 0F0h ;
|
|
|
783 |
ret nz
|
|
|
784 |
dec c
|
|
|
785 |
jr z, page0_FAC
|
|
4
|
786 |
call page0_1301
|
|
|
787 |
call DecO1Exp
|
|
8
|
788 |
jr nc, page0_F9A
|
|
4
|
789 |
ret
|
|
|
790 |
; ---------------------------------------------------------------------------
|
|
|
791 |
|
|
7
|
792 |
page0_FAC:
|
|
8
|
793 |
jp OP1Set0
|
|
4
|
794 |
; END OF FUNCTION CHUNK FOR Trunc
|
|
|
795 |
; ---------------------------------------------------------------------------
|
|
|
796 |
|
|
|
797 |
int:
|
|
8
|
798 |
ld d, 0
|
|
4
|
799 |
|
|
|
800 |
Round:
|
|
|
801 |
call Page0Call_3E73
|
|
|
802 |
ret
|
|
|
803 |
|
|
|
804 |
; =============== S U B R O U T I N E =======================================
|
|
|
805 |
|
|
|
806 |
|
|
7
|
807 |
page0_FB5:
|
|
8
|
808 |
xor a
|
|
|
809 |
ld (unk_8481), a
|
|
|
810 |
ld (OP2EXT), a
|
|
|
811 |
ld (unk_8482), a
|
|
|
812 |
ld (unk_848D), a
|
|
4
|
813 |
ret
|
|
|
814 |
; End of function page0_FB5
|
|
|
815 |
|
|
|
816 |
page0_FC3:
|
|
8
|
817 |
.db 0
|
|
|
818 |
.db 7Fh ;
|
|
|
819 |
.db 50h ; P
|
|
|
820 |
.db 0
|
|
|
821 |
.db 0
|
|
|
822 |
.db 0
|
|
|
823 |
.db 0
|
|
|
824 |
.db 0
|
|
|
825 |
.db 0
|
|
4
|
826 |
page0_FCC:
|
|
8
|
827 |
.db 0
|
|
|
828 |
.db 7Fh ;
|
|
|
829 |
.db 25h ; %
|
|
|
830 |
.db 0
|
|
|
831 |
.db 0
|
|
|
832 |
.db 0
|
|
|
833 |
.db 0
|
|
|
834 |
.db 0
|
|
|
835 |
.db 0
|
|
4
|
836 |
page0_FD5:
|
|
8
|
837 |
.db 0
|
|
|
838 |
.db 7Fh ;
|
|
|
839 |
.db 75h ; u
|
|
|
840 |
.db 0
|
|
|
841 |
.db 0
|
|
|
842 |
.db 0
|
|
|
843 |
.db 0
|
|
|
844 |
.db 0
|
|
|
845 |
.db 0
|
|
4
|
846 |
; ---------------------------------------------------------------------------
|
|
|
847 |
|
|
|
848 |
page0_FDE:
|
|
8
|
849 |
ld a, 0E3h ; '㧍
|
|
4
|
850 |
|
|
|
851 |
page0_FE0:
|
|
8
|
852 |
ld hl, 8478h
|
|
4
|
853 |
|
|
|
854 |
page0_FE3:
|
|
|
855 |
push hl
|
|
|
856 |
push af
|
|
|
857 |
call page0_1254
|
|
8
|
858 |
pop af
|
|
|
859 |
pop hl
|
|
|
860 |
inc hl
|
|
|
861 |
ld (hl), a
|
|
4
|
862 |
ret
|
|
|
863 |
page0_FED:
|
|
8
|
864 |
.db 0Ch
|
|
|
865 |
.db 80h ;
|
|
|
866 |
.db 10h
|
|
|
867 |
.db 0
|
|
|
868 |
.db 0
|
|
|
869 |
.db 0
|
|
|
870 |
.db 0
|
|
|
871 |
.db 0
|
|
|
872 |
.db 0
|
|
4
|
873 |
page0_FF6:
|
|
8
|
874 |
.db 0Ch
|
|
|
875 |
.db 80h ;
|
|
|
876 |
.db 0
|
|
|
877 |
.db 0
|
|
|
878 |
.db 0
|
|
|
879 |
.db 0
|
|
|
880 |
.db 0
|
|
|
881 |
.db 0
|
|
|
882 |
.db 0
|
|
|
883 |
.db 0Ch
|
|
|
884 |
.db 80h ;
|
|
|
885 |
.db 0
|
|
|
886 |
.db 0
|
|
|
887 |
.db 0
|
|
|
888 |
.db 0
|
|
|
889 |
.db 0
|
|
|
890 |
.db 0
|
|
|
891 |
.db 0
|
|
4
|
892 |
unk_1008:
|
|
8
|
893 |
.db 0
|
|
|
894 |
.db 80h
|
|
4
|
895 |
unk_100A: ;
|
|
8
|
896 |
.db 0
|
|
|
897 |
.db 0
|
|
|
898 |
.db 0
|
|
|
899 |
.db 0
|
|
|
900 |
.db 0
|
|
|
901 |
.db 0
|
|
|
902 |
.db 0
|
|
4
|
903 |
unk_1011:
|
|
8
|
904 |
.db 0
|
|
|
905 |
.db 80h ;
|
|
|
906 |
.db 10h
|
|
|
907 |
.db 0
|
|
|
908 |
.db 0
|
|
4
|
909 |
unk_1016:
|
|
8
|
910 |
.db 0
|
|
|
911 |
.db 0
|
|
|
912 |
.db 0
|
|
|
913 |
.db 0
|
|
4
|
914 |
; ---------------------------------------------------------------------------
|
|
|
915 |
|
|
|
916 |
OPSet0DE:
|
|
8
|
917 |
ld hl, unk_1008
|
|
4
|
918 |
|
|
7
|
919 |
page0_101D:
|
|
8
|
920 |
jp mov9B2
|
|
4
|
921 |
; ---------------------------------------------------------------------------
|
|
|
922 |
|
|
|
923 |
page0_1020:
|
|
8
|
924 |
ld hl, unk_1011
|
|
|
925 |
jr page0_101D
|
|
4
|
926 |
|
|
|
927 |
; =============== S U B R O U T I N E =======================================
|
|
|
928 |
|
|
|
929 |
|
|
7
|
930 |
HLTimes9:
|
|
6
|
931 |
; DataSize:page0_2138p ...
|
|
8
|
932 |
ld b, h
|
|
|
933 |
ld c, l
|
|
|
934 |
add hl, hl
|
|
|
935 |
ret c
|
|
|
936 |
add hl, hl
|
|
|
937 |
ret c
|
|
|
938 |
add hl, hl
|
|
|
939 |
ret c
|
|
|
940 |
add hl, bc
|
|
4
|
941 |
ret
|
|
|
942 |
; End of function HLTimes9
|
|
|
943 |
|
|
|
944 |
; ---------------------------------------------------------------------------
|
|
|
945 |
|
|
|
946 |
CkOP1Cplx:
|
|
8
|
947 |
ld a, (OP1)
|
|
4
|
948 |
|
|
|
949 |
page0_1032:
|
|
8
|
950 |
and 1Fh
|
|
|
951 |
cp 0Ch
|
|
4
|
952 |
ret
|
|
|
953 |
|
|
|
954 |
; =============== S U B R O U T I N E =======================================
|
|
|
955 |
|
|
|
956 |
|
|
7
|
957 |
CkOP1Real:
|
|
6
|
958 |
; EOP1NotRealp ...
|
|
8
|
959 |
ld a, (OP1)
|
|
|
960 |
and 1Fh
|
|
4
|
961 |
ret
|
|
|
962 |
; End of function CkOP1Real
|
|
|
963 |
|
|
|
964 |
; ---------------------------------------------------------------------------
|
|
|
965 |
|
|
|
966 |
page0_103D:
|
|
|
967 |
call OP2ToOP1
|
|
|
968 |
|
|
|
969 |
page0_1040:
|
|
8
|
970 |
ld hl, 8478h
|
|
|
971 |
ld a, (hl)
|
|
|
972 |
and 0E0h ; '্
|
|
|
973 |
ld (hl), a
|
|
4
|
974 |
ret
|
|
|
975 |
; ---------------------------------------------------------------------------
|
|
|
976 |
|
|
|
977 |
COP1Set0:
|
|
|
978 |
call OP1Set0
|
|
|
979 |
|
|
|
980 |
page0_104B:
|
|
|
981 |
call OP2Set0
|
|
|
982 |
|
|
|
983 |
; =============== S U B R O U T I N E =======================================
|
|
|
984 |
|
|
|
985 |
|
|
7
|
986 |
page0_104E:
|
|
8
|
987 |
ld a, (OP1)
|
|
|
988 |
and 0E0h ; '্
|
|
|
989 |
or 0Ch
|
|
|
990 |
ld (OP1), a
|
|
|
991 |
ld a, (OP2)
|
|
|
992 |
and 0E0h ; '্
|
|
|
993 |
or 0Ch
|
|
|
994 |
ld (OP2), a
|
|
4
|
995 |
ret
|
|
|
996 |
; End of function page0_104E
|
|
|
997 |
|
|
|
998 |
; ---------------------------------------------------------------------------
|
|
|
999 |
|
|
|
1000 |
page0_1063:
|
|
|
1001 |
call MovFrOP1
|
|
8
|
1002 |
inc hl
|
|
|
1003 |
inc hl
|
|
|
1004 |
jp mov9B2
|
|
4
|
1005 |
; ---------------------------------------------------------------------------
|
|
|
1006 |
|
|
|
1007 |
CpOP4OP3:
|
|
|
1008 |
call OP4ToOP1
|
|
|
1009 |
call BCALL_4120
|
|
8
|
1010 |
jr cpop1op2
|
|
4
|
1011 |
; ---------------------------------------------------------------------------
|
|
|
1012 |
|
|
|
1013 |
Mov9OP2Cp:
|
|
|
1014 |
call Mov9ToOP2
|
|
8
|
1015 |
jr cpop1op2
|
|
4
|
1016 |
; ---------------------------------------------------------------------------
|
|
|
1017 |
|
|
|
1018 |
AbsO1O2Cp:
|
|
|
1019 |
call ClrOP1S
|
|
|
1020 |
call ClrOP2S
|
|
|
1021 |
; START OF FUNCTION CHUNK FOR sub_BD1
|
|
|
1022 |
|
|
7
|
1023 |
cpop1op2:
|
|
8
|
1024 |
ld a, (OP1M)
|
|
|
1025 |
or a
|
|
4
|
1026 |
call z, ZeroOP1
|
|
8
|
1027 |
ld a, (OP2M)
|
|
|
1028 |
or a
|
|
4
|
1029 |
|
|
|
1030 |
page0_1089:
|
|
|
1031 |
call z, ZeroOP2
|
|
8
|
1032 |
ld a, (OP1)
|
|
|
1033 |
or a
|
|
|
1034 |
ld a, (OP2)
|
|
|
1035 |
jp m, page0_10B0
|
|
|
1036 |
and 80h ; ''
|
|
|
1037 |
jr nz, page0_10C3
|
|
4
|
1038 |
call OP1MOP2EXP
|
|
8
|
1039 |
ld hl, 8485h
|
|
|
1040 |
ld de, 847Ah
|
|
4
|
1041 |
|
|
7
|
1042 |
page0_10A3:
|
|
8
|
1043 |
jr nz, page0_10C3
|
|
|
1044 |
ld b, 7
|
|
4
|
1045 |
|
|
7
|
1046 |
page0_10A7:
|
|
8
|
1047 |
ld a, (de)
|
|
|
1048 |
cp (hl)
|
|
|
1049 |
ret nz
|
|
|
1050 |
inc hl
|
|
|
1051 |
inc de
|
|
4
|
1052 |
djnz page0_10A7
|
|
8
|
1053 |
jr page0_10C3
|
|
4
|
1054 |
; ---------------------------------------------------------------------------
|
|
|
1055 |
|
|
7
|
1056 |
page0_10B0:
|
|
8
|
1057 |
and 80h ; ''
|
|
|
1058 |
jr z, page0_10C1
|
|
|
1059 |
ld hl, 8479h
|
|
|
1060 |
ld a, (unk_8484)
|
|
|
1061 |
sub (hl)
|
|
|
1062 |
inc hl
|
|
|
1063 |
ld de, 8485h
|
|
|
1064 |
jr page0_10A3
|
|
4
|
1065 |
; ---------------------------------------------------------------------------
|
|
|
1066 |
|
|
7
|
1067 |
page0_10C1:
|
|
8
|
1068 |
sub 1
|
|
4
|
1069 |
|
|
7
|
1070 |
page0_10C3:
|
|
6
|
1071 |
; sub_BD1:page0_10A3j ...
|
|
4
|
1072 |
push af
|
|
8
|
1073 |
ld a, (unk_8479)
|
|
|
1074 |
or a
|
|
4
|
1075 |
call z, OP1Set0
|
|
8
|
1076 |
ld a, (unk_8484)
|
|
|
1077 |
or a
|
|
4
|
1078 |
call z, OP2Set0
|
|
8
|
1079 |
pop af
|
|
4
|
1080 |
ret
|
|
|
1081 |
; END OF FUNCTION CHUNK FOR sub_BD1
|
|
|
1082 |
|
|
|
1083 |
; =============== S U B R O U T I N E =======================================
|
|
|
1084 |
|
|
|
1085 |
|
|
7
|
1086 |
OP3ToOP4:
|
|
8
|
1087 |
ld hl, 848Eh
|
|
|
1088 |
ld de, 8499h
|
|
|
1089 |
jp Mov11B
|
|
4
|
1090 |
; End of function OP3ToOP4
|
|
|
1091 |
|
|
|
1092 |
|
|
|
1093 |
; =============== S U B R O U T I N E =======================================
|
|
|
1094 |
|
|
|
1095 |
|
|
7
|
1096 |
OP1ToOP4:
|
|
8
|
1097 |
ld hl, 8478h
|
|
|
1098 |
ld de, 8499h
|
|
|
1099 |
jp Mov11B
|
|
4
|
1100 |
; End of function OP1ToOP4
|
|
|
1101 |
|
|
|
1102 |
|
|
|
1103 |
; =============== S U B R O U T I N E =======================================
|
|
|
1104 |
|
|
|
1105 |
|
|
7
|
1106 |
OP2ToOP4:
|
|
8
|
1107 |
ld hl, 8483h
|
|
|
1108 |
ld de, 8499h
|
|
|
1109 |
jp Mov11B
|
|
4
|
1110 |
; End of function OP2ToOP4
|
|
|
1111 |
|
|
|
1112 |
; ---------------------------------------------------------------------------
|
|
|
1113 |
|
|
|
1114 |
OP4ToOP2:
|
|
8
|
1115 |
ld hl, 8499h
|
|
|
1116 |
ld de, 8483h
|
|
|
1117 |
jp Mov11B
|
|
4
|
1118 |
|
|
|
1119 |
; =============== S U B R O U T I N E =======================================
|
|
|
1120 |
|
|
|
1121 |
|
|
7
|
1122 |
BCALL_4120:
|
|
8
|
1123 |
ld hl, 848Eh
|
|
|
1124 |
ld de, 8483h
|
|
|
1125 |
jr Mov11B
|
|
4
|
1126 |
; End of function BCALL_4120
|
|
|
1127 |
|
|
|
1128 |
|
|
|
1129 |
; =============== S U B R O U T I N E =======================================
|
|
|
1130 |
|
|
|
1131 |
|
|
7
|
1132 |
OP1ToOP3:
|
|
8
|
1133 |
ld de, 848Eh
|
|
4
|
1134 |
; End of function OP1ToOP3
|
|
|
1135 |
|
|
|
1136 |
|
|
|
1137 |
; =============== S U B R O U T I N E =======================================
|
|
|
1138 |
|
|
|
1139 |
|
|
7
|
1140 |
sub_1103:
|
|
8
|
1141 |
ld hl, 8478h
|
|
|
1142 |
jr Mov11B
|
|
4
|
1143 |
; ---------------------------------------------------------------------------
|
|
|
1144 |
|
|
|
1145 |
OP5ToOP2:
|
|
8
|
1146 |
ld hl, 84A4h
|
|
|
1147 |
ld de, 8483h
|
|
|
1148 |
jr Mov11B
|
|
4
|
1149 |
; ---------------------------------------------------------------------------
|
|
|
1150 |
|
|
7
|
1151 |
OP5ToOP6:
|
|
8
|
1152 |
ld hl, 84A4h
|
|
|
1153 |
ld de, 84AFh
|
|
|
1154 |
jr Mov11B
|
|
4
|
1155 |
; ---------------------------------------------------------------------------
|
|
|
1156 |
|
|
|
1157 |
OP5ToOP4:
|
|
8
|
1158 |
ld hl, 84A4h
|
|
|
1159 |
ld de, 8499h
|
|
|
1160 |
jr Mov11B
|
|
4
|
1161 |
; ---------------------------------------------------------------------------
|
|
|
1162 |
|
|
7
|
1163 |
OP1ToOP2:
|
|
8
|
1164 |
ld hl, 8478h
|
|
|
1165 |
ld de, 8483h
|
|
|
1166 |
jr Mov11B
|
|
4
|
1167 |
; ---------------------------------------------------------------------------
|
|
|
1168 |
|
|
|
1169 |
OP6ToOP2:
|
|
8
|
1170 |
ld hl, 84AFh
|
|
|
1171 |
ld de, 8483h
|
|
|
1172 |
jr Mov11B
|
|
4
|
1173 |
; ---------------------------------------------------------------------------
|
|
|
1174 |
|
|
|
1175 |
OP6ToOP1:
|
|
8
|
1176 |
ld hl, 84AFh
|
|
|
1177 |
jr page0_117C
|
|
4
|
1178 |
; ---------------------------------------------------------------------------
|
|
|
1179 |
|
|
7
|
1180 |
OP4ToOP1:
|
|
8
|
1181 |
ld hl, 8499h
|
|
|
1182 |
jr page0_117C
|
|
4
|
1183 |
; ---------------------------------------------------------------------------
|
|
|
1184 |
|
|
|
1185 |
OP5ToOP1:
|
|
8
|
1186 |
ld hl, 84A4h
|
|
|
1187 |
jr page0_117C
|
|
4
|
1188 |
; ---------------------------------------------------------------------------
|
|
|
1189 |
|
|
7
|
1190 |
OP3ToOP1:
|
|
8
|
1191 |
ld hl, 848Eh
|
|
|
1192 |
jr page0_117C
|
|
4
|
1193 |
; ---------------------------------------------------------------------------
|
|
|
1194 |
|
|
|
1195 |
OP6ToOP5:
|
|
8
|
1196 |
ld hl, 84AFh
|
|
|
1197 |
jr page0_114C
|
|
4
|
1198 |
; ---------------------------------------------------------------------------
|
|
|
1199 |
|
|
|
1200 |
OP4ToOP5:
|
|
8
|
1201 |
ld hl, 8499h
|
|
4
|
1202 |
|
|
7
|
1203 |
page0_114C:
|
|
8
|
1204 |
ld de, 84A4h
|
|
|
1205 |
jr Mov11B
|
|
4
|
1206 |
; ---------------------------------------------------------------------------
|
|
|
1207 |
|
|
|
1208 |
OP3ToOP5:
|
|
8
|
1209 |
ld hl, 848Eh
|
|
|
1210 |
ld de, 84A4h
|
|
|
1211 |
jr Mov11B
|
|
4
|
1212 |
; ---------------------------------------------------------------------------
|
|
|
1213 |
|
|
|
1214 |
OP2ToOP5:
|
|
8
|
1215 |
ld hl, 8483h
|
|
|
1216 |
ld de, 84A4h
|
|
|
1217 |
jr Mov11B
|
|
4
|
1218 |
; ---------------------------------------------------------------------------
|
|
|
1219 |
|
|
|
1220 |
OP2ToOP6:
|
|
8
|
1221 |
ld hl, 8483h
|
|
|
1222 |
ld de, 84AFh
|
|
|
1223 |
jr Mov11B
|
|
4
|
1224 |
; ---------------------------------------------------------------------------
|
|
|
1225 |
|
|
|
1226 |
OP1ToOP6:
|
|
8
|
1227 |
ld hl, 8478h
|
|
|
1228 |
ld de, 84AFh
|
|
|
1229 |
jr Mov11B
|
|
4
|
1230 |
; ---------------------------------------------------------------------------
|
|
|
1231 |
|
|
|
1232 |
OP1ToOP5:
|
|
8
|
1233 |
ld hl, 8478h
|
|
|
1234 |
ld de, 84A4h
|
|
|
1235 |
jr Mov11B
|
|
4
|
1236 |
; ---------------------------------------------------------------------------
|
|
|
1237 |
|
|
7
|
1238 |
OP2ToOP1:
|
|
8
|
1239 |
ld hl, 8483h
|
|
4
|
1240 |
|
|
7
|
1241 |
page0_117C:
|
|
8
|
1242 |
ld de, 8478h
|
|
4
|
1243 |
|
|
7
|
1244 |
Mov11B:
|
|
4
|
1245 |
ldi
|
|
|
1246 |
|
|
|
1247 |
Mov10B:
|
|
|
1248 |
ldi
|
|
|
1249 |
; End of function sub_1103
|
|
|
1250 |
|
|
|
1251 |
|
|
|
1252 |
; =============== S U B R O U T I N E =======================================
|
|
|
1253 |
|
|
|
1254 |
Mov9B:
|
|
7
|
1255 |
mov9B2:
|
|
|
1256 |
|
|
4
|
1257 |
ldi
|
|
|
1258 |
|
|
7
|
1259 |
Mov8B:
|
|
4
|
1260 |
ldi
|
|
|
1261 |
Mov7B:
|
|
7
|
1262 |
Mov7B2:
|
|
4
|
1263 |
ldi
|
|
|
1264 |
|
|
|
1265 |
page0_1189:
|
|
|
1266 |
ldi
|
|
|
1267 |
|
|
|
1268 |
page0_118B:
|
|
|
1269 |
ldi
|
|
|
1270 |
|
|
|
1271 |
page0_118D:
|
|
|
1272 |
ldi
|
|
|
1273 |
|
|
|
1274 |
page0_118F:
|
|
|
1275 |
ldi
|
|
|
1276 |
ldi
|
|
|
1277 |
ldi
|
|
|
1278 |
ret
|
|
|
1279 |
; End of function mov9B2
|
|
|
1280 |
|
|
|
1281 |
; ---------------------------------------------------------------------------
|
|
8
|
1282 |
ld de, 849Bh
|
|
|
1283 |
ld hl, 8485h
|
|
|
1284 |
jr Mov8B
|
|
4
|
1285 |
; ---------------------------------------------------------------------------
|
|
|
1286 |
|
|
|
1287 |
page0_119E:
|
|
8
|
1288 |
ld hl, 847Ah
|
|
|
1289 |
ld de, 849Bh
|
|
|
1290 |
jr Mov8B
|
|
4
|
1291 |
; ---------------------------------------------------------------------------
|
|
|
1292 |
|
|
|
1293 |
page0_11A6:
|
|
8
|
1294 |
ld hl, 849Bh
|
|
|
1295 |
jr page0_11AE
|
|
4
|
1296 |
; ---------------------------------------------------------------------------
|
|
|
1297 |
|
|
|
1298 |
page0_11AB:
|
|
8
|
1299 |
ld hl, 8485h
|
|
4
|
1300 |
|
|
7
|
1301 |
page0_11AE:
|
|
8
|
1302 |
ld de, 847Ah
|
|
|
1303 |
jr Mov8B
|
|
4
|
1304 |
; ---------------------------------------------------------------------------
|
|
|
1305 |
|
|
|
1306 |
page0_11B3:
|
|
8
|
1307 |
ld de, 8485h
|
|
|
1308 |
ld hl, 8490h
|
|
|
1309 |
jr Mov7B2
|
|
4
|
1310 |
; ---------------------------------------------------------------------------
|
|
|
1311 |
|
|
|
1312 |
page0_11BB:
|
|
8
|
1313 |
ld de, 847Ah
|
|
|
1314 |
ld hl, 84A6h
|
|
|
1315 |
jr Mov7B2
|
|
4
|
1316 |
; ---------------------------------------------------------------------------
|
|
|
1317 |
|
|
|
1318 |
page0_11C3:
|
|
8
|
1319 |
ld de, 847Ah
|
|
|
1320 |
ld hl, 8490h
|
|
|
1321 |
jr Mov7B2
|
|
4
|
1322 |
|
|
|
1323 |
; =============== S U B R O U T I N E =======================================
|
|
|
1324 |
|
|
|
1325 |
|
|
7
|
1326 |
page0_11CB:
|
|
8
|
1327 |
ld de, 847Ah
|
|
|
1328 |
ld hl, 8490h
|
|
|
1329 |
jr Mov8B
|
|
4
|
1330 |
; End of function page0_11CB
|
|
|
1331 |
|
|
|
1332 |
; ---------------------------------------------------------------------------
|
|
|
1333 |
|
|
|
1334 |
page0_11D3:
|
|
8
|
1335 |
ld de, 8490h
|
|
|
1336 |
jr Mov7B2
|
|
4
|
1337 |
; ---------------------------------------------------------------------------
|
|
|
1338 |
|
|
|
1339 |
OP2ToOP3:
|
|
8
|
1340 |
ld hl, 8483h
|
|
4
|
1341 |
|
|
7
|
1342 |
page0_11DB:
|
|
8
|
1343 |
ld de, 848Eh
|
|
|
1344 |
jr Mov11B
|
|
4
|
1345 |
; ---------------------------------------------------------------------------
|
|
|
1346 |
|
|
|
1347 |
OP4ToOP3:
|
|
8
|
1348 |
ld hl, 8499h
|
|
|
1349 |
jr page0_11DB
|
|
4
|
1350 |
; ---------------------------------------------------------------------------
|
|
|
1351 |
|
|
|
1352 |
OP5ToOP3:
|
|
8
|
1353 |
ld hl, 84A4h
|
|
|
1354 |
jr page0_11DB
|
|
4
|
1355 |
; ---------------------------------------------------------------------------
|
|
|
1356 |
|
|
|
1357 |
OP4ToOP6:
|
|
8
|
1358 |
ld hl, 8499h
|
|
|
1359 |
ld de, 84AFh
|
|
|
1360 |
jr Mov11B
|
|
4
|
1361 |
|
|
|
1362 |
; =============== S U B R O U T I N E =======================================
|
|
|
1363 |
|
|
|
1364 |
|
|
7
|
1365 |
Mov9ToOP1:
|
|
8
|
1366 |
ld de, 8478h
|
|
4
|
1367 |
|
|
7
|
1368 |
page0_11F5:
|
|
8
|
1369 |
jr mov9B2
|
|
4
|
1370 |
; End of function Mov9ToOP1
|
|
|
1371 |
|
|
|
1372 |
; ---------------------------------------------------------------------------
|
|
|
1373 |
|
|
|
1374 |
Mov9OP1OP2:
|
|
8
|
1375 |
rst 20h
|
|
4
|
1376 |
|
|
|
1377 |
; =============== S U B R O U T I N E =======================================
|
|
|
1378 |
|
|
|
1379 |
|
|
7
|
1380 |
Mov9ToOP2:
|
|
6
|
1381 |
; Trunc:page0_C20p ...
|
|
8
|
1382 |
ld de, 8483h
|
|
|
1383 |
jr page0_11F5
|
|
4
|
1384 |
; End of function Mov9ToOP2
|
|
|
1385 |
|
|
|
1386 |
|
|
|
1387 |
; =============== S U B R O U T I N E =======================================
|
|
|
1388 |
|
|
|
1389 |
|
|
7
|
1390 |
MovFrOP1:
|
|
|
1391 |
|
|
8
|
1392 |
ld hl, 8478h
|
|
|
1393 |
jr page0_11F5
|
|
4
|
1394 |
; End of function MovFrOP1
|
|
|
1395 |
|
|
|
1396 |
; ---------------------------------------------------------------------------
|
|
|
1397 |
|
|
|
1398 |
OP4Set1:
|
|
8
|
1399 |
ld hl, 8499h
|
|
|
1400 |
jr page0_1254
|
|
4
|
1401 |
; ---------------------------------------------------------------------------
|
|
|
1402 |
|
|
|
1403 |
OP3Set1:
|
|
8
|
1404 |
ld hl, 848Eh
|
|
|
1405 |
jr page0_1254
|
|
4
|
1406 |
; ---------------------------------------------------------------------------
|
|
|
1407 |
|
|
|
1408 |
OP2Set8:
|
|
8
|
1409 |
ld hl, 8483h
|
|
|
1410 |
ld a, 80h ; ''
|
|
|
1411 |
jr page0_1256
|
|
4
|
1412 |
; ---------------------------------------------------------------------------
|
|
|
1413 |
|
|
|
1414 |
OP2Set5:
|
|
8
|
1415 |
ld a, 50h ; 'P'
|
|
4
|
1416 |
; START OF FUNCTION CHUNK FOR OP2Set0
|
|
|
1417 |
|
|
7
|
1418 |
OP2SetA:
|
|
8
|
1419 |
ld hl, 8483h
|
|
|
1420 |
jr page0_1256
|
|
4
|
1421 |
; END OF FUNCTION CHUNK FOR OP2Set0
|
|
|
1422 |
; ---------------------------------------------------------------------------
|
|
|
1423 |
|
|
|
1424 |
OP2Set4:
|
|
8
|
1425 |
ld hl, 8483h
|
|
|
1426 |
ld a, 40h ; '@'
|
|
|
1427 |
jr page0_1256
|
|
4
|
1428 |
; ---------------------------------------------------------------------------
|
|
|
1429 |
|
|
|
1430 |
OP2Set3:
|
|
8
|
1431 |
ld hl, 8483h
|
|
4
|
1432 |
|
|
|
1433 |
page0_1224:
|
|
8
|
1434 |
ld a, 30h ; '0'
|
|
|
1435 |
jr page0_1256
|
|
4
|
1436 |
; ---------------------------------------------------------------------------
|
|
|
1437 |
|
|
|
1438 |
page0_1228:
|
|
8
|
1439 |
pop hl
|
|
4
|
1440 |
|
|
|
1441 |
; =============== S U B R O U T I N E =======================================
|
|
|
1442 |
|
|
|
1443 |
|
|
7
|
1444 |
OP1Set1:
|
|
8
|
1445 |
ld hl, 8478h
|
|
|
1446 |
jr page0_1254
|
|
4
|
1447 |
; End of function OP1Set1
|
|
|
1448 |
|
|
|
1449 |
; ---------------------------------------------------------------------------
|
|
|
1450 |
|
|
|
1451 |
OP1Set4:
|
|
8
|
1452 |
ld hl, 8478h
|
|
|
1453 |
ld a, 40h ; '@'
|
|
|
1454 |
jr page0_1256
|
|
4
|
1455 |
; ---------------------------------------------------------------------------
|
|
|
1456 |
|
|
|
1457 |
OP1Set3:
|
|
8
|
1458 |
ld hl, 8478h
|
|
|
1459 |
ld a, 30h ; '0'
|
|
|
1460 |
jr page0_1256
|
|
4
|
1461 |
; ---------------------------------------------------------------------------
|
|
|
1462 |
|
|
|
1463 |
OP3Set2:
|
|
8
|
1464 |
ld hl, 848Eh
|
|
|
1465 |
jr page0_1249
|
|
4
|
1466 |
; ---------------------------------------------------------------------------
|
|
|
1467 |
|
|
|
1468 |
OP1Set2:
|
|
8
|
1469 |
ld hl, 8478h
|
|
|
1470 |
jr page0_1249
|
|
4
|
1471 |
; ---------------------------------------------------------------------------
|
|
|
1472 |
|
|
|
1473 |
OP2Set2:
|
|
8
|
1474 |
ld hl, 8483h
|
|
4
|
1475 |
|
|
7
|
1476 |
page0_1249:
|
|
8
|
1477 |
ld a, 20h ; ' '
|
|
|
1478 |
jr page0_1256
|
|
4
|
1479 |
; ---------------------------------------------------------------------------
|
|
|
1480 |
|
|
|
1481 |
page0_124D:
|
|
8
|
1482 |
ld a, 10h
|
|
|
1483 |
jr page0_125C
|
|
4
|
1484 |
|
|
|
1485 |
; =============== S U B R O U T I N E =======================================
|
|
|
1486 |
|
|
|
1487 |
|
|
7
|
1488 |
OP2Set1:
|
|
6
|
1489 |
; Trunc:Minus1p
|
|
8
|
1490 |
ld hl, 8483h
|
|
4
|
1491 |
|
|
7
|
1492 |
page0_1254:
|
|
8
|
1493 |
ld a, 10h
|
|
4
|
1494 |
; End of function OP2Set1
|
|
|
1495 |
|
|
|
1496 |
; START OF FUNCTION CHUNK FOR sub_CDF
|
|
|
1497 |
|
|
7
|
1498 |
page0_1256:
|
|
8
|
1499 |
ld (hl), 0
|
|
|
1500 |
inc hl
|
|
|
1501 |
ld (hl), 80h ; ''
|
|
4
|
1502 |
|
|
7
|
1503 |
page0_125B:
|
|
8
|
1504 |
inc hl
|
|
4
|
1505 |
|
|
7
|
1506 |
page0_125C:
|
|
8
|
1507 |
ld (hl), a
|
|
|
1508 |
xor a
|
|
|
1509 |
jr page0_1262
|
|
4
|
1510 |
; END OF FUNCTION CHUNK FOR sub_CDF
|
|
|
1511 |
; ---------------------------------------------------------------------------
|
|
|
1512 |
|
|
7
|
1513 |
Zero16D:
|
|
8
|
1514 |
xor a
|
|
|
1515 |
ld (hl), a
|
|
4
|
1516 |
; START OF FUNCTION CHUNK FOR sub_CDF
|
|
|
1517 |
|
|
7
|
1518 |
page0_1262:
|
|
8
|
1519 |
inc hl
|
|
|
1520 |
ld (hl), a
|
|
|
1521 |
inc hl
|
|
|
1522 |
ld (hl), a
|
|
|
1523 |
inc hl
|
|
|
1524 |
ld (hl), a
|
|
|
1525 |
inc hl
|
|
|
1526 |
ld (hl), a
|
|
|
1527 |
inc hl
|
|
|
1528 |
ld (hl), a
|
|
|
1529 |
inc hl
|
|
|
1530 |
ld (hl), a
|
|
4
|
1531 |
|
|
|
1532 |
page0_126E:
|
|
8
|
1533 |
inc hl
|
|
|
1534 |
ld (hl), a
|
|
4
|
1535 |
ret
|
|
|
1536 |
; END OF FUNCTION CHUNK FOR sub_CDF
|
|
|
1537 |
; ---------------------------------------------------------------------------
|
|
|
1538 |
|
|
|
1539 |
OP5Set0:
|
|
8
|
1540 |
ld hl, 84A4h
|
|
|
1541 |
jr OPSet0
|
|
4
|
1542 |
; ---------------------------------------------------------------------------
|
|
|
1543 |
|
|
|
1544 |
OP4Set0:
|
|
8
|
1545 |
ld hl, 8499h
|
|
|
1546 |
jr OPSet0
|
|
4
|
1547 |
; ---------------------------------------------------------------------------
|
|
|
1548 |
|
|
|
1549 |
OP3Set0:
|
|
8
|
1550 |
ld hl, 848Eh
|
|
|
1551 |
jr OPSet0
|
|
4
|
1552 |
; ---------------------------------------------------------------------------
|
|
|
1553 |
|
|
|
1554 |
page0_1280:
|
|
8
|
1555 |
bit 5, (iy+0Ah)
|
|
|
1556 |
jp nz, ErrNon_Real
|
|
4
|
1557 |
|
|
|
1558 |
; =============== S U B R O U T I N E =======================================
|
|
|
1559 |
|
|
|
1560 |
|
|
7
|
1561 |
OP2Set0:
|
|
6
|
1562 |
; sub_BD1+4FEp ...
|
|
4
|
1563 |
|
|
7
|
1564 |
|
|
4
|
1565 |
|
|
8
|
1566 |
xor a
|
|
|
1567 |
jr OP2SetA
|
|
4
|
1568 |
; End of function OP2Set0
|
|
|
1569 |
|
|
|
1570 |
|
|
|
1571 |
; =============== S U B R O U T I N E =======================================
|
|
|
1572 |
|
|
|
1573 |
|
|
7
|
1574 |
OP1Set0:
|
|
8
|
1575 |
ld hl, 8478h
|
|
4
|
1576 |
|
|
7
|
1577 |
OPSet0:
|
|
8
|
1578 |
xor a
|
|
|
1579 |
jr page0_1256
|
|
4
|
1580 |
; End of function OP1Set0
|
|
|
1581 |
|
|
|
1582 |
; ---------------------------------------------------------------------------
|
|
|
1583 |
|
|
|
1584 |
page0_1290:
|
|
8
|
1585 |
ld hl, 847Ah
|
|
|
1586 |
jr Zero16D
|
|
4
|
1587 |
|
|
|
1588 |
; =============== S U B R O U T I N E =======================================
|
|
|
1589 |
|
|
|
1590 |
|
|
7
|
1591 |
ZeroOP1:
|
|
8
|
1592 |
ld hl, 8478h
|
|
|
1593 |
jr ZeroOP
|
|
4
|
1594 |
; End of function ZeroOP1
|
|
|
1595 |
|
|
|
1596 |
|
|
|
1597 |
; =============== S U B R O U T I N E =======================================
|
|
|
1598 |
|
|
|
1599 |
|
|
7
|
1600 |
ZeroOP2:
|
|
8
|
1601 |
ld hl, 8483h
|
|
|
1602 |
jr ZeroOP
|
|
4
|
1603 |
; ---------------------------------------------------------------------------
|
|
|
1604 |
|
|
7
|
1605 |
ZeroOP3:
|
|
8
|
1606 |
ld hl, 848Eh
|
|
4
|
1607 |
|
|
7
|
1608 |
ZeroOP:
|
|
8
|
1609 |
xor a
|
|
|
1610 |
ld (hl), a
|
|
|
1611 |
inc hl
|
|
|
1612 |
ld (hl), a
|
|
|
1613 |
inc hl
|
|
|
1614 |
ld (hl), a
|
|
|
1615 |
jr page0_125B
|
|
4
|
1616 |
; End of function ZeroOP2
|
|
|
1617 |
|
|
|
1618 |
|
|
|
1619 |
; =============== S U B R O U T I N E =======================================
|
|
|
1620 |
|
|
|
1621 |
|
|
7
|
1622 |
ClrLp:
|
|
8
|
1623 |
ld (hl), 0
|
|
|
1624 |
inc hl
|
|
4
|
1625 |
djnz ClrLp
|
|
|
1626 |
ret
|
|
|
1627 |
; End of function ClrLp
|
|
|
1628 |
|
|
|
1629 |
; ---------------------------------------------------------------------------
|
|
8
|
1630 |
ld a, c
|
|
4
|
1631 |
|
|
|
1632 |
; =============== S U B R O U T I N E =======================================
|
|
|
1633 |
|
|
|
1634 |
|
|
7
|
1635 |
ShRAcc:
|
|
|
1636 |
|
|
4
|
1637 |
rra
|
|
|
1638 |
rra
|
|
|
1639 |
rra
|
|
|
1640 |
rra
|
|
8
|
1641 |
and 0Fh
|
|
4
|
1642 |
ret
|
|
|
1643 |
; End of function ShRAcc
|
|
|
1644 |
|
|
|
1645 |
; ---------------------------------------------------------------------------
|
|
|
1646 |
|
|
|
1647 |
page0_12B8:
|
|
8
|
1648 |
ld a, c
|
|
4
|
1649 |
|
|
|
1650 |
; =============== S U B R O U T I N E =======================================
|
|
|
1651 |
|
|
|
1652 |
|
|
7
|
1653 |
ShLAcc:
|
|
8
|
1654 |
add a, a
|
|
|
1655 |
add a, a
|
|
|
1656 |
add a, a
|
|
|
1657 |
add a, a
|
|
4
|
1658 |
ret
|
|
|
1659 |
; End of function ShLAcc
|
|
|
1660 |
|
|
|
1661 |
; ---------------------------------------------------------------------------
|
|
|
1662 |
|
|
|
1663 |
page0_12BE:
|
|
8
|
1664 |
ld hl, 847Ah
|
|
|
1665 |
xor a
|
|
|
1666 |
jr SHR14
|
|
4
|
1667 |
; ---------------------------------------------------------------------------
|
|
|
1668 |
|
|
|
1669 |
page0_12C4:
|
|
8
|
1670 |
ld hl, 8479h
|
|
4
|
1671 |
|
|
|
1672 |
ShR18:
|
|
8
|
1673 |
xor a
|
|
4
|
1674 |
|
|
|
1675 |
SHR18A:
|
|
|
1676 |
rrd
|
|
8
|
1677 |
inc hl
|
|
|
1678 |
jr page0_12D1
|
|
4
|
1679 |
; ---------------------------------------------------------------------------
|
|
|
1680 |
|
|
|
1681 |
page0_12CD:
|
|
8
|
1682 |
ld hl, 847Ah
|
|
4
|
1683 |
|
|
|
1684 |
; =============== S U B R O U T I N E =======================================
|
|
|
1685 |
|
|
|
1686 |
|
|
7
|
1687 |
SHR16:
|
|
8
|
1688 |
xor a
|
|
4
|
1689 |
|
|
7
|
1690 |
page0_12D1:
|
|
4
|
1691 |
rrd
|
|
8
|
1692 |
inc hl
|
|
4
|
1693 |
|
|
7
|
1694 |
SHR14:
|
|
4
|
1695 |
rrd
|
|
8
|
1696 |
inc hl
|
|
4
|
1697 |
rrd
|
|
8
|
1698 |
inc hl
|
|
4
|
1699 |
rrd
|
|
8
|
1700 |
inc hl
|
|
4
|
1701 |
rrd
|
|
8
|
1702 |
inc hl
|
|
4
|
1703 |
rrd
|
|
8
|
1704 |
inc hl
|
|
4
|
1705 |
rrd
|
|
8
|
1706 |
inc hl
|
|
4
|
1707 |
rrd
|
|
8
|
1708 |
inc hl
|
|
4
|
1709 |
ret
|
|
|
1710 |
; End of function SHR16
|
|
|
1711 |
|
|
|
1712 |
; ---------------------------------------------------------------------------
|
|
8
|
1713 |
ld hl, 8496h
|
|
|
1714 |
jr page0_12F2
|
|
4
|
1715 |
|
|
|
1716 |
; =============== S U B R O U T I N E =======================================
|
|
|
1717 |
|
|
|
1718 |
|
|
7
|
1719 |
page0_12EF:
|
|
8
|
1720 |
ld hl, 8480h
|
|
4
|
1721 |
|
|
7
|
1722 |
page0_12F2:
|
|
8
|
1723 |
xor a
|
|
|
1724 |
jr SHL14
|
|
4
|
1725 |
; End of function page0_12EF
|
|
|
1726 |
|
|
|
1727 |
|
|
|
1728 |
; =============== S U B R O U T I N E =======================================
|
|
|
1729 |
|
|
|
1730 |
|
|
7
|
1731 |
sub_12F5:
|
|
8
|
1732 |
ld hl, 847Ah
|
|
4
|
1733 |
|
|
|
1734 |
page0_12F8:
|
|
8
|
1735 |
ld a, 1
|
|
|
1736 |
jr page0_12D1
|
|
4
|
1737 |
; End of function sub_12F5
|
|
|
1738 |
|
|
|
1739 |
; ---------------------------------------------------------------------------
|
|
8
|
1740 |
ld hl, 8497h
|
|
|
1741 |
jr SHL16
|
|
4
|
1742 |
|
|
|
1743 |
; =============== S U B R O U T I N E =======================================
|
|
|
1744 |
|
|
|
1745 |
|
|
7
|
1746 |
page0_1301:
|
|
8
|
1747 |
ld hl, 8481h
|
|
4
|
1748 |
|
|
7
|
1749 |
SHL16:
|
|
8
|
1750 |
xor a
|
|
4
|
1751 |
rld
|
|
8
|
1752 |
dec hl
|
|
4
|
1753 |
|
|
7
|
1754 |
SHL14:
|
|
4
|
1755 |
rld
|
|
8
|
1756 |
dec hl
|
|
4
|
1757 |
rld
|
|
8
|
1758 |
dec hl
|
|
4
|
1759 |
rld
|
|
8
|
1760 |
dec hl
|
|
4
|
1761 |
rld
|
|
8
|
1762 |
dec hl
|
|
4
|
1763 |
rld
|
|
8
|
1764 |
dec hl
|
|
4
|
1765 |
rld
|
|
8
|
1766 |
dec hl
|
|
4
|
1767 |
rld
|
|
8
|
1768 |
dec hl
|
|
4
|
1769 |
ret
|
|
|
1770 |
; End of function page0_1301
|
|
|
1771 |
|
|
|
1772 |
; ---------------------------------------------------------------------------
|
|
|
1773 |
|
|
|
1774 |
page0_131E:
|
|
8
|
1775 |
ld a, (OP2)
|
|
4
|
1776 |
|
|
|
1777 |
page0_1321:
|
|
8
|
1778 |
ld de, 849Bh
|
|
|
1779 |
jr SHRDRND
|
|
|
1780 |
; ---------------------------------------------------------------------------
|
|
|
1781 |
ld a, 1
|
|
4
|
1782 |
|
|
|
1783 |
SRDO1:
|
|
8
|
1784 |
ld de, 847Ah
|
|
|
1785 |
jr SHRDRND
|
|
4
|
1786 |
; ---------------------------------------------------------------------------
|
|
|
1787 |
|
|
|
1788 |
page0_132D:
|
|
8
|
1789 |
ld a, b
|
|
|
1790 |
ld hl, 84A5h
|
|
|
1791 |
sub (hl)
|
|
4
|
1792 |
|
|
|
1793 |
page0_1332:
|
|
8
|
1794 |
ld de, 8485h
|
|
4
|
1795 |
|
|
7
|
1796 |
SHRDRND:
|
|
4
|
1797 |
srl a
|
|
8
|
1798 |
ld hl, 8490h
|
|
|
1799 |
jp nz, page0_1350
|
|
|
1800 |
ex de, hl
|
|
4
|
1801 |
call Mov8B
|
|
8
|
1802 |
ret nc
|
|
4
|
1803 |
|
|
7
|
1804 |
page0_1342:
|
|
8
|
1805 |
ld hl, 8490h
|
|
|
1806 |
xor a
|
|
4
|
1807 |
call SHR14
|
|
|
1808 |
rrd
|
|
8
|
1809 |
cp 5
|
|
|
1810 |
ret c
|
|
|
1811 |
jr page0_136D
|
|
4
|
1812 |
; ---------------------------------------------------------------------------
|
|
|
1813 |
|
|
7
|
1814 |
page0_1350:
|
|
4
|
1815 |
push af
|
|
8
|
1816 |
ld b, a
|
|
4
|
1817 |
call ClrLp
|
|
8
|
1818 |
ld c, a
|
|
|
1819 |
ld hl, 8490h
|
|
|
1820 |
add hl, bc
|
|
|
1821 |
ex de, hl
|
|
4
|
1822 |
cpl
|
|
8
|
1823 |
add a, 9
|
|
|
1824 |
jr z, page0_1363
|
|
|
1825 |
ld c, a
|
|
4
|
1826 |
ldir
|
|
|
1827 |
|
|
7
|
1828 |
page0_1363:
|
|
8
|
1829 |
pop af
|
|
|
1830 |
jr c, page0_1342
|
|
|
1831 |
ld a, (hl)
|
|
|
1832 |
cp 50h ; 'P'
|
|
|
1833 |
ret c
|
|
|
1834 |
ld hl, 8497h
|
|
4
|
1835 |
|
|
7
|
1836 |
page0_136D:
|
|
8
|
1837 |
ld a, 1
|
|
|
1838 |
ld b, 8
|
|
|
1839 |
jr ADDPROPLP
|
|
4
|
1840 |
|
|
|
1841 |
; =============== S U B R O U T I N E =======================================
|
|
|
1842 |
|
|
|
1843 |
|
|
7
|
1844 |
sub_1373:
|
|
8
|
1845 |
ld a, 1
|
|
4
|
1846 |
|
|
|
1847 |
MANTPA:
|
|
8
|
1848 |
ld b, 7
|
|
4
|
1849 |
|
|
7
|
1850 |
ADDPROP:
|
|
8
|
1851 |
or a
|
|
4
|
1852 |
|
|
7
|
1853 |
ADDPROPLP:
|
|
4
|
1854 |
adc a, (hl)
|
|
|
1855 |
daa
|
|
8
|
1856 |
ld (hl), a
|
|
|
1857 |
ret nc
|
|
|
1858 |
dec hl
|
|
|
1859 |
ld a, 0
|
|
4
|
1860 |
djnz ADDPROPLP
|
|
|
1861 |
ret
|
|
|
1862 |
; End of function sub_1373
|
|
|
1863 |
|
|
|
1864 |
; ---------------------------------------------------------------------------
|
|
|
1865 |
|
|
|
1866 |
page0_1382:
|
|
8
|
1867 |
ld a, (OP2)
|
|
|
1868 |
and 1
|
|
|
1869 |
ld a, b
|
|
4
|
1870 |
call z, ShLAcc
|
|
|
1871 |
|
|
|
1872 |
page0_138B:
|
|
8
|
1873 |
ld b, 8
|
|
|
1874 |
jr ADDPROP
|
|
4
|
1875 |
; ---------------------------------------------------------------------------
|
|
|
1876 |
|
|
|
1877 |
page0_138F:
|
|
8
|
1878 |
ld hl, 84A2h
|
|
|
1879 |
ld de, 848Ch
|
|
|
1880 |
jr ADD16D
|
|
4
|
1881 |
|
|
|
1882 |
; =============== S U B R O U T I N E =======================================
|
|
|
1883 |
|
|
|
1884 |
|
|
7
|
1885 |
sub_1397:
|
|
8
|
1886 |
ld hl, 8481h
|
|
|
1887 |
ld de, 848Ch
|
|
|
1888 |
jr ADD16D
|
|
4
|
1889 |
; End of function sub_1397
|
|
|
1890 |
|
|
|
1891 |
|
|
|
1892 |
; =============== S U B R O U T I N E =======================================
|
|
|
1893 |
|
|
|
1894 |
|
|
7
|
1895 |
page0_139F:
|
|
8
|
1896 |
ld hl, 848Ch
|
|
|
1897 |
ld de, 8481h
|
|
|
1898 |
jr ADD16D
|
|
|
1899 |
; ---------------------------------------------------------------------------
|
|
|
1900 |
ld de, 848Bh
|
|
|
1901 |
jr page0_13AF
|
|
|
1902 |
; ---------------------------------------------------------------------------
|
|
|
1903 |
ld de, 8480h
|
|
4
|
1904 |
|
|
7
|
1905 |
page0_13AF:
|
|
8
|
1906 |
ld hl, 848Bh
|
|
|
1907 |
xor a
|
|
|
1908 |
jr ADD14D
|
|
4
|
1909 |
; ---------------------------------------------------------------------------
|
|
|
1910 |
|
|
|
1911 |
page0_13B5:
|
|
8
|
1912 |
ld hl, 8497h
|
|
|
1913 |
ld de, 8481h
|
|
4
|
1914 |
|
|
7
|
1915 |
ADD16D:
|
|
8
|
1916 |
ld a, (de)
|
|
|
1917 |
add a, (hl)
|
|
4
|
1918 |
daa
|
|
8
|
1919 |
ld (de), a
|
|
|
1920 |
dec de
|
|
|
1921 |
dec hl
|
|
4
|
1922 |
|
|
7
|
1923 |
ADD14D:
|
|
|
1924 |
|
|
8
|
1925 |
ld a, (de)
|
|
4
|
1926 |
adc a, (hl)
|
|
|
1927 |
daa
|
|
8
|
1928 |
ld (de), a
|
|
|
1929 |
dec de
|
|
|
1930 |
dec hl
|
|
|
1931 |
ld a, (de)
|
|
4
|
1932 |
adc a, (hl)
|
|
|
1933 |
daa
|
|
8
|
1934 |
ld (de), a
|
|
|
1935 |
dec de
|
|
|
1936 |
dec hl
|
|
|
1937 |
ld a, (de)
|
|
4
|
1938 |
adc a, (hl)
|
|
|
1939 |
daa
|
|
8
|
1940 |
ld (de), a
|
|
|
1941 |
dec de
|
|
|
1942 |
dec hl
|
|
4
|
1943 |
|
|
7
|
1944 |
page0_13D3:
|
|
8
|
1945 |
ld a, (de)
|
|
4
|
1946 |
adc a, (hl)
|
|
|
1947 |
daa
|
|
8
|
1948 |
ld (de), a
|
|
|
1949 |
dec de
|
|
|
1950 |
dec hl
|
|
|
1951 |
ld a, (de)
|
|
4
|
1952 |
adc a, (hl)
|
|
|
1953 |
daa
|
|
8
|
1954 |
ld (de), a
|
|
|
1955 |
dec de
|
|
|
1956 |
dec hl
|
|
|
1957 |
ld a, (de)
|
|
4
|
1958 |
adc a, (hl)
|
|
|
1959 |
daa
|
|
8
|
1960 |
ld (de), a
|
|
|
1961 |
dec de
|
|
|
1962 |
dec hl
|
|
|
1963 |
ld a, (de)
|
|
4
|
1964 |
adc a, (hl)
|
|
|
1965 |
daa
|
|
8
|
1966 |
ld (de), a
|
|
|
1967 |
dec de
|
|
|
1968 |
dec hl
|
|
4
|
1969 |
ret
|
|
|
1970 |
; End of function page0_139F
|
|
|
1971 |
|
|
|
1972 |
; ---------------------------------------------------------------------------
|
|
|
1973 |
|
|
|
1974 |
page0_13EC:
|
|
8
|
1975 |
ld a, (OP5)
|
|
|
1976 |
and 80h ; ''
|
|
4
|
1977 |
|
|
|
1978 |
page0_13F1:
|
|
8
|
1979 |
ld hl, 8497h
|
|
|
1980 |
ld de, 848Ch
|
|
|
1981 |
jr nz, SUB16D
|
|
|
1982 |
jp ADD16D
|
|
4
|
1983 |
; ---------------------------------------------------------------------------
|
|
|
1984 |
|
|
|
1985 |
page0_13FC:
|
|
8
|
1986 |
ld a, (OP5)
|
|
|
1987 |
and 80h ; ''
|
|
|
1988 |
ld hl, 8497h
|
|
|
1989 |
ld de, 848Ch
|
|
|
1990 |
jr nz, SUB16D
|
|
|
1991 |
jp page0_13D3
|
|
4
|
1992 |
; ---------------------------------------------------------------------------
|
|
|
1993 |
|
|
|
1994 |
page0_140C:
|
|
8
|
1995 |
ld hl, 8496h
|
|
|
1996 |
ld de, 8480h
|
|
|
1997 |
xor a
|
|
|
1998 |
jr ADD14D
|
|
4
|
1999 |
|
|
|
2000 |
; =============== S U B R O U T I N E =======================================
|
|
|
2001 |
|
|
|
2002 |
|
|
7
|
2003 |
sub_1415:
|
|
8
|
2004 |
ld hl, 8481h
|
|
|
2005 |
ld de, 848Ch
|
|
|
2006 |
jr SUB16D
|
|
4
|
2007 |
; End of function sub_1415
|
|
|
2008 |
|
|
|
2009 |
|
|
|
2010 |
; =============== S U B R O U T I N E =======================================
|
|
|
2011 |
|
|
|
2012 |
|
|
7
|
2013 |
page0_141D:
|
|
8
|
2014 |
ld hl, 848Ch
|
|
|
2015 |
jr page0_142D
|
|
4
|
2016 |
; ---------------------------------------------------------------------------
|
|
|
2017 |
|
|
|
2018 |
page0_1422:
|
|
8
|
2019 |
ld hl, 8481h
|
|
|
2020 |
ld de, 8497h
|
|
|
2021 |
jr SUB16D
|
|
4
|
2022 |
; ---------------------------------------------------------------------------
|
|
|
2023 |
|
|
|
2024 |
page0_142A:
|
|
8
|
2025 |
ld hl, 8497h
|
|
4
|
2026 |
|
|
7
|
2027 |
page0_142D:
|
|
8
|
2028 |
ld de, 8481h
|
|
4
|
2029 |
|
|
7
|
2030 |
SUB16D:
|
|
8
|
2031 |
ld a, (de)
|
|
|
2032 |
sub (hl)
|
|
4
|
2033 |
daa
|
|
8
|
2034 |
ld (de), a
|
|
|
2035 |
dec de
|
|
|
2036 |
dec hl
|
|
4
|
2037 |
|
|
7
|
2038 |
SUB14D:
|
|
8
|
2039 |
ld a, (de)
|
|
|
2040 |
sbc a, (hl)
|
|
4
|
2041 |
daa
|
|
8
|
2042 |
ld (de), a
|
|
|
2043 |
dec de
|
|
|
2044 |
dec hl
|
|
|
2045 |
ld a, (de)
|
|
|
2046 |
sbc a, (hl)
|
|
4
|
2047 |
daa
|
|
8
|
2048 |
ld (de), a
|
|
|
2049 |
dec de
|
|
|
2050 |
dec hl
|
|
|
2051 |
ld a, (de)
|
|
|
2052 |
sbc a, (hl)
|
|
4
|
2053 |
daa
|
|
8
|
2054 |
ld (de), a
|
|
|
2055 |
dec de
|
|
|
2056 |
dec hl
|
|
4
|
2057 |
|
|
|
2058 |
page0_1448:
|
|
8
|
2059 |
ld a, (de)
|
|
|
2060 |
sbc a, (hl)
|
|
4
|
2061 |
daa
|
|
8
|
2062 |
ld (de), a
|
|
|
2063 |
dec de
|
|
|
2064 |
dec hl
|
|
|
2065 |
ld a, (de)
|
|
|
2066 |
sbc a, (hl)
|
|
4
|
2067 |
daa
|
|
8
|
2068 |
ld (de), a
|
|
|
2069 |
dec de
|
|
|
2070 |
dec hl
|
|
|
2071 |
ld a, (de)
|
|
|
2072 |
sbc a, (hl)
|
|
4
|
2073 |
daa
|
|
8
|
2074 |
ld (de), a
|
|
|
2075 |
dec de
|
|
|
2076 |
dec hl
|
|
|
2077 |
ld a, (de)
|
|
|
2078 |
sbc a, (hl)
|
|
4
|
2079 |
daa
|
|
8
|
2080 |
ld (de), a
|
|
|
2081 |
dec de
|
|
|
2082 |
dec hl
|
|
4
|
2083 |
ret
|
|
|
2084 |
; End of function page0_141D
|
|
|
2085 |
|
|
|
2086 |
; ---------------------------------------------------------------------------
|
|
|
2087 |
|
|
|
2088 |
page0_1461:
|
|
8
|
2089 |
ld de, 84A1h
|
|
|
2090 |
xor a
|
|
|
2091 |
jr SUB14D
|
|
4
|
2092 |
; ---------------------------------------------------------------------------
|
|
|
2093 |
|
|
|
2094 |
page0_1467:
|
|
8
|
2095 |
ld hl, 8480h
|
|
|
2096 |
ld de, 8496h
|
|
|
2097 |
xor a
|
|
|
2098 |
jr SUB14D
|
|
4
|
2099 |
; ---------------------------------------------------------------------------
|
|
|
2100 |
|
|
|
2101 |
page0_1470:
|
|
8
|
2102 |
ld hl, 8496h
|
|
|
2103 |
ld de, 8480h
|
|
|
2104 |
xor a
|
|
|
2105 |
jr SUB14D
|
|
4
|
2106 |
; ---------------------------------------------------------------------------
|
|
|
2107 |
|
|
|
2108 |
OP2ExOP6:
|
|
8
|
2109 |
ld hl, 84AFh
|
|
|
2110 |
jr page0_1498
|
|
4
|
2111 |
; ---------------------------------------------------------------------------
|
|
|
2112 |
|
|
|
2113 |
OP5ExOP6:
|
|
8
|
2114 |
ld hl, 84A4h
|
|
|
2115 |
ld de, 84AFh
|
|
|
2116 |
jr page0_14B6
|
|
4
|
2117 |
; ---------------------------------------------------------------------------
|
|
|
2118 |
|
|
|
2119 |
OP1ExOP5:
|
|
8
|
2120 |
ld hl, 84A4h
|
|
|
2121 |
jr page0_14B3
|
|
4
|
2122 |
; ---------------------------------------------------------------------------
|
|
|
2123 |
|
|
|
2124 |
OP1ExOP6:
|
|
8
|
2125 |
ld hl, 84AFh
|
|
|
2126 |
jr page0_14B3
|
|
4
|
2127 |
; ---------------------------------------------------------------------------
|
|
|
2128 |
|
|
|
2129 |
OP2ExOP4:
|
|
8
|
2130 |
ld hl, 8499h
|
|
|
2131 |
jr page0_1498
|
|
4
|
2132 |
; ---------------------------------------------------------------------------
|
|
|
2133 |
|
|
|
2134 |
OP2ExOP5:
|
|
8
|
2135 |
ld hl, 84A4h
|
|
4
|
2136 |
|
|
7
|
2137 |
page0_1498:
|
|
8
|
2138 |
ld de, 8483h
|
|
|
2139 |
jr page0_14B6
|
|
4
|
2140 |
; ---------------------------------------------------------------------------
|
|
|
2141 |
|
|
|
2142 |
OP1ExOP3:
|
|
8
|
2143 |
ld hl, 848Eh
|
|
|
2144 |
jr page0_14B3
|
|
4
|
2145 |
; ---------------------------------------------------------------------------
|
|
|
2146 |
|
|
|
2147 |
OP1ExOP4:
|
|
8
|
2148 |
ld hl, 8499h
|
|
|
2149 |
jr page0_14B3
|
|
4
|
2150 |
; ---------------------------------------------------------------------------
|
|
|
2151 |
|
|
|
2152 |
page0_14A7:
|
|
|
2153 |
call Page0Call_3E37
|
|
|
2154 |
call OP1ExOP2
|
|
|
2155 |
call Page0Call_3E37
|
|
|
2156 |
|
|
|
2157 |
; =============== S U B R O U T I N E =======================================
|
|
|
2158 |
|
|
|
2159 |
|
|
7
|
2160 |
OP1ExOP2:
|
|
8
|
2161 |
ld hl, 8483h
|
|
4
|
2162 |
|
|
7
|
2163 |
page0_14B3:
|
|
8
|
2164 |
ld de, 8478h
|
|
4
|
2165 |
|
|
7
|
2166 |
page0_14B6:
|
|
8
|
2167 |
ld b, 0Bh
|
|
4
|
2168 |
|
|
7
|
2169 |
ExLp:
|
|
8
|
2170 |
ld a, (de)
|
|
|
2171 |
ld c, (hl)
|
|
|
2172 |
ld (hl), a
|
|
|
2173 |
ld a, c
|
|
|
2174 |
ld (de), a
|
|
|
2175 |
inc hl
|
|
|
2176 |
inc de
|
|
4
|
2177 |
djnz ExLp
|
|
|
2178 |
ret
|
|
|
2179 |
; End of function OP1ExOP2
|
|
|
2180 |
|
|
|
2181 |
; ---------------------------------------------------------------------------
|
|
|
2182 |
|
|
|
2183 |
CkOP1C0:
|
|
8
|
2184 |
ld a, (OP2M)
|
|
|
2185 |
or a
|
|
|
2186 |
ret nz
|
|
4
|
2187 |
|
|
|
2188 |
; =============== S U B R O U T I N E =======================================
|
|
|
2189 |
|
|
|
2190 |
|
|
7
|
2191 |
CkOP1FP0:
|
|
6
|
2192 |
; page0_CF2:loc_D26p ...
|
|
8
|
2193 |
ld a, (OP1M)
|
|
|
2194 |
and a
|
|
4
|
2195 |
ret
|
|
|
2196 |
; End of function CkOP1FP0
|
|
|
2197 |
|
|
|
2198 |
|
|
|
2199 |
; =============== S U B R O U T I N E =======================================
|
|
|
2200 |
|
|
|
2201 |
|
|
7
|
2202 |
CkOP2FP0:
|
|
6
|
2203 |
; page0_CF2+38p ...
|
|
8
|
2204 |
ld a, (OP2M)
|
|
|
2205 |
and a
|
|
4
|
2206 |
ret
|
|
|
2207 |
; End of function CkOP2FP0
|
|
|
2208 |
|
|
|
2209 |
; ---------------------------------------------------------------------------
|
|
|
2210 |
|
|
|
2211 |
page0_14D1:
|
|
|
2212 |
call CkOP1Real
|
|
8
|
2213 |
ret nz
|
|
4
|
2214 |
|
|
|
2215 |
PosNo0Int:
|
|
8
|
2216 |
ld a, (OP1M)
|
|
|
2217 |
sub 10h
|
|
|
2218 |
ret c
|
|
4
|
2219 |
|
|
|
2220 |
; =============== S U B R O U T I N E =======================================
|
|
|
2221 |
|
|
|
2222 |
|
|
7
|
2223 |
CKPosInt:
|
|
8
|
2224 |
ld a, (OP1)
|
|
|
2225 |
and 80h ; ''
|
|
|
2226 |
ret nz
|
|
4
|
2227 |
; End of function CKPosInt
|
|
|
2228 |
|
|
|
2229 |
|
|
|
2230 |
; =============== S U B R O U T I N E =======================================
|
|
|
2231 |
|
|
|
2232 |
|
|
7
|
2233 |
page0_14E1:
|
|
8
|
2234 |
ld hl, 8479h
|
|
4
|
2235 |
|
|
|
2236 |
CKInt:
|
|
8
|
2237 |
ld d, 1
|
|
|
2238 |
jr page0_14EA
|
|
4
|
2239 |
; ---------------------------------------------------------------------------
|
|
|
2240 |
|
|
7
|
2241 |
CKOdd:
|
|
8
|
2242 |
ld d, 0
|
|
4
|
2243 |
|
|
7
|
2244 |
page0_14EA:
|
|
8
|
2245 |
ld a, (hl)
|
|
|
2246 |
ld e, a
|
|
|
2247 |
sub 80h ; ''
|
|
|
2248 |
ret c
|
|
|
2249 |
cp 0Eh
|
|
|
2250 |
jr c, page0_14F5
|
|
|
2251 |
xor a
|
|
4
|
2252 |
ret
|
|
|
2253 |
; ---------------------------------------------------------------------------
|
|
|
2254 |
|
|
7
|
2255 |
page0_14F5:
|
|
4
|
2256 |
srl a
|
|
8
|
2257 |
ld b, 0
|
|
|
2258 |
ld c, a
|
|
|
2259 |
inc hl
|
|
|
2260 |
add hl, bc
|
|
|
2261 |
ld a, (hl)
|
|
|
2262 |
bit 0, d
|
|
|
2263 |
jr nz, page0_1509
|
|
|
2264 |
bit 0, e
|
|
4
|
2265 |
call z, ShRAcc
|
|
8
|
2266 |
and 1
|
|
4
|
2267 |
ret
|
|
|
2268 |
; ---------------------------------------------------------------------------
|
|
|
2269 |
|
|
7
|
2270 |
page0_1509:
|
|
8
|
2271 |
bit 0, e
|
|
|
2272 |
jr nz, page0_1510
|
|
|
2273 |
and 0Fh
|
|
|
2274 |
ret nz
|
|
4
|
2275 |
|
|
7
|
2276 |
page0_1510:
|
|
8
|
2277 |
ld a, 6
|
|
|
2278 |
sub c
|
|
|
2279 |
ret z
|
|
|
2280 |
inc hl
|
|
|
2281 |
ld b, a
|
|
|
2282 |
jr sub_1525
|
|
4
|
2283 |
; End of function page0_14E1
|
|
|
2284 |
|
|
|
2285 |
; ---------------------------------------------------------------------------
|
|
|
2286 |
|
|
|
2287 |
page0_1518:
|
|
8
|
2288 |
ld a, 10h
|
|
|
2289 |
jr CKOP1M
|
|
4
|
2290 |
; ---------------------------------------------------------------------------
|
|
|
2291 |
|
|
|
2292 |
page0_151C:
|
|
8
|
2293 |
xor a
|
|
4
|
2294 |
|
|
7
|
2295 |
CKOP1M:
|
|
8
|
2296 |
ld hl, 847Ah
|
|
|
2297 |
cp (hl)
|
|
|
2298 |
ret nz
|
|
|
2299 |
inc hl
|
|
|
2300 |
ld b, 7
|
|
4
|
2301 |
|
|
|
2302 |
; =============== S U B R O U T I N E =======================================
|
|
|
2303 |
|
|
|
2304 |
|
|
7
|
2305 |
sub_1525:
|
|
8
|
2306 |
xor a
|
|
4
|
2307 |
|
|
7
|
2308 |
page0_1526:
|
|
8
|
2309 |
cp (hl)
|
|
|
2310 |
ret nz
|
|
|
2311 |
inc hl
|
|
4
|
2312 |
djnz page0_1526
|
|
|
2313 |
ret
|
|
|
2314 |
; End of function sub_1525
|
|
|
2315 |
|
|
|
2316 |
; ---------------------------------------------------------------------------
|
|
|
2317 |
|
|
|
2318 |
GETCONOP1:
|
|
8
|
2319 |
ld de, 8478h
|
|
|
2320 |
jr page0_1534
|
|
4
|
2321 |
|
|
|
2322 |
; =============== S U B R O U T I N E =======================================
|
|
|
2323 |
|
|
|
2324 |
|
|
7
|
2325 |
GETCONOP2:
|
|
8
|
2326 |
ld de, 8483h
|
|
4
|
2327 |
|
|
7
|
2328 |
page0_1534:
|
|
4
|
2329 |
push af
|
|
8
|
2330 |
xor a
|
|
|
2331 |
ld (de), a
|
|
|
2332 |
inc de
|
|
|
2333 |
pop af
|
|
|
2334 |
ld hl, unk_1544
|
|
4
|
2335 |
call sub_18C3
|
|
|
2336 |
ldi
|
|
|
2337 |
ldi
|
|
|
2338 |
ret
|
|
|
2339 |
; End of function GETCONOP2
|
|
|
2340 |
|
|
|
2341 |
unk_1544:
|
|
8
|
2342 |
.db 81h ; ü
|
|
|
2343 |
.db 57h ; W
|
|
|
2344 |
.db 29h ; )
|
|
|
2345 |
.db 57h ; W
|
|
|
2346 |
.db 79h ; y
|
|
|
2347 |
.db 51h ; Q
|
|
|
2348 |
.db 30h ; 0
|
|
|
2349 |
.db 82h ; é
|
|
|
2350 |
.db 32h ; 2
|
|
4
|
2351 |
PIDIV2:
|
|
8
|
2352 |
.db 80h ; Ç
|
|
|
2353 |
.db 15h
|
|
|
2354 |
.db 70h ; p
|
|
|
2355 |
.db 79h ; y
|
|
|
2356 |
.db 63h ; c
|
|
|
2357 |
.db 26h ; &
|
|
|
2358 |
.db 79h ; y
|
|
|
2359 |
.db 48h ; H
|
|
|
2360 |
.db 97h ; ù
|
|
4
|
2361 |
PIDIV4:
|
|
8
|
2362 |
.db 7Fh ;
|
|
|
2363 |
.db 78h ; x
|
|
|
2364 |
.db 53h ; S
|
|
|
2365 |
.db 98h ; ÿ
|
|
|
2366 |
.db 16h
|
|
|
2367 |
.db 33h ; 3
|
|
|
2368 |
.db 97h ; ù
|
|
|
2369 |
.db 44h ; D
|
|
|
2370 |
.db 83h ; â
|
|
|
2371 |
.db 7Fh ;
|
|
|
2372 |
.db 43h ; C
|
|
|
2373 |
.db 42h ; B
|
|
|
2374 |
.db 94h ; ö
|
|
|
2375 |
.db 48h ; H
|
|
|
2376 |
.db 19h
|
|
|
2377 |
.db 3
|
|
|
2378 |
.db 25h ; %
|
|
|
2379 |
.db 18h
|
|
|
2380 |
.db 80h ; Ç
|
|
|
2381 |
.db 31h ; 1
|
|
|
2382 |
.db 41h ; A
|
|
|
2383 |
.db 59h ; Y
|
|
|
2384 |
.db 26h ; &
|
|
|
2385 |
.db 53h ; S
|
|
|
2386 |
.db 58h ; X
|
|
|
2387 |
.db 98h ; ÿ
|
|
|
2388 |
.db 0
|
|
|
2389 |
.db 7Eh ; ~
|
|
|
2390 |
.db 17h
|
|
|
2391 |
.db 45h ; E
|
|
|
2392 |
.db 32h ; 2
|
|
|
2393 |
.db 92h ; Æ
|
|
|
2394 |
.db 51h ; Q
|
|
|
2395 |
.db 99h ; Ö
|
|
|
2396 |
.db 43h ; C
|
|
|
2397 |
.db 30h ; 0
|
|
|
2398 |
.db 80h ; Ç
|
|
|
2399 |
.db 23h ; #
|
|
|
2400 |
.db 2
|
|
|
2401 |
.db 58h ; X
|
|
|
2402 |
.db 50h ; P
|
|
|
2403 |
.db 92h ; Æ
|
|
|
2404 |
.db 99h ; Ö
|
|
|
2405 |
.db 40h ; @
|
|
|
2406 |
.db 46h ; F
|
|
4
|
2407 |
PItimes2:
|
|
8
|
2408 |
.db 62h ; b
|
|
|
2409 |
.db 83h ; â
|
|
|
2410 |
.db 18h
|
|
|
2411 |
.db 53h ; S
|
|
|
2412 |
.db 7
|
|
|
2413 |
.db 17h
|
|
|
2414 |
.db 96h ; û
|
|
4
|
2415 |
PI:
|
|
8
|
2416 |
.db 31h ; 1
|
|
|
2417 |
.db 41h ; A
|
|
|
2418 |
.db 59h ; Y
|
|
|
2419 |
.db 26h ; &
|
|
|
2420 |
.db 53h ; S
|
|
|
2421 |
.db 58h ; X
|
|
4
|
2422 |
unk_1590:
|
|
8
|
2423 |
.db 98h ; ÿ
|
|
|
2424 |
.db 78h ; x
|
|
|
2425 |
.db 53h ; S
|
|
|
2426 |
.db 98h ; ÿ
|
|
|
2427 |
.db 16h
|
|
|
2428 |
.db 33h ; 3
|
|
|
2429 |
.db 97h ; ù
|
|
4
|
2430 |
unk_1597:
|
|
8
|
2431 |
.db 45h ; E
|
|
4
|
2432 |
unk_1598:
|
|
8
|
2433 |
.db 15h
|
|
|
2434 |
.db 70h ; p
|
|
|
2435 |
.db 79h ; y
|
|
|
2436 |
.db 63h ; c
|
|
|
2437 |
.db 26h ; &
|
|
|
2438 |
.db 79h ; y
|
|
|
2439 |
.db 49h ; I
|
|
4
|
2440 |
|
|
7
|
2441 |
ExpToHex:
|
|
8
|
2442 |
ld a, 80h ; ''
|
|
|
2443 |
sub (hl)
|
|
|
2444 |
jr nc, page0_15A7
|
|
|
2445 |
res 7, (hl)
|
|
4
|
2446 |
ret
|
|
|
2447 |
; ---------------------------------------------------------------------------
|
|
|
2448 |
|
|
7
|
2449 |
page0_15A7:
|
|
8
|
2450 |
ld (hl), a
|
|
4
|
2451 |
ret
|
|
|
2452 |
; End of function ExpToHex
|
|
|
2453 |
|
|
|
2454 |
; ---------------------------------------------------------------------------
|
|
|
2455 |
|
|
|
2456 |
OP1ExpToDec:
|
|
8
|
2457 |
ld hl, 8479h
|
|
4
|
2458 |
call ExpToHex
|
|
8
|
2459 |
ld a, (hl)
|
|
|
2460 |
and 0F0h ;
|
|
4
|
2461 |
call ShRAcc
|
|
8
|
2462 |
ld b, a
|
|
|
2463 |
ld a, (hl)
|
|
|
2464 |
and 0Fh
|
|
|
2465 |
add a, 0
|
|
4
|
2466 |
daa
|
|
|
2467 |
|
|
7
|
2468 |
page0_15BC:
|
|
8
|
2469 |
dec b
|
|
|
2470 |
ret m
|
|
|
2471 |
add a, 16h
|
|
4
|
2472 |
daa
|
|
8
|
2473 |
jr nc, page0_15BC
|
|
|
2474 |
jp ErrOverflow
|
|
4
|
2475 |
; ---------------------------------------------------------------------------
|
|
|
2476 |
|
|
|
2477 |
ckop2pos:
|
|
8
|
2478 |
ld a, (OP2)
|
|
|
2479 |
jr page0_15CE
|
|
4
|
2480 |
|
|
|
2481 |
; =============== S U B R O U T I N E =======================================
|
|
|
2482 |
|
|
|
2483 |
|
|
7
|
2484 |
CkOP1Pos:
|
|
8
|
2485 |
ld a, (OP1)
|
|
4
|
2486 |
|
|
7
|
2487 |
page0_15CE:
|
|
8
|
2488 |
and 80h ; ''
|
|
4
|
2489 |
ret
|
|
|
2490 |
; End of function CkOP1Pos
|
|
|
2491 |
|
|
|
2492 |
|
|
|
2493 |
; =============== S U B R O U T I N E =======================================
|
|
|
2494 |
|
|
|
2495 |
|
|
7
|
2496 |
ClrOP2S:
|
|
8
|
2497 |
ld hl, 8483h
|
|
|
2498 |
jr page0_15D9
|
|
4
|
2499 |
; End of function ClrOP2S
|
|
|
2500 |
|
|
|
2501 |
|
|
|
2502 |
; =============== S U B R O U T I N E =======================================
|
|
|
2503 |
|
|
|
2504 |
|
|
7
|
2505 |
ClrOP1S:
|
|
|
2506 |
|
|
8
|
2507 |
ld hl, 8478h
|
|
4
|
2508 |
|
|
7
|
2509 |
page0_15D9:
|
|
8
|
2510 |
ld a, (hl)
|
|
4
|
2511 |
|
|
7
|
2512 |
page0_15DA:
|
|
8
|
2513 |
res 7, (hl)
|
|
4
|
2514 |
ret
|
|
|
2515 |
; End of function ClrOP1S
|
|
|
2516 |
|
|
|
2517 |
; ---------------------------------------------------------------------------
|
|
|
2518 |
|
|
|
2519 |
FDIV100:
|
|
|
2520 |
call FDIV10
|
|
|
2521 |
|
|
|
2522 |
FDIV10:
|
|
|
2523 |
call CkOP1FP0
|
|
8
|
2524 |
ret z
|
|
4
|
2525 |
call DecO1Exp
|
|
8
|
2526 |
jp z, OP1Set0
|
|
4
|
2527 |
ret
|
|
|
2528 |
|
|
|
2529 |
; =============== S U B R O U T I N E =======================================
|
|
|
2530 |
|
|
|
2531 |
|
|
7
|
2532 |
DecO1Exp:
|
|
8
|
2533 |
ld a, (unk_8479)
|
|
|
2534 |
dec a
|
|
|
2535 |
ld (unk_8479), a
|
|
4
|
2536 |
ret
|
|
|
2537 |
; End of function DecO1Exp
|
|
|
2538 |
|
|
|
2539 |
|
|
|
2540 |
; =============== S U B R O U T I N E =======================================
|
|
|
2541 |
|
|
|
2542 |
|
|
7
|
2543 |
INCO1EXP:
|
|
|
2544 |
|
|
|
2545 |
|
|
|
2546 |
|
|
4
|
2547 |
|
|
8
|
2548 |
ld hl, 8479h
|
|
4
|
2549 |
|
|
|
2550 |
INCEXP:
|
|
8
|
2551 |
inc (hl)
|
|
|
2552 |
ret nz
|
|
|
2553 |
jp ErrOverflow
|
|
4
|
2554 |
; End of function INCO1EXP
|
|
|
2555 |
|
|
|
2556 |
|
|
|
2557 |
; =============== S U B R O U T I N E =======================================
|
|
|
2558 |
|
|
|
2559 |
|
|
7
|
2560 |
CkValidNum:
|
|
8
|
2561 |
ld a, (OP1)
|
|
4
|
2562 |
|
|
|
2563 |
page0_15FE:
|
|
8
|
2564 |
and 1Fh
|
|
4
|
2565 |
push af
|
|
8
|
2566 |
jr z, page0_1620
|
|
|
2567 |
cp 0Ch
|
|
|
2568 |
jr nz, page0_1639
|
|
4
|
2569 |
call CkOP2FP0
|
|
8
|
2570 |
jr nz, page0_1614
|
|
4
|
2571 |
|
|
7
|
2572 |
page0_160C:
|
|
4
|
2573 |
call OP2Set0
|
|
8
|
2574 |
pop af
|
|
|
2575 |
ld (OP2), a
|
|
4
|
2576 |
push af
|
|
|
2577 |
|
|
7
|
2578 |
page0_1614:
|
|
8
|
2579 |
ld a, (unk_8484)
|
|
|
2580 |
cp 0E4h ; '䧍
|
|
|
2581 |
jp nc, ErrOverflow
|
|
|
2582 |
cp 1Dh
|
|
|
2583 |
jr c, page0_160C
|
|
4
|
2584 |
|
|
7
|
2585 |
page0_1620:
|
|
4
|
2586 |
call CkOP1FP0
|
|
8
|
2587 |
jr nz, page0_162D
|
|
4
|
2588 |
|
|
7
|
2589 |
page0_1625:
|
|
4
|
2590 |
call OP1Set0
|
|
8
|
2591 |
pop af
|
|
|
2592 |
ld (OP1), a
|
|
4
|
2593 |
ret
|
|
|
2594 |
; ---------------------------------------------------------------------------
|
|
|
2595 |
|
|
7
|
2596 |
page0_162D:
|
|
8
|
2597 |
ld a, (unk_8479)
|
|
|
2598 |
cp 0E4h ; '䧍
|
|
|
2599 |
jp nc, ErrOverflow
|
|
|
2600 |
cp 1Dh
|
|
|
2601 |
jr c, page0_1625
|
|
4
|
2602 |
|
|
7
|
2603 |
page0_1639:
|
|
8
|
2604 |
pop af
|
|
4
|
2605 |
ret
|
|
|
2606 |
; End of function CkValidNum
|
|
|
2607 |
|
|
|
2608 |
; ---------------------------------------------------------------------------
|
|
|
2609 |
|
|
|
2610 |
GETEXP:
|
|
8
|
2611 |
ld a, (unk_8479)
|
|
|
2612 |
cp 80h ; ''
|
|
4
|
2613 |
ret
|
|
|
2614 |
|
|
|
2615 |
; =============== S U B R O U T I N E =======================================
|
|
|
2616 |
|
|
|
2617 |
|
|
7
|
2618 |
page0_1641:
|
|
8
|
2619 |
ld a, (unk_8479)
|
|
|
2620 |
cp 24h ; '$'
|
|
4
|
2621 |
ret
|
|
|
2622 |
; End of function page0_1641
|
|
|
2623 |
|
|
|
2624 |
|
|
|
2625 |
; =============== S U B R O U T I N E =======================================
|
|
|
2626 |
|
|
|
2627 |
|
|
7
|
2628 |
HTimesL:
|
|
8
|
2629 |
ld b, h
|
|
|
2630 |
ld h, 0
|
|
|
2631 |
ld d, h
|
|
|
2632 |
ld e, h
|
|
|
2633 |
ex de, hl
|
|
|
2634 |
or a
|
|
4
|
2635 |
|
|
7
|
2636 |
page0_164E:
|
|
4
|
2637 |
adc hl, de
|
|
|
2638 |
djnz page0_164E
|
|
|
2639 |
ret
|
|
|
2640 |
; End of function HTimesL
|
|
|
2641 |
|
|
|
2642 |
|
|
|
2643 |
; =============== S U B R O U T I N E =======================================
|
|
|
2644 |
|
|
|
2645 |
|
|
7
|
2646 |
EOP1NotReal:
|
|
|
2647 |
|
|
|
2648 |
|
|
|
2649 |
|
|
4
|
2650 |
|
|
|
2651 |
call CkOP1Real
|
|
8
|
2652 |
ret z
|
|
|
2653 |
cp 0Eh
|
|
|
2654 |
jp z, ErrInvalid
|
|
|
2655 |
jp ErrDataType
|
|
4
|
2656 |
; End of function EOP1NotReal
|
|
|
2657 |
|
|
|
2658 |
; ---------------------------------------------------------------------------
|
|
|
2659 |
|
|
|
2660 |
page0_165F:
|
|
8
|
2661 |
ld hl, 21h ; '!'
|
|
|
2662 |
jr page0_1667
|
|
4
|
2663 |
|
|
|
2664 |
; =============== S U B R O U T I N E =======================================
|
|
|
2665 |
|
|
|
2666 |
|
|
7
|
2667 |
page0_1664:
|
|
8
|
2668 |
ld hl, 23h ; '#'
|
|
4
|
2669 |
|
|
7
|
2670 |
page0_1667:
|
|
8
|
2671 |
ld a, 5
|
|
4
|
2672 |
; End of function page0_1664
|
|
|
2673 |
|
|
|
2674 |
; START OF FUNCTION CHUNK FOR page0_1671
|
|
|
2675 |
|
|
7
|
2676 |
page0_1669:
|
|
8
|
2677 |
ld (OP1), a
|
|
|
2678 |
jr page0_1678
|
|
4
|
2679 |
; END OF FUNCTION CHUNK FOR page0_1671
|
|
|
2680 |
; ---------------------------------------------------------------------------
|
|
|
2681 |
|
|
|
2682 |
page0_166E:
|
|
8
|
2683 |
ld hl, 40h ; '@'
|
|
4
|
2684 |
|
|
|
2685 |
; =============== S U B R O U T I N E =======================================
|
|
|
2686 |
|
|
|
2687 |
|
|
7
|
2688 |
page0_1671:
|
|
|
2689 |
|
|
|
2690 |
|
|
|
2691 |
|
|
4
|
2692 |
|
|
8
|
2693 |
ld a, 3
|
|
|
2694 |
jr page0_1669
|
|
4
|
2695 |
; End of function page0_1671
|
|
|
2696 |
|
|
|
2697 |
; ---------------------------------------------------------------------------
|
|
|
2698 |
|
|
|
2699 |
page0_1675:
|
|
8
|
2700 |
ld hl, 2A01h
|
|
4
|
2701 |
; START OF FUNCTION CHUNK FOR page0_1671
|
|
|
2702 |
|
|
7
|
2703 |
page0_1678:
|
|
|
2704 |
|
|
8
|
2705 |
ld (unk_8479), hl
|
|
|
2706 |
xor a
|
|
|
2707 |
ld (unk_847B), a
|
|
4
|
2708 |
ret
|
|
|
2709 |
; END OF FUNCTION CHUNK FOR page0_1671
|
|
|
2710 |
|
|
|
2711 |
; =============== S U B R O U T I N E =======================================
|
|
|
2712 |
|
|
|
2713 |
|
|
7
|
2714 |
sub_1680:
|
|
|
2715 |
|
|
8
|
2716 |
ld a, 40h ; '@'
|
|
4
|
2717 |
|
|
|
2718 |
page0_1682:
|
|
8
|
2719 |
ld h, a
|
|
|
2720 |
ld l, 5Dh ; ']'
|
|
|
2721 |
ld a, 1
|
|
|
2722 |
jr page0_1669
|
|
4
|
2723 |
; End of function sub_1680
|
|
|
2724 |
|
|
|
2725 |
; ---------------------------------------------------------------------------
|
|
|
2726 |
|
|
|
2727 |
ThetaName:
|
|
8
|
2728 |
ld a, 5Bh ; '['
|
|
|
2729 |
jr REALNAME
|
|
4
|
2730 |
; ---------------------------------------------------------------------------
|
|
|
2731 |
|
|
|
2732 |
RName:
|
|
8
|
2733 |
ld a, 52h ; 'R'
|
|
|
2734 |
jr REALNAME
|
|
4
|
2735 |
; ---------------------------------------------------------------------------
|
|
|
2736 |
|
|
|
2737 |
REGEQNAME:
|
|
8
|
2738 |
ld h, 1
|
|
|
2739 |
ld a, 3
|
|
|
2740 |
jr page0_169B
|
|
4
|
2741 |
; ---------------------------------------------------------------------------
|
|
|
2742 |
|
|
|
2743 |
RECURNNAME:
|
|
8
|
2744 |
ld a, 0
|
|
|
2745 |
ld h, 21h ; '!'
|
|
4
|
2746 |
|
|
7
|
2747 |
page0_169B:
|
|
8
|
2748 |
ld l, 62h ; 'b'
|
|
|
2749 |
ld (OP1), a
|
|
|
2750 |
jr page0_1678
|
|
4
|
2751 |
; ---------------------------------------------------------------------------
|
|
|
2752 |
|
|
|
2753 |
XName:
|
|
8
|
2754 |
ld a, 58h ; 'X'
|
|
|
2755 |
jr REALNAME
|
|
4
|
2756 |
; ---------------------------------------------------------------------------
|
|
|
2757 |
|
|
|
2758 |
YName:
|
|
8
|
2759 |
ld a, 59h ; 'Y'
|
|
|
2760 |
jr REALNAME
|
|
4
|
2761 |
; ---------------------------------------------------------------------------
|
|
|
2762 |
|
|
|
2763 |
TName:
|
|
8
|
2764 |
ld a, 54h ; 'T'
|
|
4
|
2765 |
|
|
7
|
2766 |
REALNAME:
|
|
4
|
2767 |
push af
|
|
|
2768 |
call ZeroOP1
|
|
8
|
2769 |
pop af
|
|
|
2770 |
ld (unk_8479), a
|
|
4
|
2771 |
ret
|
|
|
2772 |
; ---------------------------------------------------------------------------
|
|
|
2773 |
|
|
|
2774 |
SETesTOfps:
|
|
8
|
2775 |
ld hl, (FPS)
|
|
|
2776 |
ld (ES), hl
|
|
4
|
2777 |
ret
|
|
|
2778 |
; ---------------------------------------------------------------------------
|
|
|
2779 |
|
|
|
2780 |
markTableDirty:
|
|
|
2781 |
call page0_1641
|
|
8
|
2782 |
ret nz
|
|
|
2783 |
rst 10h
|
|
|
2784 |
set 7, (hl)
|
|
4
|
2785 |
ret
|
|
|
2786 |
|
|
|
2787 |
; =============== S U B R O U T I N E =======================================
|
|
|
2788 |
|
|
|
2789 |
|
|
7
|
2790 |
page0_16C4:
|
|
8
|
2791 |
ld a, (unk_8479)
|
|
|
2792 |
cp 5Ch ; '\'
|
|
|
2793 |
jr nz, page0_16D3
|
|
|
2794 |
ld a, (OP1M)
|
|
|
2795 |
ld hl, 8D8Eh
|
|
|
2796 |
cp (hl)
|
|
4
|
2797 |
ret
|
|
|
2798 |
; ---------------------------------------------------------------------------
|
|
|
2799 |
|
|
7
|
2800 |
page0_16D3:
|
|
8
|
2801 |
cp 5Dh ; ']'
|
|
|
2802 |
ret nz
|
|
|
2803 |
ld hl, 8D2Eh
|
|
|
2804 |
ld b, 14h
|
|
4
|
2805 |
|
|
7
|
2806 |
page0_16DB:
|
|
4
|
2807 |
push bc
|
|
|
2808 |
push hl
|
|
8
|
2809 |
ld de, 847Eh
|
|
|
2810 |
ld b, 5
|
|
4
|
2811 |
call Page0Call_3E3D
|
|
8
|
2812 |
ld a, c
|
|
|
2813 |
pop hl
|
|
|
2814 |
ld bc, 5
|
|
|
2815 |
add hl, bc
|
|
|
2816 |
pop bc
|
|
|
2817 |
cp 5
|
|
|
2818 |
ret z
|
|
4
|
2819 |
djnz page0_16DB
|
|
8
|
2820 |
or 1
|
|
4
|
2821 |
ret
|
|
|
2822 |
; End of function page0_16C4
|
|
|
2823 |
|
|
|
2824 |
|
|
|
2825 |
; =============== S U B R O U T I N E =======================================
|
|
|
2826 |
|
|
|
2827 |
|
|
7
|
2828 |
page0_16F4:
|
|
|
2829 |
|
|
|
2830 |
|
|
4
|
2831 |
|
|
|
2832 |
call ChkFindSym
|
|
8
|
2833 |
jp c, ErrUndefined
|
|
4
|
2834 |
|
|
|
2835 |
page0_16FA:
|
|
8
|
2836 |
bit 6, (hl)
|
|
|
2837 |
ret z
|
|
|
2838 |
jp SetTblGraphDraw
|
|
4
|
2839 |
; End of function page0_16F4
|
|
|
2840 |
|
|
|
2841 |
|
|
|
2842 |
; =============== S U B R O U T I N E =======================================
|
|
|
2843 |
|
|
|
2844 |
|
|
7
|
2845 |
OP1MOP2EXP:
|
|
8
|
2846 |
ld a, (unk_8479)
|
|
|
2847 |
ld hl, 8484h
|
|
|
2848 |
sub (hl)
|
|
4
|
2849 |
ret
|
|
|
2850 |
; End of function OP1MOP2EXP
|
|
|
2851 |
|
|
|
2852 |
; ---------------------------------------------------------------------------
|
|
|
2853 |
|
|
|
2854 |
page0_1708:
|
|
8
|
2855 |
ld e, 81h ; 'g
|
|
4
|
2856 |
|
|
7
|
2857 |
OP1EXPMinusE:
|
|
8
|
2858 |
ld a, (unk_8479)
|
|
|
2859 |
sub e
|
|
4
|
2860 |
ret
|
|
|
2861 |
; ---------------------------------------------------------------------------
|
|
|
2862 |
|
|
|
2863 |
page0_170F:
|
|
8
|
2864 |
ld e, 7Fh ; ''
|
|
|
2865 |
jr OP1EXPMinusE
|
|
4
|
2866 |
; ---------------------------------------------------------------------------
|
|
|
2867 |
|
|
|
2868 |
page0_1713:
|
|
8
|
2869 |
ld e, 8Ch ; '̧
|
|
|
2870 |
jr OP1EXPMinusE
|
|
4
|
2871 |
; ---------------------------------------------------------------------------
|
|
|
2872 |
|
|
|
2873 |
page0_1717:
|
|
|
2874 |
call page0_18E
|
|
8
|
2875 |
jp z, ErrInvalid
|
|
4
|
2876 |
ret
|
|
|
2877 |
; ---------------------------------------------------------------------------
|
|
|
2878 |
|
|
|
2879 |
CHKERRBREAK:
|
|
|
2880 |
call page0_189
|
|
8
|
2881 |
jp nz, ErrBreak
|
|
4
|
2882 |
ret
|
|
|
2883 |
; ---------------------------------------------------------------------------
|
|
|
2884 |
|
|
|
2885 |
page0_1725:
|
|
8
|
2886 |
bit 5, (iy+9)
|
|
4
|
2887 |
ret
|
|
|
2888 |
; ---------------------------------------------------------------------------
|
|
|
2889 |
|
|
|
2890 |
page0_172A:
|
|
8
|
2891 |
bit 1, (iy+3)
|
|
4
|
2892 |
ret
|
|
|
2893 |
|
|
|
2894 |
; =============== S U B R O U T I N E =======================================
|
|
|
2895 |
|
|
|
2896 |
|
|
7
|
2897 |
page0_172F:
|
|
8
|
2898 |
ld a, (hl)
|
|
4
|
2899 |
|
|
|
2900 |
isA2ByteTok:
|
|
|
2901 |
push bc
|
|
|
2902 |
push hl
|
|
8
|
2903 |
ld hl, unk_173E
|
|
|
2904 |
ld bc, 0Ah
|
|
|
2905 |
or a
|
|
4
|
2906 |
cpir
|
|
8
|
2907 |
pop hl
|
|
|
2908 |
pop bc
|
|
4
|
2909 |
ret
|
|
|
2910 |
unk_173E:
|
|
8
|
2911 |
.db 5Ch ; \
|
|
|
2912 |
.db 5Dh ; ]
|
|
|
2913 |
.db 5Eh ; ^
|
|
|
2914 |
.db 60h ; `
|
|
|
2915 |
.db 61h ; a
|
|
|
2916 |
.db 62h ; b
|
|
|
2917 |
.db 63h ; c
|
|
|
2918 |
.db 7Eh ; ~
|
|
|
2919 |
.db 0BBh ; ۍ
|
|
|
2920 |
.db 0AAh ; ʍ
|
|
4
|
2921 |
; ---------------------------------------------------------------------------
|
|
|
2922 |
|
|
|
2923 |
GETLASTENTRY:
|
|
8
|
2924 |
ld hl, 8E2Ah
|
|
|
2925 |
ld b, (hl)
|
|
|
2926 |
ld a, (numLastEntries)
|
|
|
2927 |
cp b
|
|
|
2928 |
jr z, page0_1755
|
|
|
2929 |
inc (hl)
|
|
|
2930 |
jr page0_1757
|
|
4
|
2931 |
; ---------------------------------------------------------------------------
|
|
|
2932 |
|
|
7
|
2933 |
page0_1755:
|
|
8
|
2934 |
ld (hl), 0
|
|
4
|
2935 |
|
|
7
|
2936 |
page0_1757:
|
|
8
|
2937 |
ld a, b
|
|
|
2938 |
or a
|
|
|
2939 |
jr nz, GETLASTENTRYPTR
|
|
4
|
2940 |
call page0_1664
|
|
|
2941 |
call FINDPROGSYM
|
|
8
|
2942 |
ex de, hl
|
|
4
|
2943 |
ret
|
|
|
2944 |
; ---------------------------------------------------------------------------
|
|
|
2945 |
|
|
7
|
2946 |
GETLASTENTRYPTR:
|
|
8
|
2947 |
ld hl, 8DA9h
|
|
4
|
2948 |
|
|
7
|
2949 |
page0_1766:
|
|
8
|
2950 |
dec a
|
|
|
2951 |
ret z
|
|
|
2952 |
ld e, (hl)
|
|
|
2953 |
inc hl
|
|
|
2954 |
ld d, (hl)
|
|
|
2955 |
add hl, de
|
|
|
2956 |
inc hl
|
|
|
2957 |
jr page0_1766
|
|
4
|
2958 |
; ---------------------------------------------------------------------------
|
|
|
2959 |
|
|
|
2960 |
page0_176F:
|
|
|
2961 |
call CheckSplitFlag
|
|
8
|
2962 |
ret z
|
|
|
2963 |
bit 2, (iy+14h)
|
|
|
2964 |
jr z, page0_1799
|
|
4
|
2965 |
|
|
|
2966 |
REGCLRCHNG:
|
|
|
2967 |
call Page0Call_3E43
|
|
|
2968 |
call Page0Call_3F2D
|
|
8
|
2969 |
ld hl, (mcxErrorEP)
|
|
4
|
2970 |
push hl
|
|
|
2971 |
call Page0Call_3E49
|
|
8
|
2972 |
res 1, (iy+2)
|
|
4
|
2973 |
call Page0Call_3E4F
|
|
8
|
2974 |
pop hl
|
|
|
2975 |
ld (mcxErrorEP), hl
|
|
4
|
2976 |
call Page0Call_3F09
|
|
8
|
2977 |
res 2, (iy+14h)
|
|
4
|
2978 |
ret
|
|
|
2979 |
; ---------------------------------------------------------------------------
|
|
|
2980 |
|
|
7
|
2981 |
page0_1799:
|
|
4
|
2982 |
call Page0Call_3E55
|
|
|
2983 |
ret
|
|
|
2984 |
; ---------------------------------------------------------------------------
|
|
|
2985 |
|
|
|
2986 |
page0_179D:
|
|
8
|
2987 |
ld a, (mcxCurApp)
|
|
|
2988 |
ld hl, unk_17A9
|
|
|
2989 |
ld bc, 7
|
|
4
|
2990 |
cpir
|
|
|
2991 |
ret
|
|
|
2992 |
unk_17A9:
|
|
8
|
2993 |
.db 40h ; @
|
|
|
2994 |
.db 49h ; I
|
|
|
2995 |
.db 43h ; C
|
|
|
2996 |
.db 48h ; H
|
|
|
2997 |
.db 44h ; D
|
|
|
2998 |
.db 4Ah ; J
|
|
|
2999 |
.db 4Bh ; K
|
|
4
|
3000 |
|
|
|
3001 |
; =============== S U B R O U T I N E =======================================
|
|
|
3002 |
|
|
|
3003 |
|
|
7
|
3004 |
page0_17B0:
|
|
6
|
3005 |
; ChkFindSymp ...
|
|
4
|
3006 |
call CkOP1Real
|
|
|
3007 |
; End of function page0_17B0
|
|
|
3008 |
|
|
|
3009 |
|
|
|
3010 |
; =============== S U B R O U T I N E =======================================
|
|
|
3011 |
|
|
|
3012 |
|
|
7
|
3013 |
page0_17B3:
|
|
6
|
3014 |
; IsFixedName+3p ...
|
|
8
|
3015 |
cp 15h
|
|
|
3016 |
ret z
|
|
|
3017 |
cp 17h
|
|
|
3018 |
ret z
|
|
|
3019 |
jr page0_17BE
|
|
4
|
3020 |
; ---------------------------------------------------------------------------
|
|
|
3021 |
|
|
7
|
3022 |
page0_17BB:
|
|
4
|
3023 |
call CkOP1Real
|
|
|
3024 |
|
|
7
|
3025 |
page0_17BE:
|
|
8
|
3026 |
cp 5
|
|
|
3027 |
ret z
|
|
|
3028 |
cp 16h
|
|
|
3029 |
ret z
|
|
|
3030 |
cp 6
|
|
4
|
3031 |
ret
|
|
|
3032 |
; End of function page0_17B3
|
|
|
3033 |
|
|
|
3034 |
; ---------------------------------------------------------------------------
|
|
|
3035 |
|
|
|
3036 |
page0_17C7:
|
|
8
|
3037 |
ld a, d
|
|
|
3038 |
or a
|
|
|
3039 |
ret nz
|
|
|
3040 |
ld a, e
|
|
|
3041 |
cp 3Fh ; '?'
|
|
4
|
3042 |
ret
|
|
|
3043 |
|
|
|
3044 |
; =============== S U B R O U T I N E =======================================
|
|
|
3045 |
|
|
|
3046 |
|
|
7
|
3047 |
CheckSplitFlag:
|
|
|
3048 |
|
|
8
|
3049 |
bit 3, (iy+14h)
|
|
|
3050 |
jr z, page0_17D6
|
|
|
3051 |
cp a
|
|
4
|
3052 |
ret
|
|
|
3053 |
; ---------------------------------------------------------------------------
|
|
|
3054 |
|
|
7
|
3055 |
page0_17D6:
|
|
8
|
3056 |
bit 0, (iy+14h)
|
|
4
|
3057 |
ret
|
|
|
3058 |
; End of function CheckSplitFlag
|
|
|
3059 |
|
|
|
3060 |
|
|
|
3061 |
; =============== S U B R O U T I N E =======================================
|
|
|
3062 |
|
|
|
3063 |
|
|
7
|
3064 |
page0_17DB:
|
|
8
|
3065 |
res 3, (iy+14h)
|
|
4
|
3066 |
ret
|
|
|
3067 |
; End of function page0_17DB
|
|
|
3068 |
|
|
|
3069 |
; ---------------------------------------------------------------------------
|
|
|
3070 |
|
|
|
3071 |
page0_17E0:
|
|
8
|
3072 |
ld hl, 847Ah
|
|
|
3073 |
set 0, (hl)
|
|
4
|
3074 |
ret
|
|
|
3075 |
; ---------------------------------------------------------------------------
|
|
|
3076 |
|
|
|
3077 |
page0_17E6:
|
|
|
3078 |
call page0_16F4
|
|
|
3079 |
|
|
|
3080 |
page0_17E9:
|
|
8
|
3081 |
bit 6, (iy+9)
|
|
|
3082 |
ret z
|
|
4
|
3083 |
call page0_16C4
|
|
8
|
3084 |
ret nz
|
|
|
3085 |
rst 8
|
|
|
3086 |
rst 10h
|
|
4
|
3087 |
call Page0Call_3E5B
|
|
8
|
3088 |
jp OP2ToOP1
|
|
4
|
3089 |
; ---------------------------------------------------------------------------
|
|
|
3090 |
|
|
|
3091 |
RESETWINTOP:
|
|
|
3092 |
push af
|
|
8
|
3093 |
xor a
|
|
4
|
3094 |
call CheckSplitFlag
|
|
8
|
3095 |
jr z, page0_1803
|
|
|
3096 |
add a, 4
|
|
4
|
3097 |
|
|
7
|
3098 |
page0_1803:
|
|
8
|
3099 |
ld (winTop), a
|
|
|
3100 |
pop af
|
|
4
|
3101 |
ret
|
|
|
3102 |
; ---------------------------------------------------------------------------
|
|
|
3103 |
|
|
|
3104 |
page0_1808:
|
|
8
|
3105 |
cp 0FEh ;
|
|
|
3106 |
ret nz
|
|
|
3107 |
ld b, a
|
|
|
3108 |
ld a, (keyExtend)
|
|
|
3109 |
cp 0BDh ; 'ݧ
|
|
|
3110 |
ld a, b
|
|
4
|
3111 |
ret
|
|
|
3112 |
; ---------------------------------------------------------------------------
|
|
|
3113 |
|
|
|
3114 |
SetYUp:
|
|
|
3115 |
push af
|
|
8
|
3116 |
ld a, 7
|
|
4
|
3117 |
|
|
7
|
3118 |
page0_1816:
|
|
4
|
3119 |
call lcd_busy
|
|
8
|
3120 |
out (10h), a
|
|
|
3121 |
pop af
|
|
4
|
3122 |
ret
|
|
|
3123 |
; ---------------------------------------------------------------------------
|
|
|
3124 |
|
|
|
3125 |
SetXUp:
|
|
|
3126 |
push af
|
|
8
|
3127 |
ld a, 5
|
|
|
3128 |
jr page0_1816
|
|
4
|
3129 |
; ---------------------------------------------------------------------------
|
|
|
3130 |
|
|
|
3131 |
ISO1NONTLSTorPROG:
|
|
|
3132 |
call page0_17B0
|
|
8
|
3133 |
ret z
|
|
4
|
3134 |
call page0_17BB
|
|
8
|
3135 |
ret z
|
|
4
|
3136 |
|
|
|
3137 |
; =============== S U B R O U T I N E =======================================
|
|
|
3138 |
|
|
|
3139 |
|
|
7
|
3140 |
ISO1NONTEMPLST:
|
|
8
|
3141 |
ld a, (unk_8479)
|
|
|
3142 |
cp 5Dh ; ']'
|
|
4
|
3143 |
ret
|
|
|
3144 |
; End of function ISO1NONTEMPLST
|
|
|
3145 |
|
|
|
3146 |
|
|
|
3147 |
; =============== S U B R O U T I N E =======================================
|
|
|
3148 |
|
|
|
3149 |
|
|
7
|
3150 |
IS_A_LSTorCLST:
|
|
6
|
3151 |
; page0_19F8+66p ...
|
|
8
|
3152 |
cp 1
|
|
|
3153 |
ret z
|
|
|
3154 |
cp 0Dh
|
|
4
|
3155 |
ret
|
|
|
3156 |
; End of function IS_A_LSTorCLST
|
|
|
3157 |
|
|
|
3158 |
; ---------------------------------------------------------------------------
|
|
|
3159 |
|
|
|
3160 |
CHK_HL_999:
|
|
|
3161 |
push hl
|
|
8
|
3162 |
ld de, 3E8h
|
|
|
3163 |
or a
|
|
|
3164 |
sbc hl, de
|
|
|
3165 |
pop hl
|
|
|
3166 |
ret c
|
|
|
3167 |
jp ErrDimension
|
|
4
|
3168 |
; ---------------------------------------------------------------------------
|
|
|
3169 |
|
|
|
3170 |
page0_1842:
|
|
8
|
3171 |
set 6, (iy+0Fh)
|
|
4
|
3172 |
ret
|
|
|
3173 |
; ---------------------------------------------------------------------------
|
|
|
3174 |
|
|
|
3175 |
page0_1847:
|
|
8
|
3176 |
res 6, (iy+0Fh)
|
|
4
|
3177 |
ret
|
|
|
3178 |
; ---------------------------------------------------------------------------
|
|
|
3179 |
|
|
|
3180 |
page0_184C:
|
|
8
|
3181 |
bit 6, (iy+0Fh)
|
|
4
|
3182 |
ret
|
|
|
3183 |
; ---------------------------------------------------------------------------
|
|
|
3184 |
|
|
|
3185 |
page0_1851:
|
|
|
3186 |
call EOP1NotReal
|
|
8
|
3187 |
jp PushRealO1
|
|
4
|
3188 |
; ---------------------------------------------------------------------------
|
|
|
3189 |
|
|
|
3190 |
equ_or_newequ:
|
|
8
|
3191 |
and 1Fh
|
|
|
3192 |
cp 3
|
|
|
3193 |
ret z
|
|
|
3194 |
cp 0Bh
|
|
4
|
3195 |
ret
|
|
|
3196 |
; ---------------------------------------------------------------------------
|
|
|
3197 |
|
|
|
3198 |
page0_185F:
|
|
8
|
3199 |
ld a, (iy+17h)
|
|
|
3200 |
and 3
|
|
|
3201 |
cp 1
|
|
4
|
3202 |
ret
|
|
|
3203 |
; ---------------------------------------------------------------------------
|
|
|
3204 |
|
|
|
3205 |
page0_1867:
|
|
8
|
3206 |
ld hl, 91D0h
|
|
4
|
3207 |
|
|
|
3208 |
page0_186A:
|
|
|
3209 |
push hl
|
|
8
|
3210 |
rst 20h
|
|
4
|
3211 |
call Plus1
|
|
8
|
3212 |
pop de
|
|
|
3213 |
jp MovFrOP1
|
|
4
|
3214 |
|
|
|
3215 |
; =============== S U B R O U T I N E =======================================
|
|
|
3216 |
|
|
|
3217 |
|
|
7
|
3218 |
errd_op1notpos:
|
|
|
3219 |
|
|
|
3220 |
|
|
4
|
3221 |
|
|
|
3222 |
call CkOP1Pos
|
|
|
3223 |
|
|
7
|
3224 |
page0_1876:
|
|
8
|
3225 |
ret z
|
|
4
|
3226 |
|
|
7
|
3227 |
page0_1877:
|
|
8
|
3228 |
jp ErrDomain
|
|
4
|
3229 |
; End of function errd_op1notpos
|
|
|
3230 |
|
|
|
3231 |
; ---------------------------------------------------------------------------
|
|
|
3232 |
|
|
|
3233 |
ErrD_OP1Not_R:
|
|
|
3234 |
call CkOP1Real
|
|
8
|
3235 |
jr page0_1876
|
|
4
|
3236 |
; ---------------------------------------------------------------------------
|
|
|
3237 |
|
|
|
3238 |
ErrD_OP1NotPosInt:
|
|
|
3239 |
call CKPosInt
|
|
8
|
3240 |
jr page0_1876
|
|
4
|
3241 |
; ---------------------------------------------------------------------------
|
|
|
3242 |
|
|
|
3243 |
ErrD_OP1_LE_0:
|
|
|
3244 |
call errd_op1notpos
|
|
|
3245 |
|
|
|
3246 |
ErrD_OP1_0:
|
|
|
3247 |
call CkOP1FP0
|
|
8
|
3248 |
ret nz
|
|
|
3249 |
jr page0_1877
|
|
4
|
3250 |
; ---------------------------------------------------------------------------
|
|
|
3251 |
|
|
|
3252 |
FINDSYM_GET_SIZE:
|
|
|
3253 |
call FIND_E_UNDEF
|
|
|
3254 |
push de
|
|
8
|
3255 |
ex de, hl
|
|
4
|
3256 |
call ldHLind
|
|
8
|
3257 |
pop de
|
|
4
|
3258 |
ret
|
|
|
3259 |
; ---------------------------------------------------------------------------
|
|
|
3260 |
|
|
|
3261 |
STO_STATVAR:
|
|
|
3262 |
push af
|
|
|
3263 |
call CkValidNum
|
|
8
|
3264 |
pop af
|
|
4
|
3265 |
call Page0Call_3E61
|
|
8
|
3266 |
ex de, hl
|
|
|
3267 |
jp MovFrOP1
|
|
4
|
3268 |
; ---------------------------------------------------------------------------
|
|
|
3269 |
|
|
|
3270 |
Rcl_StatVar:
|
|
|
3271 |
call Page0Call_3E61
|
|
8
|
3272 |
rst 20h
|
|
4
|
3273 |
ret
|
|
|
3274 |
; ---------------------------------------------------------------------------
|
|
|
3275 |
|
|
|
3276 |
CkOP2Real:
|
|
8
|
3277 |
ld a, (OP2)
|
|
|
3278 |
and 1Fh
|
|
4
|
3279 |
ret
|
|
|
3280 |
; ---------------------------------------------------------------------------
|
|
|
3281 |
|
|
|
3282 |
page0_18AE:
|
|
8
|
3283 |
ld a, (unk_8479)
|
|
|
3284 |
cp 5Eh ; '^'
|
|
4
|
3285 |
scf
|
|
8
|
3286 |
ret z
|
|
|
3287 |
xor a
|
|
4
|
3288 |
ret
|
|
|
3289 |
; ---------------------------------------------------------------------------
|
|
|
3290 |
|
|
|
3291 |
Bit_VertSplit:
|
|
8
|
3292 |
bit 1, (iy+14h)
|
|
4
|
3293 |
ret
|
|
|
3294 |
; ---------------------------------------------------------------------------
|
|
|
3295 |
|
|
|
3296 |
GET_X_INDIRECT:
|
|
|
3297 |
call Page0Call_3E67
|
|
|
3298 |
call Page0Call_3E6D
|
|
|
3299 |
ret
|
|
|
3300 |
|
|
|
3301 |
; =============== S U B R O U T I N E =======================================
|
|
|
3302 |
|
|
|
3303 |
|
|
7
|
3304 |
sub_18C3:
|
|
4
|
3305 |
push bc
|
|
8
|
3306 |
ld c, 9
|
|
|
3307 |
ld b, a
|
|
|
3308 |
xor a
|
|
|
3309 |
jr page0_18CB
|
|
4
|
3310 |
; ---------------------------------------------------------------------------
|
|
|
3311 |
|
|
7
|
3312 |
page0_18CA:
|
|
8
|
3313 |
add a, c
|
|
4
|
3314 |
|
|
7
|
3315 |
page0_18CB:
|
|
8
|
3316 |
dec b
|
|
|
3317 |
jp p, page0_18CA
|
|
|
3318 |
ld c, a
|
|
|
3319 |
ld b, 0
|
|
|
3320 |
add hl, bc
|
|
4
|
3321 |
call Mov8B
|
|
8
|
3322 |
pop bc
|
|
4
|
3323 |
ret
|
|
|
3324 |
; End of function sub_18C3
|
|
|
3325 |
|
|
|
3326 |
; ---------------------------------------------------------------------------
|
|
|
3327 |
|
|
|
3328 |
GetBytePaged:
|
|
8
|
3329 |
or a
|
|
|
3330 |
ret z
|
|
|
3331 |
ld b, a
|
|
|
3332 |
in a, (6)
|
|
|
3333 |
ld c, a
|
|
|
3334 |
ld a, b
|
|
|
3335 |
out (6), a
|
|
|
3336 |
ld b, (hl)
|
|
|
3337 |
ld a, c
|
|
|
3338 |
jr page0_18F1
|
|
4
|
3339 |
; ---------------------------------------------------------------------------
|
|
|
3340 |
|
|
|
3341 |
page0_18E5:
|
|
|
3342 |
call sub_1901
|
|
8
|
3343 |
ld de, 812Bh
|
|
|
3344 |
ld bc, 2Bh ; '+'
|
|
4
|
3345 |
ldir
|
|
|
3346 |
|
|
7
|
3347 |
page0_18F0:
|
|
8
|
3348 |
pop af
|
|
4
|
3349 |
; START OF FUNCTION CHUNK FOR sub_1901
|
|
|
3350 |
|
|
7
|
3351 |
page0_18F1:
|
|
8
|
3352 |
out (6), a
|
|
4
|
3353 |
ret
|
|
|
3354 |
; END OF FUNCTION CHUNK FOR sub_1901
|
|
|
3355 |
; ---------------------------------------------------------------------------
|
|
|
3356 |
|
|
|
3357 |
page0_18F4:
|
|
|
3358 |
call sub_1901
|
|
|
3359 |
push bc
|
|
8
|
3360 |
ld bc, 0FFFFh
|
|
|
3361 |
xor a
|
|
4
|
3362 |
cpir
|
|
8
|
3363 |
pop bc
|
|
|
3364 |
jr page0_18F0
|
|
4
|
3365 |
|
|
|
3366 |
; =============== S U B R O U T I N E =======================================
|
|
|
3367 |
|
|
|
3368 |
|
|
7
|
3369 |
sub_1901:
|
|
|
3370 |
|
|
|
3371 |
|
|
|
3372 |
|
|
4
|
3373 |
|
|
8
|
3374 |
in a, (6)
|
|
|
3375 |
pop de
|
|
4
|
3376 |
push af
|
|
|
3377 |
push de
|
|
8
|
3378 |
ld a, (unk_8156)
|
|
|
3379 |
jr page0_18F1
|
|
4
|
3380 |
; End of function sub_1901
|
|
|
3381 |
|
|
|
3382 |
; ---------------------------------------------------------------------------
|
|
|
3383 |
|
|
|
3384 |
page0_190B:
|
|
|
3385 |
push bc
|
|
|
3386 |
call sub_1901
|
|
8
|
3387 |
ld b, (hl)
|
|
|
3388 |
pop af
|
|
|
3389 |
out (6), a
|
|
|
3390 |
ld a, b
|
|
|
3391 |
pop bc
|
|
4
|
3392 |
ret
|
|
|
3393 |
; ---------------------------------------------------------------------------
|
|
|
3394 |
|
|
|
3395 |
IsEditEmpty:
|
|
|
3396 |
call IsAtBtm
|
|
8
|
3397 |
ret nz
|
|
4
|
3398 |
|
|
|
3399 |
IsAtTop:
|
|
8
|
3400 |
ld hl, (editCursor)
|
|
4
|
3401 |
|
|
|
3402 |
page0_191D:
|
|
8
|
3403 |
ld de, (editTop)
|
|
|
3404 |
jr CpHLDE
|
|
4
|
3405 |
|
|
|
3406 |
; =============== S U B R O U T I N E =======================================
|
|
|
3407 |
|
|
|
3408 |
|
|
7
|
3409 |
IsAtBtm:
|
|
8
|
3410 |
ld de, (editTail)
|
|
|
3411 |
ld hl, (editBtm)
|
|
4
|
3412 |
; End of function IsAtBtm
|
|
|
3413 |
|
|
|
3414 |
|
|
|
3415 |
; =============== S U B R O U T I N E =======================================
|
|
|
3416 |
|
|
|
3417 |
|
|
7
|
3418 |
CpHLDE:
|
|
6
|
3419 |
; handleONKeyPress+1A0p ...
|
|
4
|
3420 |
push hl
|
|
8
|
3421 |
or a
|
|
|
3422 |
sbc hl, de
|
|
|
3423 |
pop hl
|
|
4
|
3424 |
ret
|
|
|
3425 |
; End of function CpHLDE
|
|
|
3426 |
|
|
|
3427 |
; ---------------------------------------------------------------------------
|
|
|
3428 |
|
|
|
3429 |
ExecuteNewPrgm:
|
|
|
3430 |
push af
|
|
8
|
3431 |
ld de, 8479h
|
|
4
|
3432 |
call strcopy
|
|
8
|
3433 |
inc hl
|
|
4
|
3434 |
push hl
|
|
|
3435 |
call FINDPROGSYM
|
|
8
|
3436 |
jr c, page0_194C
|
|
4
|
3437 |
call Page0Call_2420
|
|
|
3438 |
call CkOP1Real
|
|
8
|
3439 |
cp 6
|
|
|
3440 |
jp nz, Page0Call_24E1
|
|
4
|
3441 |
call DelVar
|
|
|
3442 |
|
|
7
|
3443 |
page0_194C:
|
|
8
|
3444 |
pop hl
|
|
|
3445 |
pop bc
|
|
4
|
3446 |
push hl
|
|
|
3447 |
call ldHLind
|
|
|
3448 |
push hl
|
|
8
|
3449 |
ld a, b
|
|
4
|
3450 |
call CreateVar
|
|
8
|
3451 |
pop bc
|
|
|
3452 |
pop hl
|
|
|
3453 |
inc bc
|
|
|
3454 |
inc bc
|
|
4
|
3455 |
ldir
|
|
8
|
3456 |
jp Page0Call_3E2B
|
|
4
|
3457 |
; ---------------------------------------------------------------------------
|
|
|
3458 |
|
|
|
3459 |
FillBasePageTable:
|
|
8
|
3460 |
in a, (6)
|
|
4
|
3461 |
push af
|
|
8
|
3462 |
ld de, 8245h
|
|
4
|
3463 |
call NZIf83Plus
|
|
8
|
3464 |
ld a, 15h
|
|
|
3465 |
jr nz, page0_1972
|
|
|
3466 |
ld a, 69h ; 'i'
|
|
|
3467 |
ld de, 9C6Fh
|
|
4
|
3468 |
|
|
7
|
3469 |
page0_1972:
|
|
4
|
3470 |
push af
|
|
8
|
3471 |
out (6), a
|
|
|
3472 |
ld hl, 4000h
|
|
4
|
3473 |
call Page0Call_3E31
|
|
8
|
3474 |
jr nz, page0_1996
|
|
4
|
3475 |
push de
|
|
8
|
3476 |
ld de, 8080h
|
|
|
3477 |
or a
|
|
|
3478 |
rst 28h
|
|
|
3479 |
ld (hl), l
|
|
|
3480 |
add a, b
|
|
|
3481 |
pop de
|
|
|
3482 |
jr nz, page0_1996
|
|
|
3483 |
pop af
|
|
|
3484 |
inc hl
|
|
|
3485 |
inc hl
|
|
|
3486 |
ld b, (hl)
|
|
|
3487 |
ld c, b
|
|
4
|
3488 |
|
|
7
|
3489 |
page0_198D:
|
|
8
|
3490 |
ld (de), a
|
|
4
|
3491 |
call sub_19A4
|
|
|
3492 |
djnz page0_198D
|
|
8
|
3493 |
sub c
|
|
|
3494 |
jr page0_199C
|
|
4
|
3495 |
; ---------------------------------------------------------------------------
|
|
|
3496 |
|
|
7
|
3497 |
page0_1996:
|
|
8
|
3498 |
pop af
|
|
|
3499 |
ld (de), a
|
|
4
|
3500 |
call sub_19A4
|
|
8
|
3501 |
dec a
|
|
4
|
3502 |
|
|
7
|
3503 |
page0_199C:
|
|
8
|
3504 |
cp 7
|
|
|
3505 |
jr nz, page0_1972
|
|
|
3506 |
pop af
|
|
|
3507 |
out (6), a
|
|
4
|
3508 |
ret
|
|
|
3509 |
|
|
|
3510 |
; =============== S U B R O U T I N E =======================================
|
|
|
3511 |
|
|
|
3512 |
|
|
7
|
3513 |
sub_19A4:
|
|
8
|
3514 |
dec de
|
|
|
3515 |
ld hl, 9C25h
|
|
|
3516 |
or a
|
|
|
3517 |
sbc hl, de
|
|
|
3518 |
ret nz
|
|
|
3519 |
ld de, 824Fh
|
|
4
|
3520 |
ret
|
|
|
3521 |
; End of function sub_19A4
|
|
|
3522 |
|
|
|
3523 |
|
|
|
3524 |
; =============== S U B R O U T I N E =======================================
|
|
|
3525 |
|
|
|
3526 |
|
|
7
|
3527 |
MemChk:
|
|
8
|
3528 |
ld hl, (OPS)
|
|
|
3529 |
ld bc, (FPS)
|
|
|
3530 |
or a
|
|
|
3531 |
sbc hl, bc
|
|
|
3532 |
jr nc, page0_19C0
|
|
|
3533 |
ld hl, 0
|
|
4
|
3534 |
ret
|
|
|
3535 |
; ---------------------------------------------------------------------------
|
|
|
3536 |
|
|
7
|
3537 |
page0_19C0:
|
|
8
|
3538 |
inc hl
|
|
4
|
3539 |
ret
|
|
|
3540 |
; End of function MemChk
|
|
|
3541 |
|
|
|
3542 |
; ---------------------------------------------------------------------------
|
|
|
3543 |
|
|
|
3544 |
CMPPRGNAMLEN1:
|
|
|
3545 |
push hl
|
|
8
|
3546 |
jr page0_19C9
|
|
4
|
3547 |
|
|
|
3548 |
; =============== S U B R O U T I N E =======================================
|
|
|
3549 |
|
|
|
3550 |
|
|
7
|
3551 |
CMPPRGNAMLEN:
|
|
4
|
3552 |
push hl
|
|
8
|
3553 |
ld hl, 8479h
|
|
4
|
3554 |
|
|
7
|
3555 |
page0_19C9:
|
|
8
|
3556 |
ld a, (hl)
|
|
|
3557 |
sub 5Dh ; ']'
|
|
|
3558 |
ld d, a
|
|
|
3559 |
ld bc, 8
|
|
|
3560 |
xor a
|
|
4
|
3561 |
cpir
|
|
8
|
3562 |
pop hl
|
|
|
3563 |
ld a, 8
|
|
|
3564 |
ret nz
|
|
|
3565 |
inc c
|
|
|
3566 |
sub c
|
|
|
3567 |
cp 1
|
|
|
3568 |
ret nz
|
|
|
3569 |
ld e, a
|
|
|
3570 |
ld a, d
|
|
|
3571 |
or a
|
|
|
3572 |
ld a, e
|
|
|
3573 |
ret nz
|
|
|
3574 |
inc a
|
|
4
|
3575 |
ret
|
|
|
3576 |
; End of function CMPPRGNAMLEN
|
|
|
3577 |
|
|
|
3578 |
; ---------------------------------------------------------------------------
|
|
|
3579 |
|
|
|
3580 |
FindGroupSym:
|
|
8
|
3581 |
ld a, 17h
|
|
|
3582 |
jr page0_19E9
|
|
4
|
3583 |
|
|
|
3584 |
; =============== S U B R O U T I N E =======================================
|
|
|
3585 |
|
|
|
3586 |
|
|
7
|
3587 |
FINDPROGSYM:
|
|
8
|
3588 |
ld a, 5
|
|
4
|
3589 |
; End of function FINDPROGSYM
|
|
|
3590 |
|
|
|
3591 |
; START OF FUNCTION CHUNK FOR ChkFindSym
|
|
|
3592 |
|
|
7
|
3593 |
page0_19E9:
|
|
6
|
3594 |
; ChkFindSym+3j
|
|
4
|
3595 |
call Page0Call_3E13
|
|
|
3596 |
ret
|
|
|
3597 |
; END OF FUNCTION CHUNK FOR ChkFindSym
|
|
|
3598 |
|
|
|
3599 |
; =============== S U B R O U T I N E =======================================
|
|
|
3600 |
|
|
|
3601 |
|
|
7
|
3602 |
ChkFindSym:
|
|
|
3603 |
|
|
|
3604 |
|
|
|
3605 |
|
|
4
|
3606 |
|
|
|
3607 |
call page0_17B0
|
|
8
|
3608 |
jr z, page0_19E9
|
|
4
|
3609 |
; End of function ChkFindSym
|
|
|
3610 |
|
|
|
3611 |
|
|
|
3612 |
; =============== S U B R O U T I N E =======================================
|
|
|
3613 |
|
|
|
3614 |
|
|
7
|
3615 |
FindSym:
|
|
4
|
3616 |
call Page0Call_3E19
|
|
|
3617 |
ret
|
|
|
3618 |
; End of function FindSym
|
|
|
3619 |
|
|
|
3620 |
|
|
|
3621 |
; =============== S U B R O U T I N E =======================================
|
|
|
3622 |
|
|
|
3623 |
|
|
7
|
3624 |
sub_19F6:
|
|
8
|
3625 |
ld c, 9
|
|
4
|
3626 |
; End of function sub_19F6
|
|
|
3627 |
|
|
|
3628 |
|
|
|
3629 |
; =============== S U B R O U T I N E =======================================
|
|
|
3630 |
|
|
|
3631 |
|
|
7
|
3632 |
page0_19F8:
|
|
8
|
3633 |
ld b, 0
|
|
4
|
3634 |
push bc
|
|
8
|
3635 |
ld hl, (OPBase)
|
|
|
3636 |
or a
|
|
|
3637 |
sbc hl, bc
|
|
|
3638 |
ld (OPBase), hl
|
|
|
3639 |
ld a, (unk_847E)
|
|
|
3640 |
cp 24h ; '$'
|
|
|
3641 |
jr z, page0_1A32
|
|
|
3642 |
ld hl, (unk_982E)
|
|
|
3643 |
or a
|
|
|
3644 |
sbc hl, bc
|
|
|
3645 |
ld (unk_982E), hl
|
|
|
3646 |
cp 72h ; 'r'
|
|
|
3647 |
jr z, page0_1A29
|
|
|
3648 |
cp 3Ah ; ':'
|
|
|
3649 |
jr z, page0_1A29
|
|
4
|
3650 |
call CkOP1Real
|
|
|
3651 |
call IS_A_LSTorCLST
|
|
8
|
3652 |
jr z, page0_1A32
|
|
4
|
3653 |
call page0_17B0
|
|
8
|
3654 |
jr z, page0_1A32
|
|
4
|
3655 |
|
|
7
|
3656 |
page0_1A29:
|
|
6
|
3657 |
; page0_19F8+22j
|
|
8
|
3658 |
ld hl, (progPtr)
|
|
|
3659 |
or a
|
|
|
3660 |
sbc hl, bc
|
|
|
3661 |
ld (progPtr), hl
|
|
4
|
3662 |
|
|
7
|
3663 |
page0_1A32:
|
|
6
|
3664 |
; page0_19F8+2Aj ...
|
|
8
|
3665 |
ld de, (OPS)
|
|
|
3666 |
add hl, bc
|
|
4
|
3667 |
push hl
|
|
8
|
3668 |
sbc hl, de
|
|
4
|
3669 |
push af
|
|
|
3670 |
push hl
|
|
8
|
3671 |
ex de, hl
|
|
|
3672 |
sbc hl, bc
|
|
|
3673 |
ld (OPS), hl
|
|
|
3674 |
inc hl
|
|
|
3675 |
ld d, h
|
|
|
3676 |
ld e, l
|
|
|
3677 |
add hl, bc
|
|
|
3678 |
pop bc
|
|
|
3679 |
pop af
|
|
|
3680 |
jr z, page0_1A4C
|
|
4
|
3681 |
ldir
|
|
|
3682 |
|
|
7
|
3683 |
page0_1A4C:
|
|
8
|
3684 |
pop de
|
|
|
3685 |
pop bc
|
|
4
|
3686 |
push de
|
|
|
3687 |
push bc
|
|
8
|
3688 |
ld b, c
|
|
|
3689 |
ld hl, 8478h
|
|
|
3690 |
dec b
|
|
4
|
3691 |
|
|
7
|
3692 |
page0_1A55:
|
|
8
|
3693 |
ld a, (hl)
|
|
|
3694 |
ld (de), a
|
|
|
3695 |
inc hl
|
|
|
3696 |
dec de
|
|
4
|
3697 |
djnz page0_1A55
|
|
|
3698 |
call CkOP1Real
|
|
|
3699 |
call IS_A_LSTorCLST
|
|
8
|
3700 |
jr nz, page0_1A6C
|
|
|
3701 |
ld a, (unk_847E)
|
|
|
3702 |
cp 24h ; '$'
|
|
|
3703 |
jr z, page0_1A6C
|
|
|
3704 |
ld (hl), 0
|
|
4
|
3705 |
|
|
7
|
3706 |
page0_1A6C:
|
|
6
|
3707 |
; page0_19F8+70j
|
|
8
|
3708 |
ld a, (hl)
|
|
|
3709 |
ld (de), a
|
|
|
3710 |
pop bc
|
|
|
3711 |
ld a, (unk_847E)
|
|
|
3712 |
cp 24h ; '$'
|
|
|
3713 |
jr z, page0_1A97
|
|
|
3714 |
cp 5Eh ; '^'
|
|
|
3715 |
jr z, page0_1A82
|
|
|
3716 |
cp 21h ; '!'
|
|
|
3717 |
jr z, page0_1A82
|
|
|
3718 |
cp 23h ; '#'
|
|
|
3719 |
jr nz, page0_1A8E
|
|
4
|
3720 |
|
|
7
|
3721 |
page0_1A82:
|
|
6
|
3722 |
; page0_19F8+84j
|
|
8
|
3723 |
ld a, (unk_847D)
|
|
|
3724 |
or a
|
|
|
3725 |
jr nz, page0_1A8E
|
|
|
3726 |
ld hl, (unk_847B)
|
|
|
3727 |
ld (newDataPtr), hl
|
|
4
|
3728 |
|
|
7
|
3729 |
page0_1A8E:
|
|
6
|
3730 |
; page0_19F8+8Ej
|
|
4
|
3731 |
call sub_23C4
|
|
8
|
3732 |
pop de
|
|
4
|
3733 |
push de
|
|
8
|
3734 |
inc de
|
|
4
|
3735 |
call page0_207C
|
|
|
3736 |
|
|
7
|
3737 |
page0_1A97:
|
|
8
|
3738 |
pop hl
|
|
4
|
3739 |
ret
|
|
|
3740 |
; End of function page0_19F8
|
|
|
3741 |
|
|
|
3742 |
|
|
|
3743 |
; =============== S U B R O U T I N E =======================================
|
|
|
3744 |
|
|
|
3745 |
|
|
7
|
3746 |
page0_1A99:
|
|
4
|
3747 |
push af
|
|
8
|
3748 |
ld hl, (fpBase)
|
|
4
|
3749 |
push bc
|
|
|
3750 |
push hl
|
|
8
|
3751 |
add hl, bc
|
|
|
3752 |
ld (fpBase), hl
|
|
|
3753 |
sbc hl, bc
|
|
|
3754 |
ex de, hl
|
|
|
3755 |
ld hl, (FPS)
|
|
|
3756 |
sbc hl, de
|
|
4
|
3757 |
push hl
|
|
|
3758 |
push af
|
|
8
|
3759 |
add hl, de
|
|
|
3760 |
add hl, bc
|
|
|
3761 |
ld (FPS), hl
|
|
|
3762 |
dec hl
|
|
|
3763 |
ld d, h
|
|
|
3764 |
ld e, l
|
|
|
3765 |
sbc hl, bc
|
|
|
3766 |
pop af
|
|
|
3767 |
pop bc
|
|
|
3768 |
jr z, page0_1AD2
|
|
4
|
3769 |
|
|
7
|
3770 |
page0_1ABB:
|
|
4
|
3771 |
ldd
|
|
|
3772 |
ldd
|
|
|
3773 |
ldd
|
|
|
3774 |
ldd
|
|
|
3775 |
ldd
|
|
|
3776 |
ldd
|
|
|
3777 |
ldd
|
|
|
3778 |
ldd
|
|
|
3779 |
ldd
|
|
8
|
3780 |
ld a, b
|
|
|
3781 |
or c
|
|
|
3782 |
jp nz, page0_1ABB
|
|
4
|
3783 |
|
|
7
|
3784 |
page0_1AD2:
|
|
8
|
3785 |
pop de
|
|
|
3786 |
pop bc
|
|
|
3787 |
pop af
|
|
|
3788 |
jr z, page0_1B07
|
|
|
3789 |
ld hl, (tempMem)
|
|
|
3790 |
add hl, bc
|
|
|
3791 |
ld (tempMem), hl
|
|
|
3792 |
ld hl, (newDataPtr)
|
|
4
|
3793 |
push hl
|
|
8
|
3794 |
ex de, hl
|
|
|
3795 |
sbc hl, de
|
|
|
3796 |
jr z, page0_1B08
|
|
4
|
3797 |
push bc
|
|
8
|
3798 |
ld b, h
|
|
|
3799 |
ld c, l
|
|
|
3800 |
add hl, de
|
|
|
3801 |
dec hl
|
|
|
3802 |
ld de, (fpBase)
|
|
|
3803 |
dec de
|
|
4
|
3804 |
lddr
|
|
8
|
3805 |
ex de, hl
|
|
|
3806 |
pop bc
|
|
4
|
3807 |
call sub_23C4
|
|
|
3808 |
call page0_1FF3
|
|
8
|
3809 |
ld bc, (freeRAM)
|
|
4
|
3810 |
|
|
7
|
3811 |
page0_1AFF:
|
|
4
|
3812 |
call ADJPARSER
|
|
|
3813 |
call ADJMATH
|
|
8
|
3814 |
pop de
|
|
4
|
3815 |
ret
|
|
|
3816 |
; ---------------------------------------------------------------------------
|
|
|
3817 |
|
|
7
|
3818 |
page0_1B07:
|
|
4
|
3819 |
push de
|
|
|
3820 |
|
|
7
|
3821 |
page0_1B08:
|
|
8
|
3822 |
dec de
|
|
4
|
3823 |
call sub_23C4
|
|
8
|
3824 |
jr page0_1AFF
|
|
4
|
3825 |
; End of function page0_1A99
|
|
|
3826 |
|
|
|
3827 |
|
|
|
3828 |
; =============== S U B R O U T I N E =======================================
|
|
|
3829 |
|
|
|
3830 |
|
|
7
|
3831 |
InsertMem:
|
|
4
|
3832 |
call INSERTMEMA
|
|
|
3833 |
push de
|
|
8
|
3834 |
dec de
|
|
4
|
3835 |
call DELVAR3DC
|
|
8
|
3836 |
pop de
|
|
4
|
3837 |
ret
|
|
|
3838 |
; End of function InsertMem
|
|
|
3839 |
|
|
|
3840 |
|
|
|
3841 |
; =============== S U B R O U T I N E =======================================
|
|
|
3842 |
|
|
|
3843 |
|
|
7
|
3844 |
INSERTMEMA:
|
|
4
|
3845 |
push de
|
|
|
3846 |
push hl
|
|
8
|
3847 |
ld hl, (FPS)
|
|
|
3848 |
or a
|
|
|
3849 |
sbc hl, de
|
|
|
3850 |
jr z, page0_1B30
|
|
|
3851 |
ld b, h
|
|
|
3852 |
ld c, l
|
|
|
3853 |
add hl, de
|
|
|
3854 |
dec hl
|
|
|
3855 |
pop de
|
|
4
|
3856 |
push de
|
|
8
|
3857 |
add hl, de
|
|
|
3858 |
ex de, hl
|
|
|
3859 |
ld hl, (FPS)
|
|
|
3860 |
dec hl
|
|
4
|
3861 |
lddr
|
|
|
3862 |
|
|
7
|
3863 |
page0_1B30:
|
|
8
|
3864 |
pop bc
|
|
|
3865 |
pop de
|
|
4
|
3866 |
ret
|
|
|
3867 |
; End of function INSERTMEMA
|
|
|
3868 |
|
|
|
3869 |
|
|
|
3870 |
; =============== S U B R O U T I N E =======================================
|
|
|
3871 |
|
|
|
3872 |
|
|
7
|
3873 |
EnoughMem:
|
|
6
|
3874 |
; CMPMEMNEED+5p ...
|
|
8
|
3875 |
ex de, hl
|
|
4
|
3876 |
|
|
7
|
3877 |
page0_1B34:
|
|
4
|
3878 |
call MemChk
|
|
8
|
3879 |
or a
|
|
|
3880 |
sbc hl, de
|
|
|
3881 |
ret nc
|
|
4
|
3882 |
push de
|
|
8
|
3883 |
ld hl, (unk_982E)
|
|
|
3884 |
ld bc, (OPBase)
|
|
|
3885 |
inc bc
|
|
|
3886 |
ld d, 0
|
|
4
|
3887 |
|
|
7
|
3888 |
page0_1B46:
|
|
8
|
3889 |
xor a
|
|
|
3890 |
sbc hl, bc
|
|
|
3891 |
jr c, page0_1B69
|
|
|
3892 |
add hl, bc
|
|
|
3893 |
bit 7, (hl)
|
|
|
3894 |
jr z, page0_1B63
|
|
|
3895 |
dec hl
|
|
|
3896 |
dec hl
|
|
|
3897 |
dec hl
|
|
|
3898 |
ld e, (hl)
|
|
|
3899 |
dec hl
|
|
|
3900 |
ld d, (hl)
|
|
|
3901 |
dec hl
|
|
|
3902 |
ld b, (hl)
|
|
|
3903 |
inc hl
|
|
|
3904 |
inc hl
|
|
|
3905 |
inc hl
|
|
|
3906 |
inc hl
|
|
|
3907 |
inc hl
|
|
4
|
3908 |
call DelVar
|
|
8
|
3909 |
pop de
|
|
|
3910 |
jr page0_1B34
|
|
4
|
3911 |
; ---------------------------------------------------------------------------
|
|
|
3912 |
|
|
7
|
3913 |
page0_1B63:
|
|
8
|
3914 |
ld e, 9
|
|
|
3915 |
sbc hl, de
|
|
|
3916 |
jr page0_1B46
|
|
4
|
3917 |
; ---------------------------------------------------------------------------
|
|
|
3918 |
|
|
7
|
3919 |
page0_1B69:
|
|
8
|
3920 |
pop de
|
|
4
|
3921 |
ret
|
|
|
3922 |
; End of function EnoughMem
|
|
|
3923 |
|
|
|
3924 |
; ---------------------------------------------------------------------------
|
|
|
3925 |
|
|
|
3926 |
page0_1B6B:
|
|
|
3927 |
call page0_17B0
|
|
8
|
3928 |
jr nz, page0_1B75
|
|
4
|
3929 |
call CMPPRGNAMLEN
|
|
8
|
3930 |
jr sub_1B7E
|
|
4
|
3931 |
; ---------------------------------------------------------------------------
|
|
|
3932 |
|
|
7
|
3933 |
page0_1B75:
|
|
4
|
3934 |
call ISO1NONTEMPLST
|
|
8
|
3935 |
jr nz, sub_1B7E
|
|
4
|
3936 |
call CMPPRGNAMLEN
|
|
8
|
3937 |
inc a
|
|
4
|
3938 |
|
|
|
3939 |
; =============== S U B R O U T I N E =======================================
|
|
|
3940 |
|
|
|
3941 |
|
|
7
|
3942 |
sub_1B7E:
|
|
8
|
3943 |
add a, 7
|
|
|
3944 |
ld b, 0
|
|
|
3945 |
ld c, a
|
|
4
|
3946 |
call page0_17B0
|
|
8
|
3947 |
ret z
|
|
|
3948 |
ld a, (unk_8479)
|
|
|
3949 |
cp 5Dh ; ']'
|
|
|
3950 |
ret z
|
|
|
3951 |
ld c, 9
|
|
4
|
3952 |
ret
|
|
|
3953 |
; End of function sub_1B7E
|
|
|
3954 |
|
|
|
3955 |
|
|
|
3956 |
; =============== S U B R O U T I N E =======================================
|
|
|
3957 |
|
|
|
3958 |
|
|
7
|
3959 |
CMPMEMNEED:
|
|
6
|
3960 |
; sub_1BA3:page0_1BFFp ...
|
|
4
|
3961 |
push hl
|
|
|
3962 |
call sub_1B7E
|
|
8
|
3963 |
add hl, bc
|
|
4
|
3964 |
call EnoughMem
|
|
8
|
3965 |
pop bc
|
|
4
|
3966 |
ret
|
|
|
3967 |
; End of function CMPMEMNEED
|
|
|
3968 |
|
|
|
3969 |
; ---------------------------------------------------------------------------
|
|
|
3970 |
|
|
|
3971 |
CREATEPVAR4:
|
|
|
3972 |
push af
|
|
8
|
3973 |
jr CREATEPVAR3
|
|
4
|
3974 |
|
|
|
3975 |
; =============== S U B R O U T I N E =======================================
|
|
|
3976 |
|
|
|
3977 |
|
|
7
|
3978 |
sub_1B9D:
|
|
4
|
3979 |
call HLTimes9
|
|
|
3980 |
; End of function sub_1B9D
|
|
|
3981 |
|
|
|
3982 |
; START OF FUNCTION CHUNK FOR sub_1BA3
|
|
|
3983 |
|
|
7
|
3984 |
page0_1BA0:
|
|
8
|
3985 |
jp c, ErrMemory
|
|
4
|
3986 |
; END OF FUNCTION CHUNK FOR sub_1BA3
|
|
|
3987 |
|
|
|
3988 |
; =============== S U B R O U T I N E =======================================
|
|
|
3989 |
|
|
|
3990 |
|
|
7
|
3991 |
sub_1BA3:
|
|
|
3992 |
|
|
|
3993 |
|
|
|
3994 |
|
|
4
|
3995 |
|
|
8
|
3996 |
ld de, 2
|
|
|
3997 |
add hl, de
|
|
|
3998 |
jr c, page0_1BA0
|
|
4
|
3999 |
|
|
7
|
4000 |
page0_1BA9:
|
|
8
|
4001 |
ld (OP1), a
|
|
4
|
4002 |
call page0_17B3
|
|
8
|
4003 |
jr z, page0_1BC3
|
|
|
4004 |
ld a, (unk_8479)
|
|
|
4005 |
cp 5Dh ; ']'
|
|
|
4006 |
jr nz, page0_1BFF
|
|
4
|
4007 |
call CMPPRGNAMLEN
|
|
8
|
4008 |
cp 7
|
|
|
4009 |
jp nc, ErrSyntax
|
|
|
4010 |
inc a
|
|
|
4011 |
jr page0_1BC6
|
|
4
|
4012 |
; ---------------------------------------------------------------------------
|
|
|
4013 |
|
|
7
|
4014 |
page0_1BC3:
|
|
4
|
4015 |
call CMPPRGNAMLEN
|
|
|
4016 |
|
|
7
|
4017 |
page0_1BC6:
|
|
4
|
4018 |
push af
|
|
|
4019 |
call CMPMEMNEED
|
|
8
|
4020 |
jr c, page0_1BA0
|
|
4
|
4021 |
|
|
7
|
4022 |
CREATEPVAR3:
|
|
8
|
4023 |
or 1
|
|
4
|
4024 |
call page0_1A99
|
|
|
4025 |
push de
|
|
|
4026 |
call OP1ToOP4
|
|
8
|
4027 |
ld de, 8486h
|
|
|
4028 |
ld hl, 8480h
|
|
|
4029 |
ld bc, 8
|
|
4
|
4030 |
lddr
|
|
8
|
4031 |
pop de
|
|
|
4032 |
ld (unk_847B), de
|
|
|
4033 |
xor a
|
|
4
|
4034 |
|
|
7
|
4035 |
page0_1BE6:
|
|
8
|
4036 |
ld (OP1M), a
|
|
|
4037 |
xor a
|
|
|
4038 |
ld (unk_847D), a
|
|
|
4039 |
ld (unk_8479), a
|
|
|
4040 |
pop af
|
|
|
4041 |
ld (unk_847E), a
|
|
|
4042 |
add a, 7
|
|
|
4043 |
ld c, a
|
|
4
|
4044 |
call page0_19F8
|
|
8
|
4045 |
ld de, (unk_847B)
|
|
4
|
4046 |
ret
|
|
|
4047 |
; ---------------------------------------------------------------------------
|
|
|
4048 |
|
|
7
|
4049 |
page0_1BFF:
|
|
4
|
4050 |
call CMPMEMNEED
|
|
8
|
4051 |
jr c, page0_1BA0
|
|
4
|
4052 |
|
|
|
4053 |
CREATEVAR3:
|
|
8
|
4054 |
ld a, (unk_8479)
|
|
|
4055 |
cp 24h ; '$'
|
|
4
|
4056 |
call page0_1A99
|
|
|
4057 |
push de
|
|
|
4058 |
call OP1ToOP4
|
|
8
|
4059 |
ld de, 8480h
|
|
|
4060 |
ld hl, 847Bh
|
|
|
4061 |
ld bc, 3
|
|
4
|
4062 |
lddr
|
|
8
|
4063 |
pop de
|
|
|
4064 |
ld (unk_847B), de
|
|
|
4065 |
xor a
|
|
|
4066 |
ld (unk_847D), a
|
|
|
4067 |
ld (unk_8479), a
|
|
|
4068 |
ld (OP1M), a
|
|
4
|
4069 |
call sub_19F6
|
|
8
|
4070 |
ld de, (unk_847B)
|
|
4
|
4071 |
ret
|
|
|
4072 |
; End of function sub_1BA3
|
|
|
4073 |
|
|
|
4074 |
; ---------------------------------------------------------------------------
|
|
|
4075 |
|
|
|
4076 |
CreateCplx:
|
|
8
|
4077 |
ld a, 0Ch
|
|
|
4078 |
ld hl, 12h
|
|
|
4079 |
jr page0_1C3D
|
|
4
|
4080 |
; ---------------------------------------------------------------------------
|
|
|
4081 |
|
|
|
4082 |
CreateReal:
|
|
8
|
4083 |
xor a
|
|
|
4084 |
ld hl, 9
|
|
4
|
4085 |
|
|
7
|
4086 |
page0_1C3D:
|
|
8
|
4087 |
jp page0_1BA9
|
|
4
|
4088 |
; ---------------------------------------------------------------------------
|
|
|
4089 |
|
|
|
4090 |
CreateTempRList:
|
|
8
|
4091 |
ld a, 1
|
|
4
|
4092 |
call Page0Call_3E1F
|
|
8
|
4093 |
ret c
|
|
4
|
4094 |
|
|
|
4095 |
; =============== S U B R O U T I N E =======================================
|
|
|
4096 |
|
|
|
4097 |
|
|
7
|
4098 |
CreateRList:
|
|
8
|
4099 |
ld a, 1
|
|
4
|
4100 |
push hl
|
|
|
4101 |
|
|
7
|
4102 |
page0_1C49:
|
|
4
|
4103 |
call sub_1B9D
|
|
8
|
4104 |
pop bc
|
|
4
|
4105 |
push hl
|
|
8
|
4106 |
ld h, b
|
|
|
4107 |
ld l, c
|
|
|
4108 |
ld a, b
|
|
|
4109 |
or c
|
|
|
4110 |
jr nz, page0_1C5A
|
|
|
4111 |
ld (de), a
|
|
|
4112 |
inc de
|
|
|
4113 |
ld (de), a
|
|
|
4114 |
dec de
|
|
|
4115 |
pop hl
|
|
4
|
4116 |
ret
|
|
|
4117 |
; ---------------------------------------------------------------------------
|
|
|
4118 |
|
|
7
|
4119 |
page0_1C5A:
|
|
8
|
4120 |
ex de, hl
|
|
|
4121 |
ld (hl), e
|
|
|
4122 |
inc hl
|
|
|
4123 |
ld (hl), d
|
|
|
4124 |
inc hl
|
|
|
4125 |
ld (hl), 0
|
|
|
4126 |
ld a, (OP4)
|
|
|
4127 |
bit 3, a
|
|
|
4128 |
jr z, page0_1C6A
|
|
|
4129 |
ld (hl), 0Ch
|
|
4
|
4130 |
|
|
7
|
4131 |
page0_1C6A:
|
|
8
|
4132 |
dec hl
|
|
|
4133 |
dec hl
|
|
|
4134 |
ex de, hl
|
|
|
4135 |
pop hl
|
|
4
|
4136 |
ret
|
|
|
4137 |
; End of function CreateRList
|
|
|
4138 |
|
|
|
4139 |
; ---------------------------------------------------------------------------
|
|
|
4140 |
|
|
|
4141 |
CREATETCLIST:
|
|
8
|
4142 |
ld a, 0Dh
|
|
4
|
4143 |
call Page0Call_3E1F
|
|
8
|
4144 |
ret c
|
|
4
|
4145 |
|
|
|
4146 |
CreateCList:
|
|
8
|
4147 |
ld a, 0Dh
|
|
4
|
4148 |
push hl
|
|
8
|
4149 |
add hl, hl
|
|
|
4150 |
jr page0_1C49
|
|
4
|
4151 |
; ---------------------------------------------------------------------------
|
|
|
4152 |
|
|
|
4153 |
CreateTempRMat:
|
|
8
|
4154 |
ld a, 2
|
|
4
|
4155 |
call Page0Call_3E1F
|
|
8
|
4156 |
ret c
|
|
4
|
4157 |
|
|
|
4158 |
CreateRMat:
|
|
|
4159 |
push hl
|
|
|
4160 |
call HTimesL
|
|
8
|
4161 |
ld a, 2
|
|
|
4162 |
jr page0_1C49
|
|
4
|
4163 |
; ---------------------------------------------------------------------------
|
|
|
4164 |
|
|
|
4165 |
CreateTempString:
|
|
8
|
4166 |
ld a, 4
|
|
4
|
4167 |
call Page0Call_3E1F
|
|
8
|
4168 |
ret c
|
|
4
|
4169 |
|
|
|
4170 |
CreateStrng:
|
|
8
|
4171 |
ld a, 4
|
|
4
|
4172 |
|
|
|
4173 |
; =============== S U B R O U T I N E =======================================
|
|
|
4174 |
|
|
|
4175 |
|
|
7
|
4176 |
CreateVar:
|
|
4
|
4177 |
push hl
|
|
|
4178 |
call sub_1BA3
|
|
8
|
4179 |
pop bc
|
|
|
4180 |
ex de, hl
|
|
|
4181 |
ld (hl), c
|
|
|
4182 |
inc hl
|
|
|
4183 |
ld (hl), b
|
|
|
4184 |
dec hl
|
|
|
4185 |
ex de, hl
|
|
4
|
4186 |
ret
|
|
|
4187 |
; End of function CreateVar
|
|
|
4188 |
|
|
|
4189 |
; ---------------------------------------------------------------------------
|
|
|
4190 |
|
|
|
4191 |
Create0Equ:
|
|
8
|
4192 |
ld hl, 0
|
|
|
4193 |
jr CreateEqu
|
|
4
|
4194 |
; ---------------------------------------------------------------------------
|
|
|
4195 |
|
|
|
4196 |
CreateTempEqu:
|
|
8
|
4197 |
ld a, 3
|
|
4
|
4198 |
call Page0Call_3E1F
|
|
8
|
4199 |
ret c
|
|
4
|
4200 |
|
|
7
|
4201 |
CreateEqu:
|
|
8
|
4202 |
ld a, 3
|
|
|
4203 |
jr CreateVar
|
|
4
|
4204 |
; ---------------------------------------------------------------------------
|
|
|
4205 |
|
|
|
4206 |
CreatePict:
|
|
8
|
4207 |
ld a, 7
|
|
|
4208 |
ld hl, 2F4h
|
|
|
4209 |
jr CreateVar
|
|
4
|
4210 |
; ---------------------------------------------------------------------------
|
|
|
4211 |
|
|
|
4212 |
CreateGDB:
|
|
8
|
4213 |
ld a, 8
|
|
|
4214 |
jr CreateVar
|
|
4
|
4215 |
; ---------------------------------------------------------------------------
|
|
|
4216 |
|
|
|
4217 |
CreateAppVar:
|
|
8
|
4218 |
ld a, 15h
|
|
|
4219 |
jr CreateVar
|
|
4
|
4220 |
; ---------------------------------------------------------------------------
|
|
|
4221 |
|
|
|
4222 |
CreateProtProg:
|
|
8
|
4223 |
ld a, 6
|
|
|
4224 |
jr CreateVar
|
|
4
|
4225 |
; ---------------------------------------------------------------------------
|
|
|
4226 |
|
|
|
4227 |
CreateProg:
|
|
8
|
4228 |
ld a, 5
|
|
|
4229 |
jr CreateVar
|
|
4
|
4230 |
; ---------------------------------------------------------------------------
|
|
|
4231 |
|
|
|
4232 |
page0_1CC3:
|
|
8
|
4233 |
ld a, 17h
|
|
|
4234 |
ld (OP1), a
|
|
4
|
4235 |
push bc
|
|
|
4236 |
call CMPPRGNAMLEN
|
|
|
4237 |
push af
|
|
8
|
4238 |
ld hl, 0
|
|
4
|
4239 |
call CMPMEMNEED
|
|
8
|
4240 |
jp c, ErrMemory
|
|
|
4241 |
ld de, 0
|
|
4
|
4242 |
push de
|
|
|
4243 |
call OP1ToOP4
|
|
8
|
4244 |
ld de, 8486h
|
|
|
4245 |
ld hl, 8480h
|
|
|
4246 |
ld bc, 8
|
|
4
|
4247 |
lddr
|
|
8
|
4248 |
pop de
|
|
|
4249 |
ld (unk_847B), de
|
|
|
4250 |
pop bc
|
|
|
4251 |
pop af
|
|
4
|
4252 |
push bc
|
|
8
|
4253 |
jp page0_1BE6
|
|
4
|
4254 |
; ---------------------------------------------------------------------------
|
|
|
4255 |
|
|
|
4256 |
CHKDEL:
|
|
8
|
4257 |
ld a, (OP1)
|
|
|
4258 |
ld hl, (chkDelPtr2)
|
|
4
|
4259 |
call DataSize
|
|
|
4260 |
|
|
|
4261 |
CHKDELA:
|
|
|
4262 |
push de
|
|
8
|
4263 |
ld a, (OP4)
|
|
|
4264 |
ld hl, (chkDelPtr1)
|
|
4
|
4265 |
call DataSize
|
|
8
|
4266 |
ex de, hl
|
|
|
4267 |
pop de
|
|
|
4268 |
sbc hl, de
|
|
|
4269 |
jr c, page0_1D24
|
|
|
4270 |
jr z, page0_1D17
|
|
|
4271 |
ld de, (chkDelPtr1)
|
|
|
4272 |
inc de
|
|
|
4273 |
ex de, hl
|
|
4
|
4274 |
call DelMem
|
|
|
4275 |
|
|
7
|
4276 |
page0_1D17:
|
|
8
|
4277 |
ld hl, (chkDelPtr3)
|
|
4
|
4278 |
call CkOP1Real
|
|
8
|
4279 |
ld b, a
|
|
|
4280 |
ld a, (hl)
|
|
|
4281 |
and 0E0h ; '্
|
|
|
4282 |
or b
|
|
|
4283 |
ld (hl), a
|
|
4
|
4284 |
ret
|
|
|
4285 |
; ---------------------------------------------------------------------------
|
|
|
4286 |
|
|
7
|
4287 |
page0_1D24:
|
|
8
|
4288 |
add hl, de
|
|
|
4289 |
ex de, hl
|
|
|
4290 |
or a
|
|
|
4291 |
sbc hl, de
|
|
4
|
4292 |
call ErrNotEnoughMem
|
|
8
|
4293 |
ex de, hl
|
|
|
4294 |
ld de, (chkDelPtr1)
|
|
|
4295 |
inc de
|
|
4
|
4296 |
call InsertMem
|
|
8
|
4297 |
jr page0_1D17
|
|
4
|
4298 |
|
|
|
4299 |
; =============== S U B R O U T I N E =======================================
|
|
|
4300 |
|
|
|
4301 |
|
|
7
|
4302 |
ADJPARSER:
|
|
6
|
4303 |
; sub_1FA3+2Fp
|
|
8
|
4304 |
ld hl, (basic_start)
|
|
|
4305 |
or a
|
|
|
4306 |
sbc hl, de
|
|
|
4307 |
ret c
|
|
|
4308 |
ret z
|
|
|
4309 |
add hl, de
|
|
|
4310 |
sbc hl, bc
|
|
|
4311 |
ld (basic_start), hl
|
|
|
4312 |
ld hl, (nextParseByte)
|
|
|
4313 |
or a
|
|
|
4314 |
sbc hl, bc
|
|
|
4315 |
ld (nextParseByte), hl
|
|
|
4316 |
ld hl, (basic_end)
|
|
|
4317 |
or a
|
|
|
4318 |
sbc hl, bc
|
|
|
4319 |
ld (basic_end), hl
|
|
4
|
4320 |
ret
|
|
|
4321 |
; End of function ADJPARSER
|
|
|
4322 |
|
|
|
4323 |
|
|
|
4324 |
; =============== S U B R O U T I N E =======================================
|
|
|
4325 |
|
|
|
4326 |
|
|
7
|
4327 |
ADJMATH:
|
|
6
|
4328 |
; sub_1FA3:DELVAR3Dp
|
|
8
|
4329 |
ld hl, (iMathPtr1)
|
|
|
4330 |
or a
|
|
|
4331 |
sbc hl, de
|
|
|
4332 |
jr c, page0_1D69
|
|
|
4333 |
jr z, page0_1D69
|
|
|
4334 |
add hl, de
|
|
|
4335 |
or a
|
|
|
4336 |
sbc hl, bc
|
|
|
4337 |
ld (iMathPtr1), hl
|
|
4
|
4338 |
|
|
7
|
4339 |
page0_1D69:
|
|
8
|
4340 |
ld hl, (iMathPtr2)
|
|
|
4341 |
or a
|
|
|
4342 |
sbc hl, de
|
|
|
4343 |
jr c, page0_1D7A
|
|
|
4344 |
jr z, page0_1D7A
|
|
|
4345 |
add hl, de
|
|
|
4346 |
or a
|
|
|
4347 |
sbc hl, bc
|
|
|
4348 |
ld (iMathPtr2), hl
|
|
4
|
4349 |
|
|
7
|
4350 |
page0_1D7A:
|
|
8
|
4351 |
ld hl, (iMathPtr3)
|
|
|
4352 |
or a
|
|
|
4353 |
sbc hl, de
|
|
|
4354 |
jr c, page0_1D8B
|
|
|
4355 |
jr z, page0_1D8B
|
|
|
4356 |
add hl, de
|
|
|
4357 |
or a
|
|
|
4358 |
sbc hl, bc
|
|
|
4359 |
ld (iMathPtr3), hl
|
|
4
|
4360 |
|
|
7
|
4361 |
page0_1D8B:
|
|
8
|
4362 |
ld hl, (iMathPtr4)
|
|
|
4363 |
or a
|
|
|
4364 |
sbc hl, de
|
|
|
4365 |
jr c, page0_1D9C
|
|
|
4366 |
jr z, page0_1D9C
|
|
|
4367 |
add hl, de
|
|
|
4368 |
or a
|
|
|
4369 |
sbc hl, bc
|
|
|
4370 |
ld (iMathPtr4), hl
|
|
4
|
4371 |
|
|
7
|
4372 |
page0_1D9C:
|
|
8
|
4373 |
ld hl, (iMathPtr5)
|
|
|
4374 |
or a
|
|
|
4375 |
sbc hl, de
|
|
|
4376 |
jr c, ADJM7
|
|
|
4377 |
jr z, ADJM7
|
|
|
4378 |
add hl, de
|
|
|
4379 |
or a
|
|
|
4380 |
sbc hl, bc
|
|
|
4381 |
ld (iMathPtr5), hl
|
|
4
|
4382 |
|
|
7
|
4383 |
ADJM7:
|
|
8
|
4384 |
ld hl, (asm_data_ptr1)
|
|
|
4385 |
or a
|
|
|
4386 |
sbc hl, de
|
|
|
4387 |
jr c, page0_1DBE
|
|
|
4388 |
jr z, page0_1DBE
|
|
|
4389 |
add hl, de
|
|
|
4390 |
or a
|
|
|
4391 |
sbc hl, bc
|
|
|
4392 |
ld (asm_data_ptr1), hl
|
|
4
|
4393 |
|
|
7
|
4394 |
page0_1DBE:
|
|
8
|
4395 |
ld hl, (asm_data_ptr2)
|
|
|
4396 |
or a
|
|
|
4397 |
sbc hl, de
|
|
|
4398 |
jr c, page0_1DCF
|
|
|
4399 |
jr z, page0_1DCF
|
|
|
4400 |
add hl, de
|
|
|
4401 |
or a
|
|
|
4402 |
sbc hl, bc
|
|
|
4403 |
ld (asm_data_ptr2), hl
|
|
4
|
4404 |
|
|
7
|
4405 |
page0_1DCF:
|
|
8
|
4406 |
ld hl, (fmtMatMem)
|
|
|
4407 |
or a
|
|
|
4408 |
sbc hl, de
|
|
|
4409 |
jr c, page0_1DE0
|
|
|
4410 |
jr z, page0_1DE0
|
|
|
4411 |
add hl, de
|
|
|
4412 |
or a
|
|
|
4413 |
sbc hl, bc
|
|
|
4414 |
ld (fmtMatMem), hl
|
|
4
|
4415 |
|
|
7
|
4416 |
page0_1DE0:
|
|
8
|
4417 |
ld hl, (newDataPtr)
|
|
|
4418 |
or a
|
|
|
4419 |
sbc hl, de
|
|
|
4420 |
jr c, page0_1DF1
|
|
|
4421 |
jr z, page0_1DF1
|
|
|
4422 |
add hl, de
|
|
|
4423 |
or a
|
|
|
4424 |
sbc hl, bc
|
|
|
4425 |
ld (newDataPtr), hl
|
|
4
|
4426 |
|
|
7
|
4427 |
page0_1DF1:
|
|
8
|
4428 |
ld hl, (EQS)
|
|
|
4429 |
or a
|
|
|
4430 |
sbc hl, de
|
|
|
4431 |
jr c, page0_1E02
|
|
|
4432 |
jr z, page0_1E02
|
|
|
4433 |
add hl, de
|
|
|
4434 |
or a
|
|
|
4435 |
sbc hl, bc
|
|
|
4436 |
ld (EQS), hl
|
|
4
|
4437 |
|
|
7
|
4438 |
page0_1E02:
|
|
8
|
4439 |
ld hl, (unk_9313)
|
|
|
4440 |
or a
|
|
|
4441 |
sbc hl, de
|
|
|
4442 |
jr c, page0_1E13
|
|
|
4443 |
jr z, page0_1E13
|
|
|
4444 |
add hl, de
|
|
|
4445 |
or a
|
|
|
4446 |
sbc hl, bc
|
|
|
4447 |
ld (unk_9313), hl
|
|
4
|
4448 |
|
|
7
|
4449 |
page0_1E13:
|
|
8
|
4450 |
ld hl, (ES)
|
|
|
4451 |
or a
|
|
|
4452 |
sbc hl, de
|
|
|
4453 |
jr c, page0_1E24
|
|
|
4454 |
jr z, page0_1E24
|
|
|
4455 |
add hl, de
|
|
|
4456 |
or a
|
|
|
4457 |
sbc hl, bc
|
|
|
4458 |
ld (ES), hl
|
|
4
|
4459 |
|
|
7
|
4460 |
page0_1E24:
|
|
8
|
4461 |
ld hl, (insDelPtr)
|
|
|
4462 |
or a
|
|
|
4463 |
sbc hl, de
|
|
|
4464 |
jr c, page0_1E35
|
|
|
4465 |
jr z, page0_1E35
|
|
|
4466 |
add hl, de
|
|
|
4467 |
or a
|
|
|
4468 |
sbc hl, bc
|
|
|
4469 |
ld (insDelPtr), hl
|
|
4
|
4470 |
|
|
7
|
4471 |
page0_1E35:
|
|
8
|
4472 |
ld hl, (unk_9306)
|
|
|
4473 |
or a
|
|
|
4474 |
sbc hl, de
|
|
|
4475 |
jr c, page0_1E46
|
|
|
4476 |
jr z, page0_1E46
|
|
|
4477 |
add hl, de
|
|
|
4478 |
or a
|
|
|
4479 |
sbc hl, bc
|
|
|
4480 |
ld (unk_9306), hl
|
|
4
|
4481 |
|
|
7
|
4482 |
page0_1E46:
|
|
8
|
4483 |
ld hl, (unk_9311)
|
|
|
4484 |
or a
|
|
|
4485 |
sbc hl, de
|
|
|
4486 |
jr c, page0_1E57
|
|
|
4487 |
jr z, page0_1E57
|
|
|
4488 |
add hl, de
|
|
|
4489 |
or a
|
|
|
4490 |
sbc hl, bc
|
|
|
4491 |
ld (unk_9311), hl
|
|
4
|
4492 |
|
|
7
|
4493 |
page0_1E57:
|
|
8
|
4494 |
ld hl, (editDat)
|
|
|
4495 |
or a
|
|
|
4496 |
sbc hl, de
|
|
|
4497 |
jr c, page0_1E68
|
|
|
4498 |
jr z, page0_1E68
|
|
|
4499 |
add hl, de
|
|
|
4500 |
or a
|
|
|
4501 |
sbc hl, bc
|
|
|
4502 |
ld (editDat), hl
|
|
4
|
4503 |
|
|
7
|
4504 |
page0_1E68:
|
|
8
|
4505 |
ld hl, (chkDelPtr1)
|
|
|
4506 |
or a
|
|
|
4507 |
sbc hl, de
|
|
|
4508 |
jr c, page0_1E79
|
|
|
4509 |
jr z, page0_1E79
|
|
|
4510 |
add hl, de
|
|
|
4511 |
or a
|
|
|
4512 |
sbc hl, bc
|
|
|
4513 |
ld (chkDelPtr1), hl
|
|
4
|
4514 |
|
|
7
|
4515 |
page0_1E79:
|
|
8
|
4516 |
ld hl, (XOutDat)
|
|
|
4517 |
or a
|
|
|
4518 |
sbc hl, de
|
|
|
4519 |
jr c, page0_1E8A
|
|
|
4520 |
jr z, page0_1E8A
|
|
|
4521 |
add hl, de
|
|
|
4522 |
or a
|
|
|
4523 |
sbc hl, bc
|
|
|
4524 |
ld (XOutDat), hl
|
|
4
|
4525 |
|
|
7
|
4526 |
page0_1E8A:
|
|
8
|
4527 |
ld hl, (YOutDat)
|
|
|
4528 |
or a
|
|
|
4529 |
sbc hl, de
|
|
|
4530 |
jr c, page0_1E9B
|
|
|
4531 |
jr z, page0_1E9B
|
|
|
4532 |
add hl, de
|
|
|
4533 |
or a
|
|
|
4534 |
sbc hl, bc
|
|
|
4535 |
ld (YOutDat), hl
|
|
4
|
4536 |
|
|
7
|
4537 |
page0_1E9B:
|
|
8
|
4538 |
ld hl, (fOutDat)
|
|
|
4539 |
or a
|
|
|
4540 |
sbc hl, de
|
|
|
4541 |
jr c, page0_1EAC
|
|
|
4542 |
jr z, page0_1EAC
|
|
|
4543 |
add hl, de
|
|
|
4544 |
or a
|
|
|
4545 |
sbc hl, bc
|
|
|
4546 |
ld (fOutDat), hl
|
|
4
|
4547 |
|
|
7
|
4548 |
page0_1EAC:
|
|
8
|
4549 |
ld hl, (unk_84E7)
|
|
|
4550 |
or a
|
|
|
4551 |
sbc hl, de
|
|
|
4552 |
jr c, page0_1EBD
|
|
|
4553 |
jr z, page0_1EBD
|
|
|
4554 |
add hl, de
|
|
|
4555 |
or a
|
|
|
4556 |
sbc hl, bc
|
|
|
4557 |
ld (unk_84E7), hl
|
|
4
|
4558 |
|
|
7
|
4559 |
page0_1EBD:
|
|
8
|
4560 |
ld hl, (inputDat)
|
|
|
4561 |
or a
|
|
|
4562 |
sbc hl, de
|
|
|
4563 |
jr c, page0_1ECE
|
|
|
4564 |
jr z, page0_1ECE
|
|
|
4565 |
add hl, de
|
|
|
4566 |
or a
|
|
|
4567 |
sbc hl, bc
|
|
|
4568 |
ld (inputDat), hl
|
|
4
|
4569 |
|
|
7
|
4570 |
page0_1ECE:
|
|
8
|
4571 |
ld hl, (chkDelPtr2)
|
|
|
4572 |
or a
|
|
|
4573 |
sbc hl, de
|
|
|
4574 |
ret c
|
|
|
4575 |
ret z
|
|
|
4576 |
add hl, de
|
|
|
4577 |
or a
|
|
|
4578 |
sbc hl, bc
|
|
|
4579 |
ld (chkDelPtr2), hl
|
|
4
|
4580 |
ret
|
|
|
4581 |
; End of function ADJMATH
|
|
|
4582 |
|
|
|
4583 |
|
|
|
4584 |
; =============== S U B R O U T I N E =======================================
|
|
|
4585 |
|
|
|
4586 |
|
|
7
|
4587 |
DELMEMA:
|
|
4
|
4588 |
push de
|
|
|
4589 |
push hl
|
|
8
|
4590 |
add hl, de
|
|
|
4591 |
ex de, hl
|
|
|
4592 |
ld hl, (FPS)
|
|
|
4593 |
or a
|
|
|
4594 |
sbc hl, de
|
|
|
4595 |
ld b, h
|
|
|
4596 |
ld c, l
|
|
|
4597 |
pop hl
|
|
4
|
4598 |
push hl
|
|
8
|
4599 |
ex de, hl
|
|
|
4600 |
jr z, page0_1EF1
|
|
4
|
4601 |
ldir
|
|
|
4602 |
|
|
7
|
4603 |
page0_1EF1:
|
|
8
|
4604 |
pop de
|
|
|
4605 |
pop bc
|
|
4
|
4606 |
ret
|
|
|
4607 |
; End of function DELMEMA
|
|
|
4608 |
|
|
|
4609 |
|
|
|
4610 |
; =============== S U B R O U T I N E =======================================
|
|
|
4611 |
|
|
|
4612 |
|
|
7
|
4613 |
GET_FORM_NUM:
|
|
4
|
4614 |
call Page0Call_2407
|
|
8
|
4615 |
ld a, (hl)
|
|
|
4616 |
cp 24h ; '$'
|
|
|
4617 |
jr nz, page0_1EFE
|
|
|
4618 |
xor a
|
|
4
|
4619 |
ret
|
|
|
4620 |
; ---------------------------------------------------------------------------
|
|
|
4621 |
|
|
7
|
4622 |
page0_1EFE:
|
|
8
|
4623 |
ld b, 0
|
|
|
4624 |
ld c, a
|
|
|
4625 |
or a
|
|
|
4626 |
sbc hl, bc
|
|
|
4627 |
ld a, (hl)
|
|
4
|
4628 |
ret
|
|
|
4629 |
; End of function GET_FORM_NUM
|
|
|
4630 |
|
|
|
4631 |
|
|
|
4632 |
; =============== S U B R O U T I N E =======================================
|
|
|
4633 |
|
|
|
4634 |
|
|
7
|
4635 |
page0_1F06:
|
|
6
|
4636 |
; sub_1FA3:page0_1FB0p
|
|
4
|
4637 |
push hl
|
|
8
|
4638 |
or a
|
|
|
4639 |
sbc hl, bc
|
|
|
4640 |
pop de
|
|
4
|
4641 |
push bc
|
|
8
|
4642 |
ld bc, (OPS)
|
|
4
|
4643 |
push hl
|
|
8
|
4644 |
sbc hl, bc
|
|
|
4645 |
ld b, h
|
|
|
4646 |
ld c, l
|
|
|
4647 |
pop hl
|
|
4
|
4648 |
push de
|
|
8
|
4649 |
jr z, page0_1F1B
|
|
4
|
4650 |
lddr
|
|
|
4651 |
|
|
7
|
4652 |
page0_1F1B:
|
|
8
|
4653 |
ld (OPS), de
|
|
|
4654 |
pop de
|
|
|
4655 |
pop bc
|
|
|
4656 |
ld hl, (OPBase)
|
|
|
4657 |
add hl, bc
|
|
|
4658 |
ld (OPBase), hl
|
|
4
|
4659 |
call DelVarEntry
|
|
|
4660 |
ret
|
|
|
4661 |
; End of function page0_1F06
|
|
|
4662 |
|
|
|
4663 |
; ---------------------------------------------------------------------------
|
|
|
4664 |
|
|
|
4665 |
DelVarArc:
|
|
|
4666 |
call page0_1F55
|
|
8
|
4667 |
jr z, DelVarNoArc
|
|
4
|
4668 |
|
|
|
4669 |
page0_1F31:
|
|
|
4670 |
call page0_1F38
|
|
|
4671 |
call Page0Call_3E25
|
|
|
4672 |
ret
|
|
|
4673 |
|
|
|
4674 |
; =============== S U B R O U T I N E =======================================
|
|
|
4675 |
|
|
|
4676 |
|
|
7
|
4677 |
page0_1F38:
|
|
4
|
4678 |
push af
|
|
|
4679 |
push bc
|
|
|
4680 |
push de
|
|
8
|
4681 |
ld bc, 9
|
|
4
|
4682 |
call IsFixedName
|
|
8
|
4683 |
jr nz, page0_1F4E
|
|
4
|
4684 |
push hl
|
|
|
4685 |
call Page0Call_2407
|
|
8
|
4686 |
ld a, (hl)
|
|
|
4687 |
add a, 7
|
|
|
4688 |
ld b, 0
|
|
|
4689 |
ld c, a
|
|
|
4690 |
pop hl
|
|
4
|
4691 |
|
|
7
|
4692 |
page0_1F4E:
|
|
4
|
4693 |
call page0_1F06
|
|
8
|
4694 |
pop de
|
|
|
4695 |
pop bc
|
|
|
4696 |
pop af
|
|
4
|
4697 |
ret
|
|
|
4698 |
; End of function page0_1F38
|
|
|
4699 |
|
|
|
4700 |
|
|
|
4701 |
; =============== S U B R O U T I N E =======================================
|
|
|
4702 |
|
|
|
4703 |
|
|
7
|
4704 |
page0_1F55:
|
|
8
|
4705 |
ld a, b
|
|
|
4706 |
or a
|
|
4
|
4707 |
ret
|
|
|
4708 |
; End of function page0_1F55
|
|
|
4709 |
|
|
|
4710 |
|
|
|
4711 |
; =============== S U B R O U T I N E =======================================
|
|
|
4712 |
|
|
|
4713 |
|
|
7
|
4714 |
DelVar:
|
|
6
|
4715 |
; EnoughMem+2Ap ...
|
|
4
|
4716 |
|
|
7
|
4717 |
|
|
|
4718 |
|
|
4
|
4719 |
|
|
|
4720 |
call page0_1F55
|
|
8
|
4721 |
jp nz, Page0Call_254D
|
|
4
|
4722 |
|
|
7
|
4723 |
DelVarNoArc:
|
|
8
|
4724 |
ld a, (hl)
|
|
4
|
4725 |
|
|
|
4726 |
DELVARIO:
|
|
8
|
4727 |
bit 6, a
|
|
4
|
4728 |
call nz, SetTblGraphDraw
|
|
|
4729 |
push af
|
|
8
|
4730 |
ld bc, 9
|
|
4
|
4731 |
push de
|
|
|
4732 |
call IsFixedName
|
|
8
|
4733 |
jr nz, page0_1FB0
|
|
|
4734 |
ld a, (hl)
|
|
|
4735 |
and 1Fh
|
|
4
|
4736 |
call IS_A_LSTorCLST
|
|
8
|
4737 |
jr nz, page0_1FA5
|
|
|
4738 |
pop de
|
|
4
|
4739 |
push hl
|
|
|
4740 |
call GET_FORM_NUM
|
|
8
|
4741 |
pop hl
|
|
|
4742 |
or a
|
|
|
4743 |
jr z, page0_1FA4
|
|
|
4744 |
pop bc
|
|
4
|
4745 |
push af
|
|
|
4746 |
call sub_1FA3
|
|
8
|
4747 |
ld de, 9315h
|
|
4
|
4748 |
call sub_1103
|
|
8
|
4749 |
pop hl
|
|
|
4750 |
ld l, 3Fh ; '?'
|
|
4
|
4751 |
call page0_1671
|
|
8
|
4752 |
rst 10h
|
|
4
|
4753 |
call nc, DelVar
|
|
8
|
4754 |
ld a, (OP1M)
|
|
4
|
4755 |
call Page0Call_25E7
|
|
|
4756 |
cpl
|
|
8
|
4757 |
and (hl)
|
|
|
4758 |
ld (hl), a
|
|
|
4759 |
ld hl, 9315h
|
|
|
4760 |
jp page0_117C
|
|
4
|
4761 |
; End of function DelVar
|
|
|
4762 |
|
|
|
4763 |
|
|
|
4764 |
; =============== S U B R O U T I N E =======================================
|
|
|
4765 |
|
|
|
4766 |
|
|
7
|
4767 |
sub_1FA3:
|
|
4
|
4768 |
push bc
|
|
|
4769 |
|
|
7
|
4770 |
page0_1FA4:
|
|
4
|
4771 |
push de
|
|
|
4772 |
|
|
7
|
4773 |
page0_1FA5:
|
|
8
|
4774 |
ld b, 0
|
|
4
|
4775 |
push hl
|
|
|
4776 |
call Page0Call_2407
|
|
8
|
4777 |
ld a, (hl)
|
|
|
4778 |
add a, 7
|
|
|
4779 |
ld c, a
|
|
|
4780 |
pop hl
|
|
4
|
4781 |
|
|
7
|
4782 |
page0_1FB0:
|
|
4
|
4783 |
call page0_1F06
|
|
8
|
4784 |
pop hl
|
|
|
4785 |
pop af
|
|
4
|
4786 |
call DataSize
|
|
|
4787 |
|
|
7
|
4788 |
DelMem:
|
|
4
|
4789 |
call DELMEMA
|
|
|
4790 |
|
|
7
|
4791 |
DELVAR3D:
|
|
4
|
4792 |
call ADJMATH
|
|
|
4793 |
nop
|
|
|
4794 |
nop
|
|
|
4795 |
|
|
|
4796 |
DELVAR3C:
|
|
8
|
4797 |
ld hl, (fpBase)
|
|
|
4798 |
or a
|
|
|
4799 |
sbc hl, bc
|
|
|
4800 |
ld (fpBase), hl
|
|
|
4801 |
ld hl, (FPS)
|
|
|
4802 |
or a
|
|
|
4803 |
sbc hl, bc
|
|
|
4804 |
ld (FPS), hl
|
|
4
|
4805 |
call ADJPARSER
|
|
8
|
4806 |
ld hl, (tempMem)
|
|
|
4807 |
or a
|
|
|
4808 |
sbc hl, de
|
|
|
4809 |
jr c, page0_1FED
|
|
|
4810 |
jr z, page0_1FED
|
|
|
4811 |
add hl, de
|
|
|
4812 |
or a
|
|
|
4813 |
sbc hl, bc
|
|
|
4814 |
ld (tempMem), hl
|
|
|
4815 |
jr page0_1FF3
|
|
4
|
4816 |
; ---------------------------------------------------------------------------
|
|
|
4817 |
|
|
7
|
4818 |
DELVAR3DC:
|
|
4
|
4819 |
call sub_23C4
|
|
8
|
4820 |
jr DELVAR3D
|
|
4
|
4821 |
; ---------------------------------------------------------------------------
|
|
|
4822 |
|
|
7
|
4823 |
page0_1FED:
|
|
8
|
4824 |
ld hl, (unk_982E)
|
|
|
4825 |
or a
|
|
|
4826 |
jr page0_1FF6
|
|
4
|
4827 |
; ---------------------------------------------------------------------------
|
|
|
4828 |
|
|
7
|
4829 |
page0_1FF3:
|
|
6
|
4830 |
; sub_1FA3+43j
|
|
8
|
4831 |
ld hl, 0FE66h
|
|
4
|
4832 |
|
|
7
|
4833 |
page0_1FF6:
|
|
8
|
4834 |
ld (freeRAM), bc
|
|
|
4835 |
dec hl
|
|
|
4836 |
dec hl
|
|
|
4837 |
dec hl
|
|
4
|
4838 |
|
|
7
|
4839 |
page0_1FFD:
|
|
8
|
4840 |
ld c, (hl)
|
|
|
4841 |
dec hl
|
|
|
4842 |
ld b, (hl)
|
|
|
4843 |
ex de, hl
|
|
|
4844 |
or a
|
|
|
4845 |
sbc hl, bc
|
|
|
4846 |
jr nc, page0_2019
|
|
|
4847 |
add hl, bc
|
|
4
|
4848 |
push hl
|
|
8
|
4849 |
ld h, b
|
|
|
4850 |
ld l, c
|
|
|
4851 |
ld bc, (freeRAM)
|
|
|
4852 |
or a
|
|
|
4853 |
sbc hl, bc
|
|
|
4854 |
ex de, hl
|
|
|
4855 |
ld (hl), d
|
|
|
4856 |
inc hl
|
|
|
4857 |
ld (hl), e
|
|
|
4858 |
dec hl
|
|
|
4859 |
pop de
|
|
|
4860 |
jr page0_201B
|
|
4
|
4861 |
; ---------------------------------------------------------------------------
|
|
|
4862 |
|
|
7
|
4863 |
page0_2019:
|
|
8
|
4864 |
add hl, bc
|
|
|
4865 |
ex de, hl
|
|
4
|
4866 |
|
|
7
|
4867 |
page0_201B:
|
|
8
|
4868 |
inc hl
|
|
|
4869 |
inc hl
|
|
|
4870 |
inc hl
|
|
|
4871 |
inc hl
|
|
4
|
4872 |
push af
|
|
|
4873 |
call IsFixedName
|
|
8
|
4874 |
ld c, 0Ch
|
|
|
4875 |
jr nz, page0_202F
|
|
4
|
4876 |
call Page0Call_2407
|
|
8
|
4877 |
ld c, (hl)
|
|
|
4878 |
inc c
|
|
|
4879 |
inc c
|
|
|
4880 |
inc c
|
|
|
4881 |
inc c
|
|
4
|
4882 |
|
|
7
|
4883 |
page0_202F:
|
|
8
|
4884 |
ld b, 0
|
|
|
4885 |
pop af
|
|
|
4886 |
or a
|
|
|
4887 |
sbc hl, bc
|
|
|
4888 |
ld bc, (OPBase)
|
|
|
4889 |
sbc hl, bc
|
|
|
4890 |
ret c
|
|
|
4891 |
add hl, bc
|
|
|
4892 |
jp page0_1FFD
|
|
4
|
4893 |
; End of function sub_1FA3
|
|
|
4894 |
|
|
|
4895 |
|
|
|
4896 |
; =============== S U B R O U T I N E =======================================
|
|
|
4897 |
|
|
|
4898 |
|
|
7
|
4899 |
IsFixedName:
|
|
8
|
4900 |
ld a, (hl)
|
|
|
4901 |
and 1Fh
|
|
4
|
4902 |
call page0_17B3
|
|
8
|
4903 |
ret z
|
|
4
|
4904 |
call IS_A_LSTorCLST
|
|
8
|
4905 |
ret nz
|
|
4
|
4906 |
push hl
|
|
|
4907 |
call Page0Call_2407
|
|
8
|
4908 |
ld a, (hl)
|
|
|
4909 |
cp 24h ; '$'
|
|
|
4910 |
jr z, page0_205E
|
|
|
4911 |
cp 72h ; 'r'
|
|
|
4912 |
jr z, page0_205E
|
|
|
4913 |
cp 3Ah ; ':'
|
|
|
4914 |
jr z, page0_205E
|
|
|
4915 |
ld a, 1
|
|
4
|
4916 |
|
|
7
|
4917 |
page0_205E:
|
|
6
|
4918 |
; IsFixedName+16j ...
|
|
8
|
4919 |
cp 1
|
|
|
4920 |
pop hl
|
|
4
|
4921 |
ret
|
|
|
4922 |
; End of function IsFixedName
|
|
|
4923 |
|
|
|
4924 |
|
|
|
4925 |
; =============== S U B R O U T I N E =======================================
|
|
|
4926 |
|
|
|
4927 |
|
|
7
|
4928 |
DelVarEntry:
|
|
8
|
4929 |
ld hl, (unk_982E)
|
|
|
4930 |
or a
|
|
|
4931 |
sbc hl, de
|
|
|
4932 |
jr nc, page0_206F
|
|
|
4933 |
add hl, de
|
|
|
4934 |
add hl, bc
|
|
|
4935 |
ld (unk_982E), hl
|
|
4
|
4936 |
|
|
7
|
4937 |
page0_206F:
|
|
8
|
4938 |
ld hl, (progPtr)
|
|
|
4939 |
or a
|
|
|
4940 |
sbc hl, de
|
|
|
4941 |
jr nc, page0_207C
|
|
|
4942 |
add hl, de
|
|
|
4943 |
add hl, bc
|
|
|
4944 |
ld (progPtr), hl
|
|
4
|
4945 |
|
|
7
|
4946 |
page0_207C:
|
|
6
|
4947 |
; DelVarEntry+13j
|
|
8
|
4948 |
ld hl, (editSym)
|
|
|
4949 |
or a
|
|
|
4950 |
sbc hl, de
|
|
|
4951 |
jr nc, page0_2089
|
|
|
4952 |
add hl, de
|
|
|
4953 |
add hl, bc
|
|
|
4954 |
ld (editSym), hl
|
|
4
|
4955 |
|
|
7
|
4956 |
page0_2089:
|
|
8
|
4957 |
ld hl, (tSymPtr1)
|
|
|
4958 |
or a
|
|
|
4959 |
sbc hl, de
|
|
|
4960 |
jr nc, page0_2096
|
|
|
4961 |
add hl, de
|
|
|
4962 |
add hl, bc
|
|
|
4963 |
ld (tSymPtr1), hl
|
|
4
|
4964 |
|
|
7
|
4965 |
page0_2096:
|
|
8
|
4966 |
ld hl, (tSymPtr2)
|
|
|
4967 |
or a
|
|
|
4968 |
sbc hl, de
|
|
|
4969 |
jr nc, page0_20A3
|
|
|
4970 |
add hl, de
|
|
|
4971 |
add hl, bc
|
|
|
4972 |
ld (tSymPtr2), hl
|
|
4
|
4973 |
|
|
7
|
4974 |
page0_20A3:
|
|
8
|
4975 |
ld hl, (chkDelPtr3)
|
|
|
4976 |
or a
|
|
|
4977 |
sbc hl, de
|
|
|
4978 |
jr nc, page0_20B0
|
|
|
4979 |
add hl, de
|
|
|
4980 |
add hl, bc
|
|
|
4981 |
ld (chkDelPtr3), hl
|
|
4
|
4982 |
|
|
7
|
4983 |
page0_20B0:
|
|
8
|
4984 |
ld hl, (chkDelPtr4)
|
|
|
4985 |
or a
|
|
|
4986 |
sbc hl, de
|
|
|
4987 |
jr nc, page0_20BD
|
|
|
4988 |
add hl, de
|
|
|
4989 |
add hl, bc
|
|
|
4990 |
ld (chkDelPtr4), hl
|
|
4
|
4991 |
|
|
7
|
4992 |
page0_20BD:
|
|
8
|
4993 |
ld hl, (XOutSym)
|
|
|
4994 |
or a
|
|
|
4995 |
sbc hl, de
|
|
|
4996 |
jr nc, page0_20CA
|
|
|
4997 |
add hl, de
|
|
|
4998 |
add hl, bc
|
|
|
4999 |
ld (XOutSym), hl
|
|
4
|
5000 |
|
|
7
|
5001 |
page0_20CA:
|
|
8
|
5002 |
ld hl, (YOutSym)
|
|
|
5003 |
or a
|
|
|
5004 |
sbc hl, de
|
|
|
5005 |
jr nc, page0_20D7
|
|
|
5006 |
add hl, de
|
|
|
5007 |
add hl, bc
|
|
|
5008 |
ld (YOutSym), hl
|
|
4
|
5009 |
|
|
7
|
5010 |
page0_20D7:
|
|
8
|
5011 |
ld hl, (inputSym)
|
|
|
5012 |
or a
|
|
|
5013 |
sbc hl, de
|
|
|
5014 |
jr nc, page0_20E5
|
|
|
5015 |
add hl, de
|
|
|
5016 |
add hl, bc
|
|
|
5017 |
ld (inputSym), hl
|
|
4
|
5018 |
ret
|
|
|
5019 |
; ---------------------------------------------------------------------------
|
|
|
5020 |
|
|
7
|
5021 |
page0_20E5:
|
|
8
|
5022 |
ld hl, (fmtMatSym)
|
|
|
5023 |
or a
|
|
|
5024 |
sbc hl, de
|
|
|
5025 |
ret nc
|
|
|
5026 |
add hl, de
|
|
|
5027 |
add hl, bc
|
|
|
5028 |
ld (fmtMatSym), hl
|
|
4
|
5029 |
ret
|
|
|
5030 |
; End of function DelVarEntry
|
|
|
5031 |
|
|
|
5032 |
; ---------------------------------------------------------------------------
|
|
|
5033 |
|
|
|
5034 |
DataSizeA:
|
|
8
|
5035 |
ld d, b
|
|
|
5036 |
ld e, c
|
|
|
5037 |
jr page0_211A
|
|
4
|
5038 |
; ---------------------------------------------------------------------------
|
|
|
5039 |
|
|
7
|
5040 |
page0_20F6:
|
|
8
|
5041 |
pop bc
|
|
4
|
5042 |
ret
|
|
|
5043 |
; ---------------------------------------------------------------------------
|
|
|
5044 |
|
|
|
5045 |
Page0Call_20F8:
|
|
|
5046 |
push de
|
|
8
|
5047 |
ld de, 9
|
|
|
5048 |
and 1Fh
|
|
|
5049 |
jr z, page0_20F6
|
|
|
5050 |
ld de, 12h
|
|
|
5051 |
cp 0Ch
|
|
|
5052 |
jr z, page0_20F6
|
|
|
5053 |
pop de
|
|
|
5054 |
jr page0_211A
|
|
4
|
5055 |
|
|
|
5056 |
; =============== S U B R O U T I N E =======================================
|
|
|
5057 |
|
|
|
5058 |
|
|
7
|
5059 |
DataSize:
|
|
|
5060 |
|
|
|
5061 |
|
|
4
|
5062 |
|
|
8
|
5063 |
ld de, 9
|
|
|
5064 |
and 1Fh
|
|
|
5065 |
ret z
|
|
|
5066 |
ld de, 12h
|
|
|
5067 |
cp 0Ch
|
|
|
5068 |
ret z
|
|
|
5069 |
ld e, (hl)
|
|
|
5070 |
inc hl
|
|
|
5071 |
ld d, (hl)
|
|
|
5072 |
dec hl
|
|
4
|
5073 |
|
|
7
|
5074 |
page0_211A:
|
|
4
|
5075 |
push hl
|
|
8
|
5076 |
ex de, hl
|
|
|
5077 |
cp 15h
|
|
|
5078 |
jr z, page0_213D
|
|
|
5079 |
cp 17h
|
|
|
5080 |
jr z, page0_213D
|
|
|
5081 |
cp 16h
|
|
|
5082 |
jr z, page0_213D
|
|
|
5083 |
cp 0Dh
|
|
|
5084 |
jr nz, page0_212F
|
|
|
5085 |
add hl, hl
|
|
|
5086 |
jr page0_2138
|
|
4
|
5087 |
; ---------------------------------------------------------------------------
|
|
|
5088 |
|
|
7
|
5089 |
page0_212F:
|
|
8
|
5090 |
cp 3
|
|
|
5091 |
jr nc, page0_213D
|
|
|
5092 |
cp 1
|
|
4
|
5093 |
call nz, HTimesL
|
|
|
5094 |
|
|
7
|
5095 |
page0_2138:
|
|
4
|
5096 |
call HLTimes9
|
|
8
|
5097 |
jr c, page0_2141
|
|
4
|
5098 |
|
|
7
|
5099 |
page0_213D:
|
|
8
|
5100 |
ld de, 2
|
|
|
5101 |
add hl, de
|
|
4
|
5102 |
|
|
7
|
5103 |
page0_2141:
|
|
8
|
5104 |
jp c, ErrMemory
|
|
|
5105 |
ex de, hl
|
|
|
5106 |
pop hl
|
|
|
5107 |
or a
|
|
4
|
5108 |
ret
|
|
|
5109 |
; End of function DataSize
|
|
|
5110 |
|
|
|
5111 |
; ---------------------------------------------------------------------------
|
|
|
5112 |
|
|
|
5113 |
POPMCPLXO1:
|
|
8
|
5114 |
ld de, 8478h
|
|
4
|
5115 |
|
|
|
5116 |
POPMCPLX:
|
|
|
5117 |
call FPOPCPLX
|
|
|
5118 |
|
|
|
5119 |
MOVCPLX:
|
|
|
5120 |
call mov9B2
|
|
8
|
5121 |
inc de
|
|
|
5122 |
inc de
|
|
|
5123 |
jp mov9B2
|
|
4
|
5124 |
; ---------------------------------------------------------------------------
|
|
|
5125 |
|
|
|
5126 |
popOP5:
|
|
|
5127 |
call PopRealO5
|
|
8
|
5128 |
ld a, (OP5)
|
|
|
5129 |
and 1Fh
|
|
|
5130 |
cp 0Ch
|
|
|
5131 |
ret nz
|
|
4
|
5132 |
call OP5ToOP6
|
|
8
|
5133 |
jr PopRealO5
|
|
4
|
5134 |
; ---------------------------------------------------------------------------
|
|
|
5135 |
|
|
|
5136 |
popOP3:
|
|
|
5137 |
call PopRealO3
|
|
8
|
5138 |
ld a, (OP3)
|
|
|
5139 |
and 1Fh
|
|
|
5140 |
cp 0Ch
|
|
|
5141 |
ret nz
|
|
4
|
5142 |
call OP3ToOP4
|
|
8
|
5143 |
jr PopRealO3
|
|
4
|
5144 |
; ---------------------------------------------------------------------------
|
|
|
5145 |
|
|
|
5146 |
popOP1:
|
|
|
5147 |
call PopRealO1
|
|
|
5148 |
call CkOP1Real
|
|
8
|
5149 |
cp 0Ch
|
|
|
5150 |
ret nz
|
|
|
5151 |
rst 8
|
|
|
5152 |
jr PopRealO1
|
|
4
|
5153 |
; ---------------------------------------------------------------------------
|
|
|
5154 |
|
|
|
5155 |
PopRealO6:
|
|
8
|
5156 |
ld de, 84AFh
|
|
|
5157 |
jr PopReal
|
|
4
|
5158 |
|
|
|
5159 |
; =============== S U B R O U T I N E =======================================
|
|
|
5160 |
|
|
|
5161 |
|
|
7
|
5162 |
PopRealO5:
|
|
|
5163 |
|
|
8
|
5164 |
ld de, 84A4h
|
|
|
5165 |
jr PopReal
|
|
4
|
5166 |
; ---------------------------------------------------------------------------
|
|
|
5167 |
|
|
|
5168 |
PopRealO4:
|
|
8
|
5169 |
ld de, 8499h
|
|
|
5170 |
jr PopReal
|
|
4
|
5171 |
; ---------------------------------------------------------------------------
|
|
|
5172 |
|
|
7
|
5173 |
PopRealO3:
|
|
|
5174 |
|
|
8
|
5175 |
ld de, 848Eh
|
|
|
5176 |
jr PopReal
|
|
4
|
5177 |
; ---------------------------------------------------------------------------
|
|
|
5178 |
|
|
|
5179 |
PopRealO2:
|
|
8
|
5180 |
ld de, 8483h
|
|
|
5181 |
jr PopReal
|
|
4
|
5182 |
; ---------------------------------------------------------------------------
|
|
|
5183 |
|
|
7
|
5184 |
PopRealO1:
|
|
|
5185 |
|
|
8
|
5186 |
ld de, 8478h
|
|
4
|
5187 |
|
|
7
|
5188 |
PopReal:
|
|
4
|
5189 |
call FPOPREAL
|
|
8
|
5190 |
jp mov9B2
|
|
4
|
5191 |
; End of function PopRealO5
|
|
|
5192 |
|
|
|
5193 |
|
|
|
5194 |
; =============== S U B R O U T I N E =======================================
|
|
|
5195 |
|
|
|
5196 |
|
|
7
|
5197 |
FPOPCPLX:
|
|
4
|
5198 |
call FPOPREAL
|
|
|
5199 |
|
|
7
|
5200 |
FPOPREAL:
|
|
8
|
5201 |
ld bc, 9
|
|
4
|
5202 |
|
|
|
5203 |
FPOPFPS:
|
|
8
|
5204 |
ld hl, (FPS)
|
|
|
5205 |
or a
|
|
|
5206 |
sbc hl, bc
|
|
|
5207 |
jr page0_21BC
|
|
4
|
5208 |
; ---------------------------------------------------------------------------
|
|
|
5209 |
|
|
|
5210 |
DeallocFPS:
|
|
|
5211 |
call HLTimes9
|
|
8
|
5212 |
ex de, hl
|
|
4
|
5213 |
|
|
|
5214 |
DeallocFPS1:
|
|
8
|
5215 |
ld hl, (FPS)
|
|
|
5216 |
or a
|
|
|
5217 |
sbc hl, de
|
|
4
|
5218 |
|
|
7
|
5219 |
page0_21BC:
|
|
8
|
5220 |
ld (FPS), hl
|
|
4
|
5221 |
ret
|
|
|
5222 |
; End of function FPOPCPLX
|
|
|
5223 |
|
|
|
5224 |
; ---------------------------------------------------------------------------
|
|
|
5225 |
|
|
|
5226 |
AllocFPS:
|
|
|
5227 |
call HLTimes9
|
|
|
5228 |
|
|
|
5229 |
AllocFPS1:
|
|
|
5230 |
call ErrNotEnoughMem
|
|
8
|
5231 |
ld hl, (FPS)
|
|
|
5232 |
add hl, de
|
|
|
5233 |
jr page0_21BC
|
|
4
|
5234 |
; ---------------------------------------------------------------------------
|
|
|
5235 |
|
|
|
5236 |
PushRealO6:
|
|
8
|
5237 |
ld hl, 84AFh
|
|
|
5238 |
jr PushReal
|
|
4
|
5239 |
; ---------------------------------------------------------------------------
|
|
|
5240 |
|
|
7
|
5241 |
PushRealO5:
|
|
8
|
5242 |
ld hl, 84A4h
|
|
|
5243 |
jr PushReal
|
|
4
|
5244 |
; ---------------------------------------------------------------------------
|
|
|
5245 |
|
|
|
5246 |
PushRealO4:
|
|
8
|
5247 |
ld hl, 8499h
|
|
|
5248 |
jr PushReal
|
|
4
|
5249 |
; ---------------------------------------------------------------------------
|
|
|
5250 |
|
|
7
|
5251 |
PushRealO3:
|
|
8
|
5252 |
ld hl, 848Eh
|
|
|
5253 |
jr PushReal
|
|
4
|
5254 |
; ---------------------------------------------------------------------------
|
|
|
5255 |
|
|
|
5256 |
PushRealO2:
|
|
8
|
5257 |
ld hl, 8483h
|
|
|
5258 |
jr PushReal
|
|
4
|
5259 |
|
|
|
5260 |
; =============== S U B R O U T I N E =======================================
|
|
|
5261 |
|
|
|
5262 |
|
|
7
|
5263 |
PushRealO1:
|
|
|
5264 |
|
|
8
|
5265 |
ld hl, 8478h
|
|
4
|
5266 |
|
|
7
|
5267 |
PushReal:
|
|
4
|
5268 |
push hl
|
|
8
|
5269 |
ld hl, 9
|
|
4
|
5270 |
call ErrNotEnoughMem
|
|
8
|
5271 |
pop hl
|
|
|
5272 |
ld de, (FPS)
|
|
4
|
5273 |
|
|
7
|
5274 |
page0_21F4:
|
|
4
|
5275 |
call mov9B2
|
|
8
|
5276 |
ld (FPS), de
|
|
4
|
5277 |
ret
|
|
|
5278 |
; End of function PushRealO1
|
|
|
5279 |
|
|
|
5280 |
; ---------------------------------------------------------------------------
|
|
|
5281 |
|
|
|
5282 |
PushOP5:
|
|
8
|
5283 |
ld a, (OP5)
|
|
|
5284 |
and 1Fh
|
|
|
5285 |
cp 0Ch
|
|
|
5286 |
jr nz, PushRealO5
|
|
|
5287 |
ld hl, 84A4h
|
|
|
5288 |
jr PUSHMCPLX
|
|
4
|
5289 |
; ---------------------------------------------------------------------------
|
|
|
5290 |
|
|
|
5291 |
PushOP3:
|
|
8
|
5292 |
ld a, (OP3)
|
|
|
5293 |
and 1Fh
|
|
|
5294 |
cp 0Ch
|
|
|
5295 |
jr nz, PushRealO3
|
|
|
5296 |
ld a, (OP4)
|
|
|
5297 |
and 0E0h ; '্
|
|
|
5298 |
or 0Ch
|
|
|
5299 |
ld (OP4), a
|
|
4
|
5300 |
|
|
|
5301 |
PUSHMCPLXO3:
|
|
8
|
5302 |
ld hl, 848Eh
|
|
|
5303 |
jr PUSHMCPLX
|
|
4
|
5304 |
; ---------------------------------------------------------------------------
|
|
|
5305 |
|
|
|
5306 |
PushOP1:
|
|
|
5307 |
call CkOP1Real
|
|
8
|
5308 |
cp 0Ch
|
|
|
5309 |
jr nz, PushRealO1
|
|
4
|
5310 |
call page0_104E
|
|
|
5311 |
|
|
|
5312 |
PUSHMCPLXO1:
|
|
8
|
5313 |
ld hl, 8478h
|
|
4
|
5314 |
|
|
7
|
5315 |
PUSHMCPLX:
|
|
4
|
5316 |
push hl
|
|
8
|
5317 |
ld hl, 12h
|
|
4
|
5318 |
call ErrNotEnoughMem
|
|
8
|
5319 |
pop hl
|
|
|
5320 |
ld de, (FPS)
|
|
4
|
5321 |
call mov9B2
|
|
8
|
5322 |
inc hl
|
|
|
5323 |
inc hl
|
|
|
5324 |
jr page0_21F4
|
|
4
|
5325 |
; ---------------------------------------------------------------------------
|
|
|
5326 |
|
|
|
5327 |
ExMCplxO1:
|
|
8
|
5328 |
ld hl, (FPS)
|
|
|
5329 |
ld bc, 0FFEEh
|
|
|
5330 |
add hl, bc
|
|
|
5331 |
ld de, 8478h
|
|
|
5332 |
ld b, 9
|
|
4
|
5333 |
call ExLp
|
|
8
|
5334 |
inc de
|
|
|
5335 |
inc de
|
|
4
|
5336 |
|
|
|
5337 |
Exch9:
|
|
8
|
5338 |
ld b, 9
|
|
|
5339 |
jp ExLp
|
|
4
|
5340 |
; ---------------------------------------------------------------------------
|
|
|
5341 |
|
|
|
5342 |
CpyTo1FPS11:
|
|
8
|
5343 |
ld de, 8478h
|
|
|
5344 |
ld hl, (FPS)
|
|
|
5345 |
ld c, 6Ch ; 'l'
|
|
|
5346 |
jr page0_226F
|
|
4
|
5347 |
; ---------------------------------------------------------------------------
|
|
|
5348 |
|
|
|
5349 |
CpyTo2FPS5:
|
|
8
|
5350 |
ld de, 8483h
|
|
|
5351 |
jr page0_226A
|
|
4
|
5352 |
; ---------------------------------------------------------------------------
|
|
|
5353 |
|
|
|
5354 |
CpyTo1FPS5:
|
|
8
|
5355 |
ld de, 8478h
|
|
4
|
5356 |
|
|
7
|
5357 |
page0_226A:
|
|
8
|
5358 |
ld hl, (FPS)
|
|
|
5359 |
ld c, 36h ; '6'
|
|
4
|
5360 |
|
|
7
|
5361 |
page0_226F:
|
|
8
|
5362 |
jp CpyStack
|
|
4
|
5363 |
; ---------------------------------------------------------------------------
|
|
|
5364 |
|
|
|
5365 |
CpyTo2FPS6:
|
|
8
|
5366 |
ld de, 8483h
|
|
|
5367 |
jr page0_227A
|
|
4
|
5368 |
; ---------------------------------------------------------------------------
|
|
|
5369 |
|
|
|
5370 |
CpyTo1FPS6:
|
|
8
|
5371 |
ld de, 8478h
|
|
4
|
5372 |
|
|
7
|
5373 |
page0_227A:
|
|
8
|
5374 |
ld hl, (FPS)
|
|
|
5375 |
ld c, 3Fh ; '?'
|
|
|
5376 |
jr page0_226F
|
|
4
|
5377 |
; ---------------------------------------------------------------------------
|
|
|
5378 |
|
|
|
5379 |
CpyTo2FPS7:
|
|
8
|
5380 |
ld de, 8483h
|
|
|
5381 |
jr page0_2289
|
|
4
|
5382 |
; ---------------------------------------------------------------------------
|
|
|
5383 |
|
|
|
5384 |
CpyTo1FPS7:
|
|
8
|
5385 |
ld de, 8478h
|
|
4
|
5386 |
|
|
7
|
5387 |
page0_2289:
|
|
8
|
5388 |
ld hl, (FPS)
|
|
|
5389 |
ld c, 48h ; 'H'
|
|
|
5390 |
jr CpyStack
|
|
4
|
5391 |
; ---------------------------------------------------------------------------
|
|
|
5392 |
|
|
|
5393 |
CpyTo1FPS8:
|
|
8
|
5394 |
ld de, 8478h
|
|
|
5395 |
jr page0_2298
|
|
4
|
5396 |
; ---------------------------------------------------------------------------
|
|
|
5397 |
|
|
|
5398 |
CpyTo2FPS8:
|
|
8
|
5399 |
ld de, 8483h
|
|
4
|
5400 |
|
|
7
|
5401 |
page0_2298:
|
|
8
|
5402 |
ld hl, (FPS)
|
|
|
5403 |
ld c, 51h ; 'Q'
|
|
|
5404 |
jr CpyStack
|
|
4
|
5405 |
; ---------------------------------------------------------------------------
|
|
|
5406 |
|
|
|
5407 |
CpyTo1FPS10:
|
|
8
|
5408 |
ld de, 8478h
|
|
|
5409 |
ld hl, (FPS)
|
|
|
5410 |
ld c, 63h ; 'c'
|
|
|
5411 |
jr CpyStack
|
|
4
|
5412 |
; ---------------------------------------------------------------------------
|
|
|
5413 |
|
|
|
5414 |
CpyTo1FPS9:
|
|
8
|
5415 |
ld de, 8478h
|
|
|
5416 |
ld hl, (FPS)
|
|
|
5417 |
ld c, 5Ah ; 'Z'
|
|
|
5418 |
jr CpyStack
|
|
4
|
5419 |
; ---------------------------------------------------------------------------
|
|
|
5420 |
|
|
|
5421 |
CpyTo2FPS4:
|
|
8
|
5422 |
ld de, 8483h
|
|
4
|
5423 |
|
|
7
|
5424 |
page0_22B6:
|
|
8
|
5425 |
ld hl, (FPS)
|
|
|
5426 |
ld c, 2Dh ; '-'
|
|
|
5427 |
jr CpyStack
|
|
4
|
5428 |
; ---------------------------------------------------------------------------
|
|
|
5429 |
|
|
|
5430 |
CpyTo6FPS3:
|
|
8
|
5431 |
ld de, 84AFh
|
|
|
5432 |
jr CPYFPS3
|
|
4
|
5433 |
; ---------------------------------------------------------------------------
|
|
|
5434 |
|
|
|
5435 |
CpyTo6FPS2:
|
|
8
|
5436 |
ld de, 84AFh
|
|
|
5437 |
jr CPYFPS2
|
|
4
|
5438 |
; ---------------------------------------------------------------------------
|
|
|
5439 |
|
|
|
5440 |
CpyTo2FPS3:
|
|
8
|
5441 |
ld de, 8483h
|
|
|
5442 |
jr CPYFPS3
|
|
4
|
5443 |
; ---------------------------------------------------------------------------
|
|
|
5444 |
|
|
|
5445 |
CPYCTO1FPS3:
|
|
|
5446 |
call CpyTo2FPS2
|
|
|
5447 |
|
|
|
5448 |
CpyTo1FPS3:
|
|
8
|
5449 |
ld de, 8478h
|
|
4
|
5450 |
|
|
7
|
5451 |
CPYFPS3:
|
|
8
|
5452 |
ld hl, (FPS)
|
|
|
5453 |
ld c, 24h ; '$'
|
|
|
5454 |
jr CpyStack
|
|
4
|
5455 |
; ---------------------------------------------------------------------------
|
|
|
5456 |
|
|
|
5457 |
CpyTo1FPS4:
|
|
8
|
5458 |
ld de, 8478h
|
|
|
5459 |
jr page0_22B6
|
|
4
|
5460 |
; ---------------------------------------------------------------------------
|
|
|
5461 |
|
|
|
5462 |
CpyTo3FPS2:
|
|
8
|
5463 |
ld de, 848Eh
|
|
|
5464 |
jr CPYFPS2
|
|
4
|
5465 |
; ---------------------------------------------------------------------------
|
|
|
5466 |
|
|
|
5467 |
CpyTo5FPST:
|
|
8
|
5468 |
ld de, 84A4h
|
|
|
5469 |
jr CPYFPST
|
|
4
|
5470 |
; ---------------------------------------------------------------------------
|
|
|
5471 |
|
|
|
5472 |
CpyTo6FPST:
|
|
8
|
5473 |
ld de, 84AFh
|
|
|
5474 |
jr CPYFPST
|
|
4
|
5475 |
; ---------------------------------------------------------------------------
|
|
|
5476 |
|
|
|
5477 |
CpyTo4FPST:
|
|
8
|
5478 |
ld de, 8499h
|
|
|
5479 |
jr CPYFPST
|
|
4
|
5480 |
; ---------------------------------------------------------------------------
|
|
|
5481 |
|
|
|
5482 |
CpyTo3FPST:
|
|
8
|
5483 |
ld de, 848Eh
|
|
|
5484 |
jr CPYFPST
|
|
4
|
5485 |
; ---------------------------------------------------------------------------
|
|
|
5486 |
|
|
|
5487 |
CpyTo2FPST:
|
|
8
|
5488 |
ld de, 8483h
|
|
|
5489 |
jr CPYFPST
|
|
4
|
5490 |
; ---------------------------------------------------------------------------
|
|
|
5491 |
|
|
|
5492 |
CpyTo1FPST:
|
|
8
|
5493 |
ld de, 8478h
|
|
4
|
5494 |
|
|
7
|
5495 |
CPYFPST:
|
|
8
|
5496 |
ld hl, (FPS)
|
|
4
|
5497 |
|
|
7
|
5498 |
page0_2302:
|
|
8
|
5499 |
ld c, 9
|
|
4
|
5500 |
; START OF FUNCTION CHUNK FOR CpyTo2FPS2
|
|
|
5501 |
|
|
7
|
5502 |
CpyStack:
|
|
|
5503 |
|
|
8
|
5504 |
xor a
|
|
|
5505 |
ld b, a
|
|
|
5506 |
sbc hl, bc
|
|
|
5507 |
jp mov9B2
|
|
4
|
5508 |
; END OF FUNCTION CHUNK FOR CpyTo2FPS2
|
|
|
5509 |
; ---------------------------------------------------------------------------
|
|
|
5510 |
|
|
|
5511 |
CpyTo3FPS1:
|
|
8
|
5512 |
ld de, 848Eh
|
|
|
5513 |
jr CPYFPS1
|
|
4
|
5514 |
; ---------------------------------------------------------------------------
|
|
|
5515 |
|
|
|
5516 |
CpyTo2FPS1:
|
|
8
|
5517 |
ld de, 8483h
|
|
|
5518 |
jr CPYFPS1
|
|
4
|
5519 |
; ---------------------------------------------------------------------------
|
|
|
5520 |
|
|
|
5521 |
CpyTo1FPS1:
|
|
8
|
5522 |
ld de, 8478h
|
|
4
|
5523 |
|
|
7
|
5524 |
CPYFPS1:
|
|
8
|
5525 |
ld hl, (FPS)
|
|
4
|
5526 |
|
|
7
|
5527 |
page0_231B:
|
|
8
|
5528 |
ld c, 12h
|
|
|
5529 |
jr CpyStack
|
|
4
|
5530 |
|
|
|
5531 |
; =============== S U B R O U T I N E =======================================
|
|
|
5532 |
|
|
|
5533 |
|
|
7
|
5534 |
CpyTo2FPS2:
|
|
|
5535 |
|
|
|
5536 |
|
|
4
|
5537 |
|
|
8
|
5538 |
ld de, 8483h
|
|
|
5539 |
jr CPYFPS2
|
|
4
|
5540 |
; ---------------------------------------------------------------------------
|
|
|
5541 |
|
|
|
5542 |
CpyTo1FPS2:
|
|
8
|
5543 |
ld de, 8478h
|
|
4
|
5544 |
|
|
7
|
5545 |
CPYFPS2:
|
|
8
|
5546 |
ld hl, (FPS)
|
|
4
|
5547 |
|
|
7
|
5548 |
page0_232A:
|
|
8
|
5549 |
ld c, 1Bh
|
|
|
5550 |
jr CpyStack
|
|
4
|
5551 |
; End of function CpyTo2FPS2
|
|
|
5552 |
|
|
|
5553 |
; ---------------------------------------------------------------------------
|
|
|
5554 |
|
|
|
5555 |
CpyO3ToFPST:
|
|
8
|
5556 |
ld de, 848Eh
|
|
|
5557 |
jr CpyToFPST
|
|
4
|
5558 |
; ---------------------------------------------------------------------------
|
|
|
5559 |
|
|
|
5560 |
CpyO2ToFPST:
|
|
8
|
5561 |
ld de, 8483h
|
|
|
5562 |
jr CpyToFPST
|
|
4
|
5563 |
; ---------------------------------------------------------------------------
|
|
|
5564 |
|
|
|
5565 |
CpyO6ToFPST:
|
|
8
|
5566 |
ld de, 84AFh
|
|
|
5567 |
jr CpyToFPST
|
|
4
|
5568 |
; ---------------------------------------------------------------------------
|
|
|
5569 |
|
|
|
5570 |
CpyO1ToFPST:
|
|
8
|
5571 |
ld de, 8478h
|
|
4
|
5572 |
|
|
7
|
5573 |
CpyToFPST:
|
|
8
|
5574 |
ld hl, (FPS)
|
|
4
|
5575 |
|
|
7
|
5576 |
page0_2343:
|
|
8
|
5577 |
ld c, 9
|
|
4
|
5578 |
|
|
7
|
5579 |
CpyToStack:
|
|
8
|
5580 |
xor a
|
|
|
5581 |
ld b, a
|
|
|
5582 |
sbc hl, bc
|
|
|
5583 |
ex de, hl
|
|
|
5584 |
jp mov9B2
|
|
4
|
5585 |
; ---------------------------------------------------------------------------
|
|
|
5586 |
|
|
|
5587 |
CpyO3ToFPS1:
|
|
8
|
5588 |
ld de, 848Eh
|
|
|
5589 |
jr CpyToFPS1
|
|
4
|
5590 |
; ---------------------------------------------------------------------------
|
|
|
5591 |
|
|
|
5592 |
CpyO5ToFPS1:
|
|
8
|
5593 |
ld de, 84A4h
|
|
|
5594 |
jr CpyToFPS1
|
|
4
|
5595 |
; ---------------------------------------------------------------------------
|
|
|
5596 |
|
|
|
5597 |
CpyO2ToFPS1:
|
|
8
|
5598 |
ld de, 8483h
|
|
|
5599 |
jr CpyToFPS1
|
|
4
|
5600 |
; ---------------------------------------------------------------------------
|
|
|
5601 |
|
|
|
5602 |
CpyO1ToFPS1:
|
|
8
|
5603 |
ld de, 8478h
|
|
4
|
5604 |
|
|
7
|
5605 |
CpyToFPS1:
|
|
8
|
5606 |
ld hl, (FPS)
|
|
|
5607 |
ld c, 12h
|
|
|
5608 |
jr CpyToStack
|
|
4
|
5609 |
; ---------------------------------------------------------------------------
|
|
|
5610 |
|
|
|
5611 |
CpyO2ToFPS2:
|
|
8
|
5612 |
ld de, 8483h
|
|
|
5613 |
jr CpyToFPS2
|
|
4
|
5614 |
; ---------------------------------------------------------------------------
|
|
|
5615 |
|
|
|
5616 |
CpyO3ToFPS2:
|
|
8
|
5617 |
ld de, 848Eh
|
|
|
5618 |
jr CpyToFPS2
|
|
4
|
5619 |
; ---------------------------------------------------------------------------
|
|
|
5620 |
|
|
|
5621 |
CpyO6ToFPS2:
|
|
8
|
5622 |
ld de, 84AFh
|
|
|
5623 |
jr CpyToFPS2
|
|
4
|
5624 |
; ---------------------------------------------------------------------------
|
|
|
5625 |
|
|
|
5626 |
CpyO1ToFPS2:
|
|
8
|
5627 |
ld de, 8478h
|
|
4
|
5628 |
|
|
7
|
5629 |
CpyToFPS2:
|
|
8
|
5630 |
ld hl, (FPS)
|
|
|
5631 |
ld c, 1Bh
|
|
|
5632 |
jr CpyToStack
|
|
4
|
5633 |
; ---------------------------------------------------------------------------
|
|
|
5634 |
|
|
|
5635 |
CpyO5ToFPS3:
|
|
8
|
5636 |
ld de, 84A4h
|
|
|
5637 |
jr CpyToFPS3
|
|
4
|
5638 |
; ---------------------------------------------------------------------------
|
|
|
5639 |
|
|
|
5640 |
CpyO2ToFPS3:
|
|
8
|
5641 |
ld de, 8483h
|
|
|
5642 |
jr CpyToFPS3
|
|
4
|
5643 |
; ---------------------------------------------------------------------------
|
|
|
5644 |
|
|
|
5645 |
CpyO1ToFPS3:
|
|
8
|
5646 |
ld de, 8478h
|
|
4
|
5647 |
|
|
7
|
5648 |
CpyToFPS3:
|
|
8
|
5649 |
ld hl, (FPS)
|
|
|
5650 |
ld c, 24h ; '$'
|
|
|
5651 |
jr CpyToStack
|
|
4
|
5652 |
; ---------------------------------------------------------------------------
|
|
|
5653 |
|
|
|
5654 |
CpyO1ToFPS6:
|
|
8
|
5655 |
ld de, 8478h
|
|
|
5656 |
ld c, 3Fh ; '?'
|
|
|
5657 |
jr page0_239F
|
|
4
|
5658 |
; ---------------------------------------------------------------------------
|
|
|
5659 |
|
|
|
5660 |
CpyO1ToFPS7:
|
|
8
|
5661 |
ld de, 8478h
|
|
|
5662 |
ld c, 48h ; 'H'
|
|
4
|
5663 |
|
|
7
|
5664 |
page0_239F:
|
|
8
|
5665 |
ld hl, (FPS)
|
|
|
5666 |
jr CpyToStack
|
|
4
|
5667 |
; ---------------------------------------------------------------------------
|
|
|
5668 |
|
|
|
5669 |
CpyO1ToFPS5:
|
|
8
|
5670 |
ld de, 8478h
|
|
|
5671 |
ld hl, (FPS)
|
|
|
5672 |
ld c, 36h ; '6'
|
|
|
5673 |
jr CpyToStack
|
|
4
|
5674 |
; ---------------------------------------------------------------------------
|
|
|
5675 |
|
|
|
5676 |
CpyO2ToFPS4:
|
|
8
|
5677 |
ld de, 8483h
|
|
|
5678 |
jr page0_23B6
|
|
4
|
5679 |
; ---------------------------------------------------------------------------
|
|
|
5680 |
|
|
|
5681 |
CpyO1ToFPS4:
|
|
8
|
5682 |
ld de, 8478h
|
|
4
|
5683 |
|
|
7
|
5684 |
page0_23B6:
|
|
8
|
5685 |
ld hl, (FPS)
|
|
|
5686 |
ld c, 2Dh ; '-'
|
|
|
5687 |
jr CpyToStack
|
|
4
|
5688 |
|
|
|
5689 |
; =============== S U B R O U T I N E =======================================
|
|
|
5690 |
|
|
|
5691 |
|
|
7
|
5692 |
ErrNotEnoughMem:
|
|
|
5693 |
|
|
4
|
5694 |
call EnoughMem
|
|
8
|
5695 |
ret nc
|
|
|
5696 |
jp ErrMemory
|
|
4
|
5697 |
; End of function ErrNotEnoughMem
|
|
|
5698 |
|
|
|
5699 |
|
|
|
5700 |
; =============== S U B R O U T I N E =======================================
|
|
|
5701 |
|
|
|
5702 |
|
|
7
|
5703 |
sub_23C4:
|
|
6
|
5704 |
; page0_1A99+5Cp ...
|
|
8
|
5705 |
xor a
|
|
|
5706 |
ld h, a
|
|
|
5707 |
ld l, a
|
|
|
5708 |
sbc hl, bc
|
|
|
5709 |
ld b, h
|
|
|
5710 |
ld c, l
|
|
4
|
5711 |
ret
|
|
|
5712 |
; End of function sub_23C4
|
|
|
5713 |
|
|
|
5714 |
; ---------------------------------------------------------------------------
|
|
|
5715 |
|
|
|
5716 |
FPSMINUS9:
|
|
8
|
5717 |
ld hl, (FPS)
|
|
4
|
5718 |
|
|
|
5719 |
HLMINUS9:
|
|
8
|
5720 |
ld de, 0FFF7h
|
|
|
5721 |
add hl, de
|
|
4
|
5722 |
ret
|
|
|
5723 |
; ---------------------------------------------------------------------------
|
|
|
5724 |
|
|
|
5725 |
Page0Call_23D4:
|
|
|
5726 |
push hl
|
|
|
5727 |
call sub_1680
|
|
8
|
5728 |
rst 10h
|
|
4
|
5729 |
call nc, DelVar
|
|
8
|
5730 |
pop hl
|
|
4
|
5731 |
ret
|
|
|
5732 |
; ---------------------------------------------------------------------------
|
|
|
5733 |
|
|
|
5734 |
Page0Call_23DE:
|
|
|
5735 |
call sub_1680
|
|
8
|
5736 |
rst 10h
|
|
4
|
5737 |
ret
|
|
|
5738 |
; ---------------------------------------------------------------------------
|
|
|
5739 |
|
|
|
5740 |
Page0Call_23E3:
|
|
|
5741 |
call sub_1680
|
|
8
|
5742 |
ld hl, Page0Call_24F9
|
|
4
|
5743 |
call pushErrorHandleR
|
|
8
|
5744 |
ld hl, 0
|
|
4
|
5745 |
call CreateRList
|
|
|
5746 |
call popErrorHandleR
|
|
|
5747 |
ret
|
|
|
5748 |
; ---------------------------------------------------------------------------
|
|
|
5749 |
|
|
|
5750 |
Page0Call_23F6:
|
|
8
|
5751 |
inc hl
|
|
|
5752 |
inc hl
|
|
|
5753 |
inc hl
|
|
|
5754 |
inc hl
|
|
4
|
5755 |
|
|
|
5756 |
Page0Call_23FA:
|
|
8
|
5757 |
inc hl
|
|
|
5758 |
inc hl
|
|
4
|
5759 |
|
|
|
5760 |
Page0Call_23FC:
|
|
8
|
5761 |
or a
|
|
|
5762 |
bit 7, h
|
|
|
5763 |
ret z
|
|
|
5764 |
res 7, h
|
|
|
5765 |
set 6, h
|
|
4
|
5766 |
scf
|
|
|
5767 |
ret
|
|
|
5768 |
; ---------------------------------------------------------------------------
|
|
|
5769 |
|
|
|
5770 |
Page0Call_2406:
|
|
8
|
5771 |
dec hl
|
|
4
|
5772 |
|
|
|
5773 |
; =============== S U B R O U T I N E =======================================
|
|
|
5774 |
|
|
|
5775 |
|
|
7
|
5776 |
Page0Call_2407:
|
|
6
|
5777 |
; page0_1F38+Cp ...
|
|
8
|
5778 |
dec hl
|
|
4
|
5779 |
|
|
|
5780 |
HLMinus5:
|
|
8
|
5781 |
dec hl
|
|
|
5782 |
dec hl
|
|
4
|
5783 |
|
|
|
5784 |
Page0Call_240A:
|
|
8
|
5785 |
dec hl
|
|
4
|
5786 |
|
|
|
5787 |
Page0Call_240B:
|
|
8
|
5788 |
dec hl
|
|
|
5789 |
dec hl
|
|
4
|
5790 |
ret
|
|
|
5791 |
; End of function Page0Call_2407
|
|
|
5792 |
|
|
|
5793 |
; ---------------------------------------------------------------------------
|
|
|
5794 |
|
|
|
5795 |
Page0Call_240E:
|
|
|
5796 |
call ChkFindSym
|
|
8
|
5797 |
jr page0_2414
|
|
4
|
5798 |
; ---------------------------------------------------------------------------
|
|
|
5799 |
|
|
|
5800 |
Page0Call_2413:
|
|
8
|
5801 |
rst 10h
|
|
4
|
5802 |
|
|
7
|
5803 |
page0_2414:
|
|
8
|
5804 |
ret c
|
|
4
|
5805 |
|
|
|
5806 |
Page0Call_2415:
|
|
|
5807 |
push af
|
|
|
5808 |
call page0_1F55
|
|
8
|
5809 |
jp nz, page0_2551
|
|
|
5810 |
pop af
|
|
4
|
5811 |
ret
|
|
|
5812 |
; ---------------------------------------------------------------------------
|
|
|
5813 |
|
|
|
5814 |
Page0Call_241E:
|
|
8
|
5815 |
rst 10h
|
|
|
5816 |
ret c
|
|
4
|
5817 |
|
|
|
5818 |
; =============== S U B R O U T I N E =======================================
|
|
|
5819 |
|
|
|
5820 |
|
|
7
|
5821 |
Page0Call_2420:
|
|
6
|
5822 |
; FIND_E_UNDEF+4j
|
|
4
|
5823 |
push af
|
|
|
5824 |
call page0_1F55
|
|
8
|
5825 |
jp nz, Page0Call_254D
|
|
|
5826 |
pop af
|
|
4
|
5827 |
ret
|
|
|
5828 |
; End of function Page0Call_2420
|
|
|
5829 |
|
|
|
5830 |
|
|
|
5831 |
; =============== S U B R O U T I N E =======================================
|
|
|
5832 |
|
|
|
5833 |
|
|
7
|
5834 |
FIND_E_UNDEF:
|
|
8
|
5835 |
rst 10h
|
|
|
5836 |
jp c, ErrUndefined
|
|
|
5837 |
jr Page0Call_2420
|
|
4
|
5838 |
; End of function FIND_E_UNDEF
|
|
|
5839 |
|
|
|
5840 |
; ---------------------------------------------------------------------------
|
|
|
5841 |
|
|
|
5842 |
SetupPagedPtr:
|
|
|
5843 |
push af
|
|
8
|
5844 |
ld a, b
|
|
|
5845 |
ld (pagedPN), a
|
|
|
5846 |
ld (pagedGetPtr), de
|
|
|
5847 |
xor a
|
|
|
5848 |
ld (pagedCount), a
|
|
|
5849 |
pop af
|
|
4
|
5850 |
ret
|
|
|
5851 |
; ---------------------------------------------------------------------------
|
|
|
5852 |
|
|
|
5853 |
PagedGet:
|
|
|
5854 |
push hl
|
|
|
5855 |
|
|
7
|
5856 |
page0_243F:
|
|
8
|
5857 |
ld a, (pagedCount)
|
|
|
5858 |
or a
|
|
|
5859 |
jr z, page0_2453
|
|
|
5860 |
dec a
|
|
|
5861 |
ld (pagedCount), a
|
|
|
5862 |
ld hl, (pagedPutPtr)
|
|
|
5863 |
ld a, (hl)
|
|
|
5864 |
inc hl
|
|
|
5865 |
ld (pagedPutPtr), hl
|
|
|
5866 |
pop hl
|
|
4
|
5867 |
ret
|
|
|
5868 |
; ---------------------------------------------------------------------------
|
|
|
5869 |
|
|
7
|
5870 |
page0_2453:
|
|
4
|
5871 |
push bc
|
|
|
5872 |
push de
|
|
8
|
5873 |
in a, (6)
|
|
4
|
5874 |
push af
|
|
8
|
5875 |
ld a, (pagedPN)
|
|
|
5876 |
out (6), a
|
|
|
5877 |
ld bc, 10h
|
|
|
5878 |
ld a, c
|
|
|
5879 |
ld (pagedCount), a
|
|
|
5880 |
ld de, 983Ah
|
|
|
5881 |
ld (pagedPutPtr), de
|
|
|
5882 |
ld hl, (pagedGetPtr)
|
|
|
5883 |
bit 7, h
|
|
|
5884 |
jr nz, page0_2489
|
|
4
|
5885 |
|
|
7
|
5886 |
page0_2472:
|
|
4
|
5887 |
ldi
|
|
8
|
5888 |
bit 7, h
|
|
|
5889 |
jr z, page0_2483
|
|
|
5890 |
in a, (6)
|
|
|
5891 |
inc a
|
|
|
5892 |
ld (pagedPN), a
|
|
|
5893 |
out (6), a
|
|
|
5894 |
ld hl, 4000h
|
|
4
|
5895 |
|
|
7
|
5896 |
page0_2483:
|
|
8
|
5897 |
ld a, b
|
|
|
5898 |
or c
|
|
|
5899 |
jr nz, page0_2472
|
|
|
5900 |
jr page0_248B
|
|
4
|
5901 |
; ---------------------------------------------------------------------------
|
|
|
5902 |
|
|
7
|
5903 |
page0_2489:
|
|
4
|
5904 |
ldir
|
|
|
5905 |
|
|
7
|
5906 |
page0_248B:
|
|
8
|
5907 |
ld (pagedGetPtr), hl
|
|
|
5908 |
pop af
|
|
|
5909 |
out (6), a
|
|
|
5910 |
pop de
|
|
|
5911 |
pop bc
|
|
|
5912 |
jr page0_243F
|
|
4
|
5913 |
; ---------------------------------------------------------------------------
|
|
|
5914 |
|
|
|
5915 |
Page0Call_2495:
|
|
8
|
5916 |
and 1Fh
|
|
4
|
5917 |
call IS_A_LSTorCLST
|
|
8
|
5918 |
ret z
|
|
4
|
5919 |
call page0_17B3
|
|
|
5920 |
ret
|
|
|
5921 |
|
|
|
5922 |
; =============== S U B R O U T I N E =======================================
|
|
|
5923 |
|
|
|
5924 |
|
|
7
|
5925 |
sub_249F:
|
|
6
|
5926 |
; BCALL:page0_2AABp ...
|
|
4
|
5927 |
call NZIf83Plus
|
|
8
|
5928 |
jr z, page0_24A6
|
|
|
5929 |
and 1Fh
|
|
4
|
5930 |
|
|
7
|
5931 |
page0_24A6:
|
|
8
|
5932 |
out (6), a
|
|
4
|
5933 |
ret
|
|
|
5934 |
; End of function sub_249F
|
|
|
5935 |
|
|
|
5936 |
|
|
|
5937 |
; =============== S U B R O U T I N E =======================================
|
|
|
5938 |
|
|
|
5939 |
|
|
7
|
5940 |
NZIf83Plus:
|
|
4
|
5941 |
push bc
|
|
|
5942 |
push af
|
|
8
|
5943 |
in a, (2)
|
|
|
5944 |
and 80h ; ''
|
|
|
5945 |
xor 80h ; ''
|
|
|
5946 |
pop bc
|
|
|
5947 |
ld a, b
|
|
|
5948 |
pop bc
|
|
4
|
5949 |
ret
|
|
|
5950 |
; End of function NZIf83Plus
|
|
|
5951 |
|
|
|
5952 |
; ---------------------------------------------------------------------------
|
|
|
5953 |
|
|
|
5954 |
Page0Call_24B5:
|
|
8
|
5955 |
ld a, 0B2h ; 'ҧ
|
|
|
5956 |
jr page0_24DF
|
|
4
|
5957 |
; ---------------------------------------------------------------------------
|
|
|
5958 |
|
|
|
5959 |
Page0Call_24B9:
|
|
8
|
5960 |
ld a, 0B3h ; 'ӧ
|
|
|
5961 |
jr page0_24DF
|
|
4
|
5962 |
; ---------------------------------------------------------------------------
|
|
|
5963 |
; START OF FUNCTION CHUNK FOR INCO1EXP
|
|
|
5964 |
|
|
7
|
5965 |
ErrOverflow:
|
|
8
|
5966 |
ld a, 81h ; 'g
|
|
|
5967 |
jr page0_24DF
|
|
4
|
5968 |
; END OF FUNCTION CHUNK FOR INCO1EXP
|
|
|
5969 |
; ---------------------------------------------------------------------------
|
|
|
5970 |
|
|
7
|
5971 |
ErrDivBy0:
|
|
8
|
5972 |
ld a, 82h ; '§
|
|
|
5973 |
jr page0_24DF
|
|
4
|
5974 |
; ---------------------------------------------------------------------------
|
|
|
5975 |
|
|
|
5976 |
ErrSingularMat:
|
|
8
|
5977 |
ld a, 83h ; 'ç
|
|
|
5978 |
jr page0_24DF
|
|
4
|
5979 |
; ---------------------------------------------------------------------------
|
|
|
5980 |
; START OF FUNCTION CHUNK FOR errd_op1notpos
|
|
|
5981 |
|
|
7
|
5982 |
ErrDomain:
|
|
8
|
5983 |
ld a, 84h ; 'ħ
|
|
|
5984 |
jr page0_24DF
|
|
4
|
5985 |
; END OF FUNCTION CHUNK FOR errd_op1notpos
|
|
|
5986 |
; ---------------------------------------------------------------------------
|
|
|
5987 |
|
|
|
5988 |
ErrIncrement:
|
|
8
|
5989 |
ld a, 85h ; 'ŧ
|
|
|
5990 |
jr page0_24DF
|
|
4
|
5991 |
; ---------------------------------------------------------------------------
|
|
|
5992 |
|
|
7
|
5993 |
ErrNon_Real:
|
|
8
|
5994 |
ld a, 87h ; 'ǧ
|
|
|
5995 |
jr page0_24DF
|
|
4
|
5996 |
; ---------------------------------------------------------------------------
|
|
|
5997 |
; START OF FUNCTION CHUNK FOR sub_1BA3
|
|
|
5998 |
|
|
7
|
5999 |
ErrSyntax:
|
|
8
|
6000 |
ld a, 88h ; 'ȧ
|
|
|
6001 |
jr page0_24DF
|
|
4
|
6002 |
; END OF FUNCTION CHUNK FOR sub_1BA3
|
|
|
6003 |
; ---------------------------------------------------------------------------
|
|
|
6004 |
|
|
|
6005 |
Page0Call_24D9:
|
|
8
|
6006 |
ld a, 9Eh ; 'ާ
|
|
|
6007 |
jr page0_24DF
|
|
4
|
6008 |
; ---------------------------------------------------------------------------
|
|
|
6009 |
; START OF FUNCTION CHUNK FOR EOP1NotReal
|
|
|
6010 |
|
|
7
|
6011 |
ErrDataType:
|
|
8
|
6012 |
ld a, 89h ; 'ɧ
|
|
4
|
6013 |
; END OF FUNCTION CHUNK FOR EOP1NotReal
|
|
|
6014 |
; START OF FUNCTION CHUNK FOR INCO1EXP
|
|
|
6015 |
|
|
7
|
6016 |
page0_24DF:
|
|
8
|
6017 |
jr JError
|
|
4
|
6018 |
; END OF FUNCTION CHUNK FOR INCO1EXP
|
|
|
6019 |
; ---------------------------------------------------------------------------
|
|
|
6020 |
|
|
7
|
6021 |
Page0Call_24E1:
|
|
8
|
6022 |
ld a, 9Dh ; 'ݧ
|
|
|
6023 |
jr JError
|
|
4
|
6024 |
; ---------------------------------------------------------------------------
|
|
|
6025 |
|
|
|
6026 |
ErrArgument:
|
|
8
|
6027 |
ld a, 8Ah ; 'ʧ
|
|
|
6028 |
jr JError
|
|
4
|
6029 |
; ---------------------------------------------------------------------------
|
|
|
6030 |
|
|
|
6031 |
ErrDimMismatch:
|
|
8
|
6032 |
ld a, 8Bh ; '˧
|
|
|
6033 |
jr JError
|
|
4
|
6034 |
; ---------------------------------------------------------------------------
|
|
|
6035 |
|
|
7
|
6036 |
ErrDimension:
|
|
8
|
6037 |
ld a, 8Ch ; '̧
|
|
|
6038 |
jr JError
|
|
4
|
6039 |
; ---------------------------------------------------------------------------
|
|
|
6040 |
; START OF FUNCTION CHUNK FOR page0_16F4
|
|
|
6041 |
|
|
7
|
6042 |
ErrUndefined:
|
|
6
|
6043 |
; FIND_E_UNDEF+1j
|
|
8
|
6044 |
ld a, 8Dh ; 'ͧ
|
|
|
6045 |
jr JError
|
|
4
|
6046 |
; END OF FUNCTION CHUNK FOR page0_16F4
|
|
|
6047 |
; ---------------------------------------------------------------------------
|
|
|
6048 |
; START OF FUNCTION CHUNK FOR DataSize
|
|
|
6049 |
|
|
7
|
6050 |
ErrMemory:
|
|
|
6051 |
|
|
8
|
6052 |
ld a, 8Eh ; 'Χ
|
|
|
6053 |
jr JError
|
|
4
|
6054 |
; END OF FUNCTION CHUNK FOR DataSize
|
|
|
6055 |
; ---------------------------------------------------------------------------
|
|
|
6056 |
|
|
7
|
6057 |
Page0Call_24F9:
|
|
8
|
6058 |
ld a, 0Eh
|
|
|
6059 |
jr JError
|
|
4
|
6060 |
; ---------------------------------------------------------------------------
|
|
|
6061 |
; START OF FUNCTION CHUNK FOR EOP1NotReal
|
|
|
6062 |
|
|
7
|
6063 |
ErrInvalid:
|
|
|
6064 |
|
|
8
|
6065 |
ld a, 8Fh ; 'ϧ
|
|
|
6066 |
jr JError
|
|
4
|
6067 |
; END OF FUNCTION CHUNK FOR EOP1NotReal
|
|
|
6068 |
; ---------------------------------------------------------------------------
|
|
|
6069 |
|
|
|
6070 |
Page0Call_2501:
|
|
8
|
6071 |
ld a, 90h ; 'Ч
|
|
|
6072 |
jr JError
|
|
4
|
6073 |
; ---------------------------------------------------------------------------
|
|
|
6074 |
|
|
|
6075 |
Page0Call_2505:
|
|
8
|
6076 |
ld a, 91h ; 'ѧ
|
|
|
6077 |
jr JError
|
|
4
|
6078 |
; ---------------------------------------------------------------------------
|
|
|
6079 |
|
|
|
6080 |
Page0Call_2509:
|
|
8
|
6081 |
ld a, 92h ; 'ҧ
|
|
|
6082 |
jr JError
|
|
4
|
6083 |
; ---------------------------------------------------------------------------
|
|
|
6084 |
|
|
|
6085 |
Page0Call_250D:
|
|
8
|
6086 |
ld a, 93h ; 'ӧ
|
|
|
6087 |
jr JError
|
|
4
|
6088 |
; ---------------------------------------------------------------------------
|
|
|
6089 |
|
|
7
|
6090 |
ErrBreak:
|
|
8
|
6091 |
ld a, 86h ; 'Ƨ
|
|
|
6092 |
jr JError
|
|
4
|
6093 |
; ---------------------------------------------------------------------------
|
|
|
6094 |
|
|
|
6095 |
ErrStat:
|
|
8
|
6096 |
ld a, 15h
|
|
|
6097 |
jr JError
|
|
|
6098 |
; ---------------------------------------------------------------------------
|
|
|
6099 |
ld a, 96h ; '֧
|
|
|
6100 |
jr JError
|
|
4
|
6101 |
; ---------------------------------------------------------------------------
|
|
|
6102 |
|
|
|
6103 |
ErrSignChange:
|
|
8
|
6104 |
ld a, 98h ; 'ا
|
|
|
6105 |
jr JError
|
|
4
|
6106 |
; ---------------------------------------------------------------------------
|
|
|
6107 |
|
|
|
6108 |
ErrIterations:
|
|
8
|
6109 |
ld a, 99h ; '٧
|
|
|
6110 |
jr JError
|
|
4
|
6111 |
; ---------------------------------------------------------------------------
|
|
|
6112 |
|
|
|
6113 |
ErrBadGuess:
|
|
8
|
6114 |
ld a, 9Ah ; 'ڧ
|
|
|
6115 |
jr JError
|
|
4
|
6116 |
; ---------------------------------------------------------------------------
|
|
|
6117 |
|
|
|
6118 |
ErrTolTooSmall:
|
|
8
|
6119 |
ld a, 9Ch ; 'ܧ
|
|
|
6120 |
jr JError
|
|
4
|
6121 |
; ---------------------------------------------------------------------------
|
|
|
6122 |
|
|
|
6123 |
ErrStatPlot:
|
|
8
|
6124 |
ld a, 1Bh
|
|
|
6125 |
jr JError
|
|
|
6126 |
; ---------------------------------------------------------------------------
|
|
|
6127 |
ld a, 0AAh ; 'ʧ
|
|
|
6128 |
jr JError
|
|
4
|
6129 |
; ---------------------------------------------------------------------------
|
|
|
6130 |
|
|
|
6131 |
Page0Call_2535:
|
|
8
|
6132 |
ld a, 26h ; '&'
|
|
|
6133 |
jr JError
|
|
4
|
6134 |
; ---------------------------------------------------------------------------
|
|
|
6135 |
|
|
|
6136 |
Page0Call_2539:
|
|
8
|
6137 |
ld a, 28h ; '('
|
|
|
6138 |
jr JError
|
|
4
|
6139 |
; ---------------------------------------------------------------------------
|
|
|
6140 |
|
|
|
6141 |
Page0Call_253D:
|
|
8
|
6142 |
ld a, 2Dh ; '-'
|
|
|
6143 |
jr JError
|
|
4
|
6144 |
; ---------------------------------------------------------------------------
|
|
|
6145 |
|
|
|
6146 |
Page0Call_2541:
|
|
8
|
6147 |
ld a, 2Eh ; '.'
|
|
|
6148 |
jr JError
|
|
4
|
6149 |
; ---------------------------------------------------------------------------
|
|
|
6150 |
|
|
|
6151 |
ErrCustom1:
|
|
8
|
6152 |
ld a, 0ABh ; '˧
|
|
|
6153 |
jr JError
|
|
4
|
6154 |
; ---------------------------------------------------------------------------
|
|
|
6155 |
|
|
|
6156 |
ErrCustom2:
|
|
8
|
6157 |
ld a, 0ACh ; '̧
|
|
|
6158 |
jr JError
|
|
4
|
6159 |
; ---------------------------------------------------------------------------
|
|
|
6160 |
; START OF FUNCTION CHUNK FOR DelVar
|
|
|
6161 |
|
|
7
|
6162 |
Page0Call_254D:
|
|
6
|
6163 |
; Page0Call_2420+4j
|
|
8
|
6164 |
ld a, 0AFh ; 'ϧ
|
|
|
6165 |
jr JError
|
|
4
|
6166 |
; END OF FUNCTION CHUNK FOR DelVar
|
|
|
6167 |
; ---------------------------------------------------------------------------
|
|
|
6168 |
|
|
7
|
6169 |
page0_2551:
|
|
8
|
6170 |
ld a, 2Fh ; '/'
|
|
|
6171 |
jr JError
|
|
4
|
6172 |
; ---------------------------------------------------------------------------
|
|
|
6173 |
|
|
|
6174 |
Page0Call_2555:
|
|
8
|
6175 |
ld a, 30h ; '0'
|
|
|
6176 |
jr JError
|
|
4
|
6177 |
; ---------------------------------------------------------------------------
|
|
|
6178 |
|
|
|
6179 |
Page0Call_2559:
|
|
8
|
6180 |
ld a, 31h ; '1'
|
|
|
6181 |
jr JError
|
|
4
|
6182 |
; ---------------------------------------------------------------------------
|
|
|
6183 |
|
|
|
6184 |
ErrLinkXmit:
|
|
8
|
6185 |
ld a, 9Fh ; 'ߧ
|
|
4
|
6186 |
; START OF FUNCTION CHUNK FOR DelVar
|
|
|
6187 |
|
|
7
|
6188 |
JError:
|
|
|
6189 |
|
|
4
|
6190 |
call Page0Call_3E0D
|
|
8
|
6191 |
ld (errNo), a
|
|
4
|
6192 |
|
|
|
6193 |
JErrorNo:
|
|
|
6194 |
call Page0Call_3E0D
|
|
|
6195 |
call NZIf83Plus
|
|
8
|
6196 |
jr z, page0_2573
|
|
|
6197 |
ld a, 0C0h ; ''
|
|
|
6198 |
out (0), a
|
|
|
6199 |
jr page0_257B
|
|
4
|
6200 |
; ---------------------------------------------------------------------------
|
|
|
6201 |
|
|
7
|
6202 |
page0_2573:
|
|
8
|
6203 |
ld a, 80h ; ''
|
|
|
6204 |
out (8), a
|
|
|
6205 |
res 0, (iy+3Eh)
|
|
4
|
6206 |
|
|
7
|
6207 |
page0_257B:
|
|
8
|
6208 |
res 2, (iy+12h)
|
|
|
6209 |
res 4, (iy+24h)
|
|
|
6210 |
ld sp, (errSP)
|
|
|
6211 |
ld hl, (OPBase)
|
|
|
6212 |
pop de
|
|
|
6213 |
add hl, de
|
|
|
6214 |
ld (OPS), hl
|
|
|
6215 |
pop de
|
|
|
6216 |
ld hl, (fpBase)
|
|
|
6217 |
add hl, de
|
|
|
6218 |
ld (FPS), hl
|
|
|
6219 |
pop hl
|
|
|
6220 |
ld (errSP), hl
|
|
|
6221 |
pop af
|
|
|
6222 |
out (6), a
|
|
|
6223 |
ld a, (errNo)
|
|
4
|
6224 |
|
|
|
6225 |
noErrorEntry:
|
|
|
6226 |
ret
|
|
|
6227 |
; END OF FUNCTION CHUNK FOR DelVar
|
|
|
6228 |
|
|
|
6229 |
; =============== S U B R O U T I N E =======================================
|
|
|
6230 |
|
|
|
6231 |
|
|
7
|
6232 |
pushErrorHandleR:
|
|
6
|
6233 |
; handleONKeyPress-3FFp ...
|
|
8
|
6234 |
pop de
|
|
4
|
6235 |
push hl
|
|
8
|
6236 |
ld b, a
|
|
|
6237 |
in a, (6)
|
|
4
|
6238 |
push af
|
|
8
|
6239 |
ld a, b
|
|
|
6240 |
ld hl, (errSP)
|
|
4
|
6241 |
push hl
|
|
8
|
6242 |
ld bc, (fpBase)
|
|
|
6243 |
ld hl, (FPS)
|
|
|
6244 |
or a
|
|
|
6245 |
sbc hl, bc
|
|
4
|
6246 |
push hl
|
|
8
|
6247 |
ld bc, (OPBase)
|
|
|
6248 |
ld hl, (OPS)
|
|
|
6249 |
sbc hl, bc
|
|
4
|
6250 |
push hl
|
|
8
|
6251 |
ld (errSP), sp
|
|
|
6252 |
ex de, hl
|
|
|
6253 |
jp (hl)
|
|
4
|
6254 |
; End of function pushErrorHandleR
|
|
|
6255 |
|
|
|
6256 |
|
|
|
6257 |
; =============== S U B R O U T I N E =======================================
|
|
|
6258 |
|
|
|
6259 |
|
|
7
|
6260 |
popErrorHandleR:
|
|
6
|
6261 |
; handleONKeyPress:loc_400p ...
|
|
8
|
6262 |
pop bc
|
|
|
6263 |
ld sp, (errSP)
|
|
|
6264 |
pop af
|
|
|
6265 |
pop af
|
|
|
6266 |
ex (sp), hl
|
|
|
6267 |
ld (errSP), hl
|
|
|
6268 |
pop hl
|
|
|
6269 |
pop af
|
|
|
6270 |
pop af
|
|
4
|
6271 |
push bc
|
|
|
6272 |
ret
|
|
|
6273 |
; End of function popErrorHandleR
|
|
|
6274 |
|
|
|
6275 |
|
|
|
6276 |
; =============== S U B R O U T I N E =======================================
|
|
|
6277 |
|
|
|
6278 |
|
|
7
|
6279 |
strcopy:
|
|
8
|
6280 |
ld a, (hl)
|
|
|
6281 |
ld (de), a
|
|
|
6282 |
or a
|
|
|
6283 |
ret z
|
|
|
6284 |
inc hl
|
|
|
6285 |
inc de
|
|
|
6286 |
jr strcopy
|
|
4
|
6287 |
; End of function strcopy
|
|
|
6288 |
|
|
|
6289 |
; ---------------------------------------------------------------------------
|
|
|
6290 |
|
|
7
|
6291 |
strCat:
|
|
8
|
6292 |
ld a, (de)
|
|
|
6293 |
or a
|
|
|
6294 |
jr z, strcopy
|
|
|
6295 |
inc de
|
|
|
6296 |
jr strCat
|
|
4
|
6297 |
|
|
|
6298 |
; =============== S U B R O U T I N E =======================================
|
|
|
6299 |
|
|
|
6300 |
|
|
7
|
6301 |
Page0Call_25E7:
|
|
8
|
6302 |
ld hl, 9320h
|
|
4
|
6303 |
|
|
|
6304 |
isInSet:
|
|
|
6305 |
push bc
|
|
8
|
6306 |
ld c, a
|
|
|
6307 |
and 0F8h ; '𧍊
|
|
4
|
6308 |
rrca
|
|
|
6309 |
rrca
|
|
|
6310 |
rrca
|
|
8
|
6311 |
ld e, a
|
|
|
6312 |
ld d, 0
|
|
|
6313 |
add hl, de
|
|
4
|
6314 |
push hl
|
|
8
|
6315 |
ld a, c
|
|
|
6316 |
and 7
|
|
|
6317 |
ld e, a
|
|
|
6318 |
ld a, (hl)
|
|
|
6319 |
ld hl, unk_2605
|
|
|
6320 |
add hl, de
|
|
|
6321 |
ld c, (hl)
|
|
|
6322 |
and c
|
|
|
6323 |
ld a, c
|
|
|
6324 |
pop hl
|
|
|
6325 |
pop bc
|
|
4
|
6326 |
ret
|
|
|
6327 |
unk_2605:
|
|
8
|
6328 |
.db 1
|
|
|
6329 |
.db 2
|
|
|
6330 |
.db 4
|
|
|
6331 |
.db 8
|
|
|
6332 |
.db 10h
|
|
|
6333 |
.db 20h
|
|
|
6334 |
.db 40h ; @
|
|
|
6335 |
.db 80h ;
|