INSV Instruction

Purpose:To copy a long word to a bit field.
Format:opcode src.rl, startpos.rl, size.rb, base.vb
Operation: {field} <- src<(size-1):0>
Condition
Codes:
N <- 0;
Z <- 0;
V <- 0;
C <- 0;
Exceptions: Reserved Operand
Opcodes:
F0INSVInsert Field
Description: The field specified by the position, size and base operands is replaced by bits <(size-1):0> of the source operand. If the size operand is 0, the only action is to affect the condition codes.
Notes:
1.
A reserved operand fault occurs if the unsigned size operand is greater than 32 or the bit field is contained in a register and the position operand is outside the range 0 - 31.
2.
On a reserved operand fault, the field is unaffected and the condition codes are unpredictable.
3.
If the base address is a register, the bit field may extend into the next register.
4.
The startpos operand may be negative.