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

OPL_STATUS_SET() private method

private OPL_STATUS_SET ( int flag ) : void
flag int
return void
        void OPL_STATUS_SET(int flag)
        {
            /* set status flag */
            status |= (byte)flag;
            if ((status & 0x80) == 0)
            {
                if ((status & statusmask) != 0)
                {    /* IRQ on */
                    status |= 0x80;
                    /* callback user interrupt handler (IRQ is OFF to ON) */
                    if (IRQHandler != null)
                        IRQHandler(IRQParam, 1);
                }
            }
        }