Samsung KS57C2308 Manual page 146

Single-chip cmos microcontroller
Table of Contents

Advertisement

SAM47 INSTRUCTION SET
POP
— Pop From Stack
POP
dst
Operation:
Operand
RR
SB
Description:
The contents of the RAM location addressed by the stack pointer is read, and the SP is
incremented by two. The value read is then transferred to the variable indicated by the
destination operand.
Operand
RR
SB
Example:
The SP value is equal to 0EDH, and RAM locations 0EFH through 0EDH contain the values 2H,
3H, and 4H, respectively. The instruction
POP
leaves the stack pointer set to 0EFH and the data pointer pair HL set to 34H.
5-72
Operation Summary
Pop to register pair from stack
Pop SMB and SRB values from stack
Binary Code
0
0
1
1
1
0
0
1
1
HL
0
1
r2
r1
0
1
1
1
0
1
0
0
1
1
0
KS57C2308/P2308/C2316/P2316
Bytes
1
2
Operation Notation
RR
(SP), RR
(SP+1)
L
H
SP
SP+2
(SRB)
(SP), SMB
SP
SP+2
Cycles
1
2
(SP+1),

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents