
eZ8
™
CPU Core
User Manual
UM012820-0810 CPX Instruction
129
CPX
Definition
Compare using Extended Addressing.
Syntax
CPX dst, src
Operation
dst - src
Description
For this new eZ8 extended addressing instruction, the source operand is
compared to (subtracted from) the destination operand and the appropri
-
ate flags are set accordingly. The contents of both operands are unaf-
fected.
Flags
C Set if a borrow is required by bit 7; reset otherwise
Z Set if the result is zero; 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