This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/haxloader/source/fatfs/sdmmc/delay.s

17 lines
284 B
ArmAsm
Raw Normal View History

2016-09-23 18:07:45 +02:00
.text
.arm
.align 4
.global waitcycles
.type waitcycles, %function
waitcycles:
2016-09-23 18:59:44 +02:00
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}