External ARM9 payload chainloading for a9lh, cleaned up the sdmmc library (from the dark-samus a9lh fork)

This commit is contained in:
Aurora
2016-03-08 15:13:55 +01:00
parent 04978ebb01
commit 09380a19ff
30 changed files with 7137 additions and 717 deletions

View File

@@ -0,0 +1,15 @@
.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}