beautypg.com

Popi dst, Push src, Popi dst -20 – Maxim Integrated MAXQ7667 User Manual

Page 334: Push src -20, Maxq7667 user’s guide

background image

_________________________________________________________________________________________________________

19-20

MAXQ7667 User’s Guide

POPI dst

Pop Word from the Stack Enable Interrupts

Description:

Pops a single word from the stack (@SP) to the specified dst and decrements the stack pointer (SP). Additionally,

POPI returns the interrupt logic to a state in which it can acknowledge additional interrupts.

Status Flags:

S, Z (if dst = Acc or AP or APC)

C, E (if dst = PSF)

Operation:

dst

← @ SP--

INS

← 0

Encoding:

15

0

Example(s):

See POP

PUSH src

Push Word to the Stack

Description:

Increments the stack pointer (SP) and pushes a single word specified by src to the stack (@SP).

Status Flags:

None

Operation:

SP

← ++SP

Encoding:

15

0

Example(s):

PUSH GR

; GR=0F3Fh

PUSH #40h

Stack Data:

← SP (after PUSH #40h)
← SP (after PUSH GR)
← SP (initial)

1ddd

dddd

1000

1101

f000

1101

ssss

ssss

xxxxh

0040h

0F3Fh

xxxxh

xxxxh