English
Language : 

S3P80C5 Datasheet, PDF (172/263 Pages) Samsung semiconductor – 8-Bit CMOS Microcontrollers
S3P80C5/C80C5/C80C8
INSTRUCTION SET
POP — Pop From Stack
POP
dst
Operation:
Flags:
dst ← @SP
SP ← SP + 1
The contents of the location addressed by the stack pointer are loaded into the destination. The
stack pointer is then incremented by one.
No flags affected.
Format:
opc
dst
Bytes Cycles
2
8
8
Opcode
(Hex)
50
51
Addr Mode
dst
R
IR
Examples:
Given: Register 00H = 01H, register 01H = 1BH, SPH (0D8H) = 00H, SPL (0D9H) = 0FBH,
and stack register 0FBH = 55H:
POP
POP
00H
@00H
→
Register 00H = 55H, SP = 00FCH
→
Register 00H = 01H, register 01H = 55H, SP = 00FCH
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 then contains the value 55H and the SP points to location
00FCH.
6-63