Zilog Z16F2810 Uživatelský manuál Strana 158

  • 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 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
Zobrazit stránku 157
1 2 ... 153 154 155 156 157 158 159 160 161 162 163 ... 215 216

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

Žádné komentáře