mbcrc.txt
11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o.\flash\obj\mbcrc.o --asm_dir=.\Flash\List\ --list_dir=.\Flash\List\ --depend=.\flash\obj\mbcrc.d --cpu=Cortex-M4.fp --apcs=interwork -O1 --diag_suppress=9931,870 -I..\..\Libraries\CMSIS\Include -I..\..\Libraries\CMSIS\Device\ST\STM32F4xx\Include -I..\..\Libraries\STM32F4xx_StdPeriph_Driver\inc -I..\..\uCOS-III\uC-CPU -I..\..\uCOS-III\uC-LIB -I..\..\uCOS-III\uCOS-III\Ports -I..\..\uCOS-III\uCOS-III\Source -I..\..\uCOS-III\uC-CPU\ARM-Cortex-M4\RealView -I..\..\uCOS-III\uC-LIB\Ports\ARM-Cortex-M4\RealView -I..\..\uCOS-III\uCOS-III\Ports\ARM-Cortex-M4\Generic\RealView -I..\..\User -I..\..\User\bsp -I..\..\User\bsp\inc -I..\..\User\libapp -I..\..\RL-ARM\Config -I..\..\RL-ARM\Driver -I..\..\RL-ARM\RL-RTX\inc -I..\..\User\bsp\BSP -I..\..\RL-ARM\RL-CAN -I..\..\Libraries\DSP_LIB\Include -I..\..\MODBUS\modbus\rtu -I..\..\MODBUS\BARE\port -I..\..\MODBUS\modbus\include -I..\..\User\bsp\BSP -I..\..\PLC -I..\..\Avoid -I..\..\User\parameter -I..\..\User\LaserMotionCtr -I..\..\User\W5100S -I..\..\User\bsp -I..\..\User\CHASSIS -I..\..\User\CONTROLFUNCTION -I..\..\User\DATAUPDATE -I..\..\User\HARAWARE -I..\..\User\MOTORDRIVER -I..\..\User\NAVAGATION -I..\..\User\PLATFORM -I..\..\User\SENSOR -I.\RTE\_Flash -IC:\Users\YDJ\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Users\YDJ\AppData\Local\Arm\Packs\Keil\STM32F4xx_DFP\2.13.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include -D__UVISION_VERSION=527 -D_RTE_ -DSTM32F407xx -DUSE_STDPERIPH_DRIVER -DSTM32F40_41xxx -D__RTX -D__FPU_USED=1 --omf_browse=.\flash\obj\mbcrc.crf ..\..\MODBUS\modbus\rtu\mbcrc.c]
THUMB
AREA ||i.usMBCRC16||, CODE, READONLY, ALIGN=2
usMBCRC16 PROC
;;;84 USHORT
;;;85 usMBCRC16( UCHAR * pucFrame, USHORT usLen )
000000 b570 PUSH {r4-r6,lr}
;;;86 {
;;;87 UCHAR ucCRCHi = 0xFF;
000002 23ff MOVS r3,#0xff
;;;88 UCHAR ucCRCLo = 0xFF;
000004 22ff MOVS r2,#0xff
;;;89 int iIndex;
;;;90
;;;91 while( usLen-- )
;;;92 {
;;;93 iIndex = ucCRCLo ^ *( pucFrame++ );
;;;94 ucCRCLo = ( UCHAR )( ucCRCHi ^ aucCRCHi[iIndex] );
000006 4d08 LDR r5,|L1.40|
;;;95 ucCRCHi = aucCRCLo[iIndex];
000008 f5057680 ADD r6,r5,#0x100
00000c e005 B |L1.26|
|L1.14|
00000e f8104b01 LDRB r4,[r0],#1 ;93
000012 4054 EORS r4,r4,r2 ;93
000014 5d2a LDRB r2,[r5,r4] ;94
000016 405a EORS r2,r2,r3 ;94
000018 5d33 LDRB r3,[r6,r4]
|L1.26|
00001a 1e49 SUBS r1,r1,#1 ;91
00001c b289 UXTH r1,r1 ;91
00001e d2f6 BCS |L1.14|
;;;96 }
;;;97 return ( USHORT )( ucCRCHi << 8 | ucCRCLo );
000020 ea422003 ORR r0,r2,r3,LSL #8
;;;98 }
000024 bd70 POP {r4-r6,pc}
ENDP
000026 0000 DCW 0x0000
|L1.40|
DCD ||.constdata||
AREA ||.constdata||, DATA, READONLY, ALIGN=0
aucCRCHi
000000 00c18140 DCB 0x00,0xc1,0x81,0x40
000004 01c08041 DCB 0x01,0xc0,0x80,0x41
000008 01c08041 DCB 0x01,0xc0,0x80,0x41
00000c 00c18140 DCB 0x00,0xc1,0x81,0x40
000010 01c08041 DCB 0x01,0xc0,0x80,0x41
000014 00c18140 DCB 0x00,0xc1,0x81,0x40
000018 00c18140 DCB 0x00,0xc1,0x81,0x40
00001c 01c08041 DCB 0x01,0xc0,0x80,0x41
000020 01c08041 DCB 0x01,0xc0,0x80,0x41
000024 00c18140 DCB 0x00,0xc1,0x81,0x40
000028 00c18140 DCB 0x00,0xc1,0x81,0x40
00002c 01c08041 DCB 0x01,0xc0,0x80,0x41
000030 00c18140 DCB 0x00,0xc1,0x81,0x40
000034 01c08041 DCB 0x01,0xc0,0x80,0x41
000038 01c08041 DCB 0x01,0xc0,0x80,0x41
00003c 00c18140 DCB 0x00,0xc1,0x81,0x40
000040 01c08041 DCB 0x01,0xc0,0x80,0x41
000044 00c18140 DCB 0x00,0xc1,0x81,0x40
000048 00c18140 DCB 0x00,0xc1,0x81,0x40
00004c 01c08041 DCB 0x01,0xc0,0x80,0x41
000050 00c18140 DCB 0x00,0xc1,0x81,0x40
000054 01c08041 DCB 0x01,0xc0,0x80,0x41
000058 01c08041 DCB 0x01,0xc0,0x80,0x41
00005c 00c18140 DCB 0x00,0xc1,0x81,0x40
000060 00c18140 DCB 0x00,0xc1,0x81,0x40
000064 01c08041 DCB 0x01,0xc0,0x80,0x41
000068 01c08041 DCB 0x01,0xc0,0x80,0x41
00006c 00c18140 DCB 0x00,0xc1,0x81,0x40
000070 01c08041 DCB 0x01,0xc0,0x80,0x41
000074 00c18140 DCB 0x00,0xc1,0x81,0x40
000078 00c18140 DCB 0x00,0xc1,0x81,0x40
00007c 01c08041 DCB 0x01,0xc0,0x80,0x41
000080 01c08041 DCB 0x01,0xc0,0x80,0x41
000084 00c18140 DCB 0x00,0xc1,0x81,0x40
000088 00c18140 DCB 0x00,0xc1,0x81,0x40
00008c 01c08041 DCB 0x01,0xc0,0x80,0x41
000090 00c18140 DCB 0x00,0xc1,0x81,0x40
000094 01c08041 DCB 0x01,0xc0,0x80,0x41
000098 01c08041 DCB 0x01,0xc0,0x80,0x41
00009c 00c18140 DCB 0x00,0xc1,0x81,0x40
0000a0 00c18140 DCB 0x00,0xc1,0x81,0x40
0000a4 01c08041 DCB 0x01,0xc0,0x80,0x41
0000a8 01c08041 DCB 0x01,0xc0,0x80,0x41
0000ac 00c18140 DCB 0x00,0xc1,0x81,0x40
0000b0 01c08041 DCB 0x01,0xc0,0x80,0x41
0000b4 00c18140 DCB 0x00,0xc1,0x81,0x40
0000b8 00c18140 DCB 0x00,0xc1,0x81,0x40
0000bc 01c08041 DCB 0x01,0xc0,0x80,0x41
0000c0 00c18140 DCB 0x00,0xc1,0x81,0x40
0000c4 01c08041 DCB 0x01,0xc0,0x80,0x41
0000c8 01c08041 DCB 0x01,0xc0,0x80,0x41
0000cc 00c18140 DCB 0x00,0xc1,0x81,0x40
0000d0 01c08041 DCB 0x01,0xc0,0x80,0x41
0000d4 00c18140 DCB 0x00,0xc1,0x81,0x40
0000d8 00c18140 DCB 0x00,0xc1,0x81,0x40
0000dc 01c08041 DCB 0x01,0xc0,0x80,0x41
0000e0 01c08041 DCB 0x01,0xc0,0x80,0x41
0000e4 00c18140 DCB 0x00,0xc1,0x81,0x40
0000e8 00c18140 DCB 0x00,0xc1,0x81,0x40
0000ec 01c08041 DCB 0x01,0xc0,0x80,0x41
0000f0 00c18140 DCB 0x00,0xc1,0x81,0x40
0000f4 01c08041 DCB 0x01,0xc0,0x80,0x41
0000f8 01c08041 DCB 0x01,0xc0,0x80,0x41
0000fc 00c18140 DCB 0x00,0xc1,0x81,0x40
aucCRCLo
000100 00c0c101 DCB 0x00,0xc0,0xc1,0x01
000104 c30302c2 DCB 0xc3,0x03,0x02,0xc2
000108 c60607c7 DCB 0xc6,0x06,0x07,0xc7
00010c 05c5c404 DCB 0x05,0xc5,0xc4,0x04
000110 cc0c0dcd DCB 0xcc,0x0c,0x0d,0xcd
000114 0fcfce0e DCB 0x0f,0xcf,0xce,0x0e
000118 0acacb0b DCB 0x0a,0xca,0xcb,0x0b
00011c c90908c8 DCB 0xc9,0x09,0x08,0xc8
000120 d81819d9 DCB 0xd8,0x18,0x19,0xd9
000124 1bdbda1a DCB 0x1b,0xdb,0xda,0x1a
000128 1ededf1f DCB 0x1e,0xde,0xdf,0x1f
00012c dd1d1cdc DCB 0xdd,0x1d,0x1c,0xdc
000130 14d4d515 DCB 0x14,0xd4,0xd5,0x15
000134 d71716d6 DCB 0xd7,0x17,0x16,0xd6
000138 d21213d3 DCB 0xd2,0x12,0x13,0xd3
00013c 11d1d010 DCB 0x11,0xd1,0xd0,0x10
000140 f03031f1 DCB 0xf0,0x30,0x31,0xf1
000144 33f3f232 DCB 0x33,0xf3,0xf2,0x32
000148 36f6f737 DCB 0x36,0xf6,0xf7,0x37
00014c f53534f4 DCB 0xf5,0x35,0x34,0xf4
000150 3cfcfd3d DCB 0x3c,0xfc,0xfd,0x3d
000154 ff3f3efe DCB 0xff,0x3f,0x3e,0xfe
000158 fa3a3bfb DCB 0xfa,0x3a,0x3b,0xfb
00015c 39f9f838 DCB 0x39,0xf9,0xf8,0x38
000160 28e8e929 DCB 0x28,0xe8,0xe9,0x29
000164 eb2b2aea DCB 0xeb,0x2b,0x2a,0xea
000168 ee2e2fef DCB 0xee,0x2e,0x2f,0xef
00016c 2dedec2c DCB 0x2d,0xed,0xec,0x2c
000170 e42425e5 DCB 0xe4,0x24,0x25,0xe5
000174 27e7e626 DCB 0x27,0xe7,0xe6,0x26
000178 22e2e323 DCB 0x22,0xe2,0xe3,0x23
00017c e12120e0 DCB 0xe1,0x21,0x20,0xe0
000180 a06061a1 DCB 0xa0,0x60,0x61,0xa1
000184 63a3a262 DCB 0x63,0xa3,0xa2,0x62
000188 66a6a767 DCB 0x66,0xa6,0xa7,0x67
00018c a56564a4 DCB 0xa5,0x65,0x64,0xa4
000190 6cacad6d DCB 0x6c,0xac,0xad,0x6d
000194 af6f6eae DCB 0xaf,0x6f,0x6e,0xae
000198 aa6a6bab DCB 0xaa,0x6a,0x6b,0xab
00019c 69a9a868 DCB 0x69,0xa9,0xa8,0x68
0001a0 78b8b979 DCB 0x78,0xb8,0xb9,0x79
0001a4 bb7b7aba DCB 0xbb,0x7b,0x7a,0xba
0001a8 be7e7fbf DCB 0xbe,0x7e,0x7f,0xbf
0001ac 7dbdbc7c DCB 0x7d,0xbd,0xbc,0x7c
0001b0 b47475b5 DCB 0xb4,0x74,0x75,0xb5
0001b4 77b7b676 DCB 0x77,0xb7,0xb6,0x76
0001b8 72b2b373 DCB 0x72,0xb2,0xb3,0x73
0001bc b17170b0 DCB 0xb1,0x71,0x70,0xb0
0001c0 50909151 DCB 0x50,0x90,0x91,0x51
0001c4 93535292 DCB 0x93,0x53,0x52,0x92
0001c8 96565797 DCB 0x96,0x56,0x57,0x97
0001cc 55959454 DCB 0x55,0x95,0x94,0x54
0001d0 9c5c5d9d DCB 0x9c,0x5c,0x5d,0x9d
0001d4 5f9f9e5e DCB 0x5f,0x9f,0x9e,0x5e
0001d8 5a9a9b5b DCB 0x5a,0x9a,0x9b,0x5b
0001dc 99595898 DCB 0x99,0x59,0x58,0x98
0001e0 88484989 DCB 0x88,0x48,0x49,0x89
0001e4 4b8b8a4a DCB 0x4b,0x8b,0x8a,0x4a
0001e8 4e8e8f4f DCB 0x4e,0x8e,0x8f,0x4f
0001ec 8d4d4c8c DCB 0x8d,0x4d,0x4c,0x8c
0001f0 44848545 DCB 0x44,0x84,0x85,0x45
0001f4 87474686 DCB 0x87,0x47,0x46,0x86
0001f8 82424383 DCB 0x82,0x42,0x43,0x83
0001fc 41818040 DCB 0x41,0x81,0x80,0x40
;*** Start embedded assembler ***
#line 1 "..\\..\\MODBUS\\modbus\\rtu\\mbcrc.c"
AREA ||.rev16_text||, CODE
THUMB
EXPORT |__asm___7_mbcrc_c_1cc2ff9b____REV16|
#line 129 "..\\..\\Libraries\\CMSIS\\Include\\core_cmInstr.h"
|__asm___7_mbcrc_c_1cc2ff9b____REV16| PROC
#line 130
rev16 r0, r0
bx lr
ENDP
AREA ||.revsh_text||, CODE
THUMB
EXPORT |__asm___7_mbcrc_c_1cc2ff9b____REVSH|
#line 144
|__asm___7_mbcrc_c_1cc2ff9b____REVSH| PROC
#line 145
revsh r0, r0
bx lr
ENDP
AREA ||.rrx_text||, CODE
THUMB
EXPORT |__asm___7_mbcrc_c_1cc2ff9b____RRX|
#line 300
|__asm___7_mbcrc_c_1cc2ff9b____RRX| PROC
#line 301
rrx r0, r0
bx lr
ENDP
;*** End embedded assembler ***