mirror of
https://github.com/n64decomp/sm64
synced 2026-04-27 01:23:44 +00:00
13 lines
258 B
C
13 lines
258 B
C
#include "libultra_internal.h"
|
|
#include "PR/rcp.h"
|
|
|
|
s32 __osSpSetPc(void *pc) {
|
|
register u32 status = IO_READ(SP_STATUS_REG);
|
|
if (!(status & SPSTATUS_HALT)) {
|
|
return -1;
|
|
} else {
|
|
IO_WRITE(SP_PC_REG, pc);
|
|
return 0;
|
|
}
|
|
}
|