ARETRN - abbreviated return from B function.

Usage:

aretrn	[<transfer_type>]

Examples:

aretrn
aretrn	tze

Where:

<transfer_type>
is any transfer opcode. When <transfer_type> is supplied, the function will only terminate if the condition is satisfied. Usually, this is not supplied, and it defaults to TSX0.

Description:

ARETRN returns from a function without backing up the stack. This is done for simple routines that did not advance the stack on entry. Usually this means the function entry was defined with a BENTRY macro instead of SENTRY.

If a value is to be returned it should be in the Q register.

Approximate equivalent code generated

*     aretrn
      tsx0     1,x1
*     aretrn   tze
      tze      1,x1

See Also:

expl b bmac bentry
for abbreviated function entry.
expl b bmac bretrn
for the normal function return.

Copyright © 2000, Thinkage Ltd.