mirror of
https://github.com/n64decomp/mk64
synced 2026-08-12 03:37:42 -04:00
17a6f4bb3d
* update clang and add action * try clang on course folder only * forget two file * Update course_displaylists.inc.c * forget few other file * Update course_vertices.inc.c * format all code while get it match * second pass * format other dir * disable clang format on bad ido code * fix some tabulation * revert format on tool dir * Update clang-format.yml * ignore gbi.h * add some read me instruction * fix error * format and fixing error * Update README.md --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
13 lines
270 B
C
13 lines
270 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;
|
|
}
|
|
}
|