blob: e1d95eeb88894635ab1511ea8be1cc132a30c2c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "ultra64.h"
#include "libc/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;
}
}
|