ARM CMN vs CCN
时间: 2023-10-01 20:11:04 浏览: 83
ARM CMN (Compare Negative) and CCN (Condition Code Negation) are both instructions used in ARM assembly language to manipulate condition codes.
The CMN instruction compares two values and updates the condition codes based on the result of the comparison. It sets the negative flag if the result is negative and the zero flag if the result is zero.
The CCN instruction negates the condition codes, which means it flips the values of the negative, zero, carry, and overflow flags. This can be useful in conditional branching and other operations where the opposite condition is needed.
In summary, CMN is used for comparison and update of condition codes, while CCN is used for negation of condition codes.
阅读全文