160
CHAPTER 9. INSTRUCTION SET
MOV @HL, A
Function: (HL) A
Moves the contents of the A register to the data memory addressed by the contents of register pair HL.
MOV A, mem
Function: A (mem); mem = D7 to D0 : 00H to 3FH
Moves the data memory contents addressed by 8-bit immediate data mem to the A register.
MOV XA, mem
Function: A (mem), X (mem + 1); mem = D7 to D0 : 00H to 3EH
Moves the data memory contents addressed by 8-bit immediate data mem to the A register and the contents
of the next address to the X register.
mem can specify even addresses.
Application example: Move the data of addresses 20H and 21H to register pair XA.
MOV XA, 20H
MOV mem, A
Function: (mem) A; mem = D7 to D0 : 00H to 3FH
Move the contents of the A register to the data memory addressed by 8-bit immediate data mem.
MOV mem, XA
Function: (mem) A, (mem + 1) X; mem = D7 to D0 : 00H to 3EH
Moves the contents of the A register to the data memory addressed by 8-bit immediate data mem and the
contents of the X register to the next memory address.
mem can specify even addresses.