Zilog Z16F2810 Bedienungsanleitung Seite 158

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 216
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 157
PUSHF Instruction UM018809-0611
142
ZNEO
®
CPU Core
User Manual
PUSHF
Definition
PUSH Flags
Syntax
PUSHF
Operation
SP SP
2
(SP)
{00H, FLAGS[7:0]}
Description
The PUSHF instruction decrements the Stack Pointer (R15), loads the Flags register into the byte
pointed to by the Stack Pointer, and then decrements the Stack Pointer again. PUSHF decrements
the Stack Pointer twice so its alignment is not changed.
Flags
Flags are not affected by this instruction.
Syntax and Opcodes
Example
Before:
SP=FFFF_DB24H, Flags=B1H (C, S, V, IRQE=1; Z, B=0)
PUSHF ;Object Code: 0002
After:
SP=FFFF_DB22H, FFFF_DB22H=00H, FFFF_DB23H=B1H (1011_0001B)
Instruction, Operands Word 0 Word 1 Word 2
PUSHF 0002H
Seitenansicht 157
1 2 ... 153 154 155 156 157 158 159 160 161 162 163 ... 215 216

Kommentare zu diesen Handbüchern

Keine Kommentare