Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/lib/src/__osSiRawReadIo.c
7857 views
1
#include "libultra_internal.h"
2
#include "hardware.h"
3
4
s32 __osSiRawReadIo(void *a0, u32 *a1) {
5
if (__osSiDeviceBusy()) {
6
return -1;
7
}
8
*a1 = HW_REG((uintptr_t) a0, u32);
9
return 0;
10
}
11
12