Home  Site Map  Instruction Index 

MOV  -  Move Instruction


The Move instruction moves values from and to Registers and memory addresses.

This command has 3 parts, Instruction, Register, then either a Register, Immediate value or a memory address.



Assembly
Sample
Description   16 bit Machine
  Code
MOV AL, 0x03 ;  Move an immediate 8 bit number to an
; 8 bit Register
  B8 03
MOV AX, 0x07D4 ;  Move an immediate 16 bit number to a
;  16 bit Register
  B8 D4 07
MOV AL, AH ;  Move 8 bit Register to 8 bit Register   8A C4
MOV AX, CX ;  Move 16 bit Register to 16 bit Register   8B C1
MOV AX, ES;  Move 16 bit Register to a 16 bit
; Segment Register
  8C C0
MOV ES, AX;  Move 16 bit Segment Register to a
;  16 bit Register
  8E C0
MOV BX, 0x0020 ;  Assign a memory address to BX  BB 20 00
MOV [BX], 0x07D4 ;  Move an immediate value to a
;  memory address
  C7 07 D4 07
MOV [BX], AX ;  Move a 16 bit Register to a memory address   89 07
MOV AX, [BX];  Move a memory address to a 16 bit Register   8B 07