sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

__osSiRawReadIo.c (199B)


      1 #include "libultra_internal.h"
      2 #include "PR/rcp.h"
      3 
      4 s32 __osSiRawReadIo(u32 devAddr, u32 *data) {
      5     if (__osSiDeviceBusy()) {
      6         return -1;
      7     }
      8     *data = IO_READ(devAddr);
      9     return 0;
     10 }