31.16.1.1 Calculating the Number of Steps When Setting Operands - SUM/SUMP

The following describes the specifiable content of the (S1, S2, and D1) operands for the SUM and SUMP instructions.

The actual number of steps in the SUM and SUMP instructions depends on the specified operand. The following describes how to calculate the number of steps.

Number of steps in operand S1 + Number of steps in operand S2 + Number of steps in operand D1 + 1 = Total number of steps in one instruction

For example, calculating the number of steps in SUM and SUMP instructions.

(For the number of steps in an operand, refer to the operand settings as follows.)

{Data_1 [0] = 2 steps} + {10 = 1 step} + {Result [0] = 2 steps} + {1 step} = 6 steps One last step is included in the instruction. Be sure to add that one step.