R-Type Instruction

The R-type (register) format (opcode 011 0011) is designed for instructions that involve 3 registers and no immediate, such as arithmetic, bitwise, shifting, and conditional setting instructions. It follows the format:

31-2524-2019-1514-1211-76-0
funct7rs2rs1funct3rdopcode

where rs1 and rs2 are the 5-bit source registers, and rd is the 5-bit destination register.