RTS                    RTS Return from subroutine                     RTS

  Operation:  PC from Stack, PC + 1 -> PC               N V - B D I Z C
                                                        . . . . . . . .

  +----------------+-----------------------+---------+---------+----------+
  | Addressing Mode| Assembly Language Form| OP CODE |No. Bytes|No. Cycles|
  +----------------+-----------------------+---------+---------+----------+
  |  Implied/Stack |   RTS                 |   $60   |    1    |    6     |
  +----------------+-----------------------+---------+---------+----------+
   See also: RTL

What it does: Returns from a subroutine jump (caused by JSR) .

Major uses: Automatically picks off the two top bytes on the stack and places them into the Program Counter. This reverses the actions taken by JSR (which put the Program Counter bytes onto the stack just before leaving for a subroutine). When RTS puts the return bytes into the Program Counter, the next event in the computer's world will be the instruction following the JSR which stuffed the return address onto the stack in the first place.