📄 timerctrl.lst
字号:
TMS320C6x COFF Assembler PC Version 4.36 Tue Jul 17 23:37:43 2007
Tools Copyright (c) 1996-2003 Texas Instruments Incorporated
TimerCtrl.asm PAGE 4
166
167
168
169 000000f0 .sect ".text"
170 .global _TIMER_DelayMsec
171 .sym _TIMER_DelayMsec,_TIMER_DelayMsec, 32, 2, 0
172 .func 102
173 ;----------------------------------------------------------------------
174 ; 102 | void TIMER_DelayMsec(short msec)
175 ;----------------------------------------------------------------------
176
177 ;******************************************************************************
178 ;* FUNCTION NAME: _TIMER_DelayMsec *
179 ;* *
180 ;* Regs Modified : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6, *
181 ;* B7,B8,B9,SP *
182 ;* Regs Used : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6, *
183 ;* B7,B8,B9,DP,SP *
184 ;* Local Frame Size : 0 Args + 16 Auto + 4 Save = 20 byte *
185 ;******************************************************************************
186 _TIMER_DelayMsec:
187 ;** --------------------------------------------------------------------------*
188 .line 2
189 .sym _msec,4, 3, 17, 16
190 .sym _msec,4, 3, 1, 16
191 .sym _timer_limit,8, 14, 1, 32
192 .sym _time_start,12, 14, 1, 32
193 .sym _time_current,16, 14, 1, 32
194 000000f0 01BCD4F6 STW .D2T2 B3,*SP--(24) ; |103|
195 000000f4 00002000 NOP 2
196 000000f8 023C42D4 STH .D2T1 A4,*+SP(4) ; |103|
197 000000fc 00002000 NOP 2
198 .line 5
199 ;----------------------------------------------------------------------
200 ; 106 | Uint32 timer_limit = (msec*62500);
201 ; 107 | Uint32 time_start;
202 ; 108 | Uint32 time_current;
203 ;----------------------------------------------------------------------
204 00000100 023C42C6 LDH .D2T2 *+SP(4),B4 ; |106|
205 00000104 007A1228 MVKL .S1 0xf424,A0 ; |106|
206 00000108 00000068 MVKH .S1 0xf424,A0 ; |106|
207 0000010c 00002000 NOP 2
208 00000110 02009D82 MPYUS .M2X A0,B4,B4 ; |106|
209 00000114 00000000 NOP 1
210 00000118 023C42F6 STW .D2T2 B4,*+SP(8) ; |106|
211 0000011c 00002000 NOP 2
212 .line 9
213 ;----------------------------------------------------------------------
214 ; 110 | if( hTimer == NULL )
215 ;----------------------------------------------------------------------
216 00000120 0000006E- LDW .D2T2 *+DP(_hTimer),B0 ; |110|
217 00000124 00006000 NOP 4
218 00000128 30001210 [!B0] B .S1 L2 ; |110|
219 0000012c 00008000 NOP 5
220 ; BRANCH OCCURS ; |110|
TMS320C6x COFF Assembler PC Version 4.36 Tue Jul 17 23:37:43 2007
Tools Copyright (c) 1996-2003 Texas Instruments Incorporated
TimerCtrl.asm PAGE 5
221 ;** --------------------------------------------------------------------------*
222 .line 10
223 ;----------------------------------------------------------------------
224 ; 111 | return;
225 ;----------------------------------------------------------------------
226 .line 12
227 ;----------------------------------------------------------------------
228 ; 113 | time_start = TIMER_getCount(hTimer);
229 ;----------------------------------------------------------------------
230 00000130 0200002A! MVKL .S2 _TIMER_getCount,B4 ; |113|
231 00000134 0200006A! MVKH .S2 _TIMER_getCount,B4 ; |113|
232 00000138 00100362 CALL .S2 B4 ; |113|
233 0000013c 0180A62A' MVKL .S2 RL5,B3 ; |113|
234 00000140 0180006A' MVKH .S2 RL5,B3 ; |113|
235 00000144 020011A0 MV .S1X B0,A4 ; |113|
236 00000148 00002000 NOP 2
237 0000014c RL5: ; CALL OCCURS ; |113|
238 0000014c 023C62F4 STW .D2T1 A4,*+SP(12) ; |113|
239 00000150 00002000 NOP 2
240 .line 13
241 ;----------------------------------------------------------------------
242 ; 114 | TIMER_resume(hTimer);
243 ; 115 | do
244 ;----------------------------------------------------------------------
245 00000154 00000028! MVKL .S1 _TIMER_resume,A0 ; |114|
246 00000158 00000068! MVKH .S1 _TIMER_resume,A0 ; |114|
247 0000015c 00001362 CALL .S2X A0 ; |114|
248 00000160 0200006C- LDW .D2T1 *+DP(_hTimer),A4 ; |114|
249 00000164 0180B82A' MVKL .S2 RL6,B3 ; |114|
250 00000168 0180006A' MVKH .S2 RL6,B3 ; |114|
251 0000016c 00002000 NOP 2
252 RL6: ; CALL OCCURS ; |114|
253 ;*----------------------------------------------------------------------------*
254 ;* SOFTWARE PIPELINE INFORMATION
255 ;* Disqualified loop: Software pipelining disabled
256 ;*----------------------------------------------------------------------------*
257 L1:
258 .line 16
259 ;----------------------------------------------------------------------
260 ; 117 | time_current = TIMER_getCount(hTimer);
261 ;----------------------------------------------------------------------
262 00000170 00000028! MVKL .S1 _TIMER_getCount,A0 ; |117|
263 00000174 00000068! MVKH .S1 _TIMER_getCount,A0 ; |117|
264 00000178 00001362 CALL .S2X A0 ; |117|
265 0000017c 0200006C- LDW .D2T1 *+DP(_hTimer),A4 ; |117|
266 00000180 0180C62A' MVKL .S2 RL7,B3 ; |117|
267 00000184 0180006A' MVKH .S2 RL7,B3 ; |117|
268 00000188 00002000 NOP 2
269 0000018c RL7: ; CALL OCCURS ; |117|
270 0000018c 023C82F4 STW .D2T1 A4,*+SP(16) ; |117|
271 00000190 00002000 NOP 2
272 .line 17
273 ;----------------------------------------------------------------------
274 ; 118 | }while( (time_current-time_start) < timer_limit);
275 ;----------------------------------------------------------------------
TMS320C6x COFF Assembler PC Version 4.36 Tue Jul 17 23:37:43 2007
Tools Copyright (c) 1996-2003 Texas Instruments Incorporated
TimerCtrl.asm PAGE 6
276 00000194 02BC62E6 LDW .D2T2 *+SP(12),B5 ; |118|
277 00000198 023C42E6 LDW .D2T2 *+SP(8),B4 ; |118|
278 0000019c 00004000 NOP 3
279 000001a0 029492FA SUB .L2X A4,B5,B5 ; |118|
280 000001a4 0010ABFA CMPLTU .L2 B5,B4,B0 ; |118|
281 000001a8 2FFFFA10 [ B0] B .S1 L1 ; |118|
282 000001ac 00008000 NOP 5
283 ; BRANCH OCCURS ; |118|
284 ;** --------------------------------------------------------------------------*
285 L2:
286 .line 19
287 000001b0 01BCD2E6 LDW .D2T2 *++SP(24),B3 ; |120|
288 000001b4 00006000 NOP 4
289 000001b8 000C0362 RET .S2 B3 ; |120|
290 000001bc 00008000 NOP 5
291 ; BRANCH OCCURS ; |120|
292 .endfunc 120,000080000h,24
293
294
295 ;******************************************************************************
296 ;* MARK THE END OF THE SCALAR INIT RECORD IN CINIT:C *
297 ;******************************************************************************
298
299 0000000c CIR: .sect ".cinit:c"
300 ;******************************************************************************
301 ;* UNDEFINED EXTERNAL REFERENCES *
302 ;******************************************************************************
303 .global _IRQ_enable
304 .global _TIMER_open
305 .global _TIMER_getEventId
306 .global _TIMER_resume
307 .global _TIMER_getCount
308 .global _TIMER_config
309 .global _TIMER_getConfig
310
311 ;******************************************************************************
312 ;* TYPE INFORMATION *
313 ;******************************************************************************
314 .sym _Uint32, 0, 14, 13, 32
315 .sym _Uint32, 0, 14, 13, 32
316 .stag $$fake0, 96
317 .member _allocated, 0, 14, 8, 32
318 .member _eventId, 32, 14, 8, 32
319 .member _baseAddr, 64, 30, 8, 32
320 .eos
321 .sym _TIMER_Handle, 0, 24, 13, 32,$$fake0
322 .stag $$fake1, 96
323 .member _ctl, 0, 14, 8, 32
324 .member _prd, 32, 14, 8, 32
325 .member _cnt, 64, 14, 8, 32
326 .eos
327 .sym _TIMER_Config, 0, 8, 13, 96,$$fake1
No Assembly Errors, No Assembly Warnings
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -