Extract Word High (extwh)

Syntax

extwh $s_reg1, $s_reg2, $d_reg

extwh $d_reg/$s_reg1, $s_reg2

extwh $s_reg1, val_immed, $d_reg

extwh $d_reg/$s_reg1, val_immed

Description

Extract Word High shifts the register $s_reg1 left by 0-7 bytes, inserts zeros into the vacated bit positions, and then extracts the two low-order bytes and stores them in the destination register. The six high-order bytes of the destination register are cleared to zeros. Bits 0-2 of register $s_reg2 or the immediate value specifies the byte shift count.