411 REFERENCE · Wikibooks
360 Assembly/360 Instructions/LGR
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
__TOC__
LGR - Load Register - 64 Bit - Opcode B904 - RRE Instruction
Format
LGR 2,6
The specific syntax is
LGR target register, source register.
RRE Instruction (4 bytes)Bytes 1 and 2Byte 3Byte 4target registersource register(16 bits)OpcodeB904(8 bits)Not used(4 bits) 0..F(4 bits)0..F
The first argument is a target register which value is affected by the instruction.
The second argument is the source value register.
Availability
The LGR instruction is 64-bit, and is only available on the 370 series and z/System. It will cause an opcode exception on the 360 series.
Operation
The LGR instruction copies a 64-bit value from the register specified by the second argument to the register specified by the first argument.
Condition codes are not changed.
Register 0 is valid for either register and is not ignored as in some other instructions.
Exceptions and Faults
360 Series: Opcode Exception
370 Series and zSystem: None.
LGHR LH B903 LTGR B905 LURAG