MOV Rd, Rs :
- This instruction copies data from source register Rs to destination register Rd.
- Source and destination register can be any 8-bit general purpose register like A, B, C, D, E, H and L.
- Contents of source register remain unchanged.
- No flags are affected.
- It is a one byte instruction.
- Register addressing mode is used in this instruction.
Example:
MOV B, C
MOV D, H
MOV B, C
MOV D, H
MOV R, M:
- This instruction copies data from memory location pointed by HL register pair to register R.
- R can be any 8-bit general purpose register like A, B, C, D, E, H and L.
- No flags are affected.
- It is a one byte instruction.
- Indirect addressing mode is used in this instruction.
Example:
MOV C, M
MOV H, M
MOV C, M
MOV H, M
MOV M, R:
- This instruction copies the data from register R to the memory location pointed by HL register pair.
- R can be any 8-bit general purpose register like A, B, C, D, E, H and L.
- No flags are affected.
- It is a one byte instruction.
- Indirect addressing mode is used in this instruction.
Example:
MOV M, C
MOV M, H
MOV M, C
MOV M, H
Comments
Post a Comment