sm64pc/lib/src/__osAiDeviceBusy.c

12 lines
239 B
C
Raw Permalink Normal View History

2019-08-25 04:46:40 +00:00
#include "libultra_internal.h"
#include "hardware.h"
s32 __osAiDeviceBusy(void) {
register s32 status = HW_REG(AI_STATUS_REG, u32);
2019-09-01 19:50:50 +00:00
if ((status & AI_STATUS_AI_FULL) != 0) {
2019-08-25 04:46:40 +00:00
return 1;
2019-09-01 19:50:50 +00:00
} else {
2019-08-25 04:46:40 +00:00
return 0;
2019-09-01 19:50:50 +00:00
}
2019-08-25 04:46:40 +00:00
}