Alternative input format
The alternative input format applied to POWER® family and PowerPC® instructions.
The alternative input format is applied to the following POWER® family and PowerPC® instructions.
POWER® family | PowerPC® |
---|---|
rlimi[.] | rlwimi[.] |
rlinm[.] | rlwinm[.] |
rlnm[.] | rlwnm[.] |
rlmi[.] | Not applicable |
Five operands are normally required for these instructions. These operands are:
RA, RS, SH, MB, ME
MB indicates the first bit with a value of 1 in the mask, and ME indicates the last bit with a value of 1 in the mask. The assembler supports the following operand format.
RA, RS, SH, BM
BM is the mask itself. The assembler generates the MB and ME operands from the BM operand for the instructions. The assembler checks the BM operand first. If an invalid BM is entered, error 78 is reported.
A valid mask is defined as a single series (one or more) of bits with a value of 1 surrounded by zero or more bits with a value of z0. A mask of all bits with a value of 0 may not be specified.