1
0
mirror of https://github.com/zeldaret/oot.git synced 2024-09-23 13:54:44 +00:00
oot/src/libultra_boot_O2/__osSiRawWriteIo.c

11 lines
194 B
C
Raw Normal View History

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