⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sd16.lst

📁 FE42X单相防窃电电表DEMO(编译器 AQ430 AQ430 V2.0.6.5)
💻 LST
📖 第 1 页 / 共 5 页
字号:
014c 0000001c      589     .long 0x1c
0150 00000082      590     .long DBG60
0154 0000001d      591     .long 0x1d
                   592     .pseg SD16_code
                   593     .global _tpd_gen
                   594 _tpd_gen:
                   595 ; ENTRY
                   596 DBG36:
                   597 ; x1 in reg r15 size 2
                   598 ; x2 in reg r14 size 2
                   599 ; {
                   600 DBG37:
                   601 ;   register int16_t x1;
                   602 ;   register int16_t x2;
                   603 ;   x1 = rndnum;
                   604 DBG38:
0044 1f420000      605     mov &_rndnum,r15
                   606 DBG39:
                   607 ;     x2 = 0;
0048 0e43          608     mov #0x0,r14
                   609 DBG40:
                   610 ;   /$
004a 0e8f          611     sub r15,r14
                   612 DBG41:
004c 0f5f          613     rla r15
                   614 DBG42:
004e 0e5f          615     add r15,r14
                   616 DBG43:
0050 0f5f          617     rla r15
                   618 DBG44:
0052 0e8f          619     sub r15,r14
                   620 DBG45:
0054 0f5f          621     rla r15
                   622 DBG46:
0056 0f5f          623     rla r15
                   624 DBG47:
0058 0e5f          625     add r15,r14
                   626 DBG48:
005a 0f5f          627     rla r15
                   628 DBG49:
005c 0f5f          629     rla r15
                   630 DBG50:
005e 0e8f          631     sub r15,r14
                   632 DBG51:
0060 0f5f          633     rla r15
                   634 DBG52:
0062 0e5f          635     add r15,r14
                   636 DBG53:
0064 0f5f          637     rla r15
                   638 DBG54:
0066 0f5f          639     rla r15
                   640 DBG55:
0068 0f5f          641     rla r15
                   642 DBG56:
006a 0e8f          643     sub r15,r14
                   644 DBG57:
                   645 ; $/
                   646 ;   x2 = (x2 + 13849) & 0x3FFF;
006c 3e501936      647     add #0x3619,r14
0070 3ef0ff3f      648     and #0x3fff,r14
                   649 DBG58:
                   650 ;   tpdnum = rndnum + x2;
0074 1c420000      651     mov &_rndnum,r12
0078 0c5e          652     add r14,r12
007a 824c0200      653     mov r12,&_tpdnum
                   654 DBG59:
                   655 ;   rndnum = x2;
007e 824e0000      656     mov r14,&_rndnum
                   657 DBG61:
                   658 DBG60:
                   659 ; EXIT
0082 3041          660     ret
                   661     .dbgseg dbg_syms
0140 00000000      662     .long 0x0
0144 000000fc      663     .long DBG29
0148 00000000      664     .long 0x0
014c 00000000      665     .long 0x0
0150 00010002      666     .long 0x10002
0154 00000000      667     .long 0x0
0158 00000350      668     .long DBG30
015c 00000002      669     .long 0x2
0160 00000000      670     .long 0x0
0164 00010002      671     .long 0x10002
0168 504e5f5f      672     .long 0x504e5f5f
016c 534d5241      673     .long 0x534d5241
0170 00000000      674     .long 0x0
0174 00000000      675     .long 0x0
0178 00010002      676     .long 0x10002
017c 00003178      677     .long 0x3178
0180 00000000      678     .long 0x0
0184 000f0102      679     .long 0xf0102
0188 00000004      680     .long 0x4
018c 0004ffff      681     .long 0x4ffff
0190 00003278      682     .long 0x3278
0194 00000000      683     .long 0x0
0198 000e0102      684     .long 0xe0102
019c 00000004      685     .long 0x4
01a0 0004ffff      686     .long 0x4ffff
01a4 0066652e      687     .long 0x66652e
01a8 00000000      688     .long 0x0
01ac 00000082      689     .long DBG61
01b0 00000000      690     .long 0x0
01b4 01650001      691     .long 0x1650001
01b8 00000000      692     .long 0x0
01bc 00000090      693     .long 0x90
01c0 00000000      694     .long 0x0
01c4 00000000      695     .long 0x0
01c8 00000000      696     .long 0x0
                   697     .pseg SD16_code
                   698 DBG32:
                   699     .dbgseg dbg_syms
01cc 5f647074      700     .long 0x5f647074
01d0 006e6567      701     .long 0x6e6567
01d4 00000084      702     .long DBG32
01d8 00000000      703     .long 0x0
01dc 00ff0001      704     .long 0xff0001
                   705 ; }
                   706 ; int16_t dc_filter(register int32_t *p, register int16_t x)
                   707 DBG31:
01e0 00000000      708     .long 0x0
01e4 000001fc      709     .long DBG66
01e8 00000084      710     .long _dc_filter
01ec 00000044      711     .long 0x44
01f0 01020001      712     .long 0x1020001
01f4 00000208      713     .long DBG35
01f8 00000042      714     .long DBG63-DBG64
01fc 00000158      715     .long DBG65
0200 0000030c      716     .long DBG62
0204 00000000      717     .long 0x0
                   718     .pseg SD16_code
                   719 DBG64:
                   720     .dbgseg dbg_syms
                   721 DBG35:
0208 0066622e      722     .long 0x66622e
020c 00000000      723     .long 0x0
0210 00000084      724     .long DBG64
0214 00000000      725     .long 0x0
0218 01650001      726     .long 0x1650001
021c 00000000      727     .long 0x0
0220 00000095      728     .long 0x95
0224 00000000      729     .long 0x0
0228 00000334      730     .long DBG67
022c 00000000      731     .long 0x0
                   732     .dbgseg dbg_line
                   733 DBG65:
0158 000001e0      734     .long DBG31
015c 00000000      735     .long 0x0
0160 00000084      736     .long _dc_filter
0164 00000001      737     .long 0x1
0168 00000084      738     .long DBG69
016c 00000002      739     .long 0x2
0170 00000084      740     .long DBG70
0174 0000000e      741     .long 0xe
0178 0000008c      742     .long DBG71
017c 00000011      743     .long 0x11
0180 0000008e      744     .long DBG72
0184 00000012      745     .long 0x12
0188 00000090      746     .long DBG73
018c 00000013      747     .long 0x13
0190 00000092      748     .long DBG74
0194 00000014      749     .long 0x14
0198 00000096      750     .long DBG75
019c 00000015      751     .long 0x15
01a0 00000098      752     .long DBG76
01a4 00000016      753     .long 0x16
01a8 0000009a      754     .long DBG77
01ac 00000017      755     .long 0x17
01b0 0000009c      756     .long DBG78
01b4 00000018      757     .long 0x18
01b8 0000009e      758     .long DBG79
01bc 00000019      759     .long 0x19
01c0 000000a0      760     .long DBG80
01c4 0000001a      761     .long 0x1a
01c8 000000a2      762     .long DBG81
01cc 0000001b      763     .long 0x1b
01d0 000000a6      764     .long DBG82
01d4 0000001c      765     .long 0x1c
01d8 000000a8      766     .long DBG83
01dc 0000001d      767     .long 0x1d
01e0 000000a8      768     .long DBG84
01e4 0000001e      769     .long 0x1e
01e8 000000aa      770     .long DBG85
01ec 0000001f      771     .long 0x1f
01f0 000000ac      772     .long DBG86
01f4 00000020      773     .long 0x20
01f8 000000ae      774     .long DBG87
01fc 00000021      775     .long 0x21
0200 000000b2      776     .long DBG88
0204 00000022      777     .long 0x22
0208 000000b2      778     .long DBG89
020c 00000023      779     .long 0x23
0210 000000b4      780     .long DBG90
0214 00000024      781     .long 0x24
0218 000000b8      782     .long DBG91
021c 00000025      783     .long 0x25
0220 000000bc      784     .long DBG92
0224 00000026      785     .long 0x26
0228 000000c0      786     .long DBG93
022c 00000027      787     .long 0x27
0230 000000c2      788     .long DBG94
0234 0000002a      789     .long 0x2a
0238 000000c4      790     .long DBG95
023c 0000002b      791     .long 0x2b
                   792     .pseg SD16_code
                   793     .global _dc_filter
                   794 _dc_filter:
                   795 ; ENTRY
                   796 DBG68:
                   797 ; p at argloc 0 (0x0) in reg r12 size 2
                   798 ; x at argloc 0 (0x0) in reg r13 size 2
                   799 ; z in reg r14(2) size 4
                   800 ; {
                   801 DBG69:
                   802 ;   register int32_t z;
                   803 ;   z = 0x12345678;
                   804 DBG70:
0084 3f407856      805     mov #0x5678,r15
0088 3e403412      806     mov #0x1234,r14
                   807 DBG71:
                   808 ;   /$
008c 0e4d          809     mov r13,r14
                   810 DBG72:
008e 0f43          811     clr r15
                   812 DBG73:
                   813 ; subtract filter_state from (sample << 16)
0090 2f8c          814     sub 0(r12),r15
                   815 DBG74:
0092 1e7c0200      816     subc    2(r12),r14
                   817 DBG75:
                   818 ; >> 14
0096 0f5f          819     rla r15
                   820 DBG76:
0098 0e6e          821     rlc r14
                   822 DBG77:
009a 062c          823     jc  dc_filter_1
                   824 DBG78:
009c 0f6f          825     rlc r15
                   826 DBG79:
009e 0e6e          827     rlc r14
                   828 DBG80:
00a0 0f6f          829     rlc r15
                   830 DBG81:
00a2 3ff00300      831     and #0x0003,r15
                   832 DBG82:
00a6 053c          833     jmp dc_filter_2
                   834 DBG83:
                   835     dc_filter_1
                   836 DBG84:
00a8 0f6f          837     rlc r15
                   838 DBG85:
00aa 0e6e          839     rlc r14
                   840 DBG86:
00ac 0f6f          841     rlc r15
                   842 DBG87:
00ae 3fd0fcff      843     bis #0xFFFC,r15
                   844 DBG88:
                   845     dc_filter_2
                   846 DBG89:
                   847 ; + filter_state
00b2 2e5c          848     add 0(r12),r14
                   849 DBG90:
00b4 1f6c0200      850     addc    2(r12),r15
                   851 DBG91:
                   852 ; save new filter_state
00b8 8c4e0000      853     mov r14,0(r12)
                   854 DBG92:
00bc 8c4f0200      855     mov r15,2(r12)
                   856 DBG93:
                   857 ; sample - filter_state
00c0 0d8f          858     sub r15,r13
                   859 DBG94:
                   860 ; $/
                   861 ;   return x;
00c2 0c4d          862     mov r13,r12
                   863 DBG96:
                   864 DBG95:
                   865 ; EXIT
00c4 3041          866     ret
                   867     .dbgseg dbg_syms
0230 00000000      868     .long 0x0
0234 000000fc      869     .long DBG29
0238 00000000      870     .long 0x0
023c 00000000      871     .long 0x0
0240 00010002      872     .long 0x10002
0244 00000000      873     .long 0x0
0248 00000350      874     .long DBG30
024c 00000002      875     .long 0x2
0250 00000000      876     .long 0x0
0254 00010002      877     .long 0x10002
0258 504e5f5f      878     .long 0x504e5f5f
025c 534d5241      879     .long 0x534d5241
0260 00000002      880     .long 0x2
0264 00000000      881     .long 0x0
0268 00010002      882     .long 0x10002
026c 41505f5f      883     .long 0x41505f5f

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -