mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-06 16:12:42 +00:00
9 lines
204 B
C
9 lines
204 B
C
#include "libultra_internal.h"
|
|
#include "hardware.h"
|
|
s32 __osSiRawReadIo(void *a0, u32 *a1) {
|
|
if (__osSiDeviceBusy()) {
|
|
return -1;
|
|
}
|
|
*a1 = HW_REG((uintptr_t) a0, u32);
|
|
return 0;
|
|
}
|