Mercurial > hg > Members > kono > nitros9-code
annotate level1/modules/rbf.asm @ 1287:10957d54bf16
Made all modules rev 0
author | boisy |
---|---|
date | Sat, 30 Aug 2003 20:16:51 +0000 |
parents | bdd2f61d5dbc |
children | f3557a63b11c |
rev | line source |
---|---|
0 | 1 ******************************************************************** |
2 * RBF - Disk file manager | |
3 * | |
4 * $Id$ | |
5 * | |
1287 | 6 * Edt/Rev YYYY/MM/DD Modified by |
7 * Comment | |
0 | 8 * ------------------------------------------------------------------ |
1287 | 9 * 24 1985/??/?? |
10 * From Tandy OS-9 Level One VR 02.00.00 | |
0 | 11 |
12 nam RBF | |
13 ttl Disk file manager | |
14 | |
15 * Disassembled 98/08/23 18:26:52 by Disasm v1.6 (C) 1988 by RML | |
16 | |
17 ifp1 | |
18 use defsfile | |
19 use rbfdefs | |
20 endc | |
21 | |
22 tylg set FlMgr+Objct | |
23 atrv set ReEnt+rev | |
1287 | 24 rev set $00 |
201 | 25 edition set 24 |
0 | 26 |
27 mod eom,name,tylg,atrv,start,size | |
28 | |
29 u0000 rmb 0 | |
30 size equ . | |
31 | |
32 name fcs /RBF/ | |
33 fcb edition | |
206 | 34 |
35 L0011 fcb DRVMEM | |
0 | 36 |
37 * All routines are entered with | |
38 * (Y) = Path descriptor pointer | |
39 * (U) = Caller's register stack pointer | |
40 start lbra Create | |
41 lbra Open | |
42 lbra MakDir | |
43 lbra ChgDir | |
44 lbra Delete | |
45 lbra Seek | |
46 lbra Read | |
47 lbra Write | |
48 lbra ReadLn | |
49 lbra WriteLn | |
50 lbra GetStat | |
51 lbra SetStat | |
52 lbra Close | |
53 | |
54 Create pshs y | |
55 leas -$05,s make room on the stack | |
56 lda R$B,u get perms | |
57 anda #^DIR. mask off dir bit | |
58 sta R$B,u save perms back | |
59 lbsr L061D | |
60 bcs L004A | |
61 ldb #$DA | |
62 L004A cmpb #$D8 | |
63 bne L0072 | |
64 cmpa #PDELIM | |
65 beq L0072 | |
66 pshs x | |
67 ldx PD.RGS,y | |
68 stu R$X,x | |
69 ldb <PD.SBP,y | |
70 ldx <PD.SBP+1,y | |
71 lda <PD.SSZ,y | |
72 ldu <PD.SSZ+1,y | |
73 pshs u,x,b,a | |
74 clra | |
75 ldb #$01 | |
76 lbsr L0966 | |
77 bcc L0077 | |
78 leas $06,s | |
79 L0070 leas $02,s | |
80 L0072 leas $05,s | |
81 lbra L027F | |
82 L0077 std $0B,s | |
83 ldb <PD.SBP,y | |
84 ldx <PD.SBP+1,y | |
85 stb $08,s | |
86 stx $09,s | |
87 puls u,x,b,a | |
88 stb <PD.SBP,y | |
89 stx <PD.SBP+1,y | |
90 sta <PD.SSZ,y | |
91 stu <PD.SSZ+1,y | |
92 ldd <PD.DCP,y | |
93 std $0B,y | |
94 ldd <PD.DCP+2,y | |
95 std $0D,y | |
96 lbsr L079C | |
97 bcs L00A9 | |
98 L00A0 tst ,x | |
99 beq L00BB | |
100 lbsr L0787 | |
101 bcc L00A0 | |
102 L00A9 cmpb #$D3 | |
103 bne L0070 | |
104 ldd #$0020 | |
105 lbsr L04C0 | |
106 bcs L0070 | |
107 lbsr L0243 | |
108 lbsr L079C | |
109 L00BB leau ,x | |
110 lbsr L015C | |
111 puls x | |
112 os9 F$PrsNam | |
113 bcs L0072 | |
114 cmpb #$1D | |
115 bls L00CD | |
116 ldb #$1D | |
117 L00CD clra | |
118 tfr d,y | |
119 lbsr L04F2 | |
120 tfr y,d | |
121 ldy $05,s | |
122 decb | |
123 lda b,u | |
124 ora #$80 | |
125 sta b,u | |
126 ldb ,s | |
127 ldx $01,s | |
128 stb <$1D,u | |
129 stx <$1E,u | |
130 lbsr L0D40 | |
131 bcs L0144 | |
132 ldu $08,y | |
133 bsr L0163 | |
134 lda #$04 | |
135 sta $0A,y | |
136 ldx $06,y | |
137 lda $02,x | |
138 sta ,u | |
139 ldx <$004B | |
140 ldd $09,x | |
141 std $01,u | |
142 lbsr L0290 | |
143 ldd $03,u | |
144 std $0D,u | |
145 ldb $05,u | |
146 stb $0F,u | |
147 ldb #$01 | |
148 stb $08,u | |
149 ldd $03,s | |
150 subd #$0001 | |
151 beq L012A | |
152 leax <$10,u | |
153 std $03,x | |
154 ldd $01,s | |
155 addd #$0001 | |
156 std $01,x | |
157 ldb ,s | |
158 adcb #$00 | |
159 stb ,x | |
160 L012A ldb ,s | |
161 ldx $01,s | |
162 lbsr L0D42 | |
163 bcs L0144 | |
164 lbsr L0837 | |
165 stb <$34,y | |
166 stx <$35,y | |
167 lbsr L082B | |
168 leas $05,s | |
169 lbra L01C4 | |
170 L0144 puls u,x,a | |
171 sta <$16,y | |
172 stx <$17,y | |
173 clr <$19,y | |
174 stu <$1A,y | |
175 pshs b | |
176 lbsr L0B6E | |
177 puls b | |
178 L0159 lbra L027F | |
179 L015C pshs u,x,b,a | |
180 leau <$20,u | |
181 bra L0169 | |
182 L0163 pshs u,x,b,a | |
183 leau >$0100,u | |
184 L0169 clra | |
185 clrb | |
186 tfr d,x | |
187 L016D pshu x,b,a | |
188 cmpu $04,s | |
189 bhi L016D | |
190 puls pc,u,x,b,a | |
191 | |
192 Open pshs y | |
193 lbsr L061D | |
194 bcs L0159 | |
195 ldu PD.RGS,y | |
196 stx R$X,u | |
197 ldd <PD.FD+1,y | |
198 bne L01B3 | |
199 lda <PD.FD,y | |
200 bne L01B3 | |
201 ldb PD.MOD,y | |
202 andb #DIR. | |
203 lbne L027D | |
204 std <PD.SBP,y | |
205 sta <PD.SBP+2,y | |
206 std <PD.SBL,y | |
207 sta <PD.SBL+2,y | |
208 ldx <PD.DTB,y | |
209 lda V$STAT,x | |
210 std <PD.SIZ+2,y | |
211 sta <PD.SSZ+2,y | |
212 ldd V$DRIV,x | |
213 std PD.SIZ,y | |
214 std <PD.SSZ,y | |
215 puls pc,y | |
216 | |
217 L01B3 lda PD.MOD,y | |
218 lbsr L07F1 | |
219 bcs L0159 | |
220 bita #$02 | |
221 beq L01C4 | |
222 lbsr L0290 | |
223 lbsr L0D38 | |
224 L01C4 puls y | |
225 L01C6 clra | |
226 clrb | |
227 std $0B,y | |
228 std $0D,y | |
229 std <$13,y | |
230 sta <$15,y | |
231 sta <$19,y | |
232 lda ,u | |
233 sta <$33,y | |
234 ldd <$10,u | |
235 std <$16,y | |
236 lda <$12,u | |
237 sta <$18,y | |
238 ldd <$13,u | |
239 std <$1A,y | |
240 ldd $09,u | |
241 ldx $0B,u | |
242 std $0F,y | |
243 stx <$11,y | |
244 clr $0A,y | |
245 rts | |
246 | |
247 MakDir lbsr Create | |
248 bcs L0241 | |
249 ldd #$0040 | |
250 std <$11,y | |
251 bsr L0253 | |
252 bcs L0241 | |
253 lbsr L0854 | |
254 bcs L0241 | |
255 lbsr L0CD4 | |
256 ldu $08,y | |
257 lda ,u | |
258 ora #$80 | |
259 sta ,u | |
260 bsr L0246 | |
261 bcs L0241 | |
262 lbsr L0163 | |
263 ldd #$2EAE | |
264 std ,u | |
265 stb <$20,u | |
266 lda <$37,y | |
267 sta <$1D,u | |
268 ldd <$38,y | |
269 std <$1E,u | |
270 lda <$34,y | |
271 sta <$3D,u | |
272 ldd <$35,y | |
273 std <$3E,u | |
274 lbsr L0D40 | |
275 L0241 bra L0282 | |
276 L0243 lbsr L0CD4 | |
277 L0246 ldx $08,y | |
278 ldd $0F,y | |
279 std $09,x | |
280 ldd <$11,y | |
281 std $0B,x | |
282 clr $0A,y | |
283 L0253 lbra L0D38 | |
284 | |
285 Close clra | |
286 tst $02,y | |
287 bne L027C | |
288 lbsr L0D72 | |
289 bcs L0282 | |
290 ldb $01,y | |
291 bitb #$02 | |
292 beq L0282 | |
293 ldd <$34,y | |
294 bne L0270 | |
295 lda <$36,y | |
296 beq L0282 | |
297 L0270 bsr L0243 | |
298 lbsr L0529 | |
299 bcc L0282 | |
300 lbsr L0AAF | |
301 bra L0282 | |
302 L027C rts | |
303 L027D ldb #$D6 | |
304 L027F coma | |
305 L0280 puls y | |
306 L0282 pshs b,cc | |
307 ldu $08,y | |
308 beq L028E | |
309 ldd #$0100 | |
310 os9 F$SRtMem | |
311 L028E puls pc,b,cc | |
312 L0290 lbsr L0CD4 | |
313 ldu $08,y | |
314 lda $08,u | |
315 pshs a | |
316 leax $03,u | |
317 os9 F$Time | |
318 puls a | |
319 sta $08,u | |
320 rts | |
321 | |
322 ChgDir pshs y | |
323 lda $01,y | |
324 ora #$80 | |
325 sta $01,y | |
326 lbsr Open | |
327 bcs L0280 | |
328 ldx <$004B | |
329 ldu <$35,y | |
330 ldb $01,y | |
331 bitb #$03 | |
332 beq L02C4 | |
333 ldb <$34,y | |
334 stb <$1D,x | |
335 stu <$1E,x | |
336 L02C4 ldb $01,y | |
337 bitb #$04 | |
338 beq L02D3 | |
339 ldb <$34,y | |
340 stb <$23,x | |
341 stu <$24,x | |
342 L02D3 clrb | |
343 bra L0280 | |
344 | |
345 Delete pshs y | |
346 lbsr L061D | |
347 bcs L0280 | |
348 ldd <$35,y | |
349 bne L02E9 | |
350 tst <$34,y | |
351 lbeq L027D | |
352 L02E9 lda #$42 | |
353 lbsr L07F1 | |
354 bcs L035F | |
355 ldu $06,y | |
356 stx $04,u | |
357 lbsr L0CD4 | |
358 bcs L035F | |
359 ldx $08,y | |
360 dec $08,x | |
361 beq L0304 | |
362 lbsr L0D38 | |
363 bra L032A | |
364 L0304 clra | |
365 clrb | |
366 std $0F,y | |
367 std <$11,y | |
368 lbsr L0AAF | |
369 bcs L035F | |
370 ldb <$34,y | |
371 ldx <$35,y | |
372 stb <$16,y | |
373 stx <$17,y | |
374 ldx $08,y | |
375 ldd <$13,x | |
376 addd #$0001 | |
377 std <$1A,y | |
378 lbsr L0B6E | |
379 L032A bcs L035F | |
380 lbsr L0D72 | |
381 lbsr L0837 | |
382 lda <$37,y | |
383 sta <$34,y | |
384 ldd <$38,y | |
385 std <$35,y | |
386 lbsr L0CD4 | |
387 bcs L035F | |
388 lbsr L082B | |
389 ldu $08,y | |
390 lbsr L01C6 | |
391 ldd <$3A,y | |
392 std $0B,y | |
393 ldd <$3C,y | |
394 std $0D,y | |
395 lbsr L079C | |
396 bcs L035F | |
397 clr ,x | |
398 lbsr L0D40 | |
399 L035F lbra L0280 | |
400 | |
401 Seek ldb $0A,y | |
402 bitb #$02 | |
403 beq L037B | |
404 lda $05,u | |
405 ldb $08,u | |
406 subd $0C,y | |
407 bne L0376 | |
408 lda $04,u | |
409 sbca $0B,y | |
410 beq L037F | |
411 L0376 lbsr L0D72 | |
412 bcs L0383 | |
413 L037B ldd $04,u | |
414 std $0B,y | |
415 L037F ldd $08,u | |
416 std $0D,y | |
417 L0383 rts | |
418 | |
419 ReadLn bsr L03C4 | |
420 beq L03AA | |
421 bsr L03AB | |
422 pshs u,y,x,b,a | |
423 exg x,u | |
424 ldy #$0000 | |
425 lda #$0D | |
426 L0394 leay $01,y | |
427 cmpa ,x+ | |
428 beq L039D | |
429 decb | |
430 bne L0394 | |
431 L039D ldx $06,s | |
432 bsr L03F4 | |
433 sty $0A,s | |
434 puls u,y,x,b,a | |
435 ldd $02,s | |
436 leax d,x | |
437 L03AA rts | |
438 L03AB lbsr L0414 | |
439 lda ,-x | |
440 cmpa #$0D | |
441 beq L03BA | |
442 ldd $02,s | |
443 lbne L041A | |
444 L03BA ldu $06,y | |
445 ldd $06,u | |
446 subd $02,s | |
447 std $06,u | |
448 bra L040E | |
449 L03C4 ldd $06,u | |
450 bsr L03CD | |
451 bcs L03F1 | |
452 std $06,u | |
453 rts | |
454 L03CD pshs b,a | |
455 ldd <$11,y | |
456 subd $0D,y | |
457 tfr d,x | |
458 ldd $0F,y | |
459 sbcb $0C,y | |
460 sbca $0B,y | |
461 bcs L03EE | |
462 bne L03EB | |
463 tstb | |
464 bne L03EB | |
465 cmpx ,s | |
466 bcc L03EB | |
467 stx ,s | |
468 beq L03EE | |
469 L03EB clrb | |
470 puls pc,b,a | |
471 L03EE comb | |
472 ldb #E$EOF | |
473 L03F1 leas $02,s | |
474 rts | |
475 L03F4 lbra L04F2 | |
476 | |
477 Read bsr L03C4 | |
478 beq L0409 | |
479 bsr L040A | |
480 L03FD pshs u,y,x,b,a | |
481 exg x,u | |
482 tfr d,y | |
483 bsr L03F4 | |
484 puls u,y,x,b,a | |
485 leax d,x | |
486 L0409 rts | |
487 L040A bsr L0414 | |
488 bne L041A | |
489 L040E clrb | |
490 L040F leas -$02,s | |
491 L0411 leas $0A,s | |
492 rts | |
493 L0414 ldd $04,u | |
494 ldx $06,u | |
495 pshs x,b,a | |
496 L041A lda $0A,y | |
497 bita #$02 | |
498 bne L043A | |
499 tst $0E,y | |
500 bne L0435 | |
501 tst $02,s | |
502 beq L0435 | |
503 leax >L04A4,pcr | |
504 cmpx $06,s | |
505 bne L0435 | |
506 lbsr L0C49 | |
507 bra L0438 | |
508 L0435 lbsr L0D91 | |
509 L0438 bcs L040F | |
510 L043A ldu $08,y | |
511 clra | |
512 ldb $0E,y | |
513 leau d,u | |
514 negb | |
515 sbca #$FF | |
516 ldx ,s | |
517 cmpd $02,s | |
518 bls L044D | |
519 ldd $02,s | |
520 L044D pshs b,a | |
521 jsr [<$08,s] | |
522 stx $02,s | |
523 lda $0A,y | |
524 anda #$BF | |
525 sta $0A,y | |
526 ldb $01,s | |
527 addb $0E,y | |
528 stb $0E,y | |
529 bne L0471 | |
530 lbsr L0D72 | |
531 inc $0D,y | |
532 bne L046F | |
533 inc $0C,y | |
534 bne L046F | |
535 inc $0B,y | |
536 L046F bcs L0411 | |
537 L0471 ldd $04,s | |
538 subd ,s++ | |
539 std $02,s | |
540 jmp [<$04,s] | |
541 | |
542 WriteLn pshs y | |
543 clrb | |
544 ldy $06,u | |
545 beq L0498 | |
546 ldx $04,u | |
547 L0484 leay -$01,y | |
548 beq L0498 | |
549 lda ,x+ | |
550 cmpa #$0D | |
551 bne L0484 | |
552 tfr y,d | |
553 nega | |
554 negb | |
555 sbca #$00 | |
556 addd $06,u | |
557 std $06,u | |
558 L0498 puls y | |
559 | |
560 Write ldd $06,u | |
561 beq L04BE | |
562 bsr L04C0 | |
563 bcs L04BF | |
564 bsr L04B5 | |
565 L04A4 pshs y,b,a | |
566 tfr d,y | |
567 bsr L04F2 | |
568 puls y,b,a | |
569 leax d,x | |
570 lda $0A,y | |
571 ora #$03 | |
572 sta $0A,y | |
573 rts | |
574 L04B5 lbsr L0414 | |
575 lbne L041A | |
576 leas $08,s | |
577 L04BE clrb | |
578 L04BF rts | |
579 L04C0 addd $0D,y | |
580 tfr d,x | |
581 ldd $0B,y | |
582 adcb #$00 | |
583 adca #$00 | |
584 L04CA cmpd $0F,y | |
585 bcs L04BE | |
586 bhi L04D6 | |
587 cmpx <$11,y | |
588 bls L04BE | |
589 L04D6 pshs u | |
590 ldu <$11,y | |
591 stx <$11,y | |
592 ldx $0F,y | |
593 std $0F,y | |
594 pshs u,x | |
595 lbsr L0854 | |
596 puls u,x | |
597 bcc L04F0 | |
598 stx $0F,y | |
599 stu <$11,y | |
600 L04F0 puls pc,u | |
601 L04F2 pshs u,y,x | |
602 ldd $02,s | |
603 beq L051B | |
604 leay d,u | |
605 lsrb | |
606 bcc L0501 | |
607 lda ,x+ | |
608 sta ,u+ | |
609 L0501 lsrb | |
610 bcc L0508 | |
611 ldd ,x++ | |
612 std ,u++ | |
613 L0508 pshs y | |
614 exg x,u | |
615 bra L0515 | |
616 L050E pulu y,b,a | |
617 std ,x++ | |
618 sty ,x++ | |
619 L0515 cmpx ,s | |
620 bcs L050E | |
621 leas $02,s | |
622 L051B puls pc,u,y,x | |
623 | |
624 GetSTat ldb $02,u | |
625 cmpb #$00 | |
626 beq L0543 | |
627 cmpb #$06 | |
628 bne L052F | |
629 clr $02,u | |
630 L0529 clra | |
631 ldb #$01 | |
632 lbra L03CD | |
633 L052F cmpb #$01 | |
634 bne L0536 | |
635 clr $02,u | |
636 rts | |
637 L0536 cmpb #$02 | |
638 bne L0544 | |
639 ldd $0F,y | |
640 std $04,u | |
641 ldd <$11,y | |
642 std $08,u | |
643 L0543 rts | |
644 L0544 cmpb #$05 | |
645 bne L0551 | |
646 ldd $0B,y | |
647 std $04,u | |
648 ldd $0D,y | |
649 std $08,u | |
650 rts | |
651 L0551 cmpb #$0F | |
652 bne L056B | |
653 lbsr L0CD4 | |
654 bcs L0543 | |
655 ldu $06,y | |
656 ldd $06,u | |
657 tsta | |
658 beq L0564 | |
659 ldd #$0100 | |
660 L0564 ldx $04,u | |
661 ldu $08,y | |
662 lbra L03FD | |
663 L056B lda #$09 | |
664 lbra L0CED | |
665 | |
666 SetStat ldb R$B,u | |
1242
bdd2f61d5dbc
Fixed case issues in several files (thanks Rodney H.)
boisy
parents:
206
diff
changeset
|
667 cmpb #SS.Opt |
0 | 668 bne L0584 |
669 ldx R$X,u | |
670 leax $02,x | |
671 leau <PD.STP,y | |
672 ldy #$000D | |
673 lbra L04F2 | |
674 L0584 cmpb #SS.Size | |
675 bne L05C6 | |
676 ldd <PD.FD+1,y | |
677 bne L0594 | |
678 tst <PD.FD,y | |
679 lbeq L0619 | |
680 L0594 lda PD.MOD,y | |
681 bita #WRITE. | |
682 beq L05C2 | |
683 ldd R$X,u | |
684 ldx R$U,u | |
685 cmpd $0F,y | |
686 bcs L05AD | |
687 bne L05AA | |
688 cmpx <PD.SIZ+2,y | |
689 bcs L05AD | |
690 L05AA lbra L04CA | |
691 L05AD std PD.SIZ,y | |
692 stx <PD.SIZ+2,y | |
693 ldd PD.CP,y | |
694 ldx PD.CP+2,y | |
695 pshs x,b,a | |
696 lbsr L0AAF | |
697 puls u,x | |
698 stx PD.CP,y | |
699 stu PD.CP+2,y | |
700 rts | |
701 L05C2 comb | |
702 ldb #E$BMode | |
703 rts | |
704 L05C6 cmpb #$0F | |
705 bne L0604 | |
706 lda $01,y | |
707 bita #$02 | |
708 beq L05C2 | |
709 lbsr L0CD4 | |
710 bcs L061C | |
711 pshs y | |
712 ldx $04,u | |
713 ldu $08,y | |
714 ldy <$004B | |
715 ldd $09,y | |
716 bne L05E7 | |
717 ldd #$0102 | |
718 bsr L05F6 | |
719 L05E7 ldd #$0305 | |
720 bsr L05F6 | |
721 ldd #$0D03 | |
722 bsr L05F6 | |
723 puls y | |
724 lbra L0D38 | |
725 L05F6 pshs u,x | |
726 leax a,x | |
727 leau a,u | |
728 clra | |
729 tfr d,y | |
730 lbsr L04F2 | |
731 puls pc,u,x | |
732 L0604 cmpb #$1E | |
733 bne L0614 | |
734 ldx <$1E,y | |
735 lda $05,u | |
736 sta <$1E,x | |
737 clr <$1D,x | |
738 rts | |
739 L0614 lda #$0C | |
740 lbra L0CED | |
741 L0619 comb | |
742 ldb #E$UnkSvc | |
743 L061C rts | |
744 | |
745 L061D ldd #256 | |
746 stb PD.BUF+2,y | |
747 os9 F$SRqMem | |
748 bcs L061C | |
749 stu PD.BUF,y | |
750 ldx PD.RGS,y | |
751 ldx R$X,x | |
752 pshs u,y,x | |
753 leas -$04,s | |
754 clra | |
755 clrb | |
756 sta <PD.FD,y | |
757 std <PD.FD+1,y | |
758 std <PD.DSK,y | |
759 lda ,x | |
760 sta ,s | |
761 cmpa #PDELIM | |
762 bne L0654 | |
763 lbsr L07BC | |
764 sta ,s | |
765 lbcs L0752 | |
766 leax ,y | |
767 ldy $06,s | |
768 bra L0677 | |
769 L0654 anda #$7F strip hi bit | |
770 cmpa #PENTIR raw? | |
771 beq L0677 branch if so | |
772 lda #PDELIM | |
773 sta ,s | |
774 leax -$01,x | |
775 lda $01,y | |
776 ldu <$004B | |
777 leau <$1A,u | |
778 bita #$24 | |
779 beq L066D | |
780 leau $06,u | |
781 L066D ldb $03,u | |
782 stb <PD.FD,y | |
783 ldd $04,u | |
784 std <PD.FD+1,y | |
785 L0677 ldu $03,y | |
786 stu <PD.DVT,y | |
787 lda <PD.DRV,y | |
788 ldb >L0011,pcr | |
789 mul | |
790 addd $02,u | |
791 addd #$000F | |
792 std <PD.DTB,y | |
793 lda ,s | |
794 anda #$7F | |
795 cmpa #PENTIR | |
796 bne L0698 | |
797 leax $01,x | |
798 bra L06BA | |
799 L0698 lbsr L0CC1 | |
800 lbcs L075A | |
801 ldu PD.BUF,y | |
802 ldd $0E,u | |
803 std <PD.DSK,y | |
804 ldd <PD.FD+1,y | |
805 bne L06BA | |
806 lda <PD.FD,y | |
807 bne L06BA | |
808 lda $08,u | |
809 sta <PD.FD,y | |
810 ldd $09,u | |
811 std <PD.FD+1,y | |
812 L06BA stx $04,s | |
813 stx $08,s | |
814 L06BE lbsr L0D72 | |
815 lbcs L075A | |
816 lda ,s | |
817 anda #$7F | |
818 cmpa #PENTIR | |
819 beq L06D4 | |
820 lbsr L0CD4 | |
821 lbcs L075A | |
822 L06D4 lbsr L082B | |
823 lda ,s | |
824 cmpa #PDELIM | |
825 bne L0734 | |
826 clr $02,s | |
827 clr $03,s | |
828 lda $01,y | |
829 ora #$80 | |
830 lbsr L07F1 | |
831 bcs L0752 | |
832 lbsr L01C6 | |
833 ldx $08,s | |
834 leax $01,x | |
835 lbsr L07BC | |
836 std ,s | |
837 stx $04,s | |
838 sty $08,s | |
839 ldy $06,s | |
840 bcs L0752 | |
841 lbsr L079C | |
842 bra L070A | |
843 L0705 bsr L075D | |
844 L0707 lbsr L0787 | |
845 L070A bcs L0752 | |
846 tst ,x | |
847 beq L0705 | |
848 clra | |
849 ldb $01,s | |
850 leay ,x | |
851 ldx $04,s | |
852 os9 F$CmpNam | |
853 ldx $06,s | |
854 exg x,y | |
855 bcs L0707 | |
856 bsr L076B | |
857 lda <$1D,x | |
858 sta <PD.FD,y | |
859 ldd <$1E,x | |
860 std <PD.FD+1,y | |
861 lbsr L0837 | |
862 lbra L06BE | |
863 L0734 ldx $08,s | |
864 tsta | |
865 bmi L0741 | |
866 os9 F$PrsNam | |
867 leax ,y | |
868 ldy $06,s | |
869 L0741 stx $04,s | |
870 clra | |
871 L0744 lda ,s | |
872 leas $04,s | |
873 pshs b,a,cc | |
874 lda $0A,y | |
875 anda #$BF | |
876 sta $0A,y | |
877 puls pc,u,y,x,b,a,cc | |
878 L0752 cmpb #$D3 | |
879 bne L075A | |
880 bsr L075D | |
881 ldb #$D8 | |
882 L075A coma | |
883 bra L0744 | |
884 L075D pshs b,a | |
885 lda $04,s | |
886 cmpa #$2F | |
887 beq L0785 | |
888 ldd $06,s | |
889 bne L0785 | |
890 puls b,a | |
891 L076B pshs b,a | |
892 stx $06,s | |
893 lda <PD.FD,y | |
894 sta <PD.DFD,y | |
895 ldd <PD.FD+1,y | |
896 std <PD.DFD+1,y | |
897 ldd $0B,y | |
898 std <PD.DCP,y | |
899 ldd $0D,y | |
900 std <PD.DCP+2,y | |
901 L0785 puls pc,b,a | |
902 | |
903 L0787 ldb $0E,y | |
904 addb #$20 | |
905 stb $0E,y | |
906 bcc L079C | |
907 lbsr L0D72 | |
908 inc $0D,y | |
909 bne L079C | |
910 inc $0C,y | |
911 bne L079C | |
912 inc $0B,y | |
913 L079C ldd #$0020 | |
914 lbsr L03CD | |
915 bcs L07BB | |
916 lda $0A,y | |
917 bita #$02 | |
918 bne L07B4 | |
919 lbsr L0C49 | |
920 bcs L07BB | |
921 lbsr L0D91 | |
922 bcs L07BB | |
923 L07B4 ldb $0E,y | |
924 lda $08,y | |
925 tfr d,x | |
926 clrb | |
927 L07BB rts | |
928 | |
929 L07BC os9 F$PrsNam | |
930 pshs x | |
931 bcc L07E9 | |
932 clrb | |
933 L07C4 pshs a | |
934 anda #$7F | |
935 cmpa #PDIR | |
936 puls a | |
937 bne L07DF | |
938 incb | |
939 leax $01,x | |
940 tsta | |
941 bmi L07DF | |
942 lda ,x | |
943 cmpb #$03 | |
944 bcs L07C4 | |
945 lda #PDELIM | |
946 decb | |
947 leax -$03,x | |
948 L07DF tstb | |
949 bne L07E7 | |
950 L07E2 comb | |
951 ldb #E$BPNam | |
952 puls pc,x | |
953 L07E7 leay ,x | |
954 L07E9 cmpb #$20 | |
955 bhi L07E2 | |
956 andcc #^Carry | |
957 puls pc,x | |
958 | |
959 * A = PD.MOD (mode byte) | |
960 L07F1 tfr a,b | |
961 anda #$07 | |
962 andb #$C0 | |
963 pshs x,b,a | |
964 lbsr L0CD4 | |
965 bcs L0820 | |
966 ldu $08,y | |
967 ldx <$004B | |
968 ldd $09,x | |
969 beq L0809 | |
970 cmpd $01,u | |
971 L0809 puls a | |
972 beq L0810 | |
973 lsla | |
974 lsla | |
975 lsla | |
976 L0810 ora ,s | |
977 anda #$BF | |
978 pshs a | |
979 ora #$80 | |
980 anda ,u | |
981 cmpa ,s | |
982 beq L0829 | |
983 ldb #$D6 | |
984 L0820 leas $02,s | |
985 coma | |
986 puls pc,x | |
987 ldb #$FD | |
988 bra L0820 | |
989 L0829 puls pc,x,b,a | |
990 L082B clra | |
991 clrb | |
992 std $0B,y | |
993 std $0D,y | |
994 sta <$19,y | |
995 std <$1A,y | |
996 L0837 rts | |
997 L0838 pshs y,x,b,a | |
998 ldx <D.Proc | |
999 lda <P$IOQN,x | |
1000 beq L0851 | |
1001 clr <P$IOQN,x | |
1002 ldb #S$Wake | |
1003 os9 F$Send | |
1004 ldx <D.PrcDBT | |
1005 os9 F$Find64 | |
1006 clr <P$IOQP,y | |
1007 L0851 clrb | |
1008 puls pc,y,x,b,a | |
1009 L0854 pshs u,x | |
1010 L0856 bsr L08B2 | |
1011 bne L0866 | |
1012 cmpx <$1A,y | |
1013 bcs L08AD | |
1014 bne L0866 | |
1015 lda <$12,y | |
1016 beq L08AD | |
1017 L0866 lbsr L0CD4 | |
1018 bcs L08AA | |
1019 ldx $0B,y | |
1020 ldu $0D,y | |
1021 pshs u,x | |
1022 ldd $0F,y | |
1023 std $0B,y | |
1024 ldd <$11,y | |
1025 std $0D,y | |
1026 lbsr L0C63 | |
1027 puls u,x | |
1028 stx $0B,y | |
1029 stu $0D,y | |
1030 bcc L08AD | |
1031 cmpb #$D5 | |
1032 bne L08AA | |
1033 bsr L08B2 | |
1034 bne L0896 | |
1035 tst <$12,y | |
1036 beq L0899 | |
1037 leax $01,x | |
1038 bne L0899 | |
1039 L0896 ldx #$FFFF | |
1040 L0899 tfr x,d | |
1041 tsta | |
1042 bne L08A6 | |
1043 cmpb <$2E,y | |
1044 bcc L08A6 | |
1045 ldb <$2E,y | |
1046 L08A6 bsr L08C0 | |
1047 bcc L0856 | |
1048 L08AA coma | |
1049 puls pc,u,x | |
1050 L08AD lbsr L0C49 | |
1051 puls pc,u,x | |
1052 L08B2 ldd <$10,y | |
1053 subd <$14,y | |
1054 tfr d,x | |
1055 ldb $0F,y | |
1056 sbcb <$13,y | |
1057 rts | |
1058 L08C0 pshs u,x | |
1059 lbsr L0966 | |
1060 bcs L08FF | |
1061 lbsr L0CD4 | |
1062 bcs L08FF | |
1063 ldu $08,y | |
1064 clra | |
1065 clrb | |
1066 std $09,u | |
1067 std $0B,u | |
1068 leax <$10,u | |
1069 ldd $03,x | |
1070 beq L0947 | |
1071 ldd $08,y | |
1072 inca | |
1073 pshs b,a | |
1074 bra L08EF | |
1075 L08E2 clrb | |
1076 ldd -$02,x | |
1077 beq L08FB | |
1078 addd $0A,u | |
1079 std $0A,u | |
1080 bcc L08EF | |
1081 inc $09,u | |
1082 L08EF leax $05,x | |
1083 cmpx ,s | |
1084 bcs L08E2 | |
1085 lbsr L0B6E | |
1086 comb | |
1087 ldb #E$SLF | |
1088 L08FB leas $02,s | |
1089 leax -$05,x | |
1090 L08FF bcs L0964 | |
1091 ldd -$04,x | |
1092 addd -$02,x | |
1093 pshs b,a | |
1094 ldb -$05,x | |
1095 adcb #$00 | |
1096 cmpb <$16,y | |
1097 puls b,a | |
1098 bne L0947 | |
1099 cmpd <$17,y | |
1100 bne L0947 | |
1101 ldu <$1E,y | |
1102 ldd $06,u | |
1103 ldu $08,y | |
1104 subd #$0001 | |
1105 coma | |
1106 comb | |
1107 pshs b,a | |
1108 ldd -$05,x | |
1109 eora <$16,y | |
1110 eorb <$17,y | |
1111 lsra | |
1112 rorb | |
1113 lsra | |
1114 rorb | |
1115 lsra | |
1116 rorb | |
1117 anda ,s+ | |
1118 andb ,s+ | |
1119 std -$02,s | |
1120 bne L0947 | |
1121 ldd -$02,x | |
1122 addd <$1A,y | |
1123 bcs L0947 | |
1124 std -$02,x | |
1125 bra L0956 | |
1126 L0947 ldd <$16,y | |
1127 std ,x | |
1128 lda <$18,y | |
1129 sta $02,x | |
1130 ldd <$1A,y | |
1131 std $03,x | |
1132 L0956 ldd $0A,u | |
1133 addd <$1A,y | |
1134 std $0A,u | |
1135 bcc L0961 | |
1136 inc $09,u | |
1137 L0961 lbsr L0D38 | |
1138 L0964 puls pc,u,x | |
1139 L0966 pshs u,y,x,b,a | |
1140 ldb #$0C | |
1141 L096A clr ,-s | |
1142 decb | |
1143 bne L096A | |
1144 ldx <$1E,y | |
1145 ldd $04,x | |
1146 std $04,s | |
1147 ldd $06,x | |
1148 std $02,s | |
1149 std $0A,s | |
1150 ldx $03,y | |
1151 ldx $04,x | |
1152 leax <$12,x | |
1153 subd #$0001 | |
1154 addb $0E,x | |
1155 adca #$00 | |
1156 bra L098E | |
1157 L098C lsra | |
1158 rorb | |
1159 L098E lsr $0A,s | |
1160 ror $0B,s | |
1161 bcc L098C | |
1162 std ,s | |
1163 ldd $02,s | |
1164 std $0A,s | |
1165 subd #$0001 | |
1166 addd $0C,s | |
1167 bcc L09A8 | |
1168 ldd #$FFFF | |
1169 bra L09A8 | |
1170 L09A6 lsra | |
1171 rorb | |
1172 L09A8 lsr $0A,s | |
1173 ror $0B,s | |
1174 bcc L09A6 | |
1175 cmpa #$08 | |
1176 bcs L09B5 | |
1177 ldd #$0800 | |
1178 L09B5 std $0C,s | |
1179 lbsr L0BD8 | |
1180 lbcs L0AA3 | |
1181 ldx <$1E,y | |
1182 ldd <$1A,x | |
1183 cmpd $0E,x | |
1184 bne L09D7 | |
1185 lda <$1C,x | |
1186 cmpa $04,x | |
1187 bne L09D7 | |
1188 ldb <$1D,x | |
1189 cmpb $04,x | |
1190 bcs L09E5 | |
1191 L09D7 ldd $0E,x | |
1192 std <$1A,x | |
1193 lda $04,x | |
1194 sta <$1C,x | |
1195 clrb | |
1196 stb <$1D,x | |
1197 L09E5 incb | |
1198 stb $06,s | |
1199 ldx <$1E,y | |
1200 cmpb <$1E,x | |
1201 beq L0A21 | |
1202 lbsr L0C33 | |
1203 lbcs L0AA3 | |
1204 ldb $06,s | |
1205 cmpb $04,s | |
1206 bls L0A02 | |
1207 clra | |
1208 ldb $05,s | |
1209 bra L0A05 | |
1210 L0A02 ldd #$0100 | |
1211 L0A05 ldx $08,y | |
1212 leau d,x | |
1213 ldy $0C,s | |
1214 clra | |
1215 clrb | |
1216 os9 F$SchBit | |
1217 bcc L0A4E | |
1218 cmpy $08,s | |
1219 bls L0A21 | |
1220 sty $08,s | |
1221 std $0A,s | |
1222 lda $06,s | |
1223 sta $07,s | |
1224 L0A21 ldy <$10,s | |
1225 ldb $06,s | |
1226 cmpb $04,s | |
1227 bcs L0A32 | |
1228 bhi L0A31 | |
1229 tst $05,s | |
1230 bne L0A32 | |
1231 L0A31 clrb | |
1232 L0A32 ldx <$1E,y | |
1233 cmpb <$1D,x | |
1234 bne L09E5 | |
1235 ldb $07,s | |
1236 beq L0AA1 | |
1237 cmpb $06,s | |
1238 beq L0A47 | |
1239 stb $06,s | |
1240 lbsr L0C33 | |
1241 L0A47 ldx $08,y | |
1242 ldd $0A,s | |
1243 ldy $08,s | |
1244 L0A4E std $0A,s | |
1245 sty $08,s | |
1246 os9 F$AllBit | |
1247 ldy <$10,s | |
1248 ldb $06,s | |
1249 lbsr L0C0B | |
1250 bcs L0AA3 | |
1251 ldx <$1E,y | |
1252 lda $06,s | |
1253 deca | |
1254 sta <$1D,x | |
1255 clrb | |
1256 lsla | |
1257 rolb | |
1258 lsla | |
1259 rolb | |
1260 lsla | |
1261 rolb | |
1262 stb <$16,y | |
1263 ora $0A,s | |
1264 ldb $0B,s | |
1265 ldx $08,s | |
1266 ldy <$10,s | |
1267 std <$17,y | |
1268 stx <$1A,y | |
1269 ldd $02,s | |
1270 bra L0A97 | |
1271 L0A88 lsl <$18,y | |
1272 rol <$17,y | |
1273 rol <$16,y | |
1274 lsl <$1B,y | |
1275 rol <$1A,y | |
1276 L0A97 lsra | |
1277 rorb | |
1278 bcc L0A88 | |
1279 clrb | |
1280 ldd <$1A,y | |
1281 bra L0AAB | |
1282 L0AA1 ldb #$F8 | |
1283 L0AA3 ldy <$10,s | |
1284 lbsr L0C12 | |
1285 coma | |
1286 L0AAB leas $0E,s | |
1287 puls pc,u,y,x | |
1288 L0AAF clra | |
1289 lda $01,y | |
1290 bita #$80 | |
1291 bne L0B11 | |
1292 ldd $0F,y | |
1293 std $0B,y | |
1294 ldd <$11,y | |
1295 std $0D,y | |
1296 lbsr L0C63 | |
1297 bcc L0AC8 | |
1298 cmpb #$D5 | |
1299 bra L0B09 | |
1300 L0AC8 ldd <$14,y | |
1301 subd $0C,y | |
1302 addd <$1A,y | |
1303 tst $0E,y | |
1304 beq L0AD7 | |
1305 subd #$0001 | |
1306 L0AD7 pshs b,a | |
1307 ldu <$1E,y | |
1308 ldd $06,u | |
1309 subd #$0001 | |
1310 coma | |
1311 comb | |
1312 anda ,s+ | |
1313 andb ,s+ | |
1314 ldu <$1A,y | |
1315 std <$1A,y | |
1316 beq L0B0B | |
1317 tfr u,d | |
1318 subd <$1A,y | |
1319 pshs x,b,a | |
1320 addd <$17,y | |
1321 std <$17,y | |
1322 bcc L0B01 | |
1323 inc <$16,y | |
1324 L0B01 bsr L0B6E | |
1325 bcc L0B12 | |
1326 leas $04,s | |
1327 cmpb #$DB | |
1328 L0B09 bne L0B10 | |
1329 L0B0B lbsr L0CD4 | |
1330 bcc L0B1B | |
1331 L0B10 coma | |
1332 L0B11 rts | |
1333 L0B12 lbsr L0CD4 | |
1334 bcs L0B6B | |
1335 puls x,b,a | |
1336 std $03,x | |
1337 L0B1B ldu $08,y | |
1338 ldd <$11,y | |
1339 std $0B,u | |
1340 ldd $0F,y | |
1341 std $09,u | |
1342 tfr x,d | |
1343 clrb | |
1344 inca | |
1345 leax $05,x | |
1346 pshs x,b,a | |
1347 bra L0B56 | |
1348 L0B30 ldd -$02,x | |
1349 beq L0B63 | |
1350 std <$1A,y | |
1351 ldd -$05,x | |
1352 std <$16,y | |
1353 lda -$03,x | |
1354 sta <$18,y | |
1355 bsr L0B6E | |
1356 bcs L0B6B | |
1357 stx $02,s | |
1358 lbsr L0CD4 | |
1359 bcs L0B6B | |
1360 ldx $02,s | |
1361 clra | |
1362 clrb | |
1363 std -$05,x | |
1364 sta -$03,x | |
1365 std -$02,x | |
1366 L0B56 lbsr L0D38 | |
1367 bcs L0B6B | |
1368 ldx $02,s | |
1369 leax $05,x | |
1370 cmpx ,s | |
1371 bcs L0B30 | |
1372 L0B63 clra | |
1373 clrb | |
1374 sta <$19,y | |
1375 std <$1A,y | |
1376 L0B6B leas $04,s | |
1377 rts | |
1378 L0B6E pshs u,y,x,a | |
1379 ldx <$1E,y | |
1380 ldd $06,x | |
1381 subd #$0001 | |
1382 addd <$17,y | |
1383 std <$17,y | |
1384 ldd $06,x | |
1385 bcc L0B96 | |
1386 inc <$16,y | |
1387 bra L0B96 | |
1388 L0B87 lsr <$16,y | |
1389 ror <$17,y | |
1390 ror <$18,y | |
1391 lsr <$1A,y | |
1392 ror <$1B,y | |
1393 L0B96 lsra | |
1394 rorb | |
1395 bcc L0B87 | |
1396 clrb | |
1397 ldd <$1A,y | |
1398 beq L0BD6 | |
1399 ldd <$16,y | |
1400 lsra | |
1401 rorb | |
1402 lsra | |
1403 rorb | |
1404 lsra | |
1405 rorb | |
1406 tfr b,a | |
1407 ldb #$DB | |
1408 cmpa $04,x | |
1409 bhi L0BD5 | |
1410 inca | |
1411 sta ,s | |
1412 L0BB4 bsr L0BD8 | |
1413 bcs L0BB4 | |
1414 ldb ,s | |
1415 bsr L0C33 | |
1416 bcs L0BD5 | |
1417 ldx $08,y | |
1418 ldd <$17,y | |
1419 anda #$07 | |
1420 ldy <$1A,y | |
1421 os9 F$DelBit | |
1422 ldy $03,s | |
1423 ldb ,s | |
1424 bsr L0C0B | |
1425 bcc L0BD6 | |
1426 L0BD5 coma | |
1427 L0BD6 puls pc,u,y,x,a | |
1428 L0BD8 lbsr L0D72 | |
1429 bra L0BE5 | |
1430 L0BDD lbsr L0838 | |
1431 os9 F$IOQu | |
1432 bsr L0BF5 | |
1433 L0BE5 bcs L0BF4 | |
1434 ldx <$1E,y | |
1435 lda <$17,x | |
1436 bne L0BDD | |
1437 lda $05,y | |
1438 sta <$17,x | |
1439 L0BF4 rts | |
1440 L0BF5 ldu <$004B | |
1441 ldb <$36,u | |
1442 cmpb #$01 | |
1443 bls L0C02 | |
1444 cmpb #$03 | |
1445 bls L0C09 | |
1446 L0C02 clra | |
1447 lda $0D,u | |
1448 bita #$02 | |
1449 beq L0C0A | |
1450 L0C09 coma | |
1451 L0C0A rts | |
1452 L0C0B clra | |
1453 tfr d,x | |
1454 clrb | |
1455 lbsr L0D42 | |
1456 L0C12 pshs cc | |
1457 ldx <$1E,y | |
1458 lda $05,y | |
1459 cmpa <$17,x | |
1460 bne L0C31 | |
1461 clr <$17,x | |
1462 ldx <$004B | |
1463 lda <$11,x | |
1464 beq L0C31 | |
1465 lbsr L0838 | |
1466 ldx #$0001 | |
1467 os9 F$Sleep | |
1468 L0C31 puls pc,cc | |
1469 L0C33 clra | |
1470 tfr d,x | |
1471 clrb | |
1472 lbra L0CEB | |
1473 pshs u,x | |
1474 lbsr L0D40 | |
1475 bcs L0C47 | |
1476 lda $0A,y | |
1477 anda #$FE | |
1478 sta $0A,y | |
1479 L0C47 puls pc,u,x | |
1480 L0C49 ldd $0C,y | |
1481 subd <$14,y | |
1482 tfr d,x | |
1483 ldb $0B,y | |
1484 sbcb <$13,y | |
1485 cmpb <$19,y | |
1486 bcs L0C61 | |
1487 bhi L0C63 | |
1488 cmpx <$1A,y | |
1489 bcc L0C63 | |
1490 L0C61 clrb | |
1491 L0C62 rts | |
1492 L0C63 pshs u | |
1493 bsr L0CD4 | |
1494 bcs L0CBF | |
1495 clra | |
1496 clrb | |
1497 std <$13,y | |
1498 stb <$15,y | |
1499 ldu $08,y | |
1500 leax <$10,u | |
1501 lda $08,y | |
1502 ldb #$FC | |
1503 pshs b,a | |
1504 L0C7C ldd $03,x | |
1505 beq L0CA1 | |
1506 addd <$14,y | |
1507 tfr d,u | |
1508 ldb <$13,y | |
1509 adcb #$00 | |
1510 cmpb $0B,y | |
1511 bhi L0CAE | |
1512 bne L0C95 | |
1513 cmpu $0C,y | |
1514 bhi L0CAE | |
1515 L0C95 stb <$13,y | |
1516 stu <$14,y | |
1517 leax $05,x | |
1518 cmpx ,s | |
1519 bcs L0C7C | |
1520 L0CA1 clra | |
1521 clrb | |
1522 sta <$19,y | |
1523 std <$1A,y | |
1524 comb | |
1525 ldb #E$NES | |
1526 bra L0CBD | |
1527 L0CAE ldd ,x | |
1528 std <$16,y | |
1529 lda $02,x | |
1530 sta <$18,y | |
1531 ldd $03,x | |
1532 std <$1A,y | |
1533 L0CBD leas $02,s | |
1534 L0CBF puls pc,u | |
1535 L0CC1 pshs x,b | |
1536 lbsr L0D72 | |
1537 bcs L0CD0 | |
1538 clrb | |
1539 ldx #$0000 | |
1540 bsr L0CEB | |
1541 bcc L0CD2 | |
1542 L0CD0 stb ,s | |
1543 L0CD2 puls pc,x,b | |
1544 L0CD4 ldb $0A,y | |
1545 bitb #$04 | |
1546 bne L0C61 | |
1547 lbsr L0D72 | |
1548 bcs L0C62 | |
1549 ldb $0A,y | |
1550 orb #$04 | |
1551 stb $0A,y | |
1552 ldb <$34,y | |
1553 ldx <$35,y | |
1554 L0CEB lda #$03 | |
1555 L0CED pshs u,y,x,b,a | |
1556 lda $0A,y | |
1557 ora #$20 | |
1558 sta $0A,y | |
1559 ldu $03,y | |
1560 ldu $02,u | |
1561 bra L0D01 | |
1562 L0CFB lbsr L0838 | |
1563 os9 F$IOQu | |
1564 L0D01 lda $04,u | |
1565 bne L0CFB | |
1566 lda $05,y | |
1567 sta $04,u | |
1568 ldd ,s | |
1569 ldx $02,s | |
1570 pshs u | |
1571 bsr L0D26 | |
1572 puls u | |
1573 ldy $04,s | |
1574 pshs cc | |
1575 bcc L0D1C | |
1576 stb $02,s | |
1577 L0D1C lda $0A,y | |
1578 anda #$DF | |
1579 sta $0A,y | |
1580 clr $04,u | |
1581 puls pc,u,y,x,b,a,cc | |
1582 L0D26 pshs pc,x,b,a | |
1583 ldx $03,y | |
1584 ldd ,x | |
1585 ldx ,x | |
1586 addd $09,x | |
1587 addb ,s | |
1588 adca #$00 | |
1589 std $04,s | |
1590 puls pc,x,b,a | |
1591 L0D38 ldb <$34,y | |
1592 ldx <$35,y | |
1593 bra L0D42 | |
1594 L0D40 bsr L0D5B | |
1595 L0D42 lda #$06 | |
1596 pshs x,b,a | |
1597 ldd <$1C,y | |
1598 beq L0D51 | |
1599 ldx <$1E,y | |
1600 cmpd $0E,x | |
1601 L0D51 puls x,b,a | |
1602 lbeq L0CED | |
1603 comb | |
1604 ldb #E$DIDC | |
1605 rts | |
1606 L0D5B ldd $0C,y | |
1607 subd <$14,y | |
1608 tfr d,x | |
1609 ldb $0B,y | |
1610 sbcb <$13,y | |
1611 exg d,x | |
1612 addd <$17,y | |
1613 exg d,x | |
1614 adcb <$16,y | |
1615 rts | |
1616 L0D72 clrb | |
1617 pshs u,x | |
1618 ldb $0A,y | |
1619 andb #$46 | |
1620 beq L0D8F | |
1621 tfr b,a | |
1622 eorb $0A,y | |
1623 stb $0A,y | |
1624 andb #$01 | |
1625 beq L0D8F | |
1626 eorb $0A,y | |
1627 stb $0A,y | |
1628 bita #$02 | |
1629 beq L0D8F | |
1630 bsr L0D40 | |
1631 L0D8F puls pc,u,x | |
1632 L0D91 pshs u,x | |
1633 lbsr L0C49 | |
1634 bcs L0DAA | |
1635 bsr L0D72 | |
1636 bcs L0DAA | |
1637 lbsr L0D5B | |
1638 lbsr L0CEB | |
1639 bcs L0DAA | |
1640 lda $0A,y | |
1641 ora #$42 | |
1642 sta $0A,y | |
1643 L0DAA puls pc,u,x | |
1644 | |
1645 emod | |
1646 eom equ * | |
1647 end | |
1648 |