sm64pc/lib/src/__osSiRawWriteIo.c

10 lines
203 B
C
Raw Normal View History

2019-08-25 04:46:40 +00:00
#include "libultra_internal.h"
#include "hardware.h"
s32 __osSiRawWriteIo(void *a0, u32 a1) {
2019-09-01 19:50:50 +00:00
if (__osSiDeviceBusy()) {
2019-08-25 04:46:40 +00:00
return -1;
2019-09-01 19:50:50 +00:00
}
2019-10-05 19:08:05 +00:00
HW_REG((uintptr_t) a0, u32) = a1;
2019-08-25 04:46:40 +00:00
return 0;
}