RTS is an opcode for the 6502 processor. The opcode stands for "Return From Subroutine", which makes it the complementary instruction to JSR. In short, it pops the instruction pointer which the most recently executed JSR instruction stored on the stack, and causes execution to continue from that location.

The machine code representation of this opcode is 0x60.

Back to the 6502 opcodes metanode