mirror of
https://github.com/zeldaret/oot.git
synced 2025-02-03 10:04:31 +00:00
18 lines
280 B
C
18 lines
280 B
C
|
#include <ultra64.h>
|
||
|
#include <global.h>
|
||
|
#include <ultra64/hardware.h>
|
||
|
|
||
|
s32 func_801067A0(u32 a0)
|
||
|
{
|
||
|
register u32 spStatus;
|
||
|
|
||
|
spStatus = HW_REG(SP_STATUS_REG, u32);
|
||
|
|
||
|
if (!(spStatus & SP_STATUS_HALT))
|
||
|
return -1;
|
||
|
|
||
|
HW_REG(SP_PC_REG, u32) = a0;
|
||
|
|
||
|
return 0;
|
||
|
}
|