31.14.4.1 Calculating the Number of Steps When Setting Operands - SAR/SARP

The following table lists the specifiable content of operands S1, S2, and D1 for the SAR and SARP instructions.

The actual number of steps in the SAR and SARP instructions depends on the specified operands. 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 SAR and SARP instructions

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

{Data_1 =1 step} + {10 = 1 step} + {Data_2 = 1 step} + {1 step} = 4 steps One last step is included in the instruction. Be sure to add that one step.