Maxim Integrated MAX31782 User Manual

Page 200

Advertising
background image



MaximIntegrated  20-17

MAX31782 User’s Guide

Revision 0; 8/11

ORAcc.<b>

LogicalORCarryFlagwithAccumulatorBit

Description:

Performs a logical-OR between the Carry (C) status flag and a specified bit of the active accumula-
tor (Acc .<b>) and returns the result to the Carry .

StatusFlags:

C

Operation:

C

← C OR Acc .<b>

Encoding:

15

0

1010

1010

bbbb

1010

Example(s):

; Acc = 2345h, C=0 at start

OR Acc .1

; Acc .1=0

→ C=0

OR Acc .2

; Acc .2=1

→ C=1

POPdst

PopWordfromtheStack

Description:

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

StatusFlags:

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):

; GR

← 1234h

POP GR

; @DP[0]

← 76h (WBS0=0)

POP @DP[0]

; @DP[0]

← 0876h (WBS0=1)

Stack Data:

xxxxh

1234h

← SP (initial)

0876h

← SP (after POP GR)

xxxxh

← SP (after POP @DP[0])

xxxxh

Advertising