267
CHAPTER 11 INSTRUCTION SET
MOV XA,mem
Function: A <– (mem), X <– (mem+1) mem = D7-0: 00H-FEH
Transfers the data at the data memory location addressed by the 8-bit immediate data mem to the A register,
and transfers the data at the next address to the X register.
An even address can be specified with mem.
Example The data at addresses 40H and 41H are transferred to the XA register pair.
MOV XA,40H
MOV mem,A
Function: (mem) <– A mem = D7-0: 00H-FFH
Transfers the contents of the A register to the data memory location addressed by the 8-bit immediate data
mem.
MOV mem,XA
Function: (mem) <– A, (mem+1) <– X mem = D7-0: 00H-FEH
Transfers the contents of the A register to the data memory location addressed by the 8-bit immediate data
mem, and transfers the contents of the X register to the next memory address.
An even address can be specified with mem.
MOV A,reg
Function: A <– reg
Transfers the contents of register reg (X, A, H, L, D, E, B, C) to the A register.
MOV XA,rp’
Function: XA <– rp’
Transfers the contents of register pair rp’ (XA, HL, DE, BC, XA’, HL’, DE’, BC’) to the XA register pair.
Example The contents of the XA’ register pair are transferred to the XA register pair.
MOV XA, XA’