ADD Examples
Example 1:
|
|
|
|
|
|
|
|
|
|
|
|
|
•••85.10 |
|
|
|
|
•••110.50 |
|
| |||
|
|
|
|
•••85.10 |
|
|
|
|
•••195.60 |
No Condition Flag is set.
Example 2:
|
|
|
|
|
|
|
|
|
•••25.773 |
|
|
|
|
••500.1 |
|
| |||
|
|
|
|
•••25.773 |
|
|
|
|
••525.9 |
No Condition Flag is set. SENDING was rounded to 25.8 before the operation.
Example 3:
|
|
|
|
|
|
|
|
|
750.00 |
|
|
|
|
425.00 |
|
| |||
|
|
|
|
750.00 |
|
|
|
|
175.00 |
The OVER Condition Flag is set. RECVING was too small to contain the sum 1175.00. The LESS and ZERO Condition Flags are unpredictable.
Example 4:
|
|
|
|
|
|
|
|
|
|
|
|
|
•••85.10 |
|
|
|
|
•••110.50 |
|
|
|
|
••••••.00 |
|
| |||
|
|
|
|
•••85.10 |
|
|
|
|
•••110.50 |
|
|
|
|
•••195.60 |
No Condition Flag is set.
Example 5:
|
|
|
|
|
|
|
|
|
|
|
|
|
•••45 |
|
|
|
|
•••0 |
|
| |||
|
|
|
|
•••45 |
|
|
|
|
••65 |
No Condition Flag is set.
Example 6:
Enhanced array processing may cross-foot an array as follows:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Each of the values of the elements in ARRAY1 is added to the variable X.
![]() |