ZEXT.H
Zero Extend Halfword
ZEXT.H rd, rs1
Zero-extends the lowest halfword (16 bits) to XLEN bits.
Details
ZEXT.H zero-extends the least-significant halfword of rs1 to XLEN bits, writing to rd.
Pseudocode Operation
R[rd] = zext(R[rs1][15:0]);
Example
ZEXT.H x10, x11
Encoding
Binary Layout
0000100
31:25
00000
24:20
rs1
19:15
100
14:12
rd
11:7
0111011
6:0
Operands
-
rd
Destination register (integer) -
rs1
Source