📄 clock.lst
字号:
897 ;clock.c: 336: _12c887_write(0x05,0x00);
898 06EA 01CC clrf ?__12c887_write
899 06EB 2EF7 goto L16
900 ;clock.c: 337: }
901 ;clock.c: 338: else
902 06EC l55
903 ;clock.c: 339: {
904 ;clock.c: 340: hour_alarm=_12c887_read(0x05);
905 06EC 3005 movlw 5
906 06ED 120A 118A 230F fcall __12c887_read
+ 120A 118A
907 06F2 0870 movf btemp,w
908 06F3 00A9 movwf _hour_alarm
909 ;clock.c: 341: hour_alarm++;
910 06F4 0AA9 incf _hour_alarm
911 ;clock.c: 342: _12c887_write(0x05,hour_alarm);
912 06F5 0829 movf _hour_alarm,w
913 06F6 00CC movwf ?__12c887_write
914 06F7 L16
915 06F7 3005 movlw 5
916 06F8 2F0F goto L15
917 ;clock.c: 343: }
918 ;clock.c: 344: }
919 ;clock.c: 345: else if (Down==1&&Down_USED==0)
920 06F9 l54
921 06F9 1283 bcf 3,5
922 06FA 1303 bcf 3,6 ;carry unused
923 06FB 18A0 btfsc _Down/(0+8),_Down& (0+7)
924 06FC 1920 btfsc _Down_USED/(0+8),_Down_USED& (0+7)
925 06FD 2F14 goto l57
926 ;clock.c: 346: {
927 ;clock.c: 347: Down_USED=1;
928 06FE 1520 bsf _Down_USED/(0+8),_Down_USED& (0+7)
929 ;clock.c: 348: if (minute_alarm==0x59)
930 06FF 082B movf _minute_alarm,w
931 0700 3A59 xorlw 89
932 0701 1D03 btfss 3,2
933 0702 2F05 goto l59
934 ;clock.c: 349: {
935 ;clock.c: 350: _12c887_write(0x03,0x00);
936 0703 01CC clrf ?__12c887_write
937 0704 2F0E goto L17
938 ;clock.c: 351: }
939 ;clock.c: 352: else
940 0705 l59
941 ;clock.c: 353: {
942 ;clock.c: 354: minute_alarm=_12c887_read(0x03);
943 0705 3003 movlw 3
944 0706 120A 118A 230F fcall __12c887_read
945 0709 0870 movf btemp,w
946 070A 00AB movwf _minute_alarm
947 ;clock.c: 355: minute_alarm++;
948 070B 0AAB incf _minute_alarm
949 ;clock.c: 356: _12c887_write(0x03,minute_alarm)
+ ;
950 070C 082B movf _minute_alarm,w
951 070D 00CC movwf ?__12c887_write
952 070E L17
953 070E 3003 movlw 3
954 070F L15
955 070F 120A 118A 2342 fcall __12c887_write
+ 120A 118A
956 ;clock.c: 357: }
957 ;clock.c: 358: }
958 ;clock.c: 360: if (Menu==1&&Menu_USED==0) {Menu
+ _USED=1;RB1=1;SSW=0;}
959 0714 l57
960 0714 1283 bcf 3,5
961 0715 1303 bcf 3,6 ;carry unused
962 0716 1B20 btfsc _Menu/(0+8),_Menu& (0+7)
963 0717 1BA0 btfsc _Menu_USED/(0+8),_Menu_USED& (0+7)
964 0718 0008 return
965 0719 17A0 bsf _Menu_USED/(0+8),_Menu_USED& (0+7)
966 071A 1486 bsf 6,1
967 071B 01A6 clrf _SSW
968 ;clock.c: 361: else {;}
969 ;clock.c: 362: }
970 071C 0008 return
971 071D _mcu_init
972 ;clock.c: 53: ADCON1=0x07;
973 071D 3007 movlw 7
974 071E 1683 bsf 3,5
975 071F 1303 bcf 3,6 ;carry unused
976 0720 009F movwf 31 ;volatile
977 ;clock.c: 54: TRISA=0x00;
978 0721 0185 clrf 5 ;volatile
979 ;clock.c: 55: RBPU=0x00;
980 0722 1381 bcf 1,7
981 ;clock.c: 56: TRISB=0b11111001;
982 0723 30F9 movlw -7
983 0724 0086 movwf 6 ;volatile
984 ;clock.c: 57: TRISC=0x00;
985 0725 0187 clrf 7 ;volatile
986 ;clock.c: 58: TRISD=0x00;
987 0726 0188 clrf 8 ;volatile
988 ;clock.c: 59: PORTA=0x00;
989 0727 1283 bcf 3,5
990 0728 0185 clrf 5 ;volatile
991 ;clock.c: 60: PORTB=0b00000011;
992 0729 3003 movlw 3
993 072A 0086 movwf 6 ;volatile
994 ;clock.c: 61: PORTC=0x00;
995 072B 0187 clrf 7 ;volatile
996 ;clock.c: 62: PORTD=0x00;
997 072C 0188 clrf 8 ;volatile
998 ;clock.c: 64: T1CON=0x01;
999 072D 3001 movlw 1
1000 072E 0090 movwf 16 ;volatile
1001 ;clock.c: 65: TMR1IE=1;
1002 072F 1683 bsf 3,5
1003 0730 140C bsf 12,0
1004 ;clock.c: 67: GIE=1;
1005 0731 178B bsf 11,7
1006 ;clock.c: 68: PEIE=1;
1007 0732 170B bsf 11,6
1008 ;clock.c: 69: }
1009 0733 0183 clrf 3 ;select bank 0
1010 0734 0008 return
1011 ;clock.c: 365: main()
1012 ;clock.c: 366: {
1013 0735 _main
1014 ;clock.c: 367: mcu_init();
1015 0735 271D fcall _mcu_init
1016 ;clock.c: 368: AlarmAllow=1;
1017 0736 1420 bsf _AlarmAllow/(0+8),_AlarmAllow& (0+7)
1018 ;clock.c: 369: RB2=1;
1019 0737 1506 bsf 6,2
1020 ;clock.c: 370: RB1=0;
1021 0738 1086 bcf 6,1
1022 ;clock.c: 371: DelayMs(100);
1023 0739 3064 movlw 100
1024 073A 120A 118A 2300 fcall _DelayMs
1025 ;clock.c: 372: RB2=0;
1026 073D 1106 bcf 6,2
1027 ;clock.c: 373: RB1=1;
1028 073E 1486 bsf 6,1
1029 ;clock.c: 375: lcd_init();
1030 073F 120A 118A 241C fcall _lcd_init
1031 ;clock.c: 376: lcd_puts(" WELCOME! ");
1032 0742 30B5 movlw low (((packed_strings shl (0+1)+185))| (
+ 0+16384))
1033 0743 00CC movwf ?_lcd_puts
1034 0744 3041 movlw high (((packed_strings shl (0+1)+185))|
+ (0+16384))
1035 0745 00CD movwf ?_lcd_puts+1
1036 0746 120A 118A 23F6 fcall _lcd_puts
1037 ;clock.c: 377: lcd_goto(0xc0);
1038 0749 30C0 movlw -64
1039 074A 120A 118A 2416 fcall _lcd_goto
1040 ;clock.c: 378: lcd_puts(" G.H.Wu ");
1041 074D 3095 movlw low (((packed_strings shl (0+1)+153))| (
+ 0+16384))
1042 074E 00CC movwf ?_lcd_puts
1043 074F 3041 movlw high (((packed_strings shl (0+1)+153))|
+ (0+16384))
1044 0750 00CD movwf ?_lcd_puts+1
1045 0751 120A 118A 23F6 fcall _lcd_puts
1046 ;clock.c: 379: DelayMs(250);
1047 0754 30FA movlw -6
1048 0755 120A 118A 2300 fcall _DelayMs
1049 ;clock.c: 380: DelayMs(250);
1050 0758 30FA movlw -6
1051 0759 120A 118A 2300 fcall _DelayMs
1052 ;clock.c: 381: DelayMs(250);
1053 075C 30FA movlw -6
1054 075D 120A 118A 2300 fcall _DelayMs
1055 ;clock.c: 382: DelayMs(250);
1056 0760 30FA movlw -6
1057 0761 120A 118A 2300 fcall _DelayMs
1058 ;clock.c: 383: DelayMs(250);
1059 0764 30FA movlw -6
1060 0765 120A 118A 2300 fcall _DelayMs
1061 ;clock.c: 384: DelayMs(250);
1062 0768 30FA movlw -6
1063 0769 120A 118A 2300 fcall _DelayMs
1064 ;clock.c: 385: DelayMs(250);
1065 076C 30FA movlw -6
1066 076D 120A 118A 2300 fcall _DelayMs
1067 ;clock.c: 386: DelayMs(250);
1068 0770 30FA movlw -6
1069 0771 120A 118A 2300 fcall _DelayMs
1070 ;clock.c: 387: DelayMs(250);
1071 0774 30FA movlw -6
1072 0775 120A 118A 2300 fcall _DelayMs
1073 ;clock.c: 388: DelayMs(250);
1074 0778 30FA movlw -6
1075 0779 120A 118A 2300 fcall _DelayMs
1076 ;clock.c: 389: DelayMs(250);
1077 077C 30FA movlw -6
1078 077D 120A 118A 2300 fcall _DelayMs
1079 ;clock.c: 390: DelayMs(250);
1080 0780 30FA movlw -6
1081 0781 120A 118A 2300 fcall _DelayMs
1082 ;clock.c: 391: DelayMs(250);
1083 0784 30FA movlw -6
1084 0785 120A 118A 2300 fcall _DelayMs
1085 ;clock.c: 392: DelayMs(250);
1086 0788 30FA movlw -6
1087 0789 120A 118A 2300 fcall _DelayMs
+ 120A 118A
1088 ;clock.c: 393: while(1)
1089 078E l65
1090 ;clock.c: 394: {
1091 ;clock.c: 395: GetTimeDate();
1092 078E 24E9 120A 118A fcall _GetTimeDate
1093 ;clock.c: 396: if (AlarmAllow==1&&hour==hour_al
+ arm&&minute==minute_alarm&&(second==1||second==
+ 3||second==5||second==7||second==9)) {RB1=0;RB2
+ =1;}
1094 0791 1C20 btfss _AlarmAllow/(0+8),_AlarmAllow& (0+7)
1095 0792 2FAE goto l67
1096 0793 0828 movf _hour,w
1097 0794 0629 xorwf _hour_alarm,w
1098 0795 1D03 btfss 3,2
1099 0796 2FAE goto l67
1100 0797 082A movf _minute,w
1101 0798 062B xorwf _minute_alarm,w
1102 0799 1D03 btfss 3,2
1103 079A 2FAE goto l67
1104 079B 0B2E decfsz _second,w
1105 079C 2F9E goto u731
1106 079D 2FE1 goto L19
1107 079E u731
1108 079E 082E movf _second,w
1109 079F 3A03 xorlw 3
1110 07A0 1903 btfsc 3,2
1111 07A1 2FE1 goto L19
1112 07A2 082E movf _second,w
1113 07A3 3A05 xorlw 5
1114 07A4 1903 btfsc 3,2
1115 07A5 2FE1 goto L19
1116 07A6 082E movf _second,w
1117 07A7 3A07 xorlw 7
1118 07A8 1903 btfsc 3,2
1119 07A9 2FE1 goto L19
1120 07AA 082E movf _second,w
1121 07AB 3A09 xorlw 9
1122 07AC 1903 btfsc 3,2
1123 07AD 2FE1 goto L19
1124 ;clock.c: 397: else
1125 07AE l67
1126 ;clock.c: 398: {
1127 ;clock.c: 399: if (hour<=0x22&&hour>=
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -