This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: .. @ Else Code Endif: Is this for signed or unsigned variable x? What if the condition was ( x > -3)? Inequality Conditions Summarised •ARM has the full set of signed and unsigned inequality conditions. They can be confusing. •After a CMP x,y or SUBS z,x,y , if x,y are the two operands, the 8 possible inequalities are shown in the table below –It is important to choose the correct condition if the test is to work for all inputs, even though for positive numbers signed and unsigned comparisons are identical. Test Signed Unsigned x > y GreaTer GT HIgher HI x ≥ y Greater or Equal GE Higher or Same HS (= CS ) x ≤ y Less or Equal LE Lower or Same LS x < y Less Than LT LOwer LO (= CC )...
View Full Document
- Spring '10
- LDR R2, CMP R2