📄 foreground.lst
字号:
023c 00000056 563 .long 0x56
0240 0000024e 564 .long DBG153
0244 00000057 565 .long 0x57
0248 0000024e 566 .long DBG154
024c 00000058 567 .long 0x58
0250 0000024e 568 .long DBG156
0254 00000059 569 .long 0x59
0258 00000250 570 .long DBG157
025c 0000005a 571 .long 0x5a
0260 00000250 572 .long DBG158
0264 0000005c 573 .long 0x5c
0268 00000254 574 .long DBG159
026c 0000005d 575 .long 0x5d
0270 00000258 576 .long DBG160
0274 0000005e 577 .long 0x5e
0278 00000258 578 .long DBG161
027c 0000005f 579 .long 0x5f
0280 00000266 580 .long DBG162
0284 00000060 581 .long 0x60
0288 00000266 582 .long DBG163
028c 00000061 583 .long 0x61
0290 0000026a 584 .long DBG164
0294 00000062 585 .long 0x62
0298 00000270 586 .long DBG165
029c 00000063 587 .long 0x63
02a0 00000270 588 .long DBG166
02a4 00000064 589 .long 0x64
02a8 0000027e 590 .long DBG167
02ac 00000065 591 .long 0x65
02b0 0000027e 592 .long DBG168
02b4 00000066 593 .long 0x66
02b8 0000028e 594 .long DBG169
02bc 00000067 595 .long 0x67
02c0 00000294 596 .long DBG170
02c4 00000068 597 .long 0x68
02c8 00000294 598 .long DBG171
02cc 00000069 599 .long 0x69
02d0 000002a2 600 .long DBG172
02d4 0000006a 601 .long 0x6a
02d8 000002a2 602 .long DBG173
02dc 0000006b 603 .long 0x6b
02e0 000002a6 604 .long DBG174
02e4 0000006c 605 .long 0x6c
02e8 000002ac 606 .long DBG175
02ec 0000006d 607 .long 0x6d
02f0 000002ac 608 .long DBG176
02f4 0000006e 609 .long 0x6e
02f8 000002ba 610 .long DBG177
02fc 0000006f 611 .long 0x6f
0300 000002ba 612 .long DBG178
0304 00000070 613 .long 0x70
0308 000002be 614 .long DBG179
030c 00000071 615 .long 0x71
0310 000002c4 616 .long DBG180
0314 00000072 617 .long 0x72
0318 000002c4 618 .long DBG181
031c 00000073 619 .long 0x73
620 .pseg foreground_code
621 .global _main
622 _main:
623 ; ENTRY
624 DBG11:
625 ; flash_ptr in reg size 2
626 ; ram_ptr in reg size 2
627 ; i in reg size 1
628 ; {
629 DBG12:
630 ; WDTCTL = (0x5A00) + (0x0080) ;
631 DBG13:
0000 b240805a2001 632 mov #0x5a80,&0x120
633 DBG16:
634 DBG15:
635 DBG14:
636 ; init_sys();
637 ; {
638 ; if (!check_rtc_sumcheck())
0006 b0120000 639 call #_check_rtc_sumcheck
000a 0c93 640 cmp #0x0,r12
000c 0f20 641 jne main_L1
642 DBG18:
643 DBG17:
644 ; {
645 ; rtc.second = 1;
000e d2430000 646 mov.b #0x1,&_rtc
647 DBG19:
648 ; rtc.minute = 1;
0012 d2430100 649 mov.b #0x1,&_rtc+0x1
650 DBG20:
651 ; rtc.hour = 1;
0016 d2430200 652 mov.b #0x1,&_rtc+0x2
653 DBG21:
654 ; rtc.day = 1;
001a d2430300 655 mov.b #0x1,&_rtc+0x3
656 DBG22:
657 ; rtc.month = 1;
001e d2430500 658 mov.b #0x1,&_rtc+0x5
659 DBG23:
660 ; rtc.year = 5;
0022 f24005000600 661 mov.b #0x5,&_rtc+0x6
662 DBG24:
663 ; set_rtc_sumcheck();
0028 b0120000 664 call #_set_rtc_sumcheck
665 DBG26:
666 DBG25:
667 ; }
668 main_L1:
669 ; P1SEL &= ~( (0x0001) + (0x0002) );
002c 7c40fc00 670 mov.b #0xfc,r12
0030 c2fc2600 671 and.b r12,&0x26
672 DBG27:
673 ; P1IES |= (0x0001) + (0x0002) ;
0034 7d400300 674 mov.b #0x3,r13
0038 c2dd2400 675 bis.b r13,&0x24
676 DBG28:
677 ; P1DIR &= ~( (0x0001) + (0x0002) );
003c c2fc2200 678 and.b r12,&0x22
679 DBG29:
680 ; P1IFG = 0;
0040 c2432300 681 mov.b #0x0,&0x23
682 DBG30:
683 ; P1IE |= (0x0001) + (0x0002) ;
0044 c2dd2500 684 bis.b r13,&0x25
685 DBG34:
686 DBG33:
687 DBG32:
688 DBG31:
689 ; ReadDataFromFlash();
690 ; {
691 ; char * flash_ptr;
692 ; char * ram_ptr;
693 ; uint8 i;
694 ; flash_ptr = (char *)0x1010;
0048 3d401010 695 mov #0x1010,r13
696 DBG35:
697 ; ram_ptr = (char *)&emeter.ucFlashOperated[0];
004c 3e403800 698 mov #_emeter+0x38,r14
699 DBG36:
700 ; for(i=0;i< 38 ;i++)
0050 4c43 701 mov.b #0x0,r12
702 main_L2:
703 ; {
704 DBG37:
705 ; * ram_ptr++ = * flash_ptr++;
706 DBG38:
0052 0f4e 707 mov r14,r15
0054 1e53 708 add #0x1,r14
0056 ff4d0000 709 mov.b @r13+,0(r15)
710 DBG39:
005a 5c53 711 add.b #0x1,r12
005c 7c902600 712 cmp.b #0x26,r12
0060 f82b 713 jnc main_L2
714 DBG43:
715 DBG42:
716 DBG41:
717 DBG40:
718 ; }
719 ; DefaultSetting();
720 ; {
721 ; if((emeter.ucFlashOperated[0] != 0x55) || (emeter.ucFlashOperated[1] != 0x55))
0062 7c405500 722 mov.b #0x55,r12
0066 c29c3800 723 cmp.b r12,&_emeter+0x38
006a 0320 724 jne main_L4
006c c29c3900 725 cmp.b r12,&_emeter+0x39
0070 3e24 726 jeq main_L3
727 main_L4:
728 ; {
729 DBG44:
730 ; emeter.ucFlashOperated[0] = 0x55;
731 DBG45:
0072 7c405500 732 mov.b #0x55,r12
0076 c24c3800 733 mov.b r12,&_emeter+0x38
734 DBG46:
735 ; emeter.ucFlashOperated[1] = 0x55;
007a c24c3900 736 mov.b r12,&_emeter+0x39
737 DBG47:
738 ; emeter.f_Cz1 = ( 0.0000270576 *100) ;
007e b2401e533a00 739 mov #0x531e,&_emeter+0x3a
0084 b240313b3c00 740 mov #0x3b31,&_emeter+0x3c
741 DBG48:
742 ; emeter.f_Cz2 = ( 0.0000455807 *100) ;
008a b240dc5b3e00 743 mov #0x5bdc,&_emeter+0x3e
0090 b240953b4000 744 mov #0x3b95,&_emeter+0x40
745 DBG49:
746 ; emeter.l_PowerOffset1 = 0;
0096 82434600 747 mov #0x0,&_emeter+0x46
009a 82434800 748 mov #0x0,&_emeter+0x48
749 DBG50:
750 ; emeter.l_PowerOffset2 = 0;
009e 82434a00 751 mov #0x0,&_emeter+0x4a
00a2 82434c00 752 mov #0x0,&_emeter+0x4c
753 DBG51:
754 ; emeter.f_PhaseCorr1 = 0;
00a6 0c43 755 mov #0x0,r12
00a8 0d43 756 mov #0x0,r13
00aa 824c4e00 757 mov r12,&_emeter+0x4e
00ae 824d5000 758 mov r13,&_emeter+0x50
759 DBG52:
760 ; emeter.f_PhaseCorr2 = 0;
00b2 824c5200 761 mov r12,&_emeter+0x52
00b6 824d5400 762 mov r13,&_emeter+0x54
763 DBG53:
764 ; emeter.ui_GainCorr1 = 0x4000;
00ba 3c400040 765 mov #0x4000,r12
00be 824c4200 766 mov r12,&_emeter+0x42
767 DBG54:
768 ; emeter.ui_GainCorr2 = 0x4000;
00c2 824c4400 769 mov r12,&_emeter+0x44
770 DBG55:
771 ; emeter.ui_SD16_CurrentCorr1 = 2300;
00c6 b240fc085600 772 mov #0x8fc,&_emeter+0x56
773 DBG56:
774 ; emeter.ui_SD16_CurrentCorr2 = 2228;
00cc b240b4085800 775 mov #0x8b4,&_emeter+0x58
776 DBG57:
777 ; emeter.ui_SD16_VoltageCorr1 = 9359;
00d2 b2408f245a00 778 mov #0x248f,&_emeter+0x5a
779 DBG58:
780 ; emeter.ul_TempSampleOffset = 2680 ;
00d8 b240780a5c00 781 mov #0xa78,&_emeter+0x5c
782 DBG59:
783 ; store_flash_var((char *)0x1010,(char *)&emeter.ucFlashOperated[0], 38 );
00de 3e402600 784 mov #0x26,r14
00e2 3d403800 785 mov #_emeter+0x38,r13
00e6 3c401010 786 mov #0x1010,r12
00ea b0120000 787 call #_store_flash_var
788 DBG61:
789 DBG60:
790 ; }
791 main_L3:
792 DBG62:
793 ; init_bt();
794 DBG63:
795 ; {
796 DBG64:
797 ; LCDCTL = 0x03D;
798 DBG65:
00ee f2403d009000 799 mov.b #0x3d,&0x90
800 DBG66:
801 ; BTCTL = (0x00) | ( (0x02) ) | ( (0x20) ) ;
00f4 f24022004000 802 mov.b #0x22,&0x40
803 DBG67:
804 ; IE2 |= (0x80) ;
00fa 7c408000 805 mov.b #0x80,r12
00fe c2dc0100 806 bis.b r12,&0x1
807 DBG71:
808 DBG70:
809 DBG69:
810 DBG68:
811 ; init_TA();
812 ; {
813 ; TACTL = (0x0004) | (1*0x100) ;
0102 b24004016001 814 mov #0x104,&0x160
815 DBG72:
816 ; TACTL |= (2*0x10) ;
0108 b2d020006001 817 bis #0x20,&0x160
818 DBG73:
819 ; TACCR0 = 8 ;
010e b2427201 820 mov #0x8,&0x172
821 DBG74:
822 ; TACCTL0 = (0x0010) ;
0112 b24010006201 823 mov #0x10,&0x162
824 DBG78:
825 DBG77:
826 DBG76:
827 DBG75:
828 ; init_fll();
829 ; {
830 ; FLL_CTL0 |= (0x20) ;
0118 f2d020005300 831 bis.b #0x20,&0x53
832 DBG79:
833 ; SCFI0 = (0x00) ;
011e c2435000 834 mov.b #0x0,&0x50
835 DBG80:
836 ; SCFQCTL = 32 - 1;
0122 f2401f005200 837 mov.b #0x1f,&0x52
838 DBG81:
839 ; FLL_CTL0 |= (0x80) ;
0128 c2dc5300 840 bis.b r12,&0x53
841 DBG85:
842 DBG84:
843 DBG83:
844 DBG82:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -