1#include "libultra_internal.h" 2#include "hardware.h" 3 4s32 __osAiDeviceBusy(void) { 5 register s32 status = HW_REG(AI_STATUS_REG, u32); 6 if ((status & AI_STATUS_AI_FULL) != 0) { 7 return 1; 8 } else { 9 return 0; 10 } 11} 12 13