- Synopsis
-
Store halfword, 16-bit encoding
- Mnemonic
-
c.sh rs2', uimm(rs1')
- Encoding (RV32, RV64)
{reg:[ { bits: 2, name: 0x0, attr: ['C0'] }, { bits: 3, name: 'rs2\'' }, { bits: 1, name: 'uimm[1]' }, { bits: 1, name: '0' }, { bits: 3, name: 'rs1\'' }, { bits: 3, name: 0x3 }, { bits: 3, name: 0x4, attr: ['FUNCT3'] }, ],config:{bits:16}}
- Description
-
This instruction stores the least significant halfword of rs2' to the memory address formed by adding rs1' to the zero extended immediate uimm.
Note
|
rs1' and rs2' are from the standard 8-register set x8-x15. |
- Prerequisites
-
None
- 32-bit equivalent
- Operation
//This is not SAIL, it's pseudo-code. The SAIL hasn't been written yet.
mem[X(rs1c)+EXTZ(uimm)][15..0] = X(rs2c)