1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>XED2: XED2 User Guide - Thu May 15 03:15:09 2008 </title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 <link href="tabs.css" rel="stylesheet" type="text/css">
7 <!-- Generated by Doxygen 1.4.6 -->
10 <li><a href="main.html"><span>Main Page</span></a></li>
11 <li><a href="modules.html"><span>Modules</span></a></li>
12 <li><a href="classes.html"><span>Data Structures</span></a></li>
13 <li id="current"><a href="files.html"><span>Files</span></a></li>
15 <form action="search.php" method="get">
16 <table cellspacing="0" cellpadding="0" border="0">
18 <td><label> <u>S</u>earch for </label></td>
19 <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
27 <li><a href="files.html"><span>File List</span></a></li>
28 <li><a href="globals.html"><span>Globals</span></a></li>
30 <h1>xed-immdis.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
31 <dl compact><dt><b>Author:</b></dt><dd>Mark Charney <<a href="mailto:mark.charney@intel.com">mark.charney@intel.com</a>> </dd></dl>
34 Definition in file <a class="el" href="xed-immdis_8h-source.html">xed-immdis.h</a>.
36 <code>#include "<a class="el" href="xed-types_8h-source.html">xed-types.h</a>"</code><br>
37 <code>#include "<a class="el" href="xed-common-defs_8h-source.html">xed-common-defs.h</a>"</code><br>
38 <code>#include "<a class="el" href="xed-util_8h-source.html">xed-util.h</a>"</code><br>
41 <a href="xed-immdis_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
43 <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
44 <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structxed__immdis__s.html">xed_immdis_s</a></td></tr>
46 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stores immediates and displacements for the encoder & decoder. <a href="structxed__immdis__s.html#_details">More...</a><br></td></tr>
47 <tr><td class="memItemLeft" nowrap align="right" valign="top">union </td><td class="memItemRight" valign="bottom"><a class="el" href="unionxed__immdis__values__t.html">xed_immdis_values_t</a></td></tr>
49 <tr><td colspan="2"><br><h2>printing / debugging</h2></td></tr>
50 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#881a008921d1efcd08bb94ae02ca9ade">xed_immdis__print_ptr</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, char *buf, int buflen)</td></tr>
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#2c87a0bf677815bf5ceb28d867ec2724">xed_immdis_print</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, char *buf, int buflen)</td></tr>
54 <tr><td class="mdescLeft"> </td><td class="mdescRight">just print the raw bytes in hex with a leading 0x <a href="#2c87a0bf677815bf5ceb28d867ec2724"></a><br></td></tr>
55 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#5c7be9651737f169081ce5effce16a75">xed_immdis_print_signed_or_unsigned</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, char *buf, int buflen)</td></tr>
57 <tr><td class="mdescLeft"> </td><td class="mdescRight">Print the value as a signed or unsigned number depending on the value of the immediate_is_unsigned variable. <a href="#5c7be9651737f169081ce5effce16a75"></a><br></td></tr>
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#1050a0165c958cf65f8305b55d601935">xed_immdis_print_value_signed</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, char *buf, int buflen)</td></tr>
60 <tr><td class="mdescLeft"> </td><td class="mdescRight">print the signed value, appropriate width, with a leading 0x <a href="#1050a0165c958cf65f8305b55d601935"></a><br></td></tr>
61 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#f0ffb75b68187b71fa1ecb9f70147cb0">xed_immdis_print_value_unsigned</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, char *buf, int buflen)</td></tr>
63 <tr><td class="mdescLeft"> </td><td class="mdescRight">print the unsigned value, appropriate width, with a leading 0x <a href="#f0ffb75b68187b71fa1ecb9f70147cb0"></a><br></td></tr>
64 <tr><td colspan="2"><br><h2>Adding / setting values</h2></td></tr>
65 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#4aba92c75a2790ec5c58d8f9b4624d6e">xed_immdis_add16</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, xed_int16_t d)</td></tr>
67 <tr><td class="mdescLeft"> </td><td class="mdescRight">add a 16 bit value to the byte array <a href="#4aba92c75a2790ec5c58d8f9b4624d6e"></a><br></td></tr>
68 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#58b5fa6f2d5b90172e24e92ec5bb6e67">xed_immdis_add32</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, xed_int32_t d)</td></tr>
70 <tr><td class="mdescLeft"> </td><td class="mdescRight">add a 32 bit value to the byte array <a href="#58b5fa6f2d5b90172e24e92ec5bb6e67"></a><br></td></tr>
71 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#e042967b326bda13845e01f6833e495c">xed_immdis_add64</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, xed_int64_t d)</td></tr>
73 <tr><td class="mdescLeft"> </td><td class="mdescRight">add a 64 bit value to the byte array. <a href="#e042967b326bda13845e01f6833e495c"></a><br></td></tr>
74 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#7c007e868ffb401c0a4eb21c22d9c67c">xed_immdis_add8</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, xed_int8_t d)</td></tr>
76 <tr><td class="mdescLeft"> </td><td class="mdescRight">add an 8 bit value to the byte array <a href="#7c007e868ffb401c0a4eb21c22d9c67c"></a><br></td></tr>
77 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#dcbfb46803986fc54676211f33f47fa9">xed_immdis_add_byte</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, xed_uint8_t b)</td></tr>
79 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#09715f91212c3dd59b359e7c92c2f7c7">xed_immdis_add_byte_array</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, int nb, xed_uint8_t *ba)</td></tr>
81 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#b3e0e6243c6950ea4b0cf679f2db504a">xed_immdis_add_shortest_width_signed</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, xed_int64_t x, xed_uint8_t legal_widths)</td></tr>
83 <tr><td class="mdescLeft"> </td><td class="mdescRight">Add 1, 2, 4 or 8 bytes depending on the value x and the mask of legal_widths. <a href="#b3e0e6243c6950ea4b0cf679f2db504a"></a><br></td></tr>
84 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#de19d918e2f622210e9489ad44c45fb7">xed_immdis_add_shortest_width_unsigned</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, xed_uint64_t x, xed_uint8_t legal_widths)</td></tr>
86 <tr><td class="mdescLeft"> </td><td class="mdescRight">See add_shortest_width_signed(). <a href="#de19d918e2f622210e9489ad44c45fb7"></a><br></td></tr>
87 <tr><td colspan="2"><br><h2>Accessors for the value of the immediate or displacement</h2></td></tr>
88 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT xed_uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#c9a5e17e32f55b3cef78ee79d9f74b8b">xed_immdis_get_byte</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, unsigned int i)</td></tr>
90 <tr><td class="mdescLeft"> </td><td class="mdescRight">Access the i'th byte of the immediate. <a href="#c9a5e17e32f55b3cef78ee79d9f74b8b"></a><br></td></tr>
91 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT xed_int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#1bff44b0ca30c12563825ddcec37f78b">xed_immdis_get_signed64</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
93 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT xed_uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#fe3967ac09cbb8ad05ddd129497b1c4d">xed_immdis_get_unsigned64</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
95 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT <a class="el" href="xed-types_8h.html#d355c921b747945a82d62233a599c7b5">xed_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#f5b69e09505844a5d9d5658593f58c5f">xed_immdis_is_one</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
97 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT <a class="el" href="xed-types_8h.html#d355c921b747945a82d62233a599c7b5">xed_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#9b7cdb1e53c5f2b9bdb820746a470000">xed_immdis_is_zero</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
99 <tr><td colspan="2"><br><h2>Sizes and lengths</h2></td></tr>
100 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#7ba763c2150e4af7e707110f0f652f3f">xed_immdis_get_bytes</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
102 <tr><td class="mdescLeft"> </td><td class="mdescRight">return the number of bytes added <a href="#7ba763c2150e4af7e707110f0f652f3f"></a><br></td></tr>
103 <tr><td colspan="2"><br><h2>Initialization and setup</h2></td></tr>
104 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#080f7760ed59c575127c916d69f744c8">xed_immdis_get_max_length</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
106 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#077f0a257bae6a6c6fc8f3acd5ccbd46">xed_immdis_set_max_len</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, unsigned int mx)</td></tr>
108 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#0edf6a8a2b843bfecdc2f004aace6425">xed_immdis_zero</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
110 <tr><td colspan="2"><br><h2>Presence / absence of an immediate or displacement</h2></td></tr>
111 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT <a class="el" href="xed-types_8h.html#d355c921b747945a82d62233a599c7b5">xed_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#35f17051ebfbdf7a0444ac8ec1ab68c0">xed_immdis_is_present</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
113 <tr><td class="mdescLeft"> </td><td class="mdescRight">True if the object has had a value or individual bytes added to it. <a href="#35f17051ebfbdf7a0444ac8ec1ab68c0"></a><br></td></tr>
114 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#52caa513281d320cfd60ff7e6108191f">xed_immdis_set_present</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
116 <tr><td colspan="2"><br><h2>Signed vs Unsigned</h2></td></tr>
117 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT <a class="el" href="xed-types_8h.html#d355c921b747945a82d62233a599c7b5">xed_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#c3fc38384a98d3225bbba3e99e156821">xed_immdis_is_signed</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
119 <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if signed. <a href="#c3fc38384a98d3225bbba3e99e156821"></a><br></td></tr>
120 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT <a class="el" href="xed-types_8h.html#d355c921b747945a82d62233a599c7b5">xed_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#eb0b0470ead4d7954b7a43787e92329a">xed_immdis_is_unsigned</a> (const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
122 <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if signed. <a href="#eb0b0470ead4d7954b7a43787e92329a"></a><br></td></tr>
123 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#8d3377b643eb6a4193cb4e1be2198286">xed_immdis_set_signed</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
125 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the immediate to be signed; For decoder use only. <a href="#8d3377b643eb6a4193cb4e1be2198286"></a><br></td></tr>
126 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#53444944f075c3fdce2410506fb8e6bd">xed_immdis_set_unsigned</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p)</td></tr>
128 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the immediate to be unsigned; For decoder use only. <a href="#53444944f075c3fdce2410506fb8e6bd"></a><br></td></tr>
129 <tr><td colspan="2"><br><h2>Defines</h2></td></tr>
130 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#c24112540bbcc8fa68f707909a90f5b7">XED_MAX_IMMDIS_BYTES</a> 8</td></tr>
132 <tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
133 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef XED_DLL_EXPORT <a class="el" href="structxed__immdis__s.html">xed_immdis_s</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a></td></tr>
135 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stores immediates and displacements for the encoder & decoder. <a href="#f4010ee1c4132d7642123d75c43a245d"></a><br></td></tr>
136 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
137 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#7cd715d7113d1b97181783491364c673">xed_immdis__check</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *q, int p)</td></tr>
139 <tr><td class="memItemLeft" nowrap align="right" valign="top">XED_DLL_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="xed-immdis_8h.html#4859cf5e21466fa6901ac22e8beae61d">xed_immdis_init</a> (<a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> *p, int max_bytes)</td></tr>
142 <hr><h2>Define Documentation</h2>
143 <a class="anchor" name="c24112540bbcc8fa68f707909a90f5b7"></a><!-- doxytag: member="xed-immdis.h::XED_MAX_IMMDIS_BYTES" ref="c24112540bbcc8fa68f707909a90f5b7" args="" --><p>
144 <table class="mdTable" cellpadding="2" cellspacing="0">
147 <table cellpadding="0" cellspacing="0" border="0">
149 <td class="md" nowrap valign="top">#define XED_MAX_IMMDIS_BYTES 8 </td>
155 <table cellspacing="5" cellpadding="0" border="0">
165 Definition at line <a class="el" href="xed-immdis_8h-source.html#l00061">61</a> of file <a class="el" href="xed-immdis_8h-source.html">xed-immdis.h</a>. </td>
168 <hr><h2>Typedef Documentation</h2>
169 <a class="anchor" name="f4010ee1c4132d7642123d75c43a245d"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_t" ref="f4010ee1c4132d7642123d75c43a245d" args="" --><p>
170 <table class="mdTable" cellpadding="2" cellspacing="0">
173 <table cellpadding="0" cellspacing="0" border="0">
175 <td class="md" nowrap valign="top">typedef struct XED_DLL_EXPORT <a class="el" href="structxed__immdis__s.html">xed_immdis_s</a> <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> </td>
181 <table cellspacing="5" cellpadding="0" border="0">
189 Stores immediates and displacements for the encoder & decoder.
194 <hr><h2>Function Documentation</h2>
195 <a class="anchor" name="7cd715d7113d1b97181783491364c673"></a><!-- doxytag: member="xed-immdis.h::xed_immdis__check" ref="7cd715d7113d1b97181783491364c673" args="(xed_immdis_t *q, int p)" --><p>
196 <table class="mdTable" cellpadding="2" cellspacing="0">
199 <table cellpadding="0" cellspacing="0" border="0">
201 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis__check </td>
202 <td class="md" valign="top">( </td>
203 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
204 <td class="mdname" nowrap> <em>q</em>, </td>
207 <td class="md" nowrap align="right"></td>
209 <td class="md" nowrap>int </td>
210 <td class="mdname" nowrap> <em>p</em></td>
214 <td class="md">) </td>
215 <td class="md" colspan="2"></td>
221 <table cellspacing="5" cellpadding="0" border="0">
232 <a class="anchor" name="881a008921d1efcd08bb94ae02ca9ade"></a><!-- doxytag: member="xed-immdis.h::xed_immdis__print_ptr" ref="881a008921d1efcd08bb94ae02ca9ade" args="(const xed_immdis_t *p, char *buf, int buflen)" --><p>
233 <table class="mdTable" cellpadding="2" cellspacing="0">
236 <table cellpadding="0" cellspacing="0" border="0">
238 <td class="md" nowrap valign="top">int xed_immdis__print_ptr </td>
239 <td class="md" valign="top">( </td>
240 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
241 <td class="mdname" nowrap> <em>p</em>, </td>
244 <td class="md" nowrap align="right"></td>
246 <td class="md" nowrap>char * </td>
247 <td class="mdname" nowrap> <em>buf</em>, </td>
250 <td class="md" nowrap align="right"></td>
252 <td class="md" nowrap>int </td>
253 <td class="mdname" nowrap> <em>buflen</em></td>
257 <td class="md">) </td>
258 <td class="md" colspan="2"></td>
264 <table cellspacing="5" cellpadding="0" border="0">
275 <a class="anchor" name="4aba92c75a2790ec5c58d8f9b4624d6e"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_add16" ref="4aba92c75a2790ec5c58d8f9b4624d6e" args="(xed_immdis_t *p, xed_int16_t d)" --><p>
276 <table class="mdTable" cellpadding="2" cellspacing="0">
279 <table cellpadding="0" cellspacing="0" border="0">
281 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_add16 </td>
282 <td class="md" valign="top">( </td>
283 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
284 <td class="mdname" nowrap> <em>p</em>, </td>
287 <td class="md" nowrap align="right"></td>
289 <td class="md" nowrap>xed_int16_t </td>
290 <td class="mdname" nowrap> <em>d</em></td>
294 <td class="md">) </td>
295 <td class="md" colspan="2"></td>
301 <table cellspacing="5" cellpadding="0" border="0">
309 add a 16 bit value to the byte array
314 <a class="anchor" name="58b5fa6f2d5b90172e24e92ec5bb6e67"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_add32" ref="58b5fa6f2d5b90172e24e92ec5bb6e67" args="(xed_immdis_t *p, xed_int32_t d)" --><p>
315 <table class="mdTable" cellpadding="2" cellspacing="0">
318 <table cellpadding="0" cellspacing="0" border="0">
320 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_add32 </td>
321 <td class="md" valign="top">( </td>
322 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
323 <td class="mdname" nowrap> <em>p</em>, </td>
326 <td class="md" nowrap align="right"></td>
328 <td class="md" nowrap>xed_int32_t </td>
329 <td class="mdname" nowrap> <em>d</em></td>
333 <td class="md">) </td>
334 <td class="md" colspan="2"></td>
340 <table cellspacing="5" cellpadding="0" border="0">
348 add a 32 bit value to the byte array
353 <a class="anchor" name="e042967b326bda13845e01f6833e495c"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_add64" ref="e042967b326bda13845e01f6833e495c" args="(xed_immdis_t *p, xed_int64_t d)" --><p>
354 <table class="mdTable" cellpadding="2" cellspacing="0">
357 <table cellpadding="0" cellspacing="0" border="0">
359 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_add64 </td>
360 <td class="md" valign="top">( </td>
361 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
362 <td class="mdname" nowrap> <em>p</em>, </td>
365 <td class="md" nowrap align="right"></td>
367 <td class="md" nowrap>xed_int64_t </td>
368 <td class="mdname" nowrap> <em>d</em></td>
372 <td class="md">) </td>
373 <td class="md" colspan="2"></td>
379 <table cellspacing="5" cellpadding="0" border="0">
387 add a 64 bit value to the byte array.
392 <a class="anchor" name="7c007e868ffb401c0a4eb21c22d9c67c"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_add8" ref="7c007e868ffb401c0a4eb21c22d9c67c" args="(xed_immdis_t *p, xed_int8_t d)" --><p>
393 <table class="mdTable" cellpadding="2" cellspacing="0">
396 <table cellpadding="0" cellspacing="0" border="0">
398 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_add8 </td>
399 <td class="md" valign="top">( </td>
400 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
401 <td class="mdname" nowrap> <em>p</em>, </td>
404 <td class="md" nowrap align="right"></td>
406 <td class="md" nowrap>xed_int8_t </td>
407 <td class="mdname" nowrap> <em>d</em></td>
411 <td class="md">) </td>
412 <td class="md" colspan="2"></td>
418 <table cellspacing="5" cellpadding="0" border="0">
426 add an 8 bit value to the byte array
431 <a class="anchor" name="dcbfb46803986fc54676211f33f47fa9"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_add_byte" ref="dcbfb46803986fc54676211f33f47fa9" args="(xed_immdis_t *p, xed_uint8_t b)" --><p>
432 <table class="mdTable" cellpadding="2" cellspacing="0">
435 <table cellpadding="0" cellspacing="0" border="0">
437 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_add_byte </td>
438 <td class="md" valign="top">( </td>
439 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
440 <td class="mdname" nowrap> <em>p</em>, </td>
443 <td class="md" nowrap align="right"></td>
445 <td class="md" nowrap>xed_uint8_t </td>
446 <td class="mdname" nowrap> <em>b</em></td>
450 <td class="md">) </td>
451 <td class="md" colspan="2"></td>
457 <table cellspacing="5" cellpadding="0" border="0">
468 <a class="anchor" name="09715f91212c3dd59b359e7c92c2f7c7"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_add_byte_array" ref="09715f91212c3dd59b359e7c92c2f7c7" args="(xed_immdis_t *p, int nb, xed_uint8_t *ba)" --><p>
469 <table class="mdTable" cellpadding="2" cellspacing="0">
472 <table cellpadding="0" cellspacing="0" border="0">
474 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_add_byte_array </td>
475 <td class="md" valign="top">( </td>
476 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
477 <td class="mdname" nowrap> <em>p</em>, </td>
480 <td class="md" nowrap align="right"></td>
482 <td class="md" nowrap>int </td>
483 <td class="mdname" nowrap> <em>nb</em>, </td>
486 <td class="md" nowrap align="right"></td>
488 <td class="md" nowrap>xed_uint8_t * </td>
489 <td class="mdname" nowrap> <em>ba</em></td>
493 <td class="md">) </td>
494 <td class="md" colspan="2"></td>
500 <table cellspacing="5" cellpadding="0" border="0">
511 <a class="anchor" name="b3e0e6243c6950ea4b0cf679f2db504a"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_add_shortest_width_signed" ref="b3e0e6243c6950ea4b0cf679f2db504a" args="(xed_immdis_t *p, xed_int64_t x, xed_uint8_t legal_widths)" --><p>
512 <table class="mdTable" cellpadding="2" cellspacing="0">
515 <table cellpadding="0" cellspacing="0" border="0">
517 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_add_shortest_width_signed </td>
518 <td class="md" valign="top">( </td>
519 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
520 <td class="mdname" nowrap> <em>p</em>, </td>
523 <td class="md" nowrap align="right"></td>
525 <td class="md" nowrap>xed_int64_t </td>
526 <td class="mdname" nowrap> <em>x</em>, </td>
529 <td class="md" nowrap align="right"></td>
531 <td class="md" nowrap>xed_uint8_t </td>
532 <td class="mdname" nowrap> <em>legal_widths</em></td>
536 <td class="md">) </td>
537 <td class="md" colspan="2"></td>
543 <table cellspacing="5" cellpadding="0" border="0">
551 Add 1, 2, 4 or 8 bytes depending on the value x and the mask of legal_widths.
553 The default value of legal_widths = 0x5 only stops adding bytes only on 1 or 4 byte quantities - depending on which bytes of x are zero -- as is used for most memory addressing. You can set legal_widths to 0x7 for branches (1, 2 or 4 byte branch displacements). Or if you have an 8B displacement, you can set legal_widths to 0x8. NOTE: add_shortest_width will add up to XED_MAX_IMMDIS_BYTES if the x value requires it. NOTE: 16b memory addressing can have 16b immediates. </td>
556 <a class="anchor" name="de19d918e2f622210e9489ad44c45fb7"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_add_shortest_width_unsigned" ref="de19d918e2f622210e9489ad44c45fb7" args="(xed_immdis_t *p, xed_uint64_t x, xed_uint8_t legal_widths)" --><p>
557 <table class="mdTable" cellpadding="2" cellspacing="0">
560 <table cellpadding="0" cellspacing="0" border="0">
562 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_add_shortest_width_unsigned </td>
563 <td class="md" valign="top">( </td>
564 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
565 <td class="mdname" nowrap> <em>p</em>, </td>
568 <td class="md" nowrap align="right"></td>
570 <td class="md" nowrap>xed_uint64_t </td>
571 <td class="mdname" nowrap> <em>x</em>, </td>
574 <td class="md" nowrap align="right"></td>
576 <td class="md" nowrap>xed_uint8_t </td>
577 <td class="mdname" nowrap> <em>legal_widths</em></td>
581 <td class="md">) </td>
582 <td class="md" colspan="2"></td>
588 <table cellspacing="5" cellpadding="0" border="0">
596 See add_shortest_width_signed().
601 <a class="anchor" name="c9a5e17e32f55b3cef78ee79d9f74b8b"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_get_byte" ref="c9a5e17e32f55b3cef78ee79d9f74b8b" args="(const xed_immdis_t *p, unsigned int i)" --><p>
602 <table class="mdTable" cellpadding="2" cellspacing="0">
605 <table cellpadding="0" cellspacing="0" border="0">
607 <td class="md" nowrap valign="top">XED_DLL_EXPORT xed_uint8_t xed_immdis_get_byte </td>
608 <td class="md" valign="top">( </td>
609 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
610 <td class="mdname" nowrap> <em>p</em>, </td>
613 <td class="md" nowrap align="right"></td>
615 <td class="md" nowrap>unsigned int </td>
616 <td class="mdname" nowrap> <em>i</em></td>
620 <td class="md">) </td>
621 <td class="md" colspan="2"></td>
627 <table cellspacing="5" cellpadding="0" border="0">
635 Access the i'th byte of the immediate.
640 <a class="anchor" name="7ba763c2150e4af7e707110f0f652f3f"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_get_bytes" ref="7ba763c2150e4af7e707110f0f652f3f" args="(const xed_immdis_t *p)" --><p>
641 <table class="mdTable" cellpadding="2" cellspacing="0">
644 <table cellpadding="0" cellspacing="0" border="0">
646 <td class="md" nowrap valign="top">XED_DLL_EXPORT unsigned int xed_immdis_get_bytes </td>
647 <td class="md" valign="top">( </td>
648 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
649 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
650 <td class="md" valign="top"> ) </td>
651 <td class="md" nowrap></td>
657 <table cellspacing="5" cellpadding="0" border="0">
665 return the number of bytes added
670 <a class="anchor" name="080f7760ed59c575127c916d69f744c8"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_get_max_length" ref="080f7760ed59c575127c916d69f744c8" args="(const xed_immdis_t *p)" --><p>
671 <table class="mdTable" cellpadding="2" cellspacing="0">
674 <table cellpadding="0" cellspacing="0" border="0">
676 <td class="md" nowrap valign="top">XED_DLL_EXPORT unsigned int xed_immdis_get_max_length </td>
677 <td class="md" valign="top">( </td>
678 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
679 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
680 <td class="md" valign="top"> ) </td>
681 <td class="md" nowrap></td>
687 <table cellspacing="5" cellpadding="0" border="0">
698 <a class="anchor" name="1bff44b0ca30c12563825ddcec37f78b"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_get_signed64" ref="1bff44b0ca30c12563825ddcec37f78b" args="(const xed_immdis_t *p)" --><p>
699 <table class="mdTable" cellpadding="2" cellspacing="0">
702 <table cellpadding="0" cellspacing="0" border="0">
704 <td class="md" nowrap valign="top">XED_DLL_EXPORT xed_int64_t xed_immdis_get_signed64 </td>
705 <td class="md" valign="top">( </td>
706 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
707 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
708 <td class="md" valign="top"> ) </td>
709 <td class="md" nowrap></td>
715 <table cellspacing="5" cellpadding="0" border="0">
726 <a class="anchor" name="fe3967ac09cbb8ad05ddd129497b1c4d"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_get_unsigned64" ref="fe3967ac09cbb8ad05ddd129497b1c4d" args="(const xed_immdis_t *p)" --><p>
727 <table class="mdTable" cellpadding="2" cellspacing="0">
730 <table cellpadding="0" cellspacing="0" border="0">
732 <td class="md" nowrap valign="top">XED_DLL_EXPORT xed_uint64_t xed_immdis_get_unsigned64 </td>
733 <td class="md" valign="top">( </td>
734 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
735 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
736 <td class="md" valign="top"> ) </td>
737 <td class="md" nowrap></td>
743 <table cellspacing="5" cellpadding="0" border="0">
754 <a class="anchor" name="4859cf5e21466fa6901ac22e8beae61d"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_init" ref="4859cf5e21466fa6901ac22e8beae61d" args="(xed_immdis_t *p, int max_bytes)" --><p>
755 <table class="mdTable" cellpadding="2" cellspacing="0">
758 <table cellpadding="0" cellspacing="0" border="0">
760 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_init </td>
761 <td class="md" valign="top">( </td>
762 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
763 <td class="mdname" nowrap> <em>p</em>, </td>
766 <td class="md" nowrap align="right"></td>
768 <td class="md" nowrap>int </td>
769 <td class="mdname" nowrap> <em>max_bytes</em></td>
773 <td class="md">) </td>
774 <td class="md" colspan="2"></td>
780 <table cellspacing="5" cellpadding="0" border="0">
791 <a class="anchor" name="f5b69e09505844a5d9d5658593f58c5f"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_is_one" ref="f5b69e09505844a5d9d5658593f58c5f" args="(const xed_immdis_t *p)" --><p>
792 <table class="mdTable" cellpadding="2" cellspacing="0">
795 <table cellpadding="0" cellspacing="0" border="0">
797 <td class="md" nowrap valign="top">XED_DLL_EXPORT <a class="el" href="xed-types_8h.html#d355c921b747945a82d62233a599c7b5">xed_bool_t</a> xed_immdis_is_one </td>
798 <td class="md" valign="top">( </td>
799 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
800 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
801 <td class="md" valign="top"> ) </td>
802 <td class="md" nowrap></td>
808 <table cellspacing="5" cellpadding="0" border="0">
819 <a class="anchor" name="35f17051ebfbdf7a0444ac8ec1ab68c0"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_is_present" ref="35f17051ebfbdf7a0444ac8ec1ab68c0" args="(const xed_immdis_t *p)" --><p>
820 <table class="mdTable" cellpadding="2" cellspacing="0">
823 <table cellpadding="0" cellspacing="0" border="0">
825 <td class="md" nowrap valign="top">XED_DLL_EXPORT <a class="el" href="xed-types_8h.html#d355c921b747945a82d62233a599c7b5">xed_bool_t</a> xed_immdis_is_present </td>
826 <td class="md" valign="top">( </td>
827 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
828 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
829 <td class="md" valign="top"> ) </td>
830 <td class="md" nowrap></td>
836 <table cellspacing="5" cellpadding="0" border="0">
844 True if the object has had a value or individual bytes added to it.
849 <a class="anchor" name="c3fc38384a98d3225bbba3e99e156821"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_is_signed" ref="c3fc38384a98d3225bbba3e99e156821" args="(const xed_immdis_t *p)" --><p>
850 <table class="mdTable" cellpadding="2" cellspacing="0">
853 <table cellpadding="0" cellspacing="0" border="0">
855 <td class="md" nowrap valign="top">XED_DLL_EXPORT <a class="el" href="xed-types_8h.html#d355c921b747945a82d62233a599c7b5">xed_bool_t</a> xed_immdis_is_signed </td>
856 <td class="md" valign="top">( </td>
857 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
858 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
859 <td class="md" valign="top"> ) </td>
860 <td class="md" nowrap></td>
866 <table cellspacing="5" cellpadding="0" border="0">
874 Return true if signed.
879 <a class="anchor" name="eb0b0470ead4d7954b7a43787e92329a"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_is_unsigned" ref="eb0b0470ead4d7954b7a43787e92329a" args="(const xed_immdis_t *p)" --><p>
880 <table class="mdTable" cellpadding="2" cellspacing="0">
883 <table cellpadding="0" cellspacing="0" border="0">
885 <td class="md" nowrap valign="top">XED_DLL_EXPORT <a class="el" href="xed-types_8h.html#d355c921b747945a82d62233a599c7b5">xed_bool_t</a> xed_immdis_is_unsigned </td>
886 <td class="md" valign="top">( </td>
887 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
888 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
889 <td class="md" valign="top"> ) </td>
890 <td class="md" nowrap></td>
896 <table cellspacing="5" cellpadding="0" border="0">
904 Return true if signed.
909 <a class="anchor" name="9b7cdb1e53c5f2b9bdb820746a470000"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_is_zero" ref="9b7cdb1e53c5f2b9bdb820746a470000" args="(const xed_immdis_t *p)" --><p>
910 <table class="mdTable" cellpadding="2" cellspacing="0">
913 <table cellpadding="0" cellspacing="0" border="0">
915 <td class="md" nowrap valign="top">XED_DLL_EXPORT <a class="el" href="xed-types_8h.html#d355c921b747945a82d62233a599c7b5">xed_bool_t</a> xed_immdis_is_zero </td>
916 <td class="md" valign="top">( </td>
917 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
918 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
919 <td class="md" valign="top"> ) </td>
920 <td class="md" nowrap></td>
926 <table cellspacing="5" cellpadding="0" border="0">
937 <a class="anchor" name="2c87a0bf677815bf5ceb28d867ec2724"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_print" ref="2c87a0bf677815bf5ceb28d867ec2724" args="(const xed_immdis_t *p, char *buf, int buflen)" --><p>
938 <table class="mdTable" cellpadding="2" cellspacing="0">
941 <table cellpadding="0" cellspacing="0" border="0">
943 <td class="md" nowrap valign="top">XED_DLL_EXPORT int xed_immdis_print </td>
944 <td class="md" valign="top">( </td>
945 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
946 <td class="mdname" nowrap> <em>p</em>, </td>
949 <td class="md" nowrap align="right"></td>
951 <td class="md" nowrap>char * </td>
952 <td class="mdname" nowrap> <em>buf</em>, </td>
955 <td class="md" nowrap align="right"></td>
957 <td class="md" nowrap>int </td>
958 <td class="mdname" nowrap> <em>buflen</em></td>
962 <td class="md">) </td>
963 <td class="md" colspan="2"></td>
969 <table cellspacing="5" cellpadding="0" border="0">
977 just print the raw bytes in hex with a leading 0x
982 <a class="anchor" name="5c7be9651737f169081ce5effce16a75"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_print_signed_or_unsigned" ref="5c7be9651737f169081ce5effce16a75" args="(const xed_immdis_t *p, char *buf, int buflen)" --><p>
983 <table class="mdTable" cellpadding="2" cellspacing="0">
986 <table cellpadding="0" cellspacing="0" border="0">
988 <td class="md" nowrap valign="top">XED_DLL_EXPORT int xed_immdis_print_signed_or_unsigned </td>
989 <td class="md" valign="top">( </td>
990 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
991 <td class="mdname" nowrap> <em>p</em>, </td>
994 <td class="md" nowrap align="right"></td>
996 <td class="md" nowrap>char * </td>
997 <td class="mdname" nowrap> <em>buf</em>, </td>
1000 <td class="md" nowrap align="right"></td>
1001 <td class="md"></td>
1002 <td class="md" nowrap>int </td>
1003 <td class="mdname" nowrap> <em>buflen</em></td>
1006 <td class="md"></td>
1007 <td class="md">) </td>
1008 <td class="md" colspan="2"></td>
1014 <table cellspacing="5" cellpadding="0" border="0">
1022 Print the value as a signed or unsigned number depending on the value of the immediate_is_unsigned variable.
1027 <a class="anchor" name="1050a0165c958cf65f8305b55d601935"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_print_value_signed" ref="1050a0165c958cf65f8305b55d601935" args="(const xed_immdis_t *p, char *buf, int buflen)" --><p>
1028 <table class="mdTable" cellpadding="2" cellspacing="0">
1031 <table cellpadding="0" cellspacing="0" border="0">
1033 <td class="md" nowrap valign="top">XED_DLL_EXPORT int xed_immdis_print_value_signed </td>
1034 <td class="md" valign="top">( </td>
1035 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
1036 <td class="mdname" nowrap> <em>p</em>, </td>
1039 <td class="md" nowrap align="right"></td>
1040 <td class="md"></td>
1041 <td class="md" nowrap>char * </td>
1042 <td class="mdname" nowrap> <em>buf</em>, </td>
1045 <td class="md" nowrap align="right"></td>
1046 <td class="md"></td>
1047 <td class="md" nowrap>int </td>
1048 <td class="mdname" nowrap> <em>buflen</em></td>
1051 <td class="md"></td>
1052 <td class="md">) </td>
1053 <td class="md" colspan="2"></td>
1059 <table cellspacing="5" cellpadding="0" border="0">
1067 print the signed value, appropriate width, with a leading 0x
1072 <a class="anchor" name="f0ffb75b68187b71fa1ecb9f70147cb0"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_print_value_unsigned" ref="f0ffb75b68187b71fa1ecb9f70147cb0" args="(const xed_immdis_t *p, char *buf, int buflen)" --><p>
1073 <table class="mdTable" cellpadding="2" cellspacing="0">
1076 <table cellpadding="0" cellspacing="0" border="0">
1078 <td class="md" nowrap valign="top">XED_DLL_EXPORT int xed_immdis_print_value_unsigned </td>
1079 <td class="md" valign="top">( </td>
1080 <td class="md" nowrap valign="top">const <a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
1081 <td class="mdname" nowrap> <em>p</em>, </td>
1084 <td class="md" nowrap align="right"></td>
1085 <td class="md"></td>
1086 <td class="md" nowrap>char * </td>
1087 <td class="mdname" nowrap> <em>buf</em>, </td>
1090 <td class="md" nowrap align="right"></td>
1091 <td class="md"></td>
1092 <td class="md" nowrap>int </td>
1093 <td class="mdname" nowrap> <em>buflen</em></td>
1096 <td class="md"></td>
1097 <td class="md">) </td>
1098 <td class="md" colspan="2"></td>
1104 <table cellspacing="5" cellpadding="0" border="0">
1112 print the unsigned value, appropriate width, with a leading 0x
1117 <a class="anchor" name="077f0a257bae6a6c6fc8f3acd5ccbd46"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_set_max_len" ref="077f0a257bae6a6c6fc8f3acd5ccbd46" args="(xed_immdis_t *p, unsigned int mx)" --><p>
1118 <table class="mdTable" cellpadding="2" cellspacing="0">
1121 <table cellpadding="0" cellspacing="0" border="0">
1123 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_set_max_len </td>
1124 <td class="md" valign="top">( </td>
1125 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
1126 <td class="mdname" nowrap> <em>p</em>, </td>
1129 <td class="md" nowrap align="right"></td>
1130 <td class="md"></td>
1131 <td class="md" nowrap>unsigned int </td>
1132 <td class="mdname" nowrap> <em>mx</em></td>
1135 <td class="md"></td>
1136 <td class="md">) </td>
1137 <td class="md" colspan="2"></td>
1143 <table cellspacing="5" cellpadding="0" border="0">
1154 <a class="anchor" name="52caa513281d320cfd60ff7e6108191f"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_set_present" ref="52caa513281d320cfd60ff7e6108191f" args="(xed_immdis_t *p)" --><p>
1155 <table class="mdTable" cellpadding="2" cellspacing="0">
1158 <table cellpadding="0" cellspacing="0" border="0">
1160 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_set_present </td>
1161 <td class="md" valign="top">( </td>
1162 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
1163 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
1164 <td class="md" valign="top"> ) </td>
1165 <td class="md" nowrap></td>
1171 <table cellspacing="5" cellpadding="0" border="0">
1182 <a class="anchor" name="8d3377b643eb6a4193cb4e1be2198286"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_set_signed" ref="8d3377b643eb6a4193cb4e1be2198286" args="(xed_immdis_t *p)" --><p>
1183 <table class="mdTable" cellpadding="2" cellspacing="0">
1186 <table cellpadding="0" cellspacing="0" border="0">
1188 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_set_signed </td>
1189 <td class="md" valign="top">( </td>
1190 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
1191 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
1192 <td class="md" valign="top"> ) </td>
1193 <td class="md" nowrap></td>
1199 <table cellspacing="5" cellpadding="0" border="0">
1207 Set the immediate to be signed; For decoder use only.
1212 <a class="anchor" name="53444944f075c3fdce2410506fb8e6bd"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_set_unsigned" ref="53444944f075c3fdce2410506fb8e6bd" args="(xed_immdis_t *p)" --><p>
1213 <table class="mdTable" cellpadding="2" cellspacing="0">
1216 <table cellpadding="0" cellspacing="0" border="0">
1218 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_set_unsigned </td>
1219 <td class="md" valign="top">( </td>
1220 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
1221 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
1222 <td class="md" valign="top"> ) </td>
1223 <td class="md" nowrap></td>
1229 <table cellspacing="5" cellpadding="0" border="0">
1237 Set the immediate to be unsigned; For decoder use only.
1242 <a class="anchor" name="0edf6a8a2b843bfecdc2f004aace6425"></a><!-- doxytag: member="xed-immdis.h::xed_immdis_zero" ref="0edf6a8a2b843bfecdc2f004aace6425" args="(xed_immdis_t *p)" --><p>
1243 <table class="mdTable" cellpadding="2" cellspacing="0">
1246 <table cellpadding="0" cellspacing="0" border="0">
1248 <td class="md" nowrap valign="top">XED_DLL_EXPORT void xed_immdis_zero </td>
1249 <td class="md" valign="top">( </td>
1250 <td class="md" nowrap valign="top"><a class="el" href="xed-immdis_8h.html#f4010ee1c4132d7642123d75c43a245d">xed_immdis_t</a> * </td>
1251 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
1252 <td class="md" valign="top"> ) </td>
1253 <td class="md" nowrap></td>
1259 <table cellspacing="5" cellpadding="0" border="0">
1270 <hr size="1"><address style="align: right;"><small>Generated on Thu May 15 03:15:09 2008 for XED2 by
1271 <a href="http://www.doxygen.org/index.html">
1272 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>