home *** CD-ROM | disk | FTP | other *** search
/ Phoenix Heaven Sunny 2 / APPARE2.BIN / oh_towns / his / source / hisl9.c < prev    next >
C/C++ Source or Header  |  1995-06-20  |  791b  |  24 lines

  1. /***********************************************************************
  2.  *                                                                     *
  3.  *                    ハードウェア割り込み支援ライブラリ               *
  4.  *                                                                     *
  5.  *        1995.6.12                                  by ちょもらんま   *
  6.  *                                                                     *
  7.  ***********************************************************************/
  8.  
  9. #include <hisinner.h>
  10.  
  11. /********************** 割り込みマスク状態を調べる *********************/
  12.  
  13. int HIS_checkMask( int intnum )
  14. {
  15.     if( ( HIS_readIMR() & ( 0x0001 << intnum ) ) == 0 )
  16.     {
  17.         return HIS_intUnmasked;
  18.     }
  19.     else
  20.     {
  21.         return HIS_intMasked;
  22.     }
  23. }
  24.