ASM2 - Documentation
  • 📚ASM2 - Documentation
  • Registers
  • Address Registers
  • Instructions
    • DISP
    • END
    • MOV
    • RET
  • Operators
    • ADD
    • SUB
    • MUL
    • DIV
  • Functions
  • Subroutines
  • Jump
    • Conditional Jump
      • Jump Equal (JE)
      • Jump Not Equal (JNE)
      • Jump Greater (JG)
      • Jump Greater or Equal (JGE)
      • Jump Less (JL)
      • Jump Less or Equal (JLE)
    • Unconditional Jump
Powered by GitBook
On this page
  • Definition
  • Syntax
  • Where
  • Usage
  1. Instructions

MOV

MOV (Move) Instruction

Definition

The "MOV" (Move) instruction is a fundamental assembly language instruction used to copy the value from one register to another.

Syntax

MOV RX, Y

Where

  • RX: Represents the destination register where the value will be moved.

  • Y: Represents the source register or immediate value that will be copied to the destination register.

Usage

The "MOV" instruction is extensively used for data transfer operations in assembly language programming. Its primary purpose is to move data between registers, enabling the manipulation and processing of information within the CPU. Here are some common use cases and details regarding the usage of the "MOV" instruction:

  • Register-to-Register Transfer:

    MOV R1, R2

    This example transfers the content of register R2 to register R1.

  • Immediate-to-Register Transfer:

    MOV R3, #10

    This example moves the immediate value 10 to register R3.

PreviousENDNextRET

Last updated 1 year ago