Clean-up, fixed mistake

GCC, why no u warn me of strict aliasing
This commit is contained in:
Aurora
2016-03-11 15:08:05 +01:00
parent 6707a36ffe
commit 9468582d83
22 changed files with 78 additions and 434 deletions

View File

@@ -4,12 +4,7 @@
@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}
waitcycles_loop:
subs r0, #1
bgt waitcycles_loop
bx lr