Zilog Z8F0130 Bedienungsanleitung Seite 156

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 314
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 155
eZ8
CPU Core
User Manual
UM012820-0810 DJNZ Instruction
141
DJNZ
Definition
Decrement and Jump if Non-Zero.
Syntax
DJNZ dst, RA
Operation
dst
dst - 1
if dst
0 {
PC
PC + X
}
where the jump offset, X, is calculated by the eZ8 CPU assembler from
the Program Counter (PC) value and the Destination Address (DA).
Description
The Working Register used as a counter is decremented. If the contents of
the Working Register are not zero after being decremented, then the rela
-
tive address is added to the Program Counter and control passes to the
statement whose address is now in the Program Counter. The range of the
relative address is +127 to –128. The original value of Program Counter is
the address of the instruction byte following the DJNZ statement. When
the specified Working Register counter reaches zero, control falls through
to the statement following the DJNZ instruction.
Flags
C Unaffected
Z Unaffected
S Unaffected
V Unaffected
Seitenansicht 155
1 2 ... 151 152 153 154 155 156 157 158 159 160 161 ... 313 314

Kommentare zu diesen Handbüchern

Keine Kommentare