public void BIT_XY(int bit,int reg)
    {
       // _F = (_F & CF) | HF | (SZ_BIT[reg & (1<<bit)] & ~(YF|XF)) | ((EA>>8) & (YF|XF))
       Z80.AF.SetL(((Z80.AF.L & CF) | HF | (SZ_BIT[reg & (1 << bit)] & ~(YF|XF)) | ((EA >> 8) & (YF|XF))));
    }
    /*TODO*////***************************************************************
    /*TODO*/// * RES	bit,r8
    /*TODO*/// ***************************************************************/
    /*TODO*///INLINE UINT8 RES(UINT8 bit, UINT8 value)
    /*TODO*///{
    /*TODO*///	return value & ~(1<<bit);
    /*TODO*///}