beautypg.com

Maxq610 user’s guide – Maxim Integrated MAXQ610 User Manual

Page 182

background image

14-15

MAXQ610 User’s Guide

OR Acc.

Logical OR Carry Flag with Accumulator Bit

Description:

Performs a logical-OR between the Carry (C) status flag and a specified bit of the active accumulator
(Acc .) and returns the result to the Carry .

Status Flags: C
Operation:

C

← C OR Acc.

Encoding:

15

0

1010

1010

bbbb

1010

Example(s):

OR Acc .1

; Acc .1=0

→ C=0

OR Acc .2

; Acc .2=1

→ C=1

POP dst

Pop Word from the Stack

Description:

Pops a single word from the stack (@SP) to the specified dst and decreases the stack depth (incre-
ments the stack pointer SP) .

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

C, E (if dst = PSF)

Operation:

dst

← @SP--

Encoding:

15

0

1ddd

dddd

0000

1101

Example(s):

POP GR

; GR

← 1234h

POP @DP[0]

; @DP[0]

← 76h (WBS0=0)

; @DP[0]

← 0876h (WBS0=1)

Stack Data:

xxxxh
xxxxh

← SP (after POP @DP[0])

0876h

← SP (after POP GR)

1234h

← SP (initial)

xxxxh

POPI dst

Pop Word from the Stack Enable Interrupts

Description:

Pops a single word from the stack (@SP) to the specified dst and decreases the stack depth (incre-
ments 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--

IPS

← 11b

Encoding:

15

0

1ddd

dddd

1000

1101

Example(s):

See POP