mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
__osSiDeviceBusy from libreultra
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/* The comment below is needed for this file to be picked up by generate_ld */
|
||||
/* RAM_POS: 0x800D52C0 */
|
||||
|
||||
#include "libultra_internal.h"
|
||||
#include "siint.h"
|
||||
|
||||
int __osSiDeviceBusy() {
|
||||
register u32 stat = IO_READ(SI_STATUS_REG);
|
||||
if (stat & (SI_STATUS_DMA_BUSY | SI_STATUS_RD_BUSY))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
@@ -1,11 +1,10 @@
|
||||
/* The comment below is needed for this file to be picked up by generate_ld */
|
||||
/* RAM_POS: 0x800D52C0 */
|
||||
/* RAM_POS: 0x800D52EC */
|
||||
|
||||
#include "macros.h"
|
||||
#include "libultra_internal.h"
|
||||
#include "viint.h"
|
||||
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/__osSiDeviceBusy.s")
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/__osSumcalc.s")
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/__osIdCheckSum.s")
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/__osRepairPackId.s")
|
||||
|
||||
Reference in New Issue
Block a user