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);
}
}
}