d0k3 0df734a76a Took over source files from Decrypt9
... this is not compilable and by no means anywhere near even a proof of
concept now.
2016-02-13 17:29:56 +01:00

16 lines
275 B
ArmAsm

.arm
.global waitcycles
.type waitcycles STT_FUNC
@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}