c.sh

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

Synopsis

c.sh xs2, imm(xs1)

Encoding

Type:

01245679101500xs2imm0xs1100011

RISC-V Instruction Encoder/Decoder

open c.sh in rvcodecjs

Availability