DESCRIPTION OF INSTRUCTIONS
347
88. RET (Return from subroutine, non interrupt)
00100010
70
Instruction code
Operations
Number of bytes
Number of cycles
Flags
(PSW)
Description
: Byte 1
(PC
8~15)←((SP))
(SP)←(SP)–1
(PC
0~7)←((SP))
(SP)←(SP)–1
:
C AC F0 RS1 RS0 OV F1 P
:
:
:
The stack contents addressed by the stack pointer are popped
in the upper order 8 thru 15 of the program counter, and the
stack pointer is decremented by 1. Then the stack contents
addressed by the updated stack pointer are popped in the lower
order 0 thru 7 of the program counter, again decrementing the
stack pointer by 1. The program counter is updated with the
stack contents, and control is shifted to the address after
updating.
:
1
2