mirror of
https://github.com/zeldaret/oot.git
synced 2025-02-03 01:54:37 +00:00
15 lines
291 B
C
15 lines
291 B
C
#include <ultra64.h>
|
|
#include <global.h>
|
|
#include <ultra64/hardware.h>
|
|
|
|
s32 __osSpSetPc(void* pc) {
|
|
register u32 spStatus = HW_REG(SP_STATUS_REG, u32);
|
|
|
|
if (!(spStatus & SP_STATUS_HALT)) {
|
|
return -1;
|
|
} else {
|
|
HW_REG(SP_PC_REG, void*) = pc;
|
|
}
|
|
|
|
return 0;
|
|
}
|