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>defi - Define integer constants</title> 9 </head> 10 <body> 11 <h1>defi - Define integer constants</h1> 12 13 <h2>Calling Format</h2> 14 <div class="section"> 15 <pre class="definition"> 16defi dest, count, init, step 17</pre> 18 </div> 19 20 <h2>Operands</h2> 21 <div class="section"> 22 <table class="arguments"> 23 <thead> 24 <tr> 25 <th>Name</th> 26 <td>Register</td> 27 </tr> 28 </thead> 29 <tr> 30 <th>dest</th> 31 <td> 32 Integer register<br> 33 </td> 34 </tr> 35 <tr> 36 <th>count</th> 37 <td> 38 Integer value.<br>Specifies a value that is one less than the number of times to run the group of instructions situated between the <CODE>loop</CODE> and <CODE>endloop</CODE> instructions. You can specify values between 0 and 255 (inclusive).<br> 39 </td> 40 </tr> 41 <tr> 42 <th>init</th> 43 <td> 44 Integer value.<br>Specifies an initial value for the loop counter register. You can specify values between -128 and 127 (inclusive).<br> Specified using two's complement when the integer value is given in hexadecimal.<br> 45 </td> 46 </tr> 47 <tr> 48 <th>step</th> 49 <td> 50 Integer value.<br>Specifies the amount by which to increment the loop-counter register for each loop iteration. You can specify values between -128 and 127 (inclusive).<br> Specified using two's complement when the integer value is given in hexadecimal.<br> 51 </td> 52 </tr> 53 </table> 54 </div> 55 56 <h2>Overview</h2> 57 <div class="section"> 58 <p> 59 Sets the values of integer registers. Integer registers are used by <CODE>loop</CODE> instructions.<br> 60 </p> 61 </div> 62 63 <h2>Code Example</h2> 64 <div class="section"> 65<pre class="definition"> 66defi i0 , 8 , 0 , 1 // Loops 9 times. aL has an initial value of 0 and is incremented by one during each loop iteration. 67defi i1 , 10 , 4 , 2 // Loops 11 times. aL has an initial value of 4 and is incremented by two during each loop iteration. 68</pre> 69 </div> 70 71 72 <h2>Revision History</h2> 73 <div class="section"> 74 <dl class="history"> 75 <dt>2011/12/20</dt> 76 <dd>Initial version.<br /> 77 </dd> 78 </dl> 79 </div> 80 81 <hr><p>CONFIDENTIAL</p></body> 82</html>