To decrement an accumulator, use the SUB command. The format for a SUB statement is:
SUB accumulator,value
where accumulator is one of ACL/E's accumulators and value is the numeric value to be subtracted from the variable. For example, the following statement decrements the accumulator A3 by 5:
SUB A3,5
You can also decrement an accumulator by the value of another accumulator. For example, the following statement decrements A3 by the value of A2:
SUB A3,A2
The accumulator that is being decremented must be in the first operand position, so the following statement decrements A2 by the value of A3:
SUB A2,A3
|
Copyright © 2013 CA.
All rights reserved.
|
|