Zilog Z16F2810 Uživatelský manuál Strana 105

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 216
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 104
UM018809-0611 CPC Instruction
ZNEO
®
CPU Core
User Manual
89
CPC
Definition
Compare with Carry
Syntax
CPC dst, src
Operation
dst
srcC
Description
The source operand with the C bit is compared to (subtracted from) the destination operand. The
contents of both operands are unaffected. Repeating this instruction enables multiregister com-
pares. The Zero flag is set only if the initial state of the Zero flag is 1 and the result is 0. This
instruction is generated by using the Extend prefix, 0007H, with the CP opcodes.
Flags
Flags are set based on the memory destination size, or 32 bits for register destinations.
76543210
C Z S V B CIRQE IRQE
*****
Legend
C = Set to 1 if the result generated a borrow; otherwise set to 0.
Z = Set to 1 if Z is initially 1 and the result is zero; otherwise set to 0.
S = Set to 1 if the result msb is 1; otherwise set to 0.
V = Set to 1 if an arithmetic overflow occurs; otherwise set to 0.
B = Set to 1 if the initial destination or source value is 0; otherwise set to 0.
CIRQE = No change.
IRQE = No change.
Note:
Zobrazit stránku 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 215 216

Komentáře k této Příručce

Žádné komentáře