ZiLOG eZ80 User Manual page 128

Hide thumbs Also See for eZ80:
Table of Contents

Advertisement

CP A, ir
Compare with Accumulator
Operation
A – ir
Description
The ir operand is any of the 8-bit registers IXH, IXL, IYH, or IYL. The ir operand is com-
pared with (subtracted from) the contents of the accumulator, A. The execution of this
instruction does not affect the contents of the accumulator or the ir operand.
Condition Bits Affected
S
Z
H
P/V
N
C
Attributes
Mnemonic
CP
CP
CP
CP
UM007714-0908
Set if result is negative; reset otherwise.
Set if A = ir; reset otherwise.
Set if borrow from bit 4; reset otherwise.
Set if overflow: reset otherwise.
Set.
Set if borrow; reset otherwise.
Operand
ADL Mode
A,IXH
X
A,IXL
X
A,IYH
X
A,IYL
X
Cycle
Opcode (hex)
2
DD, BC
2
DD, BD
2
FD, BC
2
FD, BD
®
eZ80
CPU
User Manual
119
CPU Instruction Set

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the eZ80 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents