How is the C.SB offset encoded?
Byte offset 0–3: bit5 supplies uimm[1], bit6 supplies uimm[0]; zero-extend without scaling.
16-bit encoding of sb, store least significant byte
C.SB (Zcb, CSB format) stores the low byte of rs2' to address rs1' + zero-extended offset. rs1' and rs2' limited to x8-x15. Expands to sb rs2',uimm(rs1'). Offset is 2-bit unsigned. Part of Zcb, depends on Zca.
Shows only ISA-visible 16-bit encoding, operands, and state, not a pipeline, cache, or timing.
Continue to Commit result to reveal architectural state.
C.SB uses the CSB format: rs1' and rs2' map to x8-x15, and uimm[1:0] is a zero-extended byte offset.
RV32/RV64 Zcb+Zca, x10=0x2000 and x9=0x123456ab: c.sb x9, 3(x10), on completion, writes mem8[0x2003]=0xab.
Byte offset 0–3: bit5 supplies uimm[1], bit6 supplies uimm[0]; zero-extend without scaling.
Every byte address is naturally aligned, so no address-misaligned exception; EEI access rules still apply.