akmenu-next/arm9/source/launcher/ttio/waitByLoop.s
lifehackerhansol 2199c147ae
TopToyLauncher: Add support for dual SD/SDHC support for DSTT
Works by reinitializing the SD card to retrieve the HCS bit
2024-11-01 08:22:13 -07:00

19 lines
276 B
ArmAsm

@
@ Copyright (C) 2024 lifehackerhansol
@
@ SPDX-License-Identifier: zlib
@
#include <nds/asminc.h>
.syntax unified
.arm
@ void waitByLoop(u32 count)
@ because we can't use swi 0x3 in DLDI
BEGIN_ASM_FUNC waitByLoop
subs r0, r0, #1
bgt waitByLoop
bx lr