📄 ice159.lst
字号:
507 0019D 0906 bc port6, 4
508 0019E 1332 call delay
509 0019F 0E05 jbs port5, 0
510 001A0 0AA8 bs port64, output0
511 /**************************************/
512 001A1 port65_check:
513 001A1 180F mov a, @0x0f ;set P65 output,others input
514 001A2 0005 iow P5CR
515 001A3 18DF mov a, @0xdf
516 001A4 0006 iow P6CR
517 001A5 0B46 bs port6, 5
518 001A6 1332 call delay
519 001A7 0C05 jbc port5, 0
520 001A8 0AE9 bs port65, output1
521 001A9 0000 nop
522 001AA 0946 bc port6, 5
523 001AB 1332 call delay
524 001AC 0E05 jbs port5, 0
525 001AD 0AA9 bs port65, output0
526 /**************************************/
527 001AE port66_check:
528 001AE 180F mov a, @0x0f ;set P66 output,others input
529 001AF 0005 iow P5CR
530 001B0 18BF mov a, @0xbf
531 001B1 0006 iow P6CR
532 001B2 0B86 bs port6, 6
533 001B3 1332 call delay
534 001B4 0C05 jbc port5, 0
535 001B5 0AEA bs port66, output1
536 001B6 0000 nop
537 001B7 0986 bc port6, 6
538 001B8 1332 call delay
539 001B9 0E05 jbs port5, 0
540 001BA 0AAA bs port66, output0
541 /**************************************/
542 001BB port67_check:
543 001BB 180F mov a, @0x0f ;set P67 output,others input
544 001BC 0005 iow P5CR
545 001BD 187F mov a, @0x7f
546 001BE 0006 iow P6CR
547 001BF 0BC6 bs port6, 7
548 001C0 1332 call delay
549 001C1 0C05 jbc port5, 0
550 001C2 0AEB bs port67, output1
551 001C3 0000 nop
552 001C4 09C6 bc port6, 7
553 001C5 1332 call delay
554 001C6 0E05 jbs port5, 0
555 001C7 0AAB bs port67, output0
556 /**************************************/
557 001C8 p50pull_down:
558 001C8 18FF mov a, @0xff
559 001C9 000D iow PHCR
560 001CA 18FE mov a, @0xfe
561 001CB 000B iow PDCR
562 001CC 180F mov a, @0x0f
563 001CD 0005 iow P5CR
564 001CE 18FF mov a, @0xff
565 001CF 0006 iow P6CR
566 001D0 1332 call delay
567 001D1 0E05 jbs port5, 0
568 001D2 0A2C bs pulldown_buf,p50_down
569 001D3 0000 nop
570 /**************************************/
571 001D4 p67pull_high:
572 001D4 18FF mov a, @0xff
573 001D5 000B iow PDCR
574 001D6 187F mov a, @0x7f
575 001D7 000D iow PHCR
576 001D8 180F mov a, @0x0f
577 001D9 0005 iow P5CR
578 001DA 18FF mov a, @0xff
579 001DB 0006 iow P6CR
580 001DC 1332 call delay
581 001DD 0DC6 jbc port6, 7
582 001DE 0BED bs pullhigh_buf,p67_high
583 001DF 0000 nop
584
585 /**************************************/
586 001E0 p51pull_down:
587 001E0 18FF mov a, @0xff
588 001E1 000D iow PHCR
589 001E2 18FD mov a, @0xfd
590 001E3 000B iow PDCR
591 001E4 180F mov a, @0x0f
592 001E5 0005 iow P5CR
593 001E6 18FF mov a, @0xff
594 001E7 0006 iow P6CR
595 001E8 1332 call delay
596 001E9 0E45 jbs port5, 1
597 001EA 0A6C bs pulldown_buf,p51_down
598 001EB 0000 nop
599 /**************************************/
600 001EC p66pull_high:
601 001EC 18FF mov a, @0xff
602 001ED 000B iow PDCR
603 001EE 18BF mov a, @0xbf
604 001EF 000D iow PHCR
605 001F0 180F mov a, @0x0f
606 001F1 0005 iow P5CR
607 001F2 18FF mov a, @0xff
608 001F3 0006 iow P6CR
609 001F4 1332 call delay
610 001F5 0D86 jbc port6, 6
611 001F6 0BAD bs pullhigh_buf,p66_high
612 001F7 0000 nop
613 /**************************************/
614 001F8 p52pull_down:
615 001F8 18FF mov a, @0xff
616 001F9 000D iow PHCR
617 001FA 18FB mov a, @0xfb
618 001FB 000B iow PDCR
619 001FC 180F mov a, @0x0f
620 001FD 0005 iow P5CR
621 001FE 18FF mov a, @0xff
622 001FF 0006 iow P6CR
623 00200 1332 call delay
624 00201 0E85 jbs port5, 2
625 00202 0AAC bs pulldown_buf,p52_down
626 00203 0000 nop
627 /**************************************/
628 00204 p65pull_high:
629 00204 18FF mov a, @0xff
630 00205 000B iow PDCR
631 00206 18DF mov a, @0xdf
632 00207 000D iow PHCR
633 00208 180F mov a, @0x0f
634 00209 0005 iow P5CR
635 0020A 18FF mov a, @0xff
636 0020B 0006 iow P6CR
637 0020C 1332 call delay
638 0020D 0D46 jbc port6, 5
639 0020E 0B6D bs pullhigh_buf,p65_high
640 0020F 0000 nop
641
642 /**************************************/
643 00210 p53pull_down:
644 00210 18FF mov a, @0xff
645 00211 000D iow PHCR
646 00212 18F7 mov a, @0xf7
647 00213 000B iow PDCR
648 00214 180F mov a, @0x0f
649 00215 0005 iow P5CR
650 00216 18FF mov a, @0xff
651 00217 0006 iow P6CR
652 00218 1332 call delay
653 00219 0EC5 jbs port5, 3
654 0021A 0AEC bs pulldown_buf,p53_down
655 0021B 0000 nop
656 /**************************************/
657 0021C p64pull_high:
658 0021C 18FF mov a, @0xff
659 0021D 000B iow PDCR
660 0021E 18EF mov a, @0xef
661 0021F 000D iow PHCR
662 00220 180F mov a, @0x0f
663 00221 0005 iow P5CR
664 00222 18FF mov a, @0xff
665 00223 0006 iow P6CR
666 00224 1332 call delay
667 00225 0D06 jbc port6, 4
668 00226 0B2D bs pullhigh_buf,p64_high
669 00227 0000 nop
670 /**************************************/
671 00228 p60pull_down:
672 00228 18FF mov a, @0xff
673 00229 000D iow PHCR
674 0022A 18EF mov a, @0xef
675 0022B 000B iow PDCR
676 0022C 180F mov a, @0x0f
677 0022D 0005 iow P5CR
678 0022E 18FF mov a, @0xff
679 0022F 0006 iow P6CR
680 00230 1332 call delay
681 00231 0E06 jbs port6, 0
682 00232 0B2C bs pulldown_buf,p60_down
683 00233 0000 nop
684 /**************************************/
685 00234 p60pull_high:
686 00234 18FF mov a, @0xff
687 00235 000B iow PDCR
688 00236 18FE mov a, @0xfe
689 00237 000D iow PHCR
690 00238 180F mov a, @0x0f
691 00239 0005 iow P5CR
692 0023A 18FF mov a, @0xff
693 0023B 0006 iow P6CR
694 0023C 1332 call delay
695 0023D 0C06 jbc port6, 0
696 0023E 0A2D bs pullhigh_buf,p60_high
697 0023F 0000 nop
698
699 /**************************************/
700 00240 p61pull_down:
701 00240 18FF mov a, @0xff
702 00241 000D iow PHCR
703 00242 18DF mov a, @0xdf
704 00243 000B iow PDCR
705 00244 180F mov a, @0x0f
706 00245 0005 iow P5CR
707 00246 18FF mov a, @0xff
708 00247 0006 iow P6CR
709 00248 1332 call delay
710 00249 0E46 jbs port6, 1
711 0024A 0B6C bs pulldown_buf,p61_down
712 0024B 0000 nop
713 0024C p61pull_high:
714 0024C 18FF mov a, @0xff
715 0024D 000B iow PDCR
716 0024E 18FB mov a, @0xfb
717 0024F 000D iow PHCR
718 00250 180F mov a, @0x0f
719 00251 0005 iow P5CR
720 00252 18FF mov a, @0xff
721 00253 0006 iow P6CR
722 00254 1332 call delay
723 00255 0C46 jbc port6, 1
724 00256 0A6D bs pullhigh_buf,p61_high
725 00257 0000 nop
726 /**************************************/
727 00258 p62pull_down:
728 00258 18FF mov a, @0xff
729 00259 000D iow PHCR
730 0025A 18BF mov a, @0xbf
731 0025B 000B iow PDCR
732 0025C 180F mov a, @0x0f
733 0025D 0005 iow P5CR
734 0025E 18FF mov a, @0xff
735 0025F 0006 iow P6CR
736 00260 1332 call delay
737 00261 0E86 jbs port6, 2
738 00262 0BAC bs pulldown_buf,p62_down
739 00263 0000 nop
740 /**************************************/
741
742 00264 p62pull_high:
743 00264 18FF mov a, @0xff
744 00265 000B iow PDCR
745 00266 18FB mov a, @0xfb
746 00267 000D iow PHCR
747 00268 180F mov a, @0x0f
748 00269 0005 iow P5CR
749 0026A 18FF mov a, @0xff
750 0026B 0006 iow P6CR
751 0026C 1332 call delay
752 0026D 0C86 jbc port6, 2
753 0026E 0AAD bs pullhigh_buf,p62_high
754 0026F 0000 nop
755 /**************************************/
756 00270 p63pull_down:
757 00270 18FF mov a, @0xff
758 00271 000D iow PHCR
759 00272 187F mov a, @0x7f
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -