English
Language : 

SAB80515 Datasheet, PDF (192/270 Pages) Siemens Semiconductor Group – 8-Bit Single-Chip Microcontroller Family
Instruction Set
RET
Function:
Description:
Example:
Return from subroutine
RET pops the high and low-order bytes of the PC successively from the stack,
decrementing the stack pointer by two. Program execution continues at the
resulting address, generally the instruction immediately following an ACALL or
LCALL. No flags are affected.
The stack pointer originally contains the value 0BH. Internal RAM locations 0AH
and 0BH contain the values 23H and 01H, respectively. The instruction
RET
Operation:
will leave the stack pointer equal to the value 09H. Program execution will continue
at location 0123H.
RET
(PC15-8) ← ((SP))
(SP) ← (SP) – 1
(PC7-0) ← ((SP))
(SP) ← (SP) – 1
Encoding:
Bytes:
Cycles:
0010 0010
1
2
Semiconductor Group
192