Minor stuff

This commit is contained in:
Aurora
2016-09-23 18:59:44 +02:00
parent 1a5d953a98
commit fb274538e1
7 changed files with 26 additions and 30 deletions

View File

@@ -4,15 +4,13 @@
.global waitcycles
.type waitcycles, %function
@waitcycles ( u32 us )
waitcycles:
PUSH {R0-R2,LR}
STR R0, [SP,#4]
waitcycles_loop:
LDR R3, [SP,#4]
SUBS R2, R3, #1
STR R2, [SP,#4]
CMP R3, #0
BNE waitcycles_loop
POP {R0-R2,PC}
push {r0-r2, lr}
str r0, [sp, #4]
waitcycles_loop:
ldr r3, [sp, #4]
subs r2, r3, #1
str r2, [sp, #4]
cmp r3, #0
bne waitcycles_loop
pop {r0-r2, pc}