__osSiDeviceBusy from libreultra

This commit is contained in:
Ryan Myers
2021-10-21 08:52:04 -04:00
parent 2ccd255e79
commit 9200805699
2 changed files with 13 additions and 2 deletions
+12
View File
@@ -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 -2
View File
@@ -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")