sm64

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

__osSetHWintrRoutine.c (275B)


      1 #include "libultra_internal.h"
      2 
      3 extern s32 (*__osHwIntTable[])(void) ;
      4 
      5 void __osSetHWIntrRoutine(OSHWIntr interrupt, s32 (*handler)(void)) {
      6     register u32 saveMask;
      7     saveMask = __osDisableInt();
      8     __osHwIntTable[interrupt] = handler;
      9     __osRestoreInt(saveMask);
     10 }