sm64pc/lib/src/__osSiRawWriteIo.c
2019-10-05 15:08:05 -04:00

10 lines
203 B
C

#include "libultra_internal.h"
#include "hardware.h"
s32 __osSiRawWriteIo(void *a0, u32 a1) {
if (__osSiDeviceBusy()) {
return -1;
}
HW_REG((uintptr_t) a0, u32) = a1;
return 0;
}