cortexm3_macro.lst

来自「ARM ContextM3 Interface GLCD」· LST 代码 · 共 353 行 · 第 1/2 页

LST
353
字号
 175              	 
 176 0038 80F30988 	    MSR psp,  r0      /* set Process Stack value*/
 177 003c 7047     	    BX r14
 178              	
 179              	/*;*****************************************************************************
 180              	; Function Name  : __MRS_MSP
 181              	; Description    : Assembler function for the MRS instruction.
 182              	; Input          : None
 183              	; Return         : - r0 : Main Stack value.
 184              	;******************************************************************************/
 185              	.thumb_func
 186              	__MRS_MSP:
 187              	
 188 003e EFF30880 	  MRS r0, msp
 189 0042 7047     	  BX r14
 190              	
 191              	/*;*****************************************************************************
 192              	; Function Name  : __MSR_MSP
 193              	; Description    : Assembler function for the MSR instruction.
 194              	; Input          : - r0 : Main Stack new value.  
 195              	; Return         : None
 196              	;******************************************************************************/
 197              	.thumb_func
 198              	__MSR_MSP: 
 199              	 
 200 0044 80F30888 	    MSR msp, r0  /*; set Main Stack value*/
 201 0048 7047     	    BX r14
 202              	
 203              	/*;*****************************************************************************
 204              	; Function Name  : __RESETPRIMASK
 205              	; Description    : Assembler function to reset the PRIMASK.
 206              	; Input          : None 
 207              	; Return         : None
 208              	;******************************************************************************/
 209              	.thumb_func
 210              	__RESETPRIMASK:
 211              	
 212 004a 62B6     	  CPSIE i
 213 004c 7047     	  BX r14
 214              	
 215              	/*;*****************************************************************************
 216              	; Function Name  : __SETPRIMASK
 217              	; Description    : Assembler function to set the PRIMASK.
 218              	; Input          : None 
 219              	; Return         : None
 220              	;******************************************************************************/
 221              	.thumb_func
 222              	__SETPRIMASK:
 223              	
 224 004e 72B6     	  CPSID i
 225 0050 7047     	  BX r14
 226              	  
 227              	/*;*****************************************************************************
 228              	; Function Name  : __READ_PRIMASK
 229              	; Description    :Assembler function to get the PRIMASK value.
 230              	; Input          : None 
 231              	; Return         : - r0 : PRIMASK register value 
 232              	;******************************************************************************/
 233              	.thumb_func
 234              	__READ_PRIMASK:
 235              	
 236 0052 EFF31080 	  MRS r0, PRIMASK
 237 0056 7047     	  BX r14
 238              	    
 239              	/*;*****************************************************************************
 240              	; Function Name  : __RESETFAULTMASK
 241              	; Description    : Assembler function to reset the FAULTMASK.
 242              	; Input          : None 
 243              	; Return         : None
 244              	;******************************************************************************/
 245              	.thumb_func
 246              	__RESETFAULTMASK:
 247              	
 248 0058 61B6     	  CPSIE f
 249 005a 7047     	  BX r14
 250              	  
 251              	/*;*****************************************************************************
 252              	; Function Name  : __SETFAULTMASK
 253              	; Description    : Assembler function to set the FAULTMASK.
 254              	; Input          : None 
 255              	; Return         : None
 256              	;******************************************************************************/
 257              	.thumb_func
 258              	__SETFAULTMASK:
 259              	
 260 005c 71B6     	  CPSID f
 261 005e 7047     	  BX r14
 262              	
 263              	/*;*****************************************************************************
 264              	; Function Name  : __READ_FAULTMASK
 265              	; Description    : Assembler function to get the FAULTMASK value.
 266              	; Input          : None 
 267              	; Return         : - r0 : FAULTMASK register value 
 268              	;******************************************************************************/
 269              	.thumb_func
 270              	__READ_FAULTMASK:
 271              	
 272 0060 EFF31380 	  MRS r0, FAULTMASK
 273 0064 7047     	  BX r14
 274              	  
 275              	/*;*****************************************************************************
 276              	; Function Name  : __BASEPRICONFIG
 277              	; Description    : Assembler function to set the Base Priority.
 278              	; Input          : - r0 : Base Priority new value  
 279              	; Return         : None
 280              	;******************************************************************************/
 281              	.thumb_func
 282              	__BASEPRICONFIG:
 283              	
 284 0066 80F31188 	  MSR basepri, r0
 285 006a 7047     	  BX r14
 286              	
 287              	/*;*****************************************************************************
 288              	; Function Name  : __GetBASEPRI
 289              	; Description    : Assembler function to get the Base Priority value.
 290              	; Input          : None 
 291              	; Return         : - r0 : Base Priority value 
 292              	;******************************************************************************/
 293              	.thumb_func
 294              	__GetBASEPRI:
 295              	
 296 006c EFF31280 	  MRS r0, basepri_max
 297 0070 7047     	  BX r14
 298              	/*;*****************************************************************************
 299              	; Function Name  : __REV_HalfWord
 300              	; Description    : Reverses the byte order in HalfWord(16-bit) input variable.
 301              	; Input          : - r0 : specifies the input variable
 302              	; Return         : - r0 : holds tve variable value after byte reversing.
 303              	;******************************************************************************/
 304              	.thumb_func
 305              	__REV_HalfWord: 
 306              	 
 307 0072 40BA     	  REV16 r0, r0
 308 0074 7047     	  BX r14
 309              	
 310              	/*;*****************************************************************************
 311              	; Function Name  : __REV_Word
 312              	; Description    : Reverses the byte order in Word(32-bit) input variable.
 313              	; Input          : - r0 : specifies the input variable
 314              	; Return         : - r0 : holds tve variable value after byte reversing.
 315              	;******************************************************************************/
 316              	.thumb_func
 317              	__REV_Word: 
 318              	 
 319 0076 00BA     	  REV r0, r0
 320 0078 7047     	  BX r14
 321              	  
 322              	.end  
DEFINED SYMBOLS
                            .text:00000000 $t
Startup/cortexm3_macro.S:54     .text:00000000 __WFI
Startup/cortexm3_macro.S:66     .text:00000004 __WFE
Startup/cortexm3_macro.S:78     .text:00000008 __SEV
Startup/cortexm3_macro.S:90     .text:0000000c __ISB
Startup/cortexm3_macro.S:102    .text:00000012 __DSB
Startup/cortexm3_macro.S:114    .text:00000018 __DMB
Startup/cortexm3_macro.S:126    .text:0000001e __SVC
Startup/cortexm3_macro.S:138    .text:00000022 __MRS_CONTROL
Startup/cortexm3_macro.S:150    .text:00000028 __MSR_CONTROL
Startup/cortexm3_macro.S:162    .text:00000032 __MRS_PSP
Startup/cortexm3_macro.S:174    .text:00000038 __MSR_PSP
Startup/cortexm3_macro.S:186    .text:0000003e __MRS_MSP
Startup/cortexm3_macro.S:198    .text:00000044 __MSR_MSP
Startup/cortexm3_macro.S:210    .text:0000004a __RESETPRIMASK
Startup/cortexm3_macro.S:222    .text:0000004e __SETPRIMASK
Startup/cortexm3_macro.S:234    .text:00000052 __READ_PRIMASK
Startup/cortexm3_macro.S:246    .text:00000058 __RESETFAULTMASK
Startup/cortexm3_macro.S:258    .text:0000005c __SETFAULTMASK
Startup/cortexm3_macro.S:270    .text:00000060 __READ_FAULTMASK
Startup/cortexm3_macro.S:282    .text:00000066 __BASEPRICONFIG
Startup/cortexm3_macro.S:294    .text:0000006c __GetBASEPRI
Startup/cortexm3_macro.S:305    .text:00000072 __REV_HalfWord
Startup/cortexm3_macro.S:317    .text:00000076 __REV_Word

NO UNDEFINED SYMBOLS

⌨️ 快捷键说明

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