ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

c.sb

T1 riscv alu insn
Store unsigned byte, 16-bit encoding
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zcb
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZcb

Summary

Stores a 8-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 sb xs2, offset(xs1).

Syntax / Encoding

c.sb xs2, imm(xs1) | 100010xxxxxxxx00 (mask=0xfc03 match=0x8800)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV100010xxxxxxxx000xfc03 / 0x8800

Operands

NameDescription
immbits [5,6]
xs2bits [4:2]
xs1bits [9:7]