I am given with this information:
"CMP OP1,OP2 will compare registers OP1 and OP2 if they are equal, flag values will be ZF=1, CF=0, if the first operands value is greater flag values will be ZF=0, CF=0, if the first operands value is less than the second operand flag values will be ZF=0,CF=1."
I need to design instruction set architecture for this compare operation but I couldn't understand how to add ZF and CF values inside CMP instruction