MV
Move
MV rd, rs
Copies the value of one register into another.
Details
MV copies the value of rs1 into rd. It is an assembler pseudoinstruction for ADDI rd, rs1, 0.
Pseudocode Operation
R[rd] = R[rs];
Example
MV x10, x11
Encoding
Binary Layout
000000000000
31:20
rs1
19:15
000
14:12
rd
11:7
0010011
6:0
Operands
-
rd
Destination register (integer) -
rs
Source