Home | History | Annotate | Download | only in opcodes
      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html>
      4 
      5 <head>
      6 <title>goto/32</title>
      7 <link rel=stylesheet href="opcode.css">
      8 </head>
      9 
     10 <body>
     11 
     12 <h1>goto/32</h1>
     13 
     14 <h2>Purpose</h2>
     15 
     16 <p>
     17 Unconditionally jump to the indicated instruction.
     18 </p>
     19 
     20 <h2>Details</h2>
     21 
     22 <table class="instruc">
     23 <thead>
     24 <tr>
     25   <th>Op &amp; Format</th>
     26   <th>Mnemonic / Syntax</th>
     27   <th>Arguments</th>
     28 </tr>
     29 </thead>
     30 <tbody>
     31 <tr>
     32   <td>2a 30t</td>
     33   <td>goto/32 +AAAAAAAA</td>
     34   <td><code>A:</code> signed branch offset (32 bits)<br/></td>
     35 </tr>
     36 </tbody>
     37 </table>
     38 
     39 <h2>Constraints</h2>
     40 
     41 <ul>
     42   <li>
     43     A must point to a valid bytecode instruction inside the current method.
     44   </li>
     45 </ul>
     46 
     47 <h2>Behavior</h2>
     48 
     49 <ul>
     50   <li>
     51     The (otherwise invisible) program counter PC is set to the address of the
     52     instruction plus the given offset, that is, PC' = PC(goto) + A.
     53   </li>
     54   <li>
     55     Executions resumes at PC'.
     56   </li>
     57 </ul>
     58 
     59 <h2>Exceptions</h2>
     60 
     61 <p>
     62 None.
     63 </p>
     64 
     65 </body>
     66 </html>
     67