Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 465 Bytes

File metadata and controls

22 lines (16 loc) · 465 Bytes

RTS - Return from subroutine

Operation

[PC] ← [M([SP])]; [SP] ← [SP] + 4

Syntax

RTS

Attributes

Unsized

Description

The program counter is pulled from the stack and the previous value of the PC is lost. RTS is used to terminate a subroutine.

Condition codes

X N Z V C
- - - - -

From MOTOROLA M68000 FAMILY Programmer's reference manual. Copyright 1992 by Motorola Inc./NXP. Adapted with permission.