Assembly ATT Syntax Question 1G A The leal instruction does
Assembly (AT&T Syntax) Question 1.G:
A. The leal instruction does not alter any condition code register
B. CMP S2, S1 modifies the condition code registers based on the value of S2 - S1
C. TEST S2, S1 modifies the condition code registers based on the condition S1 & S2
D. CMP and TEST instructions modify ONLY the condition code registers
Select the choice which corresponds to ALL of the true statements above?
- A, C and D
- B and D
- B, C and D
- A, B, C and D
- B and C
Solution
A. The leal instruction does not alter any condition code register
B. CMP S2, S1 modifies the condition code registers based on the value of S2 - S1
C. TEST S2, S1 modifies the condition code registers based on the condition S1 & S2
D. CMP and TEST instructions modify ONLY the condition code registers
Statements A, B, C and D are true.
Option 4 is correct cchic.
