📄 flop.s43
字号:
//////////////////////////////////////////////////////////////////////////////
// /
// IAR MSP430 C/C++ Compiler V3.41A/W32 22/Apr/2006 00:25:14 /
// Copyright 1996-2006 IAR Systems. All rights reserved. /
// /
// __rt_version = 2 /
// __double_size = 32 /
// __reg_r4 = free /
// __reg_r5 = free /
// __pic = no /
// __core = 64kb /
// Source file = C:\MSP430F169_Eval_Port\FreeRTOSv401\Demo\Common\Mini /
// mal\flop.c /
// Command line = C:\MSP430F169_Eval_Port\FreeRTOSv401\Demo\Common\Mini /
// mal\flop.c -D ROWLEY_MSP430 -D IAR_MSP430 -lC /
// C:\MSP430F169_Eval_Port\FreeRTOSv401\Debug\List\ -lA /
// C:\MSP430F169_Eval_Port\FreeRTOSv401\Debug\List\ /
// --remarks -o C:\MSP430F169_Eval_Port\FreeRTOSv401\Deb /
// ug\Obj\ -s2 --no_cse --no_unroll --no_inline /
// --no_code_motion --no_tbaa --debug -e /
// --migration_preprocessor_extensions --double=32 -I /
// C:\MSP430F169_Eval_Port\FreeRTOSv401\Demo\Common\Incl /
// ude\ -I C:\MSP430F169_Eval_Port\FreeRTOSv401\Source\I /
// nclude\ -I C:\MSP430F169_Eval_Port\FreeRTOSv401\Demo\ /
// MSP430_IAR\ -I C:\MSP430F169_Eval_Port\FreeRTOSv401\S /
// ource\portable\msp430f1611\ -I "C:\Program Files\IAR /
// Systems\Embedded Workbench 4.0\430\INC\" -I /
// "C:\Program Files\IAR Systems\Embedded Workbench /
// 4.0\430\INC\CLIB\" /
// List file = C:\MSP430F169_Eval_Port\FreeRTOSv401\Debug\List\flop. /
// s43 /
// /
// /
//////////////////////////////////////////////////////////////////////////////
NAME flop
RTMODEL "__core", "64kb"
RTMODEL "__double_size", "32"
RTMODEL "__pic", "no"
RTMODEL "__reg_r4", "free"
RTMODEL "__reg_r5", "free"
RTMODEL "__rt_version", "2"
RSEG CSTACK:DATA:SORT:NOROOT(1)
EXTERN ?Epilogue6
EXTERN ?Epilogue3
EXTERN ?cstart_init_zero
EXTERN ?longjmp_r4
EXTERN ?longjmp_r5
EXTERN ?setjmp_r4
EXTERN ?setjmp_r5
PUBWEAK ?setjmp_save_r4
PUBWEAK ?setjmp_save_r5
FUNCTION vCompetingMathTask1,021603H
LOCFRAME CSTACK, 28, STACK
FUNCTION vCompetingMathTask2,021603H
LOCFRAME CSTACK, 28, STACK
FUNCTION vCompetingMathTask3,021603H
LOCFRAME CSTACK, 26, STACK
FUNCTION vCompetingMathTask4,021603H
LOCFRAME CSTACK, 26, STACK
PUBLIC vStartMathTasks
FUNCTION vStartMathTasks,021203H
LOCFRAME CSTACK, 68, STACK
PUBLIC xAreMathsTaskStillRunning
FUNCTION xAreMathsTaskStillRunning,0203H
LOCFRAME CSTACK, 4, STACK
CFI Names cfiNames0
CFI StackFrame CFA SP DATA
CFI Resource PC:16, SP:16, SR:16, R4:16, R5:16, R6:16, R7:16, R8:16
CFI Resource R9:16, R10:16, R11:16, R12:16, R13:16, R14:16, R15:16
CFI EndNames cfiNames0
CFI Common cfiCommon0 Using cfiNames0
CFI CodeAlign 2
CFI DataAlign 2
CFI ReturnAddress PC CODE
CFI CFA SP+2
CFI PC Frame(CFA, -2)
CFI SR Undefined
CFI R4 SameValue
CFI R5 SameValue
CFI R6 SameValue
CFI R7 SameValue
CFI R8 SameValue
CFI R9 SameValue
CFI R10 SameValue
CFI R11 SameValue
CFI R12 Undefined
CFI R13 Undefined
CFI R14 Undefined
CFI R15 Undefined
CFI EndCommon cfiCommon0
EXTERN pvPortMalloc
FUNCTION pvPortMalloc,0202H
EXTERN _Cast32uto32f
FUNCTION _Cast32uto32f,0202H
EXTERN _Mul32f
FUNCTION _Mul32f,0202H
EXTERN _Add32f
FUNCTION _Add32f,0202H
EXTERN _Sub32f
FUNCTION _Sub32f,0202H
EXTERN fabs
FUNCTION fabs,010202H
EXTERN _CmpGe32f
FUNCTION _CmpGe32f,0202H
EXTERN _Div32f
FUNCTION _Div32f,0202H
EXTERN xTaskCreate
FUNCTION xTaskCreate,0202H
// C:\MSP430F169_Eval_Port\FreeRTOSv401\Demo\Common\Minimal\flop.c
// 1 /*
// 2 FreeRTOS V4.0.1 - Copyright (C) 2003-2006 Richard Barry.
// 3
// 4 This file is part of the FreeRTOS distribution.
// 5
// 6 FreeRTOS is free software; you can redistribute it and/or modify
// 7 it under the terms of the GNU General Public License as published by
// 8 the Free Software Foundation; either version 2 of the License, or
// 9 (at your option) any later version.
// 10
// 11 FreeRTOS is distributed in the hope that it will be useful,
// 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
// 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// 14 GNU General Public License for more details.
// 15
// 16 You should have received a copy of the GNU General Public License
// 17 along with FreeRTOS; if not, write to the Free Software
// 18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// 19
// 20 A special exception to the GPL can be applied should you wish to distribute
// 21 a combined work that includes FreeRTOS, without being obliged to provide
// 22 the source code for any proprietary components. See the licensing section
// 23 of http://www.FreeRTOS.org for full details of how and when the exception
// 24 can be applied.
// 25
// 26 ***************************************************************************
// 27 See http://www.FreeRTOS.org for documentation, latest information, license
// 28 and contact details. Please ensure to read the configuration and relevant
// 29 port sections of the online documentation.
// 30 ***************************************************************************
// 31 */
// 32
// 33 /*
// 34 * Creates eight tasks, each of which loops continuously performing an (emulated)
// 35 * floating point calculation.
// 36 *
// 37 * All the tasks run at the idle priority and never block or yield. This causes
// 38 * all eight tasks to time slice with the idle task. Running at the idle priority
// 39 * means that these tasks will get pre-empted any time another task is ready to run
// 40 * or a time slice occurs. More often than not the pre-emption will occur mid
// 41 * calculation, creating a good test of the schedulers context switch mechanism - a
// 42 * calculation producing an unexpected result could be a symptom of a corruption in
// 43 * the context of a task.
// 44 */
// 45
// 46 #include <stdlib.h>
// 47 #include <math.h>
// 48
// 49 /* Scheduler include files. */
// 50 #include "FreeRTOS.h"
// 51 #include "task.h"
// 52
// 53 /* Demo program include files. */
// 54 #include "flop.h"
// 55
// 56 #define mathSTACK_SIZE configMINIMAL_STACK_SIZE
// 57 #define mathNUMBER_OF_TASKS ( 8 )
// 58
// 59 /* Four tasks, each of which performs a different floating point calculation.
// 60 Each of the four is created twice. */
// 61 static portTASK_FUNCTION_PROTO( vCompetingMathTask1, pvParameters );
// 62 static portTASK_FUNCTION_PROTO( vCompetingMathTask2, pvParameters );
// 63 static portTASK_FUNCTION_PROTO( vCompetingMathTask3, pvParameters );
// 64 static portTASK_FUNCTION_PROTO( vCompetingMathTask4, pvParameters );
// 65
// 66 /* These variables are used to check that all the tasks are still running. If a
// 67 task gets a calculation wrong it will
// 68 stop incrementing its check variable. */
RSEG DATA16_Z:DATA:SORT:NOROOT(1)
REQUIRE ?cstart_init_zero
// 69 static volatile unsigned portSHORT usTaskCheck[ mathNUMBER_OF_TASKS ] = { ( unsigned portSHORT ) 0 };
usTaskCheck:
DS8 16
// 70
// 71 /*-----------------------------------------------------------*/
// 72
RSEG CODE:CODE:REORDER:NOROOT(1)
// 73 void vStartMathTasks( unsigned portBASE_TYPE uxPriority )
vStartMathTasks:
CFI Block cfiBlock0 Using cfiCommon0
CFI Function vStartMathTasks
// 74 {
FUNCALL vStartMathTasks, xTaskCreate
LOCFRAME CSTACK, 12, STACK
FUNCALL vStartMathTasks, xTaskCreate
LOCFRAME CSTACK, 20, STACK
FUNCALL vStartMathTasks, xTaskCreate
LOCFRAME CSTACK, 28, STACK
FUNCALL vStartMathTasks, xTaskCreate
LOCFRAME CSTACK, 36, STACK
FUNCALL vStartMathTasks, xTaskCreate
LOCFRAME CSTACK, 44, STACK
FUNCALL vStartMathTasks, xTaskCreate
LOCFRAME CSTACK, 52, STACK
FUNCALL vStartMathTasks, xTaskCreate
LOCFRAME CSTACK, 60, STACK
FUNCALL vStartMathTasks, xTaskCreate
LOCFRAME CSTACK, 68, STACK
PUSH.W R10
CFI R10 Frame(CFA, -4)
CFI CFA SP+4
MOV.W R12, R10
// 75 xTaskCreate( vCompetingMathTask1, ( signed portCHAR * ) "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, NULL );
PUSH.W #0x0
CFI CFA SP+6
PUSH.W R10
CFI CFA SP+8
PUSH.W #usTaskCheck
CFI CFA SP+10
PUSH.W #0x40
CFI CFA SP+12
MOV.W #`?<Constant "Math1">`, R14
MOV.W #vCompetingMathTask1, R12
CALL #xTaskCreate
// 76 xTaskCreate( vCompetingMathTask2, ( signed portCHAR * ) "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, NULL );
PUSH.W #0x0
CFI CFA SP+14
PUSH.W R10
CFI CFA SP+16
PUSH.W #usTaskCheck + 2
CFI CFA SP+18
PUSH.W #0x40
CFI CFA SP+20
MOV.W #`?<Constant "Math2">`, R14
MOV.W #vCompetingMathTask2, R12
CALL #xTaskCreate
// 77 xTaskCreate( vCompetingMathTask3, ( signed portCHAR * ) "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, NULL );
PUSH.W #0x0
CFI CFA SP+22
PUSH.W R10
CFI CFA SP+24
PUSH.W #usTaskCheck + 4
CFI CFA SP+26
PUSH.W #0x40
CFI CFA SP+28
MOV.W #`?<Constant "Math3">`, R14
MOV.W #vCompetingMathTask3, R12
CALL #xTaskCreate
// 78 xTaskCreate( vCompetingMathTask4, ( signed portCHAR * ) "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, NULL );
PUSH.W #0x0
CFI CFA SP+30
PUSH.W R10
CFI CFA SP+32
PUSH.W #usTaskCheck + 6
CFI CFA SP+34
PUSH.W #0x40
CFI CFA SP+36
MOV.W #`?<Constant "Math4">`, R14
MOV.W #vCompetingMathTask4, R12
CALL #xTaskCreate
// 79 xTaskCreate( vCompetingMathTask1, ( signed portCHAR * ) "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, NULL );
PUSH.W #0x0
CFI CFA SP+38
PUSH.W R10
CFI CFA SP+40
PUSH.W #usTaskCheck + 8
CFI CFA SP+42
PUSH.W #0x40
CFI CFA SP+44
MOV.W #`?<Constant "Math5">`, R14
MOV.W #vCompetingMathTask1, R12
CALL #xTaskCreate
// 80 xTaskCreate( vCompetingMathTask2, ( signed portCHAR * ) "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, NULL );
PUSH.W #0x0
CFI CFA SP+46
PUSH.W R10
CFI CFA SP+48
PUSH.W #usTaskCheck + 10
CFI CFA SP+50
PUSH.W #0x40
CFI CFA SP+52
MOV.W #`?<Constant "Math6">`, R14
MOV.W #vCompetingMathTask2, R12
CALL #xTaskCreate
// 81 xTaskCreate( vCompetingMathTask3, ( signed portCHAR * ) "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, NULL );
PUSH.W #0x0
CFI CFA SP+54
PUSH.W R10
CFI CFA SP+56
PUSH.W #usTaskCheck + 12
CFI CFA SP+58
PUSH.W #0x40
CFI CFA SP+60
MOV.W #`?<Constant "Math7">`, R14
MOV.W #vCompetingMathTask3, R12
CALL #xTaskCreate
// 82 xTaskCreate( vCompetingMathTask4, ( signed portCHAR * ) "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, NULL );
PUSH.W #0x0
CFI CFA SP+62
PUSH.W R10
CFI CFA SP+64
PUSH.W #usTaskCheck + 14
CFI CFA SP+66
PUSH.W #0x40
CFI CFA SP+68
MOV.W #`?<Constant "Math8">`, R14
MOV.W #vCompetingMathTask4, R12
CALL #xTaskCreate
// 83 }
ADD.W #0x40, SP
CFI CFA SP+4
POP.W R10
CFI R10 SameValue
CFI CFA SP+2
RET
CFI EndBlock cfiBlock0
// 84 /*-----------------------------------------------------------*/
// 85
RSEG CODE:CODE:REORDER:NOROOT(1)
// 86 static portTASK_FUNCTION( vCompetingMathTask1, pvParameters )
vCompetingMathTask1:
CFI Block cfiBlock1 Using cfiCommon0
CFI Function vCompetingMathTask1
// 87 {
FUNCALL vCompetingMathTask1, _Add32f
LOCFRAME CSTACK, 28, STACK
FUNCALL vCompetingMathTask1, _Mul32f
LOCFRAME CSTACK, 28, STACK
FUNCALL vCompetingMathTask1, _Add32f
LOCFRAME CSTACK, 28, STACK
FUNCALL vCompetingMathTask1, _Mul32f
LOCFRAME CSTACK, 28, STACK
FUNCALL vCompetingMathTask1, _Sub32f
LOCFRAME CSTACK, 28, STACK
FUNCALL vCompetingMathTask1, fabs
LOCFRAME CSTACK, 28, STACK
FUNCALL vCompetingMathTask1, _CmpGe32f
LOCFRAME CSTACK, 28, STACK
PUSH.W R10
CFI R10 Frame(CFA, -4)
CFI CFA SP+4
PUSH.W R11
CFI R11 Frame(CFA, -6)
CFI CFA SP+6
PUSH.W R8
CFI R8 Frame(CFA, -8)
CFI CFA SP+8
SUB.W #0x14, SP
CFI CFA SP+28
MOV.W R12, R10
// 88 volatile portDOUBLE d1, d2, d3, d4;
// 89 volatile unsigned portSHORT *pusTaskCheckVariable;
// 90 volatile portDOUBLE dAnswer;
// 91 portSHORT sError = pdFALSE;
MOV.W #0x0, R8
// 92
// 93 d1 = 123.4567;
MOV.W #0xe9d5, 0x0(SP)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -