Does ORC.B access memory?
No. ORC.B reads the source integer register and writes its byte-wise result to the destination integer register.
Bitwise OR-combine, byte granule
ORC.B independently OR-combines each byte of rs: an all-zero byte produces an all-zero result byte, while a byte with any set bit produces an all-ones result byte. It is part of Zbb.
Starts with machine-code field decoding, then shows operand reads, instruction-specific execution, and ISA-visible state update.
Assumes RV32/RV64 with Zbb enabled, fixed initial register values, and PC=0x2000; instruction fetch succeeds and there are no asynchronous interrupts. These educational steps do not represent processor cycles.
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.
ORC.B examines rs byte by byte: a zero byte remains 0x00, while a byte containing any set bit becomes 0xFF; the final XLEN-wide result is written to rd.
Understand this scenario with real code like «orc.b x10, x11 ; each nonzero byte in x11 becomes 0xFF in x10; each zero byte becomes 0x00».
No. ORC.B reads the source integer register and writes its byte-wise result to the destination integer register.
ORC.B processes the complete XLEN-wide register value by bytes and writes an equally wide result to rd.