sm64coopdx/lib/src/__osAiDeviceBusy.c
2019-09-01 15:50:50 -04:00

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;
}
}