Popud Pop User Stack (Decrementing) - Samsung S3P80C5 User Manual

8-bit cmos microcontrollers
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

S3c80c5S3c80c8

Table of Contents