blob: 1808795a2fe7c2b27f2ce516ae359cbe421f7c70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "ultra64.h"
#include "stdbool.h"
s32 __osSpDeviceBusy(void) {
register u32 status = IO_READ(SP_STATUS_REG);
if (status & (SP_STATUS_DMA_BUSY | SP_STATUS_DMA_FULL | SP_STATUS_IO_FULL)) {
return true;
} else {
return false;
}
}
|