Zilog Z16F2810 Instrukcja Użytkownika Strona 185

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 216
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 184
UM018809-0611 SUB Instruction
ZNEO
®
CPU Core
User Manual
169
SUB
Definition
Subtract
Syntax
SUB dst, src
Operation
dst dst – src
Description
This instruction subtracts the source operand from the destination operand. The result is stored in
the destination address or register. The contents of the source operand are unaffected. The ZNEO
CPU performs subtraction by adding the two’s complement of the source operand to the destina-
tion operand.
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 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:
Przeglądanie stron 184
1 2 ... 180 181 182 183 184 185 186 187 188 189 190 ... 215 216

Komentarze do niniejszej Instrukcji

Brak uwag