1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-02-10 22:57:20 +00:00
oot/src/libultra_boot_O2/__osSiRawReadIo.c

11 lines
195 B
C
Raw Normal View History

2020-03-17 00:31:30 -04:00
#include <global.h>
#include <ultra64/hardware.h>
2020-03-22 22:19:43 +01:00
s32 __osSiRawReadIo(void* a0, u32* a1) {
if (__osSiDeviceBusy()) {
2020-03-17 00:31:30 -04:00
return -1;
2020-03-22 22:19:43 +01:00
}
2020-03-17 00:31:30 -04:00
*a1 = HW_REG((u32)a0, u32);
return 0;
2020-03-22 22:19:43 +01:00
}