Or acc. -20 – Maxim Integrated MAXQ Family User Manual
Page 197: Pop dst -20, Maxq family user’s guide

18-20
MAXQ Family 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
MAXQ10
Example(s):
; Acc = 45h, C=0 at start
OR Acc.1
; Acc.1=0
→ C=0
OR Acc.2
; Acc.2=1
→ C=1
MAXQ20
Example(s):
; Acc = 2345h, C=0 at start
OR Acc.1
; Acc.1=0
→ C=0
OR Acc.2
; Acc.2=1
→ C=1
Special Notes:
For the MAXQ10, the accumulator width is only 8 bits. Thus, only bit index encoding ('bbbb') for bits 0 ('0000')
through 7 ('0111') is supported.
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