Ex6502.CPU.Executor.RTS (ex6502 v0.1.0) View Source

Return from subroutine

Loads the program count low and high from the stack into the program counter and increments to program counter so that it points to the instruction following the JSR.

Operation

PC↑ PC + 1 → PC

Table

RTS | Jump to Subroutine
==================================================

PC                                N V - B D I Z C
PC + 1  PC                       - - - - - - - -

addressing       assembler      opc  bytes  cycles
--------------------------------------------------
implied          RTS             60    1      6

Link to this section Summary

Link to this section Functions