CHAPTER 11 INSTRUCTION SET
257
User’s Manual U10676EJ3V0UM
MOV XA, @HL
Function:
A
←
(HL), X
←
(HL+1)
Transfers the contents of the data memory addressed by register pair HL to the A register, and the contents of
the next memory address to the X register.
If the contents of the L register are a odd number, an address whose least significant bit is ignored is transferred.
Application example
To transfer the data at addresses 3EH and 3FH to register pair XA
MOV HL, #3EH
MOV XA, @HL
MOV @HL, A
Function:
(HL)
←
A
Transfers the contents of the A register to the data memory addressed by register pair HL.
MOV @HL, XA
Function:
(HL)
←
A, (HL+1)
←
X
Transfers the contents of the A register to the data memory addressed by register pair HL, and the contents of
the X register to the next memory address.
However, if the contents of the L register are a odd number, an address whose least significant bit is ignored is
transferred.
MOV A, mem
Function:
A
←
(mem) mem = D
7-0
: 00H to FFH
Transfers the contents of the data memory addressed by 8-bit immediate data mem to the A register.
MOV XA, mem
Function:
A
←
(mem), X
←
(mem+1) mem = D
7-0
: 00H to FEH
Transfers the contents of the data memory addressed by 8-bit immediate data mem to the A register and the
contents of the next address to the X register.
The address that can be specified by mem is an even address.
Application example
To transfer the data at addresses 40H and 41H to register pair XA
MOV XA, 40H