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