📄 24lc04q.lst
字号:
559 ;24LC04Q.C: 255: }
560 ;24LC04Q.C: 256: i=rx();
561 0702 2675 fcall _rx
562 0703 00E8 movwf ?a_iic_read+2
563 0704 01E9 clrf ?a_iic_read+3
564 ;24LC04Q.C: 261: dlay();
565 0705 2633 fcall _dlay
566 ;24LC04Q.C: 262: dlay();
567 0706 2633 fcall _dlay
568 ;24LC04Q.C: 263: return(i);
569 0707 0868 movf ?a_iic_read+2,w
570 ;24LC04Q.C: 265: }
571 0708 0008 return
572 0709 _iic_write
573 ; _START_HAdrr assigned to ?a_iic_write+0
574 0000 _iic_write$START_HAdrr set ?a_iic_write
575 ; _Start_Address assigned to ?a_iic_write+2
576 0000 _iic_write$Start_Address set ?a_iic_write+2
577 ; _Start_Bank assigned to ?a_iic_write+4
578 0000 _iic_write$Start_Bank set ?a_iic_write+4
579 ;24LC04Q.C: 137: int Start_Address,Start_Bank,S
+ TART_HAdrr;
580 0709 0183 clrf 3 ;select bank 0
581 070A 0821 movf _EEType,w
582 070B 3A08 xorlw 8
583 070C 1D03 btfss 3,2
584 070D 2F37 goto l16
585 ;24LC04Q.C: 140: {
586 070E 0867 movf ?_iic_write+1,w
587 070F 3A80 xorlw 128
588 0710 00F2 movwf btemp
589 0711 3081 movlw 129
590 0712 0272 subwf btemp,w
591 0713 3000 movlw 0
592 ;set bank bits for (((?_iic_write+0)))
593 0714 1903 btfsc 3,2
594 0715 0266 subwf ?_iic_write,w
595 0716 1C03 btfss 3,0
596 0717 2F32 goto l17
597 ;24LC04Q.C: 142: {
598 0718 30FF movlw 255
599 0719 0566 andwf ?_iic_write,w
600 071A 00EA movwf ?a_iic_write+2
601 071B 01EB clrf ?a_iic_write+3
602 ;24LC04Q.C: 144: Start_Bank=Start_Buf>>8;
603 071C 0867 movf ?_iic_write+1,w
604 071D 00F3 movwf btemp+1
605 071E 0866 movf ?_iic_write,w
606 071F 00F2 movwf btemp
607 0720 3008 movlw 8
608 0721 00F4 movwf btemp+2
609 0722 u75
610 0722 0D73 rlf btemp+1,w
611 0723 0CF3 rrf btemp+1
612 0724 0CF2 rrf btemp
613 0725 0BF4 decfsz btemp+2
614 0726 2F22 goto u75
615 0727 0872 movf btemp,w
616 0728 00EC movwf ?a_iic_write+4
617 0729 0873 movf btemp+1,w
618 072A 00ED movwf ?a_iic_write+5
619 ;24LC04Q.C: 145: Start_Bank=Start_Bank<<1;
620 072B 1003 bcf 3,0
621 072C 0DEC rlf ?a_iic_write+4
622 072D 0DED rlf ?a_iic_write+5
623 ;24LC04Q.C: 147: Start_Bank=Start_Bank|0xa0;
624 072E 30A0 movlw 160
625 072F 04EC iorwf ?a_iic_write+4
626 ;24LC04Q.C: 148: asm("nop");
627 0730 0000 nop ;#
628 ;24LC04Q.C: 149: }
629 0731 2F4D goto l19
630 0732 l17
631 ;24LC04Q.C: 151: {
632 0732 0866 movf ?_iic_write,w
633 0733 00EA movwf ?a_iic_write+2
634 0734 0867 movf ?_iic_write+1,w
635 0735 00EB movwf ?a_iic_write+3
636 0736 2F4A goto L1
637 ;24LC04Q.C: 153: Start_Bank=0xa0;
638 ;24LC04Q.C: 154: }
639 ;24LC04Q.C: 156: }
640 0737 l16
641 ;24LC04Q.C: 158: {
642 0737 30FF movlw 255
643 0738 0566 andwf ?_iic_write,w
644 0739 00EA movwf ?a_iic_write+2
645 073A 01EB clrf ?a_iic_write+3
646 ;24LC04Q.C: 160: START_HAdrr=Start_Buf>>8;
647 073B 0867 movf ?_iic_write+1,w
648 073C 00F3 movwf btemp+1
649 073D 0866 movf ?_iic_write,w
650 073E 00F2 movwf btemp
651 073F 3008 movlw 8
652 0740 00F4 movwf btemp+2
653 0741 u85
654 0741 0D73 rlf btemp+1,w
655 0742 0CF3 rrf btemp+1
656 0743 0CF2 rrf btemp
657 0744 0BF4 decfsz btemp+2
658 0745 2F41 goto u85
659 0746 0872 movf btemp,w
660 0747 00E8 movwf ?a_iic_write
661 0748 0873 movf btemp+1,w
662 0749 00E9 movwf ?a_iic_write+1
663 074A L1
664 ;24LC04Q.C: 161: Start_Bank=0xa0;
665 074A 30A0 movlw 160
666 074B 00EC movwf ?a_iic_write+4
667 074C 01ED clrf ?a_iic_write+5
668 074D l19
669 ;24LC04Q.C: 162: }
670 ;24LC04Q.C: 165: start( );
671 074D 265C 120A 118A fcall _start
672 ;24LC04Q.C: 167: tx(Start_Bank);
673 0750 086C movf ?a_iic_write+4,w
674 0751 2639 120A 118A fcall _tx
675 ;24LC04Q.C: 170: if(EEType==32)
676 0754 0821 movf _EEType,w
677 0755 3A20 xorlw 32
678 0756 1D03 btfss 3,2
679 0757 2F5C goto l20
680 ;24LC04Q.C: 171: {
681 0758 0868 movf ?a_iic_write,w
682 0759 2639 120A 118A fcall _tx
683 075C l20
684 ;24LC04Q.C: 173: }
685 075C 086A movf ?a_iic_write+2,w
686 075D 2639 120A 118A fcall _tx
687 ;24LC04Q.C: 175: tx(WriteDate);
688 0760 0824 movf _WriteDate,w
689 0761 2639 120A 118A fcall _tx
690 ;24LC04Q.C: 180: stop( );
691 0764 2E69 ljmp _stop
692 0765 _writeeeprom
693 ; _Len assigned to ?a_writeeeprom+0
694 0000 _writeeeprom$Len set ?a_writeeeprom
695 ; _i assigned to ?a_writeeeprom+1
696 0000 _writeeeprom$i set ?a_writeeeprom+1
697 ;_Len stored from w
698 0765 0183 clrf 3 ;select bank 0
699 0766 00E3 movwf ?a_writeeeprom
700 ;24LC04Q.C: 331: int i;
701 0767 301E movlw 30
702 0768 0263 subwf ?a_writeeeprom,w
703 0769 1C03 btfss 3,0
704 076A 2F6E goto u250
705 076B 08E3 movf ?a_writeeeprom
706 076C 1903 btfsc 3,2
707 076D 2FA1 goto l41
708 076E u250
709 ;24LC04Q.C: 334: {
710 076E 01E4 clrf ?a_writeeeprom+1
711 076F 01E5 clrf ?a_writeeeprom+2
712 0770 l45
713 0770 0863 movf ?a_writeeeprom,w
714 0771 00F2 movwf btemp
715 0772 01F3 clrf btemp+1
716 0773 0865 movf ?a_writeeeprom+2,w
717 0774 3A80 xorlw 128
718 0775 00F4 movwf btemp+2
719 0776 0873 movf btemp+1,w
720 0777 3A80 xorlw 128
721 0778 0274 subwf btemp+2,w
722 0779 1D03 btfss 3,2
723 077A 2F7D goto u275
724 077B 0872 movf btemp,w
725 077C 0264 subwf ?a_writeeeprom+1,w
726 077D u275
727 077D 1803 btfsc 3,0
728 077E 2F9F goto l43
729 ;24LC04Q.C: 336: {
730 ;24LC04Q.C: 337: WriteDate=*WriteBuf;
731 077F 1283 bcf 3,5
732 0780 1303 bcf 3,6 ;carry unused
733 0781 0862 movf ?_writeeeprom+2,w
734 0782 0084 movwf 4
735 0783 1383 bcf 3,7
736 0784 0800 movf 0,w
737 0785 00A4 movwf _WriteDate
738 ;24LC04Q.C: 338: asm("nop");
739 0786 0000 nop ;#
740 ;24LC04Q.C: 339: asm("nop");
741 0787 0000 nop ;#
742 ;24LC04Q.C: 340: iic_write(StartAddr);
743 0788 0860 movf ?_writeeeprom,w
744 0789 00E6 movwf ?_iic_write
745 078A 0861 movf ?_writeeeprom+1,w
746 078B 00E7 movwf ?_iic_write+1
747 078C 2709 120A 118A fcall _iic_write
748 ;24LC04Q.C: 341: asm("nop");
749 078F 0000 nop ;#
750 ;24LC04Q.C: 343: delay1ms(10);
751 0790 300A movlw 10
752 0791 2623 fcall _delay1ms
753 ;24LC04Q.C: 345: if(err_flag==1)
754 0792 1CA0 btfss _err_flag/(0+8),_err_flag& (0+7)
755 0793 2F97 goto l46
756 ;24LC04Q.C: 346: {
757 0794 1407 bsf 7,0
758 ;24LC04Q.C: 348: RC1=1;
759 0795 1487 bsf 7,1
760 0796 2FA1 goto l41
761 ;24LC04Q.C: 349: return 0;
762 0797 l46
763 ;24LC04Q.C: 351: }
764 0797 0AE2 incf ?_writeeeprom+2
765 ;24LC04Q.C: 353: StartAddr++;
766 0798 0AE0 incf ?_writeeeprom
767 0799 1903 btfsc 3,2
768 079A 0AE1 incf ?_writeeeprom+1
769 ;24LC04Q.C: 355: }
770 079B 0AE4 incf ?a_writeeeprom+1
771 079C 1903 btfsc 3,2
772 079D 0AE5 incf ?a_writeeeprom+2
773 079E 2F70 goto l45
774 079F l43
775 ;24LC04Q.C: 356: return 1 ;
776 079F 3001 movlw 1
777 07A0 2FA2 goto l40
778 07A1 l41
779 07A1 3000 movlw 0
780 ;24LC04Q.C: 387: }
781 07A2 l40
782 07A2 0183 clrf 3 ;select bank 0
783 07A3 0008 return
784 07A4 _DELOneCard
785 ;24LC04Q.C: 322: BJCardBuf[0]=0xff;
786 07A4 30FF movlw -1
787 07A5 0183 clrf 3 ;select bank 0
788 07A6 00BB movwf _BJCardBuf
789 ;24LC04Q.C: 323: BJCardBuf[1]=0xff;
790 07A7 00BC movwf _BJCardBuf+1
791 ;24LC04Q.C: 324: BJCardBuf[2]=0Xff;
792 07A8 00BD movwf _BJCardBuf+2
793 ;24LC04Q.C: 325: writeeeprom(3,AdddrBuf,BJCardB
+ uf);
794 07A9 085E movf ?_DELOneCard,w
795 07AA 00E0 movwf ?_writeeeprom
796 07AB 085F movf ?_DELOneCard+1,w
797 07AC 00E1 movwf ?_writeeeprom+1
798 07AD 303B movlw _BJCardBuf
799 07AE 00E2 movwf ?_writeeeprom+2
800 07AF 3003 movlw 3
801 07B0 2F65 ljmp _writeeeprom
802
803 psect text12
804 0000
805 0000
806 0000
807 0000
808 0000
809 0000
810 0000
811 0000
812 0000
813 0000
814 0000
815 0000
816 0000
817 0000
818 0000
819 0000
820 0000
821 0000
822 0000
823 0000
824 0000
825 0000
826 0000
827 0000
828 0000
829 0000
830 0000
831 0000
832 0000
833 0000
834 0000
835 0000
836 0000
837 0000
838 0000
839 0000
840 0000
841 0000
842 0000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -