Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/lib/src/__osSiDeviceBusy.c
7857 views
1
#include "libultra_internal.h"
2
#include "hardware.h"
3
4
s32 __osSiDeviceBusy() {
5
register u32 status;
6
status = HW_REG(SI_STATUS_REG, u32);
7
if (status & (SI_STATUS_DMA_BUSY | SI_STATUS_IO_READ_BUSY)) {
8
return 1;
9
} else {
10
return 0;
11
}
12
}
13
14