public void CP(int value)//rewrote (phase 2)
    {
        int res = (Z80.AF.H - value) & 0xff;
        Z80.AF.SetL(SZHVC_sub[(Z80.AF.H << 8) | res]);
    }
    /*TODO*////***************************************************************
    /*TODO*/// * EX   AF,AF'
    /*TODO*/// ***************************************************************/
    /*TODO*///#define EX_AF {                                                 \
    /*TODO*///	PAIR tmp;													\
    /*TODO*///    tmp = Z80.AF; Z80.AF = Z80.AF2; Z80.AF2 = tmp;              \
    /*TODO*///}
    
    /*TODO*////***************************************************************
    /*TODO*/// * EX   (SP),r16
    /*TODO*/// ***************************************************************/
    /*TODO*///#define EXSP(DR)												\
    /*TODO*///{																\
    /*TODO*///	PAIR tmp = { { 0, 0, 0, 0 } };								\
    /*TODO*///	RM16( _SPD, &tmp ); 										\
    /*TODO*///	WM16( _SPD, &Z80.DR );										\
    /*TODO*///	Z80.DR = tmp;												\
    /*TODO*///}