Pop — Pop From Stack - Samsung S3F84B8 User Manual

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

Advertisement

S3F84B8_UM_REV 1.00
6.3.49 POP — POP FROM STACK
dst
POP
dst  @SP
Operation:
SP  SP + 1
The contents of location addressed by the stack pointer are loaded into destination. The stack
pointer is then incremented by one.
No flags are affected.
Flags:
Format:
opc
Given register 00H = 01H, register 01H = 1BH, SPH (0D8H) = 00H, SPL (0D9H) = 0FBH, and
Examples:
stack register 0FBH = 55H:
POP
POP
In the first example, general register 00H contains the value 01H. The statement "POP 00H" loads
the contents of location 00FBH (55H) into destination register 00H and then increments the stack
pointer by one. Register 00H contains the value 55H and SP points to location 00FCH.
dst
00H
Register 00H = 55H, SP = 00FCH
@00H 
Register 00H = 01H, register 01H = 55H, SP = 00FCH
Bytes
Cycles
2
6-62
6 INSTRUCTION SET
Opcode
Addr Mode
(Hex)
8
50
8
51
dst
R
IR

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents