1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../css/manpage.css" type="text/css" /> 7 <link rel="stylesheet" href="../css/timetable.css" type="text/css" /> 8 <title>ret - Return from subroutine</title> 9 </head> 10 <body> 11 <h1>ret - Return from subroutine</h1> 12 13 <h2>Calling Format</h2> 14 <div class="section"> 15 <pre class="definition"> 16ret 17</pre> 18 </div> 19 20 <h2>Operands</h2> 21 <div class="section"> 22 <p> 23 None.<br> 24 </p> 25 </div> 26 27 <h2>Overview</h2> 28 <div class="section"> 29 <p> 30 Jumps to the location from which one of the <CODE>call</CODE> instructions was invoked.<br> This instruction is not valid if a <CODE>call</CODE> instruction is not currently active. (Unlike <CODE>nop</CODE>, this does not involve any processing.)<br> If a label is to be called as a subroutine by one of the <CODE>call</CODE> instructions, this instruction must be called after that label has been set.<br> 31 </p> 32 </div> 33 34 <h2>Operation</h2> 35 <div class="section"> 36<pre class="definition"> 37if ( retaddr ) 38 pc = retaddr 39</pre> 40 </div> 41 42 <h2>Code Example</h2> 43 <div class="section"> 44<pre class="definition"> 45callb b0, subfunction0 46 47subfunction0: 48.. 49ret 50</pre> 51 </div> 52 53 54 <h2>Revision History</h2> 55 <div class="section"> 56 <dl class="history"> 57 <dt>2011/12/20</dt> 58 <dd>Initial version.<br /> 59 </dd> 60 </dl> 61 </div> 62 63 <hr><p>CONFIDENTIAL</p></body> 64</html>