beautypg.com

Or acc. -19, Pop dst -19 – Maxim Integrated MAXQ7666 User Manual

Page 356

background image

MAXQ7665/MAXQ7666 User’s Guide

14-19

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

Example(s):

; Acc = 2345h, C=0 at start

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 decrements 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

Example(s):

; GR

← 1234h

POP GR

; @DP[0]

← 76h (WBS0=0)

POP @DP[0]

; @DP[0]

← 0876h (WBS0=1)

Stack Data:

← SP (initial)
← SP (after POP GR)
← SP (after POP @DP[0])

1ddd

dddd

0000

1101

xxxxh

1234h
0876h

xxxxh
xxxxh

1010

1010

bbbb

1010

Maxim Integrated

This manual is related to the following products: