diff options
Diffstat (limited to 'asm.s')
-rw-r--r-- | asm.s | 120 |
1 files changed, 120 insertions, 0 deletions
@@ -0,0 +1,120 @@ + .section .text.__bkpt + .global __bkpt + .thumb_func +__bkpt: + bkpt + bx lr + + .section .text.__control + .global __control + .thumb_func +__control: + mrs r0, CONTROL + bx lr + + .section .text.__cpsid + .global __cpsid + .thumb_func +__cpsid: + cpsid i + bx lr + + .section .text.__cpsie + .global __cpsie + .thumb_func +__cpsie: + cpsie i + bx lr + + .section .text.__delay + .global __delay + .syntax unified + .thumb_func +__delay: + nop + subs r0, #1 + bne __delay + bx lr + + .section .text.__dmb + .global __dmb + .thumb_func +__dmb: + dmb 0xF + bx lr + + .section .text.__dsb + .global __dsb + .thumb_func +__dsb: + dsb 0xF + bx lr + + .section .text.__isb + .global __isb + .thumb_func +__isb: + isb 0xF + bx lr + + .section .text.__msp_r + .global __msp_r + .thumb_func +__msp_r: + mrs r0, MSP + bx lr + + .section .text.__msp_w + .global __msp_w + .thumb_func +__msp_w: + msr MSP, r0 + bx lr + + .section .text.__nop + .global __nop + .thumb_func +__nop: + bx lr + + .section .text.__primask + .global __primask + .thumb_func +__primask: + mrs r0, PRIMASK + bx lr + + .section .text.__psp_r + .global __psp_r + .thumb_func +__psp_r: + mrs r0, PSP + bx lr + + .section .text.__psp_w + .global __psp_w + .thumb_func +__psp_w: + msr PSP, r0 + bx lr + + .section .text.__sev + .global __sev + .thumb_func +__sev: + sev + bx lr + + .section .text.__wfe + .global __wfe + .thumb_func +__wfe: + wfe + bx lr + + .section .text.__wfi + .global __wfi + .thumb_func +__wfi: + wfi + bx lr |