

Using Arithmetic and Logic › COMPARE Statement › An Example of the COMPARE Command
An Example of the COMPARE Command
The following statement compares the value of A1 to the value of A2:
COMPARE A1,A2
The condition code produced by the statement depends on the values held in A1 and A2:
- If the value of A1 is 5, and the value of A2 is 6, the condition code will be LT.
- If the value of A1 is 6, and the value of A2 is 5, the condition will be GT.
- If the value of A1 is 6 and the value of A2 is 6, the condition code will be EQ.
Copyright © 2013 CA.
All rights reserved.
 
|
|