R.O.M.E.68000 Home
Prev. Table of Cont. Help Similar Instr.

This is the R.O.M.E.68000 Manual version 0.51.
This is an experimental version.
Copyright © 1997 by G. Mezzetti; last update: January 1, 1999.


Ordinary Instructions of the ``Control'' Class

ReTurN

Mnemonic:
RTN
Operands:
A

Oper. Addressing Group Op. Use Mult. Op.
A sstadr e -

Instruction Key:
7E
Formal Description:

A + @(A) --> IP.
   {Return from a subroutine, taking from A the relative return address.}

Informal Description

This instruction returns from a subroutine, taking from A the relative return address. Please note that A must be found in an alterable data item, even if it is only read, and that it is your responsibility to assure that you are using the same stack pointer which you used in the corresponding JSBR (in fact, A hould lie on the top of a stack, as you can see from the mode used to address it).


Prev. Table of Cont. Help Similar Instr.

Gustavo MEZZETTI  /  mezzetti@math.unipd.it