![Samsung S3F84B8 Скачать руководство пользователя страница 184](http://html.mh-extra.com/html/samsung/s3f84b8/s3f84b8_user-manual_347832184.webp)
S3F84B8_UM_REV 1.00
6 INSTRUCTION SET
6-62
6.3.49 POP — POP FROM STACK
POP
dst
Operation
: dst
@SP
SP
SP + 1
The contents of location addressed by the stack pointer are loaded into destination. The stack
pointer is then incremented by one.
Flags
:
No flags are affected.
Format
:
Bytes Cycles
Opcode
(Hex)
Addr Mode
dst
opc
dst
2
8
50 R
8 51 IR
Examples
:
Given register 00H = 01H, register 01H = 1BH, SPH (0D8H) = 00H, SPL (0D9H) = 0FBH, and
stack register 0FBH = 55H:
POP 00H
Register 00H = 55H, SP = 00FCH
POP @00H
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 contains the value 55H and SP points to location 00FCH.