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