mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-01 16:27:27 +00:00
11 lines
239 B
C
11 lines
239 B
C
#include "libultra_internal.h"
|
|
#include "hardware.h"
|
|
|
|
s32 __osAiDeviceBusy(void) {
|
|
register s32 status = HW_REG(AI_STATUS_REG, u32);
|
|
if ((status & AI_STATUS_AI_FULL) != 0) {
|
|
return 1;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|