187
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.90 RET (Return from Subroutine)
This is a branching instruction with no delay slot.
Branches to the address indicated by the return pointer (RP).
■ RET (Return from Subroutine)
Assembler format: RET
Operation: RP → PC
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: 2 cycles
Instruction format:
Example: RET
NZVC
––––
MSB LSB
1001011100100000
PCPC
FFF0 8820
8000
AE86
8000 AE86
8000 AE86
RP RP
Before execution After execution
Instruction bit pattern : 1001 0111 0010 0000