265
CHAPTER 11 INSTRUCTION SET
MOV reg1,#n4
Function: reg1 <– n4 n4 = I3-0: 0-FH
Transfers the 4-bit immediate data n4 to A register reg1 (X, H, L, D, E, B, C).
MOV XA,#n8
Function: XA <– n8 n8 = I7-0: 00H-FFH
Transfers the 8-bit immediate data n8 to register pair XA. The string effect can be utilized. When two
or more of this instruction are executed in succession or when MOV A,#n4 instruction is located
continguously, the string instructions following an executed instruction are processed as NOP instructions.
MOV HL,#n8
Function: HL <– n8 n8 = I7-0: 00H-FFH
Transfers the 8-bit immediate data n8 to register pair HL. The string effect can be utilized. When two or
more of this instruction are executed in succession, the string instructions following an executed instruction
are processed as NOP instructions.
MOV rp2,#n8
Function: rp2 <– n8 n8 = I7-0: 00H-FFH
Transfers the 8-bit immediate data n8 to register pair rp2 (BC, DE).
MOV A,@HL
MOV A,@HL+
MOV A,@HL–
MOV A,@rpa1
Function: A <– (Register pair specified by the operand)
When HL+ is specified for the register pair: Skip if L = 0
When HL– is specified for the register pair: Skip if L = FH
Transfers the data at the data memory location addressed by the specified register pair (HL, HL+, HL–,
DE, DL) to the A register.
When HL+ (automatic increment) is specified for the register pair, automatically increments the contents
of the L register by one after the data transfer, and continues the operation until the contents are set to 0.
*
*
*
*
*
*
*