lh

Load 16 bits of data into register `xd` from an address formed by adding `xs1` to a signed offset. Sign extend the result.

Synopsis

lh xd, imm(xs1)

Encoding

Type: I

067111214151920310000011xd001xs1imm
funct3: 001
opcode: 0000011

RISC-V Instruction Encoder/Decoder

open lh in rvcodecjs

Availability