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>def - Define floating point constants</title> 9 </head> 10 <body> 11 <h1>def - Define floating point constants</h1> 12 13 <h2>Calling Format</h2> 14 <div class="section"> 15 <pre class="definition"> 16def dest, value0, value1, value2, value3 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>Registers</td> 27 </tr> 28 </thead> 29 <tr> 30 <th>dest</th> 31 <td>Floating-point constant register</td> 32 </tr> 33 <tr> 34 <th>value0-3</th> 35 <td>Floating-point value</td> 36 </tr> 37 </table> 38 </div> 39 40 <h2>Overview</h2> 41 <div class="section"> 42 <p> 43 Sets the value of a floating-point constant register.<br> <br> You can set the value in decimal notation (using a decimal point) or integer notation (base 10 or base 16). <br>When you specify values in hexadecimal notation, the bitmap specifies a 24-bit floating-point value. (This value consists of 1 sign bit, 7 exponent bits, and 16 mantissa bits.) <br>If a value larger than 24 bits is specified, the lower 24 bits are used and the rest are discarded.</p> 44 </div> 45 46 <h2>Code Example</h2> 47 <div class="section"> 48<pre class="definition"> 49def c0, 1, 1.5, -0.5, 0.25 50def c1, 0x3f0000, 0x3f8000, 0xbe0000, 0x3d0000 // This sets the same values as above. 51</pre> 52 </div> 53 54 55 <h2>Revision History</h2> 56 <div class="section"> 57 <dl class="history"> 58 <dt>2011/12/20</dt> 59 <dd>Initial version.<br /> 60 </dd> 61 </dl> 62 </div> 63 64 <hr><p>CONFIDENTIAL</p></body> 65</html>