Popud — Pop User Stack (Decrementing) - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00
6.3.50 POPUD — POP USER STACK (DECREMENTING)
dst,src
POPUD
dst  src
Operation:
IR  IR – 1
This instruction is used for user-defined stacks in the register file. The contents of register file
location addressed by the user stack pointer are loaded into the destination. The user stack
pointer is then decremented.
No flags are affected.
Flags:
Format:
opc
Given register 00H = 42H (user stack pointer register), register 42H = 6FH, and
Example:
register 02H = 70H:
POPUD 02H,@00H
If general register 00H contains the value 42H and register 42H contains the value 6FH, the
statement "POPUD 02H,@00H" loads the contents of register 42H into destination register 02H.
The user stack pointer is then decremented by one, leaving the value 41H.
src
dst
Register 00H = 41H, register 02H = 6FH, register 42H = 6FH
Bytes
Cycles
3
6-63
6 INSTRUCTION SET
Opcode
Addr Mode
(Hex)
dst
8
92
src
R
IR

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents