Insert bit in register (Bitfield Insert)
The following can be specified as ipos and width:
Loads the lower width bits in general-purpose register reg1 and stores them from the bit position bit pos + width - 1 in the specified field in general-purpose register reg2 in bit pos. This instruction does not affect any fields in general-purpose register reg2 except the specified field, nor does it affect general-purpose register reg1.
If an absolute expression satisfying any one of the conditions below is specified as pos or width, the assembler outputs the following message and stops assembling. |