mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-06-21 16:47:07 -04:00
5c23113592
* libultra from sm64 integrated; 3 libultra functions matched * All of libultra done! authored-by: farisawan-2000 <farisawan.2000@gmail.com>
18 lines
430 B
C
18 lines
430 B
C
#include "libultra_internal.h"
|
|
|
|
OSYieldResult osSpTaskYielded(OSTask *task) {
|
|
s32 status;
|
|
u32 int_disabledult;
|
|
status = __osSpGetStatus();
|
|
if (status & SPSTATUS_SIGNAL1_SET) {
|
|
int_disabledult = 1;
|
|
} else {
|
|
int_disabledult = 0;
|
|
}
|
|
if (status & SPSTATUS_SIGNAL0_SET) {
|
|
task->t.flags |= int_disabledult;
|
|
task->t.flags &= ~(M_TASK_FLAG1);
|
|
}
|
|
return int_disabledult;
|
|
}
|