Does SEXT.B access memory?
It does not access data memory; it reads integer source registers and writes the computed result to rd.
Sign-extend byte
Sign-extends the least-significant 8 bits of rs to XLEN by copying bit 7 to every higher bit. Part of Zbb.
Starts with machine-code field decoding, then shows operand reads, instruction-specific execution, and ISA-visible state update.
Assumes Zbb is enabled at the selected XLEN, with the fixed register values below and PC=0x2000; fetch succeeds and no asynchronous interrupt occurs. Steps are a teaching decomposition.
The machine code is split by the current instruction format; the animation starts from encoding/decode.
This animation shows ISA-visible decode and state changes, not any specific CPU pipeline, cache, prediction, or timing implementation.
SEXT.B reads only rs[7:0], copies bit 7 to all higher bits, and writes the XLEN-wide result to rd.
RV32 Zbb, x11=0x12345680: sext.b x10, x11 writes x10=0xFFFFFF80 (-128); RV64 writes 0xFFFFFFFFFFFFFF80.
It does not access data memory; it reads integer source registers and writes the computed result to rd.
SEXT.B uses bit 7 for every upper rd bit: bit 7=0 fills them with zero, and bit 7=1 fills them with one.