NScumm.Core.FmOPL.OPL_STATUS_RESET C# (CSharp) Method

OPL_STATUS_RESET() private method

private OPL_STATUS_RESET ( int flag ) : void
flag int
return void
        void OPL_STATUS_RESET(int flag)
        {
            /* reset status flag */
            status &= (byte)(~flag);
            if ((status & 0x80) != 0)
            {
                if ((status & statusmask) == 0)
                {
                    status &= 0x7f;
                    /* callback user interrupt handler (IRQ is ON to OFF) */
                    if (IRQHandler != null)
                        IRQHandler(IRQParam, 0);
                }
            }
        }