mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-26 22:42:54 -04:00
5c23113592
* libultra from sm64 integrated; 3 libultra functions matched * All of libultra done! authored-by: farisawan-2000 <farisawan.2000@gmail.com>
13 lines
271 B
C
13 lines
271 B
C
#include "libultra_internal.h"
|
|
#include "hardware.h"
|
|
|
|
s32 __osSpSetPc(void *pc) {
|
|
register u32 status = HW_REG(SP_STATUS_REG, u32);
|
|
if (!(status & SPSTATUS_HALT)) {
|
|
return -1;
|
|
} else {
|
|
HW_REG(SP_PC_REG, void *) = pc;
|
|
return 0;
|
|
}
|
|
}
|