1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-01-15 21:07:15 +00:00
oot/src/libultra_boot_O2/__osSiRawReadIo.c

10 lines
186 B
C
Raw Normal View History

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