
eZ8
™
CPU Core
User Manual
UM012820-0810 CPC Instruction
124
CPC
Definition
Compare with Carry.
Syntax
CPC dst, src
Operation
dst - src - C
Description
For this new eZ8 instruction, the source operand with the C bit is com-
pared to (subtracted from) the destination operand. The contents of both
operands are unaffected. For multiprecision operation, repeating this
instruction enables multibyte compares. The Zero flag is set only if the
initial state of the Zero flag is 1 and the result of the compare is 0.
Flags
C Set if a borrow is required by bit 7; reset otherwise
Z Set if the result is zero and the initial Zero flag is 1; reset otherwise
S Set if the result is negative; reset otherwise
V Set if an arithmetic overflow occurs; reset otherwise
D Unaffected
H Unaffected
Comentários a estes Manuais