c.lh

Loads a 16-bit value from memory into register xd. It computes an effective address by adding the zero-extended offset, to the base address in register xs1. It expands to `lh` `xd, offset(xs1)`.

Synopsis

c.lh xd, imm(xs1)

Encoding

Type:

01245679101500xdimm1xs1100001

RISC-V Instruction Encoder/Decoder

open c.lh in rvcodecjs

Availability