s3c72m9 Samsung Semiconductor, Inc., s3c72m9 Datasheet - Page 192

no-image

s3c72m9

Manufacturer Part Number
s3c72m9
Description
The S3c72m5/s3c72m7/s3c72m9 Single-chip Cmos Microcontroller Has Been Designed For High Performance Using Samsung S
Manufacturer
Samsung Semiconductor, Inc.
Datasheet
SAM47 INSTRUCTION SET
SRET —
SRET
Operation:
Description:
Example:
5-88
SRET is normally used to return to the previously executing procedure at the end of a subroutine
that was initiated by a CALL, LCALL, or CALLS instruction. SRET skips the resulting address,
which is generally the instruction immediately after the point at which the subroutine was called.
Then, program execution continues from the resulting address and the contents of the location ad-
dressed by the stack pointer are popped into the program counter.
If the stack pointer contains the value 0FAH and RAM locations 0FAH, 0FBH, 0FCH, and 0FDH
contain the values 1H, 0H, 5H, and 2H, respectively, the instruction
SRET
leaves the stack pointer with the value 00H and the program returns to continue execution at
location 0125H.
During a return from subroutine, data is popped from the stack to the PC as follows:
SP + 1
SP + 2
SP + 3
SP + 4
SP + 5
SP + 6
SP
Return from Subroutine and Skip
Operand
Operand
0
0
0
1
PC11 – PC8
PC3 – PC0
PC7 – PC4
0
0
PC14 – PC12
1
EMB
Return from subroutine and skip
1
0
Binary Code
Operation Summary
0
ERB
0
0
1
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
0
1
PC14–8
PC7–0
EMB,ERB
SP
SP + 6
Operation Notation
(SP + 3) (SP + 2)
(SP + 1) (SP)
(SP + 5) (SP + 4)
Bytes
1
Cycles
3 + S

Related parts for s3c72m9