beautypg.com

Pushf – Zilog Z16F2810 User Manual

Page 158

background image

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

This manual is related to the following products: