You are here : assembly8086PUSHF

PUSHF - 8086

Store flags register in the stack.

Algorithm:

  •  SP = SP - 2
  •  SS:[SP] (top of the stack) = flags


Syntax

PUSHF


Example

PUSHF	;STORES FLAG TO STACK
POP AX	;AX = CONTENTS OF FLAG


Output / Return Value


Limitations


Alternatives / See Also


Reference