Next: Load Multiple Up: Insert Character Previous: Load Complement

Load Halfword

The second operand is placed in the first-operand location. The second operand is two bytes in length and is considered to be a 16-bit signed integer.

The second operand is expanded to 32 bits by propagating the sign-bit value through the 16 high order bit positions. Expansion occurs after the operand is obtained from storage and before insertion in the register.

Condition Code:
The code remains unchanged.

Program Exceptions:
Access (fetch, operand 2)

Programming Note
The second operand is a 16-bit integer. Given a word-aligned address D, the instruction LH R1,D will move bits 31:16 of D to bits 15:0 of R1.



Next: Load Multiple Up: Insert Character Previous: Load Complement


A.Daviel,TRIUMF