DIVIDE Examples
Example 1:
|
|
|
|
|
|
|
|
|
|
|
|
|
•1.10 |
|
|
|
|
•••25.00 |
|
| |||
|
|
|
|
•1.10 |
|
|
|
|
•••22.73 |
No Condition Flag is set. The quotient was rounded from 22.727.
Example 2:
|
|
|
|
|
|
|
|
|
•.00 |
|
|
|
|
125.50 |
|
| |||
|
|
|
|
•.00 |
|
|
|
|
•••.00 |
The OVER Condition Flag is set since SENDING equaled zero. The LESS and ZERO Condition Flags are unpredictable.
Example 3:
|
|
|
|
|
|
|
|
|
|
|
|
|
•1.10 |
|
|
|
|
•••25.00 |
|
|
|
|
•••••.00 |
|
| |||
|
|
|
|
•1.10 |
|
|
|
|
•••25.00 |
|
|
|
|
•••22.73 |
No Condition Flag is set. The quotient was rounded from 22.727.
Example 4:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Performs a standard 3 operand DIVIDE instruction on each element within each array.
Example 5:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15723.10 |
|
|
|
|
•••.00 |
|
| |||
|
|
|
|
15723.10 |
|
|
|
|
••7.23 |
Performs a standard three operand DIVIDE instruction. Note that WHOLE was truncated to 723.10 when it was moved to NET prior to the DIVIDE being performed.
![]() |