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

📄 cpsr.s79

📁 在ARM上实现USB功能源代码
💻 S79
字号:
;-----------------------------------------------------------------------------
; This file contains __get_CPSR and __set_CPSR functions used by the ICCARM
; C compiler.
;
; $Revision: 1.2 $
;
;-----------------------------------------------------------------------------

;
; Naming covention of labels in this file:
;
;  ?xxx   - External labels only accessed from assembler.
;  __xxx  - External labels accessed from or defined in C.
;  xxx    - Labels local to one module (note: this file contains
;           several modules).
;

;---------------------------------------------------------------
; Macros and definitions for the whole file
;---------------------------------------------------------------

;---------------------------------------------------------------
        RSEG CODE:CODE:NOROOT(2)
        CODE32
    PUBLIC  __get_CPSR
    PUBLIC  __set_CPSR

__get_CPSR
        MRS     R0,CPSR
        BX      LR


__set_CPSR
        MSR     CPSR_c,R0
        BX      LR

                END

⌨️ 快捷键说明

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