Samsung S3C9454B User Manual page 104

Table of Contents

Advertisement

S3C9454B/F9454B
POP
— Pop From Stack
POP
dst
dst ← @SP
Operation:
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.
Flags:
No flags affected.
Format:
opc
Examples:
Given: Register 00H = 01H, register 01H = 1BH, SP (0D9H) = 0BBH, and stack register
0BBH = 55H:
POP
POP
In the first example, general register 00H contains the value 01H. The statement "POP 00H"
loads the contents of location 0BBH (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
0BCH.
dst
00H
Register 00H = 55H, SP = 0BCH
@00H
Register 00H = 01H, register 01H = 55H, SP = 0BCH
SAM88RCRI INSTRUCTION SET
Bytes
Cycles
Opcode
2
8
8
Addr Mode
(Hex)
dst
50
R
51
IR
6-35

Advertisement

Table of Contents
loading

This manual is also suitable for:

F9454b

Table of Contents