public int RLC(int value)
    {
        int res = value & 0xFF;
        int c = (res & 0x80)!=0 ? CF : 0;
        res = ((res << 1) | (res >> 7)) & 0xff;
        Z80.AF.SetL((SZP[res] | c));
        return res;
    }
    /*public int RLC(int value) //rewrote
    {
        int c = (value & 0x80) >> 7;
        value = ((value << 1) | (value >> 7)) & 0xff;
        Z80.AF.SetL(SZP[value] | c);
        return value;
    }*/
    /*TODO*////***************************************************************
    /*TODO*/// * RRC	r8
    /*TODO*/// ***************************************************************/
    /*TODO*///INLINE UINT8 RRC(UINT8 value)
    /*TODO*///{
    /*TODO*///	unsigned res = value;
    /*TODO*///	unsigned c = (res & 0x01) ? CF : 0;
    /*TODO*///	res = ((res >> 1) | (res << 7)) & 0xff;
    /*TODO*///	_F = SZP[res] | c;
    /*TODO*///	return res;
    /*TODO*///}