MV

Move

MV rd, rs

Copies the value of one register into another.

Encoding

Binary Layout
000000000000
31:20
rs1
19:15
000
14:12
rd
11:7
0010011
6:0
 
Format I-Type
Opcode 0x00000013
Extension Pseudo

Operands

  • rd
    Destination register (integer)
  • rs
    Source

Example

MV x10, x11

// Copies x11 to x10.

Related

More in Pseudo

Description

MV copies the value of rs1 into rd. It is an assembler pseudoinstruction for ADDI rd, rs1, 0.

Operation

R[rd] = R[rs];