Ghidra is a software reverse engineering (SRE) framework
Docs: Regenerate html files
Luke Serné690ca3ff2bc4
diff --git a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerAnnotations.html b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerAnnotations.htmlindex 78cdcdb43c..7bc42707b6 100644--- a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerAnnotations.html+++ b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerAnnotations.html@@ -1,10 +1,10 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Program Annotations Affecting the Decompiler</title><link rel="stylesheet" type="text/css" href="help/shared/DefaultStyle.css"><link rel="stylesheet" type="text/css" href="../../shared/languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="Decompiler.html" title="Decompiler"><link rel="up" href="Decompiler.html" title="Decompiler"><link rel="prev" href="DecompilerConcepts.html" title="Decompiler Concepts">diff --git a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerConcepts.html b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerConcepts.htmlindex 23afd21179..a1ac4908f9 100644--- a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerConcepts.html+++ b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerConcepts.html@@ -1,10 +1,10 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Decompiler Concepts</title><link rel="stylesheet" type="text/css" href="help/shared/DefaultStyle.css"><link rel="stylesheet" type="text/css" href="../../shared/languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="Decompiler.html" title="Decompiler"><link rel="up" href="Decompiler.html" title="Decompiler"><link rel="prev" href="DecompilerIntro.html" title="Decompiler">@@ -182,7 +182,7 @@</p><div class="informalexample"><div class="table">-<a name="ops.htmltable"></a><p class="title"><b>Table�.�P-code Operations</b></p>+<a name="ops.htmltable"></a><p class="title"><b>Table . P-code Operations</b></p><div class="table-contents"><table width="90%" frame="box" rules="all" id="ops.htmltable"><col width="40%">diff --git a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerIntro.html b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerIntro.htmlindex df27356c0c..d6d603e624 100644--- a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerIntro.html+++ b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerIntro.html@@ -1,10 +1,10 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Decompiler</title><link rel="stylesheet" type="text/css" href="help/shared/DefaultStyle.css"><link rel="stylesheet" type="text/css" href="../../shared/languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="Decompiler.html" title="Decompiler"><link rel="up" href="Decompiler.html" title="Decompiler"><link rel="prev" href="Decompiler.html" title="Decompiler">@@ -64,7 +64,7 @@<li class="listitem" style="list-style-type: disc">Press the <span class="guiicon"><span class="inlinemediaobject"><img src="images/decompileFunction.gif" width="16" height="16"></span>- </span>�icon+ </span> iconin the tool bar, <span class="emphasis"><em>or</em></span></li><li class="listitem" style="list-style-type: disc">diff --git a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerOptions.html b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerOptions.htmlindex 1eb7f91fcf..2742292129 100644--- a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerOptions.html+++ b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerOptions.html@@ -1,10 +1,10 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Decompiler Options</title><link rel="stylesheet" type="text/css" href="help/shared/DefaultStyle.css"><link rel="stylesheet" type="text/css" href="../../shared/languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="Decompiler.html" title="Decompiler"><link rel="up" href="Decompiler.html" title="Decompiler"><link rel="prev" href="DecompilerAnnotations.html" title="Program Annotations Affecting the Decompiler">@@ -38,14 +38,14 @@</span><span class="emphasis"><em>Decompiler</em></span> - lists <a class="xref" href="DecompilerOptions.html#GeneralOptions" title="General Options">General Options</a> that affect the engine behavior.</li><li class="listitem" style="list-style-type: none">-  <span class="guiicon">+ <span class="guiicon"><span class="inlinemediaobject"><img src="images/document-properties.png" width="16" height="16"></span>- </span>�<span class="emphasis"><em>Analysis</em></span> - lists <a class="xref" href="DecompilerOptions.html#AnalysisOptions" title="Analysis Options">Analysis Options</a> that affect the Decompiler's transformation process.+ </span> <span class="emphasis"><em>Analysis</em></span> - lists <a class="xref" href="DecompilerOptions.html#AnalysisOptions" title="Analysis Options">Analysis Options</a> that affect the Decompiler's transformation process.</li><li class="listitem" style="list-style-type: none">-  <span class="guiicon">+ <span class="guiicon"><span class="inlinemediaobject"><img src="images/document-properties.png" width="16" height="16"></span>- </span>�<span class="emphasis"><em>Display</em></span> - lists <a class="xref" href="DecompilerOptions.html#DisplayOptions" title="Display Options">Display Options</a> that affect the final presentation of Decompiler output.+ </span> <span class="emphasis"><em>Display</em></span> - lists <a class="xref" href="DecompilerOptions.html#DisplayOptions" title="Display Options">Display Options</a> that affect the final presentation of Decompiler output.</li></ul></div></div>diff --git a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerWindow.html b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerWindow.htmlindex 7697d2d955..bfa016a42e 100644--- a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerWindow.html+++ b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerWindow.html@@ -1,10 +1,10 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Decompiler Window</title><link rel="stylesheet" type="text/css" href="help/shared/DefaultStyle.css"><link rel="stylesheet" type="text/css" href="../../shared/languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="Decompiler.html" title="Decompiler"><link rel="up" href="Decompiler.html" title="Decompiler"><link rel="prev" href="DecompilerOptions.html" title="Decompiler Options">@@ -18,7 +18,7 @@function in the Code Browser, then select the<span class="guiicon"><span class="inlinemediaobject"><img src="images/decompileFunction.gif" width="16" height="16"></span>- </span>�icon from the tool bar, or the+ </span> icon from the tool bar, or the<span class="bold"><strong>Decompile</strong></span> option from the<span class="bold"><strong>Window</strong></span> menu in the tool.</p>@@ -91,7 +91,7 @@Initially pressing<span class="guiicon"><span class="inlinemediaobject"><img src="images/decompileFunction.gif" width="16" height="16"></span>- </span>�or selecting+ </span> or selecting<span class="bold"><strong>Decompile</strong></span> from the <span class="bold"><strong>Window</strong></span> menu in the toolbrings up the <span class="emphasis"><em>main</em></span> window. The main window always displays the functionat the <span class="emphasis"><em>current address</em></span> within the Code Browser and follows as the user navigates@@ -153,7 +153,7 @@Pressing the<span class="guiicon"><span class="inlinemediaobject"><img src="images/camera-photo.png" width="16" height="16"></span>- </span>�icon+ </span> iconin any Decompiler window's toolbar causes a <span class="emphasis"><em>Snapshot</em></span> windowto be created, which shows decompilation of the same function.Unlike the <span class="emphasis"><em>main</em></span> window however, the <span class="emphasis"><em>Snapshot</em></span> window@@ -240,7 +240,7 @@<p><span class="guiicon"><span class="inlinemediaobject"><img src="images/page_edit.png" width="16" height="16"></span>- </span>�- button+ </span> - button</p><p>Exports the decompiled result of the current function to a file. A file chooser@@ -265,7 +265,7 @@<p><span class="guiicon"><span class="inlinemediaobject"><img src="images/camera-photo.png" width="16" height="16"></span>- </span>�- button+ </span> - button</p><p>Creates a new <span class="emphasis"><em>Snapshot</em></span> window. The <span class="emphasis"><em>Snapshot</em></span> window@@ -282,7 +282,7 @@<p><span class="guiicon"><span class="inlinemediaobject"><img src="images/reload3.png" width="16" height="16"></span>- </span>�- button+ </span> - button</p><p>Triggers a re-decompilation of the current function displayed in the window.@@ -310,7 +310,7 @@<p><span class="guiicon"><span class="inlinemediaobject"><img src="images/page_white_copy.png" width="16" height="16"></span>- </span>�- button+ </span> - button</p><p>Copies the currently selected text in the Decompiler window to the clipboard.diff --git a/GhidraDocs/languages/html/additionalpcode.html b/GhidraDocs/languages/html/additionalpcode.htmlindex f3de3eb25a..86dec10094 100644--- a/GhidraDocs/languages/html/additionalpcode.html+++ b/GhidraDocs/languages/html/additionalpcode.html@@ -1,10 +1,10 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Additional P-CODE Operations</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="pcoderef.html" title="P-Code Reference Manual"><link rel="up" href="pcoderef.html" title="P-Code Reference Manual"><link rel="prev" href="pseudo-ops.html" title="Pseudo P-CODE Operations">@@ -16,9 +16,9 @@<tr><th colspan="3" align="center">Additional P-CODE Operations</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="pseudo-ops.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="reference.html">Next</a>+<a accesskey="p" href="pseudo-ops.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="reference.html">Next</a></td></tr></table>@@ -437,15 +437,15 @@ to SLEIGH <span class="bold"><strong>bitrange</strong></span> syntax such as out<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="pseudo-ops.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="reference.html">Next</a>+<a accesskey="p" href="pseudo-ops.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="reference.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">Pseudo P-CODE Operations�</td>+<td width="40%" align="left" valign="top">Pseudo P-CODE Operations </td><td width="20%" align="center"><a accesskey="h" href="pcoderef.html">Home</a></td>-<td width="40%" align="right" valign="top">�Syntax Reference</td>+<td width="40%" align="right" valign="top"> Syntax Reference</td></tr></table></div>diff --git a/GhidraDocs/languages/html/pcodedescription.html b/GhidraDocs/languages/html/pcodedescription.htmlindex 760646ac02..c73f909037 100644--- a/GhidraDocs/languages/html/pcodedescription.html+++ b/GhidraDocs/languages/html/pcodedescription.html@@ -1,10 +1,10 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>P-Code Operation Reference</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="pcoderef.html" title="P-Code Reference Manual"><link rel="up" href="pcoderef.html" title="P-Code Reference Manual"><link rel="prev" href="pcoderef.html" title="P-Code Reference Manual">@@ -16,9 +16,9 @@<tr><th colspan="3" align="center">P-Code Operation Reference</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="pcoderef.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="pseudo-ops.html">Next</a>+<a accesskey="p" href="pcoderef.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="pseudo-ops.html">Next</a></td></tr></table>@@ -121,7 +121,7 @@ input0 and output must be the same.</div></div><p>This instruction loads data from a dynamic location into the output-variable by dereferencing a pointer. The “pointer” comes in two+variable by dereferencing a pointer. The “pointer” comes in twopieces. One piece, input1, is a normal variable containing the offsetof the object being pointed at. The other piece, input0, is a constantindicating the space into which the offset applies. The data in input1@@ -133,7 +133,7 @@ loaded by this instruction is determined by the size of the outputvariable. It is easy to confuse the address space of the output andinput1 variables and the Address Space represented by the ID, whichcould all be different. Unlike many programming models, there are-multiple spaces that a “pointer” can refer to, and so an extra ID is+multiple spaces that a “pointer” can refer to, and so an extra ID isrequired.</p><p>@@ -194,7 +194,7 @@ correct byte offset into the space.This instruction is the complementof <span class="bold"><strong>LOAD</strong></span>. The data in the variableinput2 is stored at a dynamic location by dereferencing a pointer. As-with <span class="bold"><strong>LOAD</strong></span>, the “pointer” comes in two+with <span class="bold"><strong>LOAD</strong></span>, the “pointer” comes in twopieces: a space ID part, and an offset variable. The size of input1must match the address space specified by the ID, and the amount ofdata stored is determined by the size of input2.@@ -264,7 +264,7 @@ of the current machine instruction. This allows branching within theoperations forming a single instruction. For example, ifthe <span class="bold"><strong>BRANCH</strong></span> occurs as the pcodeoperation with index 5 for the instruction, it can branch to operation-with index 8 by specifying a constant destination “address” of+with index 8 by specifying a constant destination “address” of3. Negative constants can be used for backward branches.</p></div>@@ -1821,7 +1821,7 @@ sign-extended to the desired size.This is an unsigned integer division operation. Divide input0 byinput1, truncating the result to the nearest integer, and store theresult in output. Both inputs and output must be the same size. There-is no handling of division by zero. To simulate a processor’s handling+is no handling of division by zero. To simulate a processor’s handlingof a division-by-zero trap, other operations must be used beforethe <span class="bold"><strong>INT_DIV</strong></span>.</p>@@ -1923,7 +1923,7 @@ This is a signed integer division operation. The resulting integer isthe one closest to the rational value input0/input1 but which is stillsmaller in absolute value. Both inputs and output must be the samesize. There is no handling of division by zero. To simulate a-processor’s handling of a division-by-zero trap, other operations must+processor’s handling of a division-by-zero trap, other operations mustbe used before the <span class="bold"><strong>INT_SDIV</strong></span>.</p></div>@@ -3024,15 +3024,15 @@ Input0 and output can be different sizes.<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="pcoderef.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="pseudo-ops.html">Next</a>+<a accesskey="p" href="pcoderef.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="pseudo-ops.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">P-Code Reference Manual�</td>+<td width="40%" align="left" valign="top">P-Code Reference Manual </td><td width="20%" align="center"><a accesskey="h" href="pcoderef.html">Home</a></td>-<td width="40%" align="right" valign="top">�Pseudo P-CODE Operations</td>+<td width="40%" align="right" valign="top"> Pseudo P-CODE Operations</td></tr></table></div>diff --git a/GhidraDocs/languages/html/pcoderef.html b/GhidraDocs/languages/html/pcoderef.htmlindex 755bbda0c3..0f26ca1c75 100644--- a/GhidraDocs/languages/html/pcoderef.html+++ b/GhidraDocs/languages/html/pcoderef.html@@ -1,10 +1,10 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>P-Code Reference Manual</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="pcoderef.html" title="P-Code Reference Manual"><link rel="next" href="pcodedescription.html" title="P-Code Operation Reference"></head>@@ -13,9 +13,9 @@<table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">P-Code Reference Manual</th></tr><tr>-<td width="20%" align="left">�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="pcodedescription.html">Next</a>+<td width="20%" align="left"> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="pcodedescription.html">Next</a></td></tr></table>@@ -195,7 +195,7 @@ to as <span class="bold"><strong>raw p-code</strong></span>. Raw p-code can be uinstruction execution and generally follows the same control-flow,although it may add some of its own internal control-flow. The subset ofopcodes that can occur in raw p-code is described in-<a class="xref" href="pcodedescription.html" title="P-Code Operation Reference">the section called “P-Code Operation Reference”</a> and in <a class="xref" href="pseudo-ops.html" title="Pseudo P-CODE Operations">the section called “Pseudo P-CODE Operations”</a>, making up+<a class="xref" href="pcodedescription.html" title="P-Code Operation Reference">the section called “P-Code Operation Reference”</a> and in <a class="xref" href="pseudo-ops.html" title="Pseudo P-CODE Operations">the section called “Pseudo P-CODE Operations”</a>, making upthe bulk of this document.</p><p>@@ -209,7 +209,7 @@ opcodes. Two of these,<span class="bold"><strong>MULTIEQUAL</strong></span> and <span class="bold"><strong>INDIRECT</strong></span>,are specific to the graph construction process, but other opcodes can be introduced duringsubsequent analysis and transformation of a graph and help hold recovered data-type relationships.-All of the new opcodes are described in <a class="xref" href="additionalpcode.html" title="Additional P-CODE Operations">the section called “Additional P-CODE Operations”</a>, none of which can occur+All of the new opcodes are described in <a class="xref" href="additionalpcode.html" title="Additional P-CODE Operations">the section called “Additional P-CODE Operations”</a>, none of which can occurin the original raw p-code translation. Finally, a few of the p-code operators,<span class="bold"><strong>CALL</strong></span>,<span class="bold"><strong>CALLIND</strong></span>, and <span class="bold"><strong>RETURN</strong></span>,@@ -319,7 +319,7 @@ its <span class="bold"><strong>opcode</strong></span>.For almost all p-code operations, only the output varnode can have itsvalue modified; there are no indirect effects of the operation.The only possible exceptions are <span class="emphasis"><em>pseudo</em></span> operations,-see <a class="xref" href="pseudo-ops.html" title="Pseudo P-CODE Operations">the section called “Pseudo P-CODE Operations”</a>, which are sometimes necessary when there+see <a class="xref" href="pseudo-ops.html" title="Pseudo P-CODE Operations">the section called “Pseudo P-CODE Operations”</a>, which are sometimes necessary when thereis incomplete knowledge of an instruction's behavior.</p><p>@@ -342,7 +342,7 @@ The list of possibleopcodes are similar to many RISC based instruction sets. The effect ofeach opcode is described in detail in the following sections,and a reference table is given-in <a class="xref" href="reference.html" title="Syntax Reference">the section called “Syntax Reference”</a>. In general, the size or+in <a class="xref" href="reference.html" title="Syntax Reference">the section called “Syntax Reference”</a>. In general, the size orprecision of a particular p-code operation is determined by the sizeof the varnode inputs or output, not by the opcode.</p>@@ -353,15 +353,15 @@ of the varnode inputs or output, not by the opcode.<hr><table width="100%" summary="Navigation footer"><tr>-<td width="40%" align="left">�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="pcodedescription.html">Next</a>+<td width="40%" align="left"> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="pcodedescription.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right" valign="top">�P-Code Operation Reference</td>+<td width="40%" align="left" valign="top"> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right" valign="top"> P-Code Operation Reference</td></tr></table></div>diff --git a/GhidraDocs/languages/html/pseudo-ops.html b/GhidraDocs/languages/html/pseudo-ops.htmlindex 00dc0da687..bbcc9f6516 100644--- a/GhidraDocs/languages/html/pseudo-ops.html+++ b/GhidraDocs/languages/html/pseudo-ops.html@@ -1,10 +1,10 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Pseudo P-CODE Operations</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="pcoderef.html" title="P-Code Reference Manual"><link rel="up" href="pcoderef.html" title="P-Code Reference Manual"><link rel="prev" href="pcodedescription.html" title="P-Code Operation Reference">@@ -16,9 +16,9 @@<tr><th colspan="3" align="center">Pseudo P-CODE Operations</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="pcodedescription.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="additionalpcode.html">Next</a>+<a accesskey="p" href="pcodedescription.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="additionalpcode.html">Next</a></td></tr></table>@@ -104,7 +104,7 @@ parameter. Exact details are processor and specification dependent.Ideally, the output parameter is determined by the inputparameters, and no variable is affected except the outputparameter. But this is no longer a strict requirement, side-effects are possible.-Analysis should generally treat these instructions as a “black-box” which+Analysis should generally treat these instructions as a “black-box” whichstill have normal data-flow and can be manipulated symbolically.</p></div>@@ -225,15 +225,15 @@ not modeled in these cases, so the operator serves as a placeholder to allow ana<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="pcodedescription.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="additionalpcode.html">Next</a>+<a accesskey="p" href="pcodedescription.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="additionalpcode.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">P-Code Operation Reference�</td>+<td width="40%" align="left" valign="top">P-Code Operation Reference </td><td width="20%" align="center"><a accesskey="h" href="pcoderef.html">Home</a></td>-<td width="40%" align="right" valign="top">�Additional P-CODE Operations</td>+<td width="40%" align="right" valign="top"> Additional P-CODE Operations</td></tr></table></div>diff --git a/GhidraDocs/languages/html/reference.html b/GhidraDocs/languages/html/reference.htmlindex d009fef09d..0212d3ec62 100644--- a/GhidraDocs/languages/html/reference.html+++ b/GhidraDocs/languages/html/reference.html@@ -1,10 +1,10 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Syntax Reference</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="pcoderef.html" title="P-Code Reference Manual"><link rel="up" href="pcoderef.html" title="P-Code Reference Manual"><link rel="prev" href="additionalpcode.html" title="Additional P-CODE Operations">@@ -15,9 +15,9 @@<tr><th colspan="3" align="center">Syntax Reference</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="additionalpcode.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�</td>+<a accesskey="p" href="additionalpcode.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> </td></tr></table><hr>@@ -515,14 +515,14 @@<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="additionalpcode.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�</td>+<a accesskey="p" href="additionalpcode.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> </td></tr><tr>-<td width="40%" align="left" valign="top">Additional P-CODE Operations�</td>+<td width="40%" align="left" valign="top">Additional P-CODE Operations </td><td width="20%" align="center"><a accesskey="h" href="pcoderef.html">Home</a></td>-<td width="40%" align="right" valign="top">�</td>+<td width="40%" align="right" valign="top"> </td></tr></table></div>diff --git a/GhidraDocs/languages/html/sleigh.html b/GhidraDocs/languages/html/sleigh.htmlindex afd7e24e6f..953a597d27 100644--- a/GhidraDocs/languages/html/sleigh.html+++ b/GhidraDocs/languages/html/sleigh.html@@ -1,21 +1,21 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>SLEIGH</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="sleigh.html" title="SLEIGH">-<link rel="next" href="sleigh_layout.html" title="2.�Basic Specification Layout">+<link rel="next" href="sleigh_layout.html" title="2. Basic Specification Layout"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SLEIGH</th></tr><tr>-<td width="20%" align="left">�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="sleigh_layout.html">Next</a>+<td width="20%" align="left"> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="sleigh_layout.html">Next</a></td></tr></table>@@ -108,7 +108,7 @@project. The language that is now called SLEIGH has undergoneseveral redesign iterations, but it can still trace its heritagefrom the language SLED, from whom its name is derived. SLED, the- “Specification Language for Encoding and Decoding”, was defined by+ “Specification Language for Encoding and Decoding”, was defined byNorman Ramsey and Mary F. Fernandez as a concise way to define thetranslation, in both directions, between machine instructions andtheir corresponding assembly statements. This facilitated the@@ -162,13 +162,13 @@ Italics are used when defining terms and for named entities. Bold is used for SL</div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both">-<a name="sleigh_introduction"></a>1.�Introduction to P-Code</h2></div></div></div>+<a name="sleigh_introduction"></a>1. Introduction to P-Code</h2></div></div></div><p>Although p-code is a distinct language from SLEIGH, because a majorpurpose of SLEIGH is to specify the translation from machine code top-code, this document serves as a primer for p-code. The key conceptsand terminology are presented in this section, and more detail is-given in <a class="xref" href="sleigh_constructors.html#sleigh_semantic_section" title="7.7.�The Semantic Section">Section�7.7, “The Semantic Section”</a>. There is also a complete set+given in <a class="xref" href="sleigh_constructors.html#sleigh_semantic_section" title="7.7. The Semantic Section">Section 7.7, “The Semantic Section”</a>. There is also a complete setof tables which list syntax and descriptions for p-code operations inthe Appendix.</p>@@ -179,9 +179,9 @@ general purpose processor. Code for different processors can betranslated in a straightforward manner into p-code, and then a singlesuite of analysis software can be used to do data-flow analysis anddecompilation. In this way, the analysis software-becomes <span class="emphasis"><em>retargetable</em></span>, and it isn’t necessary to+becomes <span class="emphasis"><em>retargetable</em></span>, and it isn’t necessary toredesign it for each new processor being analyzed. It is only-necessary to specify the translation of the processor’s instruction+necessary to specify the translation of the processor’s instructionset into p-code.</p><p>@@ -221,7 +221,7 @@ respectively.</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_address_spaces"></a>1.1.�Address Spaces</h3></div></div></div>+<a name="sleigh_address_spaces"></a>1.1. Address Spaces</h3></div></div></div><p>An <span class="emphasis"><em>address</em></span> space for p-code is a generalization ofthe indexed memory (RAM) that a typical processor has access to, and@@ -261,7 +261,7 @@ Typically, a processor can be modeled with only two spaces,a <span class="emphasis"><em>ram</em></span> address space that represents the mainmemory accessible to the processor via its data-bus, anda <span class="emphasis"><em>register</em></span> address space that is used to-implement the processor’s registers. However, the specification+implement the processor’s registers. However, the specificationdesigner can define as many address spaces as needed.</p><p>@@ -272,14 +272,14 @@ semantics into individual p-code operations. It is calledthe <span class="emphasis"><em>unique</em></span> space. There is also a special addressspace, called the <span class="emphasis"><em>const</em></span> space, used as aplaceholder for constant operands of p-code instructions. For the most-part, a SLEIGH specification doesn’t need to be aware of this space,+part, a SLEIGH specification doesn’t need to be aware of this space,but it can be used in certain situations to force values to beinterpreted as constants.</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_varnodes"></a>1.2.�Varnodes</h3></div></div></div>+<a name="sleigh_varnodes"></a>1.2. Varnodes</h3></div></div></div><p>A <span class="emphasis"><em>varnode</em></span> is the unit of data manipulated byp-code. It is simply a contiguous sequence of bytes in some address@@ -305,7 +305,7 @@ forces an interpretation on each varnode that it uses, as either aninteger, a floating-point number, or a boolean value. In the case ofan integer, the varnode is interpreted as having a big endian orlittle endian encoding, depending on the specification (see-<a class="xref" href="sleigh_definitions.html#sleigh_endianess_definition" title="4.1.�Endianess Definition">Section�4.1, “Endianess Definition”</a>). Certain instructions+<a class="xref" href="sleigh_definitions.html#sleigh_endianess_definition" title="4.1. Endianess Definition">Section 4.1, “Endianess Definition”</a>). Certain instructionsalso distinguish between signed and unsigned interpretations. For asigned integer, the varnode is considered to have a standard twoscomplement encoding. For a boolean interpretation, the varnode must be@@ -322,7 +322,7 @@ must be provided and enforced by the specification designer.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_operations"></a>1.3.�Operations</h3></div></div></div>+<a name="sleigh_operations"></a>1.3. Operations</h3></div></div></div><p>P-code is intended to emulate a target processor by substituting asequence of p-code operations for each machine instruction. Thus every@@ -352,7 +352,7 @@ general purpose processor instruction sets. They break up into groups.</p><div class="informalexample"><div class="table">-<a name="ops.htmltable"></a><p class="title"><b>Table�1.�P-code Operations</b></p>+<a name="ops.htmltable"></a><p class="title"><b>Table 1. P-code Operations</b></p><div class="table-contents"><table xml:id="ops.htmltable" width="70%" frame="box" rules="all"><col width="40%"><col width="60%">@@ -414,7 +414,7 @@ general purpose processor instruction sets. They break up into groups.<br class="table-break"></div><p>-We postpone a full discussion of the individual operations until <a class="xref" href="sleigh_constructors.html#sleigh_semantic_section" title="7.7.�The Semantic Section">Section�7.7, “The Semantic Section”</a>.+We postpone a full discussion of the individual operations until <a class="xref" href="sleigh_constructors.html#sleigh_semantic_section" title="7.7. The Semantic Section">Section 7.7, “The Semantic Section”</a>.</p></div></div>@@ -423,15 +423,15 @@ We postpone a full discussion of the individual operations until <a class="xref"<hr><table width="100%" summary="Navigation footer"><tr>-<td width="40%" align="left">�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="sleigh_layout.html">Next</a>+<td width="40%" align="left"> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="sleigh_layout.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right" valign="top">�2.�Basic Specification Layout</td>+<td width="40%" align="left" valign="top"> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right" valign="top"> 2. Basic Specification Layout</td></tr></table></div>diff --git a/GhidraDocs/languages/html/sleigh_constructors.html b/GhidraDocs/languages/html/sleigh_constructors.htmlindex 7582a38cef..0613c35bb7 100644--- a/GhidraDocs/languages/html/sleigh_constructors.html+++ b/GhidraDocs/languages/html/sleigh_constructors.html@@ -1,24 +1,24 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">-<title>7.�Constructors</title>+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">+<title>7. Constructors</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="sleigh.html" title="SLEIGH"><link rel="up" href="sleigh.html" title="SLEIGH">-<link rel="prev" href="sleigh_tokens.html" title="6.�Tokens and Fields">-<link rel="next" href="sleigh_context.html" title="8.�Using Context">+<link rel="prev" href="sleigh_tokens.html" title="6. Tokens and Fields">+<link rel="next" href="sleigh_context.html" title="8. Using Context"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header">-<tr><th colspan="3" align="center">7.�Constructors</th></tr>+<tr><th colspan="3" align="center">7. Constructors</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="sleigh_tokens.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="sleigh_context.html">Next</a>+<a accesskey="p" href="sleigh_tokens.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="sleigh_context.html">Next</a></td></tr></table>@@ -26,7 +26,7 @@</div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both">-<a name="sleigh_constructors"></a>7.�Constructors</h2></div></div></div>+<a name="sleigh_constructors"></a>7. Constructors</h2></div></div></div><p>Fields are the basic building block for family symbols. The mechanismsfor building up from fields to the@@ -56,11 +56,11 @@ to think of a constructor as a kind of table in and of itself. But itis only the table that has an actual family symbol identifierassociated with it. Most of this chapter is devoted to describing howto define a single constructor. The issues involved in combining-multiple constructors into a single table are addressed in <a class="xref" href="sleigh_constructors.html#sleigh_tables" title="7.8.�Tables">Section�7.8, “Tables”</a>.+multiple constructors into a single table are addressed in <a class="xref" href="sleigh_constructors.html#sleigh_tables" title="7.8. Tables">Section 7.8, “Tables”</a>.</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_sections_constructor"></a>7.1.�The Five Sections of a Constructor</h3></div></div></div>+<a name="sleigh_sections_constructor"></a>7.1. The Five Sections of a Constructor</h3></div></div></div><p>A single complex statement in the specification file describes aconstructor. This statement is always made up of five distinct@@ -92,12 +92,12 @@ in turn.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_table_header"></a>7.2.�The Table Header</h3></div></div></div>+<a name="sleigh_table_header"></a>7.2. The Table Header</h3></div></div></div><p>Every constructor must be part of a table, which is the element withan actual family symbol identifier associated with it. So eachconstructor starts with the identifier of the table it belongs to-followed by a colon ‘:’.+followed by a colon ‘:’.</p><div class="informalexample"><pre class="programlisting">mode1: <span class="weak">...</span>@@ -122,18 +122,18 @@ identifier.The identifier <span class="emphasis"><em>instruction</em></span> is actually reservedfor the root table, but should not be used in the table header as theSLEIGH parser uses the blank identifier to help distinguish assembly-mnemonics from operands (see <a class="xref" href="sleigh_constructors.html#sleigh_mnemonic" title="7.3.1.�Mnemonic">Section�7.3.1, “Mnemonic”</a>).+mnemonics from operands (see <a class="xref" href="sleigh_constructors.html#sleigh_mnemonic" title="7.3.1. Mnemonic">Section 7.3.1, “Mnemonic”</a>).</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_display_section"></a>7.3.�The Display Section</h3></div></div></div>+<a name="sleigh_display_section"></a>7.3. The Display Section</h3></div></div></div><p>The <span class="emphasis"><em>display section</em></span> consists of all characters-after the table header ‘:’ up to the SLEIGH-keyword <span class="bold"><strong>is</strong></span>. The section’s primary+after the table header ‘:’ up to the SLEIGH+keyword <span class="bold"><strong>is</strong></span>. The section’s primarypurpose is to assign disassembly display meaning to the-constructor. The section’s secondary purpose is to define local+constructor. The section’s secondary purpose is to define localidentifiers for the pieces out of which the constructor is beingbuilt. Characters in the display section are treated as literals withthe following exceptions.@@ -151,7 +151,7 @@ the following exceptions.</ol></div></li><li class="listitem" style="list-style-type: disc">- The character ‘^’ has special meaning.+ The character ‘^’ has special meaning.</li><li class="listitem" style="list-style-type: disc">White space is trimmed from the beginning and end of the section.@@ -163,13 +163,13 @@ the following exceptions.<p></p><p>-In particular, all punctuation except ‘^’ loses its special+In particular, all punctuation except ‘^’ loses its specialmeaning. Those identifiers that are not treated as literals areconsidered to be new, initially undefined, family symbols. We refer tothese new symbols as the <span class="emphasis"><em>operands</em></span> of the constructor. And for rootconstructors, these operands frequently correspond to the naturalassembly operands. Thinking of it as a family symbol, the-constructor’s display meaning becomes the string of literals itself,+constructor’s display meaning becomes the string of literals itself,with each identifier replaced with the display meaning of the symbolcorresponding to that identifier.</p>@@ -182,11 +182,11 @@ mode1: ( op1 ),op2 is <span class="weak">...</span>In the above example, a constructor fortable <span class="emphasis"><em>mode1</em></span> is being built out of two pieces,symbol <span class="emphasis"><em>op1</em></span> and-symbol <span class="emphasis"><em>op2</em></span>. The characters ‘(‘, ’)’, and ‘,’+symbol <span class="emphasis"><em>op2</em></span>. The characters ‘(‘, ’)’, and ‘,’become literal parts of the disassembly display for symbolmode1. After the display strings for <span class="emphasis"><em>op1</em></span>and <span class="emphasis"><em>op2</em></span> are found, they are inserted into the-string of literals, forming the constructor’s display string. The+string of literals, forming the constructor’s display string. Thewhite space characters surrounding the <span class="emphasis"><em>op1</em></span>identifier are preserved as part of this string.</p>@@ -198,7 +198,7 @@ but only their identifiers are established in the display section.</p><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_mnemonic"></a>7.3.1.�Mnemonic</h4></div></div></div>+<a name="sleigh_mnemonic"></a>7.3.1. Mnemonic</h4></div></div></div><p>If the constructor is part of the root instruction table, the firststring of characters in the display section that does not contain@@ -212,8 +212,8 @@ if it is legal.<p></p><p>-In the above example, the string “var1” is treated as a symbol-identifier, but the string “and” is considered to be the mnemonic of+In the above example, the string “var1” is treated as a symbol+identifier, but the string “and” is considered to be the mnemonic ofthe instruction.</p><p>@@ -230,10 +230,10 @@ no such requirement.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_caret"></a>7.3.2.�The '^' character</h4></div></div></div>+<a name="sleigh_caret"></a>7.3.2. The '^' character</h4></div></div></div><p>-The ‘^’ character in the display section is used to separate-identifiers from other characters where there shouldn’t be white space+The ‘^’ character in the display section is used to separate+identifiers from other characters where there shouldn’t be white spacein the disassembly display. This can be used in any manner but isusually used to attach display characters from a local symbol to theliteral characters of the mnemonic.@@ -244,7 +244,7 @@ literal characters of the mnemonic.<p></p><p>-In the above example, “bra” is treated as literal characters in the+In the above example, “bra” is treated as literal characters in theresulting display string followed immediately, with no interveningspaces, by the display string of the localsymbol <span class="emphasis"><em>cc</em></span>. Thus the whole constructor actually@@ -253,39 +253,39 @@ identifiers <span class="emphasis"><em>cc</em></span>, <span class="emphasis"><eand <span class="emphasis"><em>op2</em></span>.</p><p>-If the ‘^’ is used as the first (non-whitespace) character in the+If the ‘^’ is used as the first (non-whitespace) character in thedisplay section of a base constructor, this inhibits the firstidentifier in the display from being considered the mnemonic, as-described in <a class="xref" href="sleigh_constructors.html#sleigh_mnemonic" title="7.3.1.�Mnemonic">Section�7.3.1, “Mnemonic”</a>. This allows+described in <a class="xref" href="sleigh_constructors.html#sleigh_mnemonic" title="7.3.1. Mnemonic">Section 7.3.1, “Mnemonic”</a>. This allowsspecification of less common situations, where the first part of themnemonic, rather than perhaps a later part, needs to be considered as-an operand. An initial ‘^’ character can also facilitate certain+an operand. An initial ‘^’ character can also facilitate certainrecursive constructions.</p></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_bit_pattern"></a>7.4.�The Bit Pattern Section</h3></div></div></div>+<a name="sleigh_bit_pattern"></a>7.4. The Bit Pattern Section</h3></div></div></div><p>Syntactically, this section comes between thekeyword <span class="bold"><strong>is</strong></span> and the delimiter for the-following section, either an ‘{‘ or an ‘[‘. The <span class="emphasis"><em>bit pattern+following section, either an ‘{‘ or an ‘[‘. The <span class="emphasis"><em>bit patternsection</em></span> describes a-constructor’s <span class="emphasis"><em>pattern</em></span>, the subset of possible+constructor’s <span class="emphasis"><em>pattern</em></span>, the subset of possibleinstruction encodings that the designer wantsto <span class="emphasis"><em>match</em></span> the constructor being defined.</p><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_constraints"></a>7.4.1.�Constraints</h4></div></div></div>+<a name="sleigh_constraints"></a>7.4.1. Constraints</h4></div></div></div><p>The patterns required for processor specifications can almost alwaysbe described as a mask and value pair. Given a specific instructionencoding, we can decide if the encoding matches our pattern by lookingat just the bits specified by the <span class="emphasis"><em>mask</em></span> and seeingif they match a specific <span class="emphasis"><em>value</em></span>. The fields, as-defined in <a class="xref" href="sleigh_tokens.html#sleigh_defining_tokens" title="6.1.�Defining Tokens and Fields">Section�6.1, “Defining Tokens and Fields”</a>, typically give us+defined in <a class="xref" href="sleigh_tokens.html#sleigh_defining_tokens" title="6.1. Defining Tokens and Fields">Section 6.1, “Defining Tokens and Fields”</a>, typically give usour masks. So to construct a pattern, we can simply require that thefield take on a specific value, as in the example below.</p>@@ -294,9 +294,9 @@ field take on a specific value, as in the example below.</pre></div><p>Assuming the symbol <span class="emphasis"><em>opcode</em></span> was defined as a field, this says that a-root constructor with mnemonic “halt” matches any instruction where+root constructor with mnemonic “halt” matches any instruction wherethe bits defining this field have the value 0x15. The equation-“opcode=0x15” is called a <span class="emphasis"><em>constraint</em></span>.+“opcode=0x15” is called a <span class="emphasis"><em>constraint</em></span>.</p><p>The standard bit encoding of the integer is used when restricting the@@ -311,13 +311,13 @@ field.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_ampandor"></a>7.4.2.�The '&' and '|' Operators</h4></div></div></div>+<a name="sleigh_ampandor"></a>7.4.2. The '&' and '|' Operators</h4></div></div></div><p>More complicated patterns are built out of logical operators. Themeaning of these are fairly straightforward. We can force two or moreconstraints to be true at the same time, a <span class="emphasis"><em>logical-and</em></span> ‘&’, or we can require that either one constraint or-another must be true, a <span class="emphasis"><em>logical or</em></span> ‘|’. By using these with+and</em></span> ‘&’, or we can require that either one constraint or+another must be true, a <span class="emphasis"><em>logical or</em></span> ‘|’. By using these withconstraints and parentheses for grouping, arbitrarily complicatedpatterns can be constructed.</p>@@ -337,11 +337,11 @@ requires two or more mask/value style checks to correctly implement.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_defining_operands"></a>7.4.3.�Defining Operands and Invoking Subtables</h4></div></div></div>+<a name="sleigh_defining_operands"></a>7.4.3. Defining Operands and Invoking Subtables</h4></div></div></div><p>The principle way of defining a constructor operand, left undefinedfrom the display section, is done in the bit pattern section. If an-operand’s identifier is used by itself, not as part of a constraint,+operand’s identifier is used by itself, not as part of a constraint,then the operand takes on both the display and semantic definition ofthe global symbol with the same identifier. The syntax is slightlyconfusing at first. The identifier must appear in the pattern as if it@@ -390,13 +390,13 @@ parsers, a SLEIGH specification is in part a grammarspecification. The terminal symbols, or tokens, are the bits of aninstruction, and the constructors and tables are the non-terminatingsymbols. These all build up to the root instruction table, the-grammar’s start symbol. So this link from local to global is simply a+grammar’s start symbol. So this link from local to global is simply astatement of the grouping of old symbols into the new constructor.</p></div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_variable_length"></a>7.4.4.�Variable Length Instructions</h4></div></div></div>+<a name="sleigh_variable_length"></a>7.4.4. Variable Length Instructions</h4></div></div></div><p>There are some additional complexities to designing a specificationfor a processor with variable length instructions. Some initial@@ -419,14 +419,14 @@ designer control over how tokens fit together.</p><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_semicolon"></a>7.4.4.1.�The ';' Operator</h5></div></div></div>+<a name="sleigh_semicolon"></a>7.4.4.1. The ';' Operator</h5></div></div></div><p>The most important operator for patterns defining variable length-instructions is the concatenation operator ‘;’. When building a+instructions is the concatenation operator ‘;’. When building aconstructor with fields from two or more tokens, the pattern mustexplicitly define the order of the tokens. In terms of the logic of-the pattern expressions themselves, the ‘;’ operator has the same-meaning as the ‘&’ operator. The combined expression matches only if+the pattern expressions themselves, the ‘;’ operator has the same+meaning as the ‘&’ operator. The combined expression matches only ifboth subexpressions are true. However, it also requires that thesubexpressions involve multiple tokens and explicitly indicates anorder for them.@@ -456,7 +456,7 @@ corresponding encoding. The secondinstruction, <span class="emphasis"><em>add</em></span>, usesfields <span class="emphasis"><em>op</em></span> and <span class="emphasis"><em>reg</em></span>, but italso uses field <span class="emphasis"><em>imm16</em></span> contained-in <span class="emphasis"><em>immtoken</em></span>. The ‘;’ operator indicates that+in <span class="emphasis"><em>immtoken</em></span>. The ‘;’ operator indicates thattoken <span class="emphasis"><em>base</em></span> (via its fields) comes first in theencoding, followed by <span class="emphasis"><em>immtoken</em></span>. The constraintson <span class="emphasis"><em>base</em></span> will therefore correspond to constraints@@ -466,25 +466,25 @@ bytes. The length of the final encoding for <span class="emphasis"><em>add</em><will be 3 bytes, the sum of the lengths of the two tokens.</p><p>-If two pattern expressions are combined with the ‘&’ or ‘|’ operator,-where the concatenation operator ‘;’ is also being used, the designer+If two pattern expressions are combined with the ‘&’ or ‘|’ operator,+where the concatenation operator ‘;’ is also being used, the designermust make sure that the tokens underlying each expression are the sameand come in the same order. In the example <span class="emphasis"><em>add</em></span>-instruction for instance, the ‘&’ operator combines the “op=3” and-“reg” expressions. Both of these expressions involve only the+instruction for instance, the ‘&’ operator combines the “op=3” and+“reg” expressions. Both of these expressions involve only thetoken <span class="emphasis"><em>base</em></span>, so the matching requirement is-satisfied. The ‘&’ and ‘|’ operators can combine expressions built out+satisfied. The ‘&’ and ‘|’ operators can combine expressions built outof more than one token, but the tokens must come in the same-order. Also these operators have higher precedence than the ‘;’+order. Also these operators have higher precedence than the ‘;’operator, so parentheses may be necessary to get the intended meaning.</p></div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_ellipsis"></a>7.4.4.2.�The '...' Operator</h5></div></div></div>+<a name="sleigh_ellipsis"></a>7.4.4.2. The '...' Operator</h5></div></div></div><p>-The ellipsis operator ‘...’ is used to satisfy the token matching-requirements of the ‘&’ and ‘|’ operators (described in the previous+The ellipsis operator ‘...’ is used to satisfy the token matching+requirements of the ‘&’ and ‘|’ operators (described in the previoussection), when the operands are of different lengths. The ellipsis isa unary operator applied to a pattern expression that extends itstoken length before it is combined with another expression. Depending@@ -496,7 +496,7 @@ extension.addrmode: reg is reg & mode=0 { <span class="weak">...</span>addrmode: #imm16 is mode=1; imm16 { <span class="weak">...</span>-:xor “A”,addrmode is op=4 ... & addrmode { <span class="weak">...</span>+:xor “A”,addrmode is op=4 ... & addrmode { <span class="weak">...</span></pre></div><p></p>@@ -527,7 +527,7 @@ whatever the length of <span class="emphasis"><em>addrmode</em></span> turns out<p>Since the <span class="emphasis"><em>op</em></span> constraint occurs to the left of theellipsis, it is considered left justified, and the matching-requirement for ‘&’ will insist that <span class="emphasis"><em>base</em></span> is the+requirement for ‘&’ will insist that <span class="emphasis"><em>base</em></span> is thefirst token in all forms of <span class="emphasis"><em>addrmode</em></span>. This allowsthe <span class="emphasis"><em>xor</em></span> instruction's constrainton <span class="emphasis"><em>op</em></span> and the <span class="emphasis"><em>addrmode</em></span>@@ -538,7 +538,7 @@ constraints on a single byte in the final encoding.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_invisible_operands"></a>7.4.5.�Invisible Operands</h4></div></div></div>+<a name="sleigh_invisible_operands"></a>7.4.5. Invisible Operands</h4></div></div></div><p>It is not necessary for a global symbol, which is needed by aconstructor, to appear in the display section of the definition. If@@ -549,15 +549,15 @@ operand</em></span>. Such an operand behaves and is parsed exactly likeany other operand but there is absolutely no visible indication of theoperand in the final display of the assembly instruction. The onecommon type of instruction that uses this is the relative branch (see-<a class="xref" href="sleigh_constructors.html#sleigh_relative_branches" title="7.5.1.�Relative Branches">Section�7.5.1, “Relative Branches”</a>) but it is otherwise needed+<a class="xref" href="sleigh_constructors.html#sleigh_relative_branches" title="7.5.1. Relative Branches">Section 7.5.1, “Relative Branches”</a>) but it is otherwise neededonly in more esoteric instructions. It is useful in situations whereyou need to break up the parsing of an instruction along lines that-don’t quite match the assembly.+don’t quite match the assembly.</p></div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_empty_patterns"></a>7.4.6.�Empty Patterns</h4></div></div></div>+<a name="sleigh_empty_patterns"></a>7.4.6. Empty Patterns</h4></div></div></div><p>Occasionally there is a need for an empty pattern when buildingtables. An empty pattern matches everything. There is a predefined@@ -567,9 +567,9 @@ to indicate an empty pattern.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_advanced_constraints"></a>7.4.7.�Advanced Constraints</h4></div></div></div>+<a name="sleigh_advanced_constraints"></a>7.4.7. Advanced Constraints</h4></div></div></div><p>-A constraint does not have to be of the form “field = constant”,+A constraint does not have to be of the form “field = constant”,although this is almost always what is needed. In certain situations,it may be more convenient to use a different kind ofconstraint. Special care should be taken when designing these@@ -584,7 +584,7 @@ of parsing states for a single constraint.A constraint can actually be built out of arbitraryexpressions. These <span class="emphasis"><em>pattern expressions</em></span> are morecommonly used in disassembly actions and are defined in-<a class="xref" href="sleigh_constructors.html#sleigh_general_actions" title="7.5.2.�General Actions and Pattern Expressions">Section�7.5.2, “General Actions and Pattern Expressions”</a>, but they can also be used in+<a class="xref" href="sleigh_constructors.html#sleigh_general_actions" title="7.5.2. General Actions and Pattern Expressions">Section 7.5.2, “General Actions and Pattern Expressions”</a>, but they can also be used inconstraints. So in general, a constraint is any equation where theleft-hand side is a single family symbol, the right-hand side is anarbitrary pattern expression, and the constraint operator is one of@@ -592,7 +592,7 @@ the following:</p><div class="informalexample"><div class="table">-<a name="constraints.htmltable"></a><p class="title"><b>Table�3.�Constraint Operators</b></p>+<a name="constraints.htmltable"></a><p class="title"><b>Table 3. Constraint Operators</b></p><div class="table-contents"><table xml:id="constraints.htmltable" width="50%" frame="box" rules="all"><col width="50%"><col width="50%">@@ -645,7 +645,7 @@ feature of <span class="emphasis"><em>clr</em></span> from <span class="emphasisthat the two fields, specifying the two register inputsto <span class="emphasis"><em>xor</em></span>, are equal. The easiest way to specifythis special case is with the general constraint,-“<span class="emphasis"><em>r2</em></span> = <span class="emphasis"><em>r1</em></span>”, as in the second+“<span class="emphasis"><em>r2</em></span> = <span class="emphasis"><em>r1</em></span>”, as in the secondline of the example. The SLEIGH compiler will implement this byenumerating all the cases where <span class="emphasis"><em>r2</em></span>equals <span class="emphasis"><em>r1</em></span>, creating as many states as there are@@ -655,7 +655,7 @@ registers. But the specification itself, at least, remains compact.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_disassembly_actions"></a>7.5.�Disassembly Actions Section</h3></div></div></div>+<a name="sleigh_disassembly_actions"></a>7.5. Disassembly Actions Section</h3></div></div></div><p>After the bit pattern section, there can optionally be a section fordoing dynamic calculations, which must be between square brackets. For@@ -671,11 +671,11 @@ time, usually for part of the disassembly display.</p><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_relative_branches"></a>7.5.1.�Relative Branches</h4></div></div></div>+<a name="sleigh_relative_branches"></a>7.5.1. Relative Branches</h4></div></div></div><p>The canonical example of an action at disassembly time is a branchrelocation. A jump instruction encodes the address of where it jumps-to as a relative offset to the instruction’s address, for+to as a relative offset to the instruction’s address, forinstance. But when we display the assembly, we want to show theabsolute address of the jump destination. The correct way to specifythis is to reserve an identifier in the display section which@@ -698,7 +698,7 @@ defined in the action section as the integer obtained by adding amultiple of <span class="emphasis"><em>simm8</em></span>to <span class="emphasis"><em>inst_next</em></span>, a symbol predefined to be equal tothe address of the following instruction (see-<a class="xref" href="sleigh_symbols.html#sleigh_predefined_symbols" title="5.2.�Predefined Symbols">Section�5.2, “Predefined Symbols”</a>). Now <span class="emphasis"><em>reloc</em></span>+<a class="xref" href="sleigh_symbols.html#sleigh_predefined_symbols" title="5.2. Predefined Symbols">Section 5.2, “Predefined Symbols”</a>). Now <span class="emphasis"><em>reloc</em></span>is a specific symbol with both semantic and display meaning equal tothe desired absolute address. This address is calculated separately,at disassembly time, for every instruction that this constructor@@ -707,7 +707,7 @@ matches.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_general_actions"></a>7.5.2.�General Actions and Pattern Expressions</h4></div></div></div>+<a name="sleigh_general_actions"></a>7.5.2. General Actions and Pattern Expressions</h4></div></div></div><p>In general, the disassembly actions are encoded as a sequence ofassignments separated by semicolons. The left-hand side of each@@ -719,7 +719,7 @@ is built up out of the following typical operators:</p><div class="informalexample"><div class="table">-<a name="patexp.htmltable"></a><p class="title"><b>Table�4.�Pattern Expression Operators</b></p>+<a name="patexp.htmltable"></a><p class="title"><b>Table 4. Pattern Expression Operators</b></p><div class="table-contents"><table xml:id="patexp.htmltable" width="50%" frame="box" rules="all"><col width="50%"><col width="50%">@@ -816,7 +816,7 @@ local identifier before it can be used.</p><p>The left-hand side of an assignment statement can be a context-variable (see <a class="xref" href="sleigh_tokens.html#sleigh_context_variables" title="6.4.�Context Variables">Section�6.4, “Context Variables”</a>). An+variable (see <a class="xref" href="sleigh_tokens.html#sleigh_context_variables" title="6.4. Context Variables">Section 6.4, “Context Variables”</a>). Anassignment to such a variable changes the context in which the currentinstruction is being disassembled and can potentially have a drasticeffect on how the rest of the instruction is disassembled. An@@ -828,26 +828,26 @@ more <span class="bold"><strong>globalset</strong></span> directives, whichcause changes to context variables to become more permanent. Thisdirective is distinct from the operators in a pattern expression andmust be invoked as a separate statement. See-<a class="xref" href="sleigh_context.html" title="8.�Using Context">Section�8, “Using Context”</a>, for a discussion of how to+<a class="xref" href="sleigh_context.html" title="8. Using Context">Section 8, “Using Context”</a>, for a discussion of how toeffectively use context variables and-<a class="xref" href="sleigh_context.html#sleigh_global_change" title="8.3.�Global Context Change">Section�8.3, “Global Context Change”</a>, for details of+<a class="xref" href="sleigh_context.html#sleigh_global_change" title="8.3. Global Context Change">Section 8.3, “Global Context Change”</a>, for details ofthe <span class="bold"><strong>globalset</strong></span> directive.</p><p>Note that there are two syntax forms for the logical operators in apattern expression. When an expression is used as part of a-constraint, the “$and” and “$or” forms of the operators must be used+constraint, the “$and” and “$or” forms of the operators must be usedin order to distinguish the bitwise operators from the special pattern-combining operators, ‘&’ and ‘|’ (as described in-<a class="xref" href="sleigh_constructors.html#sleigh_ampandor" title="7.4.2.�The '&' and '|' Operators">Section�7.4.2, “The '&' and '|' Operators”</a>). However inside the square braces-of the disassembly action section, ‘&’ and ‘|’ are interpreted as+combining operators, ‘&’ and ‘|’ (as described in+<a class="xref" href="sleigh_constructors.html#sleigh_ampandor" title="7.4.2. The '&' and '|' Operators">Section 7.4.2, “The '&' and '|' Operators”</a>). However inside the square braces+of the disassembly action section, ‘&’ and ‘|’ are interpreted asthe usual logical operators.</p></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_with_block"></a>7.6.�The With Block</h3></div></div></div>+<a name="sleigh_with_block"></a>7.6. The With Block</h3></div></div></div><p>To avoid tedious repetition and to ease the maintenance of specificationsalready having many, many constructors and tables, the <span class="emphasis"><em>with@@ -867,9 +867,9 @@ with op1 : mode=1 [ mode=2; ] {In the example, both constructors are added to the table identified by<span class="emphasis"><em>op1</em></span>. Both require the context field<span class="emphasis"><em>mode</em></span> to be equal to 1. The listed constraints take the-form described in <a class="xref" href="sleigh_constructors.html#sleigh_bit_pattern" title="7.4.�The Bit Pattern Section">Section�7.4, “The Bit Pattern Section”</a>, and they are joined to-those given in the constructor statement as if prepended using ‘&’. Similarly,-the actions take the form described in <a class="xref" href="sleigh_constructors.html#sleigh_disassembly_actions" title="7.5.�Disassembly Actions Section">Section�7.5, “Disassembly Actions Section”</a>+form described in <a class="xref" href="sleigh_constructors.html#sleigh_bit_pattern" title="7.4. The Bit Pattern Section">Section 7.4, “The Bit Pattern Section”</a>, and they are joined to+those given in the constructor statement as if prepended using ‘&’. Similarly,+the actions take the form described in <a class="xref" href="sleigh_constructors.html#sleigh_disassembly_actions" title="7.5. Disassembly Actions Section">Section 7.5, “Disassembly Actions Section”</a>and are prepended to the actions given in the constructor statement. Prependingthe actions allows the statement to override actions in the with block. Bothtechnically occur, but only the last one has a noticeable effect. The above@@ -894,12 +894,12 @@ yet exist, the table is created immediately. Inside a with block that has atable header, a nested with block may specify the <span class="emphasis"><em>instruction</em></span>table by name, as in "with instruction : {<span class="weak">...</span>}".Inside such a block, the rule regarding mnemonic literals is restored (see-<a class="xref" href="sleigh_constructors.html#sleigh_mnemonic" title="7.3.1.�Mnemonic">Section�7.3.1, “Mnemonic”</a>).+<a class="xref" href="sleigh_constructors.html#sleigh_mnemonic" title="7.3.1. Mnemonic">Section 7.3.1, “Mnemonic”</a>).</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_semantic_section"></a>7.7.�The Semantic Section</h3></div></div></div>+<a name="sleigh_semantic_section"></a>7.7. The Semantic Section</h3></div></div></div><p>The final section of a constructor definition is the <span class="emphasis"><em>semanticsection</em></span>. This is a description of how the processor would manipulate@@ -916,8 +916,8 @@ were varnodes.</p><p>The semantic section for one constructor is surrounded by curly braces-‘{‘ and ‘}’ and consists of zero or more statements separated by-semicolons ‘;’. Most statements are built up out of C-like syntax,+‘{‘ and ‘}’ and consists of zero or more statements separated by+semicolons ‘;’. Most statements are built up out of C-like syntax,where the variables are the symbols visible to the constructor. Thereis a direct correspondence between each type of operator used in thestatements and a p-code operation. The SLEIGH compiler generates@@ -939,29 +939,29 @@ varnode is <span class="emphasis"><em>r1</em></span>.</p><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_expressions"></a>7.7.1.�Expressions</h4></div></div></div>+<a name="sleigh_expressions"></a>7.7.1. Expressions</h4></div></div></div><p>Expressions are built out of symbols and the binary and unary-operators listed in <a class="xref" href="sleigh_ref.html#syntaxref.htmltable" title="Table�5.�Semantic Expression Operators and Syntax">Table�5, “Semantic Expression Operators and Syntax”</a> in the+operators listed in <a class="xref" href="sleigh_ref.html#syntaxref.htmltable" title="Table 5. Semantic Expression Operators and Syntax">Table 5, “Semantic Expression Operators and Syntax”</a> in theAppendix. All expressions evaluate to an integer, floating point, orboolean value, depending on the final operation of the expression. Thevalue is then used depending on the kind of statement. Most of theoperators require that their input and output varnodes all be the same-size (see <a class="xref" href="sleigh_constructors.html#sleigh_varnode_sizes" title="7.7.3.�Varnode Sizes">Section�7.7.3, “Varnode Sizes”</a>). The operators all+size (see <a class="xref" href="sleigh_constructors.html#sleigh_varnode_sizes" title="7.7.3. Varnode Sizes">Section 7.7.3, “Varnode Sizes”</a>). The operators allhave a precedence, which is used by the SLEIGH compiler to determinethe ordering of the final p-code operations. Parentheses can be usedwithin expressions to affect this order.</p><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_arithmetic_logical"></a>7.7.1.1.�Arithmetic, Logical and Boolean Operators</h5></div></div></div>+<a name="sleigh_arithmetic_logical"></a>7.7.1.1. Arithmetic, Logical and Boolean Operators</h5></div></div></div><p>For the most part these operators should be familiar to softwaredevelopers. The only real differences arise from the fact thatvarnodes are typeless. So for instance, there has to be separate-operators to distinguish between dividing unsigned numbers ‘/’,-dividing signed numbers ‘s/’, and dividing floating point numbers-‘f/’.+operators to distinguish between dividing unsigned numbers ‘/’,+dividing signed numbers ‘s/’, and dividing floating point numbers+‘f/’.</p><p>Carry, borrow, and overflow calculations are implemented with separate@@ -974,11 +974,11 @@ some people in this form (see the descriptions in the Appendix).</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_star_operator"></a>7.7.1.2.�The '*' Operator</h5></div></div></div>+<a name="sleigh_star_operator"></a>7.7.1.2. The '*' Operator</h5></div></div></div><p>The dereference operator, which generates <span class="emphasis"><em>LOAD</em></span>operations (and <span class="emphasis"><em>STORE</em></span> operations), has slightly-unfamiliar syntax. The ‘*’ operator, as is usual in many programming+unfamiliar syntax. The ‘*’ operator, as is usual in many programminglanguages, indicates that the affected variable is a pointer and thatthe expression is <span class="emphasis"><em>dereferencing</em></span> the data beingpointed to. Unlike most languages, in SLEIGH, it is not immediately@@ -989,16 +989,16 @@ the <span class="emphasis"><em>default</em></span> space, as labeled in the defiof one of the address spaces withthe <span class="bold"><strong>default</strong></span> attribute. If that is notthe space desired, the default can be overridden by putting the-identifier for the space in square brackets immediately after the ‘*’.+identifier for the space in square brackets immediately after the ‘*’.</p><p>It is also frequently not clear what the size of the dereferenced datais because the pointer variable is typeless. The SLEIGH compiler canfrequently deduce what the size must be by looking at the operation inthe context of the entire statement (see-<a class="xref" href="sleigh_constructors.html#sleigh_varnode_sizes" title="7.7.3.�Varnode Sizes">Section�7.7.3, “Varnode Sizes”</a>). But in some situations, this+<a class="xref" href="sleigh_constructors.html#sleigh_varnode_sizes" title="7.7.3. Varnode Sizes">Section 7.7.3, “Varnode Sizes”</a>). But in some situations, thismay not be possible, so there is a way to specify the size-explicitly. The operator can be followed by a colon ‘:’ and an integer+explicitly. The operator can be followed by a colon ‘:’ and an integerindicating the number of bytes being dereferenced. This can be usedwith or without the address space override. We give an example of eachkind of override in the example below.@@ -1017,7 +1017,7 @@ set to something other than one.</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_extension"></a>7.7.1.3.�Extension</h5></div></div></div>+<a name="sleigh_extension"></a>7.7.1.3. Extension</h5></div></div></div><p>Most processors have instructions that extend small values into bigvalues, and many instructions do these minor data manipulations@@ -1039,15 +1039,15 @@ the <span class="bold"><strong>sext</strong></span> operator.</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_truncation"></a>7.7.1.4.�Truncation</h5></div></div></div>+<a name="sleigh_truncation"></a>7.7.1.4. Truncation</h5></div></div></div><p>There are two forms of syntax indicating a truncation of the input-varnode. In one the varnode is followed by a colon ‘:’ and an integer+varnode. In one the varnode is followed by a colon ‘:’ and an integerindicating the number of bytes to copy into the output, starting withthe least significant byte. In the second form, the varnode isfollowed by an integer, surrounded by parentheses, indicating thenumber of least significant bytes to truncate from the input. This-second form doesn’t directly specify the size of the output, which+second form doesn’t directly specify the size of the output, whichmust be inferred from context.</p><div class="informalexample"><pre class="programlisting">@@ -1067,7 +1067,7 @@ half and <span class="emphasis"><em>hi</em></span> receives the most significant</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_bitrange_operator"></a>7.7.1.5.�Bit Range Operator</h5></div></div></div>+<a name="sleigh_bitrange_operator"></a>7.7.1.5. Bit Range Operator</h5></div></div></div><p>A specific subrange of bits within a varnode can be explicitlyreferenced. Depending on the range, this may amount to just a@@ -1082,7 +1082,7 @@ restricted to byte alignment.</p><p>A varnode, <span class="emphasis"><em>r2</em></span> in this example, is immediately-followed by square brackets ‘[’ and ‘]’ indicating a bit range, and+followed by square brackets ‘[’ and ‘]’ indicating a bit range, andwithin the brackets, there are two parameters separated by acomma. The first parameter is an integer indicating the leastsignificant bit of the resulting bit range. The bits of the varnode@@ -1101,7 +1101,7 @@ with memory down to byte resolution. The bit range operator willgenerate some combinationof <span class="emphasis"><em>INT_RIGHT</em></span>, <span class="emphasis"><em>INT_AND</em></span>,and <span class="emphasis"><em>SUBPIECE</em></span> to simulate the extraction of-smaller or unaligned pieces. The “r2[3,1]” from the example generates+smaller or unaligned pieces. The “r2[3,1]” from the example generatesthe following p-code, for instance.</p><div class="informalexample"><pre class="programlisting">@@ -1119,12 +1119,12 @@ these are automatically set to zero.</p><p>This operator can also be used on the left-hand side of assignments-with similar behavior and caveats (see <a class="xref" href="sleigh_constructors.html#sleigh_bitrange_assign" title="7.7.2.8.�Bit Range Assignments">Section�7.7.2.8, “Bit Range Assignments”</a>).+with similar behavior and caveats (see <a class="xref" href="sleigh_constructors.html#sleigh_bitrange_assign" title="7.7.2.8. Bit Range Assignments">Section 7.7.2.8, “Bit Range Assignments”</a>).</p></div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_addressof"></a>7.7.1.6.�Address-of Operator</h5></div></div></div>+<a name="sleigh_addressof"></a>7.7.1.6. Address-of Operator</h5></div></div></div><p>There is an <span class="emphasis"><em>address-of</em></span> operator for generatingthe address offset of a selected varnode as an integer value for use@@ -1143,8 +1143,8 @@ specification may produce unexpected results.</p></div><p>-There ‘&’ operator in front of a symbol invokes this function. The-ampersand can also be followed by a colon ‘:’ and an integer+There ‘&’ operator in front of a symbol invokes this function. The+ampersand can also be followed by a colon ‘:’ and an integerexplicitly indicating the size of the resulting constant as a varnode.</p><div class="informalexample"><pre class="programlisting">@@ -1164,12 +1164,12 @@ following <span class="emphasis"><em>r1</em></span> is copiedinto <span class="emphasis"><em>r1</em></span>, even though it is not mentioned directlyin the instruction. Notice that the address-of operator only producesthe offset portion of the address, and to copy the desired value, the-‘*’ operator must have a <span class="emphasis"><em>register</em></span> space override.+‘*’ operator must have a <span class="emphasis"><em>register</em></span> space override.</p></div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_managed_code"></a>7.7.1.7.�Managed Code Operations</h5></div></div></div>+<a name="sleigh_managed_code"></a>7.7.1.7. Managed Code Operations</h5></div></div></div><p>SLEIGH provides basic support for instructions where encoding and contextdon't provide a complete description of the semantics. This is the case@@ -1210,7 +1210,7 @@ of objects to allocate. It returns a pointer to the allocated object.</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_userdef_op"></a>7.7.1.8.�User-Defined Operations</h5></div></div></div>+<a name="sleigh_userdef_op"></a>7.7.1.8. User-Defined Operations</h5></div></div></div><p>Any identifier that has been defined as a new p-code operation, usingthe <span class="bold"><strong>define pcodeop</strong></span> statement, can be@@ -1231,15 +1231,15 @@ define pcodeop arctan;</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_statements"></a>7.7.2.�Statements</h4></div></div></div>+<a name="sleigh_statements"></a>7.7.2. Statements</h4></div></div></div><p>We describe the types of semantic statements that are allowed in SLEIGH.</p><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_assign_statements"></a>7.7.2.1.�Assignment Statements and Temporary Variables</h5></div></div></div>+<a name="sleigh_assign_statements"></a>7.7.2.1. Assignment Statements and Temporary Variables</h5></div></div></div><p>-Of course SLEIGH allows assignment statements with the ‘=’ operator,+Of course SLEIGH allows assignment statements with the ‘=’ operator,where the right-hand side is an arbitrary expression and the left-handside is the varnode being assigned. The assigned varnode can be anyspecific symbol in the scope of the constructor, either a global@@ -1256,8 +1256,8 @@ result of the expression. The new symbol becomes part of the localscope of the constructor, and can be referred to in the followingsemantic statements. The size of the new varnode is calculated byexamining the statement in context (see-<a class="xref" href="sleigh_constructors.html#sleigh_varnode_sizes" title="7.7.3.�Varnode Sizes">Section�7.7.3, “Varnode Sizes”</a>). It is also possible to-explicitly indicate the size by using the colon ‘:’ operator followed+<a class="xref" href="sleigh_constructors.html#sleigh_varnode_sizes" title="7.7.3. Varnode Sizes">Section 7.7.3, “Varnode Sizes”</a>). It is also possible to+explicitly indicate the size by using the colon ‘:’ operator followedby an integer size in bytes. The following examples demonstrate thetemporary variable <span class="emphasis"><em>tmp</em></span> being defined using bothforms.@@ -1305,11 +1305,11 @@ and may be enforced in future compiler versions.</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_storage_statements"></a>7.7.2.2.�Storage Statements</h5></div></div></div>+<a name="sleigh_storage_statements"></a>7.7.2.2. Storage Statements</h5></div></div></div><p>SLEIGH supports fairly standard <span class="emphasis"><em>storage statement</em></span>syntax to complement the load operator. The left-hand side of an-assignment statement uses the ‘*’ operator to indicate a dynamic+assignment statement uses the ‘*’ operator to indicate a dynamicstorage location, followed by an arbitrary expression to calculate thelocation. This syntax of course generates thep-code <span class="emphasis"><em>STORE</em></span> operator as the final step of the@@ -1323,10 +1323,10 @@ statement.<p></p><p>-The same size and address space considerations that apply to the ‘*’+The same size and address space considerations that apply to the ‘*’operator when it is used as a load operator also apply when it is usedas a store operator, see-<a class="xref" href="sleigh_constructors.html#sleigh_star_operator" title="7.7.1.2.�The '*' Operator">Section�7.7.1.2, “The '*' Operator”</a>. Unless explicit modifiers are+<a class="xref" href="sleigh_constructors.html#sleigh_star_operator" title="7.7.1.2. The '*' Operator">Section 7.7.1.2, “The '*' Operator”</a>. Unless explicit modifiers aregiven, the default address space is assumed as the storagedestination, and the size of the data being stored is calculated fromcontext. Keep in mind that the address represented by the pointer is@@ -1336,9 +1336,9 @@ attribute is set to something other than one.</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_exports"></a>7.7.2.3.�Exports</h5></div></div></div>+<a name="sleigh_exports"></a>7.7.2.3. Exports</h5></div></div></div><p>-The semantic section doesn’t just specify how to generate p-code for a+The semantic section doesn’t just specify how to generate p-code for aconstructor. Except for those constructors in the root table, thissection also associates a semantic meaning to the table symbol theconstructor is part of, allowing the table to be used as an operand in@@ -1374,32 +1374,32 @@ a <span class="emphasis"><em>reference</em></span> to the varnode being exportedcopy of the value. If the table symbol is written to, as the left-handside of an assignment statement, in some other constructor, theexported varnode is affected. A constant can be exported if its size-as a varnode is given explicitly with the ‘:’ operator.+as a varnode is given explicitly with the ‘:’ operator.</p><p>It is not legal to put a full expression inan <span class="bold"><strong>export</strong></span> statement, any expression-must appear in an earlier statement. However, a single ‘&’+must appear in an earlier statement. However, a single ‘&’operator is allowed as part of the statement and it behaves as itwould in a normal expression (see-<a class="xref" href="sleigh_constructors.html#sleigh_addressof" title="7.7.1.6.�Address-of Operator">Section�7.7.1.6, “Address-of Operator”</a>). It causes the address of the+<a class="xref" href="sleigh_constructors.html#sleigh_addressof" title="7.7.1.6. Address-of Operator">Section 7.7.1.6, “Address-of Operator”</a>). It causes the address of thevarnode being modified to be exported as an integer constant.</p></div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_dynamic_references"></a>7.7.2.4.�Dynamic References</h5></div></div></div>+<a name="sleigh_dynamic_references"></a>7.7.2.4. Dynamic References</h5></div></div></div><p>The only other operator allowed as part of-an <span class="bold"><strong>export</strong></span> statement, is the ‘*’+an <span class="bold"><strong>export</strong></span> statement, is the ‘*’operator. The semantic meaning of this operator is the same as if itwere used in an expression (see-<a class="xref" href="sleigh_constructors.html#sleigh_star_operator" title="7.7.1.2.�The '*' Operator">Section�7.7.1.2, “The '*' Operator”</a>), but it is worth examining the+<a class="xref" href="sleigh_constructors.html#sleigh_star_operator" title="7.7.1.2. The '*' Operator">Section 7.7.1.2, “The '*' Operator”</a>), but it is worth examining theeffects of this form of export in detail. Bearing in mind thatan <span class="bold"><strong>export</strong></span> statement exports-a <span class="emphasis"><em>reference</em></span>, using the ‘*’ operator in the+a <span class="emphasis"><em>reference</em></span>, using the ‘*’ operator in thestatement exports a <span class="emphasis"><em>dynamic reference</em></span>. The-varnode being modified by the ‘*’ is interpreted as a pointer to+varnode being modified by the ‘*’ is interpreted as a pointer toanother varnode. It is this varnode being pointed to which isexported, even though the address may be dynamic and cannot bedetermined at disassembly time. This is not the same as dereferencing@@ -1427,14 +1427,14 @@ calculated from a register <span class="emphasis"><em>reg</em></span> and a fielinstruction <span class="emphasis"><em>off</em></span>. The constructor does not exportthe resulting pointer <span class="emphasis"><em>ea</em></span>, it exports the locationbeing pointed to by <span class="emphasis"><em>ea</em></span>. Notice the size of this-location (4) is given explicitly with the ‘:’ modifier. The ‘*’+location (4) is given explicitly with the ‘:’ modifier. The ‘*’operator can also be used on constant pointers. In the second example,the constant operand <span class="emphasis"><em>reloc</em></span> is used as the offsetportion of an address into the <span class="emphasis"><em>ram</em></span> addressspace. The constant <span class="emphasis"><em>reloc</em></span> is calculated atdisassembly time from the instructionfield <span class="emphasis"><em>abs</em></span>. This is a very common construction for-jump destinations (see <a class="xref" href="sleigh_constructors.html#sleigh_relative_branches" title="7.5.1.�Relative Branches">Section�7.5.1, “Relative Branches”</a>) but+jump destinations (see <a class="xref" href="sleigh_constructors.html#sleigh_relative_branches" title="7.5.1. Relative Branches">Section 7.5.1, “Relative Branches”</a>) butcan be used in general. This particular combination of a disassemblytime action and a dynamic export is a very general way to construct afamily of varnodes.@@ -1447,10 +1447,10 @@ levels.</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_branching_statements"></a>7.7.2.5.�Branching Statements</h5></div></div></div>+<a name="sleigh_branching_statements"></a>7.7.2.5. Branching Statements</h5></div></div></div><p>This section discusses statements that generate p-code branching-operations. These are listed in <a class="xref" href="sleigh_ref.html#branchref.htmltable" title="Table�7.�Branching Statements">Table�7, “Branching Statements”</a>, in the Appendix.+operations. These are listed in <a class="xref" href="sleigh_ref.html#branchref.htmltable" title="Table 7. Branching Statements">Table 7, “Branching Statements”</a>, in the Appendix.</p><p>There are six forms covering the gamut of typical assembly language@@ -1492,12 +1492,12 @@ destination is the first p-code operation for the (translated) machineinstruction at that address. For most cases, this is the only kind ofbranching needed. The rarer case of <span class="emphasis"><em>p-coderelative</em></span> branching is discussed in the following section-(<a class="xref" href="sleigh_constructors.html#sleigh_pcode_relative" title="7.7.2.6.�P-code Relative Branching">Section�7.7.2.6, “P-code Relative Branching”</a>), but for the remainder of+(<a class="xref" href="sleigh_constructors.html#sleigh_pcode_relative" title="7.7.2.6. P-code Relative Branching">Section 7.7.2.6, “P-code Relative Branching”</a>), but for the remainder ofthis section, we assume the destination is ultimately given as anaddress.</p><p>-There are two ways to specify a branching operation’s destination+There are two ways to specify a branching operation’s destinationaddress; directly and indirectly. Where a direct address is needed, asfor the <span class="emphasis"><em>BRANCH</em></span>, <span class="emphasis"><em>CBRANCH</em></span>,and <span class="emphasis"><em>CALL</em></span> instructions, The specification can give@@ -1613,7 +1613,7 @@ must match the size of the destination space.</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_pcode_relative"></a>7.7.2.6.�P-code Relative Branching</h5></div></div></div>+<a name="sleigh_pcode_relative"></a>7.7.2.6. P-code Relative Branching</h5></div></div></div><p>In some cases, the semantics of an instruction may requirebranching <span class="emphasis"><em>within</em></span> the semantics of a single@@ -1623,7 +1623,7 @@ branching. Individual p-code operations can be identified bya <span class="emphasis"><em>label</em></span>, and this label can be used as thedestination specifier, after the <span class="bold"><strong>goto</strong></span>keyword. A <span class="emphasis"><em>label</em></span>, within the semantic section, is-any identifier surrounded by the ‘<’ and ‘>’ characters. If this+any identifier surrounded by the ‘<’ and ‘>’ characters. If thisconstruction occurs at the beginning of a statement, we say the labelis <span class="emphasis"><em>defined</em></span>, and that identifier is now associatedwith the first p-code operation corresponding to the following@@ -1649,7 +1649,7 @@ defined. Multiple references to the same label are allowed.<p></p><p>-In the example above, the string “loopstart” is the label identifier+In the example above, the string “loopstart” is the label identifierwhich appears twice; once at the point where the label is defined atthe top of the loop, after the initialization, and once as a referencewhere the conditional branch is made for the loop.@@ -1665,10 +1665,10 @@ instruction is not possible.</p><p>Internally, branches to labels are encoded as a relative index. Each-p-code operation is assigned an index corresponding to the operation’s+p-code operation is assigned an index corresponding to the operation’sposition within the entire translation of the instruction. Then thebranch can be expressed as a relative offset between the branch-operation’s index and the destination operation’s index. The SLEIGH+operation’s index and the destination operation’s index. The SLEIGHcompiler encodes this offset as a constant varnode that is used asinput tothe <span class="emphasis"><em>BRANCH</em></span>, <span class="emphasis"><em>CBRANCH</em></span>,@@ -1677,7 +1677,7 @@ or <span class="emphasis"><em>CALL</em></span> operation.</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_skip_instruction_branching"></a>7.7.2.7.�Skip Instruction Branching</h5></div></div></div>+<a name="sleigh_skip_instruction_branching"></a>7.7.2.7. Skip Instruction Branching</h5></div></div></div><p>Many processors have a conditional-skip-instruction which must branch over the next instructionbased upon some condition. The <span class="emphasis"><em>inst_next2</em></span> symbol has been provided for@@ -1698,15 +1698,15 @@ instruction when the condition is satisfied.</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_bitrange_assign"></a>7.7.2.8.�Bit Range Assignments</h5></div></div></div>+<a name="sleigh_bitrange_assign"></a>7.7.2.8. Bit Range Assignments</h5></div></div></div><p>The bit range operator can appear on the left-hand side of an-assignment. But as with the ‘*’ operator, its meaning is slightly+assignment. But as with the ‘*’ operator, its meaning is slightlydifferent when used on this side. The bit range is specified in squarebrackets, as before, by giving the integer specifying the leastsignificant bit of the range, followed by the number of bits in therange. In contrast with its use on the right however (see-<a class="xref" href="sleigh_constructors.html#sleigh_bitrange_operator" title="7.7.1.5.�Bit Range Operator">Section�7.7.1.5, “Bit Range Operator”</a>), the indicated bit range+<a class="xref" href="sleigh_constructors.html#sleigh_bitrange_operator" title="7.7.1.5. Bit Range Operator">Section 7.7.1.5, “Bit Range Operator”</a>), the indicated bit rangeis filled rather than extracted. Bits obtained from evaluating theexpression on the right are extracted and spliced into the result atthe indicated bit offset.@@ -1729,7 +1729,7 @@ In terms of the rest of the assignment expression, the bit rangeoperator is again assumed to have a size equal to the minimum numberof bytes needed to hold the bit range. In particular, in order tosatisfy size restrictions (see-<a class="xref" href="sleigh_constructors.html#sleigh_varnode_sizes" title="7.7.3.�Varnode Sizes">Section�7.7.3, “Varnode Sizes”</a>), the right-hand side must+<a class="xref" href="sleigh_constructors.html#sleigh_varnode_sizes" title="7.7.3. Varnode Sizes">Section 7.7.3, “Varnode Sizes”</a>), the right-hand side mustmatch this size. Furthermore, it is assumed that any extra bits in theright-hand side expression are already set to zero.</p>@@ -1737,7 +1737,7 @@ right-hand side expression are already set to zero.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_varnode_sizes"></a>7.7.3.�Varnode Sizes</h4></div></div></div>+<a name="sleigh_varnode_sizes"></a>7.7.3. Varnode Sizes</h4></div></div></div><p>All statements within the semantic section must be specified up to thepoint where the sizes of all varnodes are unambiguously@@ -1760,7 +1760,7 @@ The SLEIGH compiler does not make assumptions about the size of aconstant variable based on the constant value itself. This is true ofvalues occurring explicitly in the specification and of values thatare calculated dynamically in a disassembly action. As described in-<a class="xref" href="sleigh_constructors.html#sleigh_assign_statements" title="7.7.2.1.�Assignment Statements and Temporary Variables">Section�7.7.2.1, “Assignment Statements and Temporary Variables”</a>, temporary variables do not+<a class="xref" href="sleigh_constructors.html#sleigh_assign_statements" title="7.7.2.1. Assignment Statements and Temporary Variables">Section 7.7.2.1, “Assignment Statements and Temporary Variables”</a>, temporary variables do notneed to have their size given explicitly.</p><p>@@ -1768,7 +1768,7 @@ The SLEIGH compiler can usually fill in the required size by examiningthese situations in the context of the entire semantic section. Mostp-code operations have size restrictions on their inputs and outputs,which when put together can uniquely determine the unspecified-sizes. Referring to <a class="xref" href="sleigh_ref.html#syntaxref.htmltable" title="Table�5.�Semantic Expression Operators and Syntax">Table�5, “Semantic Expression Operators and Syntax”</a> in the+sizes. Referring to <a class="xref" href="sleigh_ref.html#syntaxref.htmltable" title="Table 5. Semantic Expression Operators and Syntax">Table 5, “Semantic Expression Operators and Syntax”</a> in theAppendix, all arithmetic and logical operations, both integer andfloating point, must have inputs and outputs all of the same size. Theonly exceptions are as follows. The overflow@@ -1784,8 +1784,8 @@ a size of 1 byte.<p>The operators without a size constraint are the load and storeoperators, the extension and truncation operators, and the conversion-operators. As discussed in <a class="xref" href="sleigh_constructors.html#sleigh_star_operator" title="7.7.1.2.�The '*' Operator">Section�7.7.1.2, “The '*' Operator”</a>, the-‘*’ operator cannot get size information for the dynamic (pointed-to)+operators. As discussed in <a class="xref" href="sleigh_constructors.html#sleigh_star_operator" title="7.7.1.2. The '*' Operator">Section 7.7.1.2, “The '*' Operator”</a>, the+‘*’ operator cannot get size information for the dynamic (pointed-to)object from the pointer itself. The other operators by definitioninvolve a change of size from input to output.</p>@@ -1793,7 +1793,7 @@ involve a change of size from input to output.If the SLEIGH compiler cannot discover the sizes of constants andtemporaries, it will report an error stating that it could not resolvevariable sizes for that constructor. This can usually be fixed rapidly-by appending the size ‘:’ modifier to either the ‘*’ operator, the+by appending the size ‘:’ modifier to either the ‘*’ operator, thetemporary variable definition, or to an explicit integer. Here arethree examples of statements that generate a size resolution error,each followed by a variation which corrects the error.@@ -1823,7 +1823,7 @@ each followed by a variation which corrects the error.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_unimplemented_semantics"></a>7.7.4.�Unimplemented Semantics</h4></div></div></div>+<a name="sleigh_unimplemented_semantics"></a>7.7.4. Unimplemented Semantics</h4></div></div></div><p>The semantic section must be present for every constructor in thespecification. But the designer can leave the semantics explicitly@@ -1849,7 +1849,7 @@ nothing.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_tables"></a>7.8.�Tables</h3></div></div></div>+<a name="sleigh_tables"></a>7.8. Tables</h3></div></div></div><p>A single constructor does not form a new specificsymbol. The <span class="emphasis"><em>table</em></span> that the constructor is@@ -1874,13 +1874,13 @@ exploit the similarity to produce an extremely concise description.</p><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_matching"></a>7.8.1.�Matching</h4></div></div></div>+<a name="sleigh_matching"></a>7.8.1. Matching</h4></div></div></div><p>If a table contains exactly one constructor, the meaning of the tableas a specific symbol is straightforward. The display meaning of thesymbol comes from the <span class="emphasis"><em>display section</em></span> of the-constructor, and the symbol’s semantic meaning comes from the-constructor’s <span class="emphasis"><em>semantic section</em></span>.+constructor, and the symbol’s semantic meaning comes from the+constructor’s <span class="emphasis"><em>semantic section</em></span>.</p><div class="informalexample"><pre class="programlisting">mode1: (r1) is addrmode=1 & r1 { export r1; }@@ -1890,8 +1890,8 @@ mode1: (r1) is addrmode=1 & r1 { export r1; }<p>The table symbol in this exampleis <span class="emphasis"><em>mode1</em></span>. Assuming this is the only constructor,-the display meaning of the symbol are the literal characters ‘(‘, and-‘)’ concatenated with the display meaning of <span class="emphasis"><em>r1</em></span>,+the display meaning of the symbol are the literal characters ‘(‘, and+‘)’ concatenated with the display meaning of <span class="emphasis"><em>r1</em></span>,presumably a register name that has been attached. The semanticmeaning of <span class="emphasis"><em>mode1</em></span>, because of the exportstatement, becomes whatever register is matched by@@ -1938,7 +1938,7 @@ symbol.</p><div class="informalexample"><pre class="programlisting">zA: r1 is addrmode=3 & r1 { export r1; }-zA: “0” is addrmode=3 & r1=0 { export 0:4; } # Special case+zA: “0” is addrmode=3 & r1=0 { export 0:4; } # Special case</pre></div><p></p>@@ -1983,7 +1983,7 @@ should generally be avoided.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_specific_symbol_trees"></a>7.8.2.�Specific Symbol Trees</h4></div></div></div>+<a name="sleigh_specific_symbol_trees"></a>7.8.2. Specific Symbol Trees</h4></div></div></div><p>When the SLEIGH parser analyzes an instruction, it starts with theroot symbol <span class="emphasis"><em>instruction</em></span>, and decides which of the@@ -1993,7 +1993,7 @@ parsing process recurses at this point. Each of the unresolved familysymbols is analyzed in the same way to find the matching specificsymbol. The matching is accomplished either with a table lookup, aswith a field with attached registers, or with the matching algorithm-described in <a class="xref" href="sleigh_constructors.html#sleigh_matching" title="7.8.1.�Matching">Section�7.8.1, “Matching”</a>. By the end of the+described in <a class="xref" href="sleigh_constructors.html#sleigh_matching" title="7.8.1. Matching">Section 7.8.1, “Matching”</a>. By the end of theparsing process, we have a tree of specific symbols representing theparsed instruction. We present a small but complete SLEIGHspecification to illustrate this hierarchy.@@ -2049,10 +2049,10 @@ constructor is resolved in turn.</p><div class="figure"><a name="sleigh_encoding_image"></a><div class="figure-contents"><div class="mediaobject" align="center"><table border="0" summary="manufactured viewport for HTML img" style="cellpadding: 0; cellspacing: 0;" width="100%"><tr><td align="center"><img src="Diagram1.png" align="middle" width="540" height="225" alt="Two Encodings and the Resulting Specific Symbol Trees"></td></tr></table></div></div>-<p class="title"><b>Figure�1.�Two Encodings and the Resulting Specific Symbol Trees</b></p>+<p class="title"><b>Figure 1. Two Encodings and the Resulting Specific Symbol Trees</b></p></div><br class="figure-break"><p>-In <a class="xref" href="sleigh_constructors.html#sleigh_encoding_image" title="Figure�1.�Two Encodings and the Resulting Specific Symbol Trees">Figure�1, “Two Encodings and the Resulting Specific Symbol Trees”</a>, we can see the break down+In <a class="xref" href="sleigh_constructors.html#sleigh_encoding_image" title="Figure 1. Two Encodings and the Resulting Specific Symbol Trees">Figure 1, “Two Encodings and the Resulting Specific Symbol Trees”</a>, we can see the break downof two typical instructions in the example instruction set. For eachinstruction, we see the how the encodings split into the relevantfields and the resulting tree of specific symbols. Each node in the@@ -2066,7 +2066,7 @@ and p-code for these encodings by walking the trees.</p><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_disassembly_trees"></a>7.8.2.1.�Disassembly Trees</h5></div></div></div>+<a name="sleigh_disassembly_trees"></a>7.8.2.1. Disassembly Trees</h5></div></div></div><p>If the nodes of each tree are replaced with the display information ofthe corresponding specific symbol, we see how the disassembly@@ -2074,12 +2074,12 @@ statement is built.</p><div class="figure"><a name="sleigh_disassembly_image"></a><div class="figure-contents"><div class="mediaobject" align="center"><table border="0" summary="manufactured viewport for HTML img" style="cellpadding: 0; cellspacing: 0;" width="100%"><tr><td align="center"><img src="Diagram2.png" align="middle" width="310" height="151" alt="Two Disassembly Trees"></td></tr></table></div></div>-<p class="title"><b>Figure�2.�Two Disassembly Trees</b></p>+<p class="title"><b>Figure 2. Two Disassembly Trees</b></p></div><br class="figure-break"><p>-<a class="xref" href="sleigh_constructors.html#sleigh_disassembly_image" title="Figure�2.�Two Disassembly Trees">Figure�2, “Two Disassembly Trees”</a>, shows the resulting+<a class="xref" href="sleigh_constructors.html#sleigh_disassembly_image" title="Figure 2. Two Disassembly Trees">Figure 2, “Two Disassembly Trees”</a>, shows the resultingdisassembly trees corresponding to the specific symbol trees in-<a class="xref" href="sleigh_constructors.html#sleigh_encoding_image" title="Figure�1.�Two Encodings and the Resulting Specific Symbol Trees">Figure�1, “Two Encodings and the Resulting Specific Symbol Trees”</a>. The display information comes+<a class="xref" href="sleigh_constructors.html#sleigh_encoding_image" title="Figure 1. Two Encodings and the Resulting Specific Symbol Trees">Figure 1, “Two Encodings and the Resulting Specific Symbol Trees”</a>. The display information comesfrom constructor display sections, the names of attached registers, orthe integer interpretation of fields. The identifiers in a constructordisplay section serves as placeholders for the subtrees below them. By@@ -2089,7 +2089,7 @@ statements corresponding to the original instruction encodings.</div><div class="sect4"><div class="titlepage"><div><div><h5 class="title">-<a name="sleigh_pcode_trees"></a>7.8.2.2.�P-code Trees</h5></div></div></div>+<a name="sleigh_pcode_trees"></a>7.8.2.2. P-code Trees</h5></div></div></div><p>A similar procedure produces the resulting p-code translation of theinstruction. If each node in the specific symbol tree is replaced with@@ -2097,10 +2097,10 @@ the corresponding p-code, we see how the final translation is built.</p><div class="figure"><a name="sleigh_pcode_image"></a><div class="figure-contents"><div class="mediaobject" align="center"><table border="0" summary="manufactured viewport for HTML img" style="cellpadding: 0; cellspacing: 0;" width="100%"><tr><td align="center"><img src="Diagram3.png" align="middle" width="405" height="149" alt="Two P-code Trees"></td></tr></table></div></div>-<p class="title"><b>Figure�3.�Two P-code Trees</b></p>+<p class="title"><b>Figure 3. Two P-code Trees</b></p></div><br class="figure-break"><p>-<a class="xref" href="sleigh_constructors.html#sleigh_pcode_image" title="Figure�3.�Two P-code Trees">Figure�3, “Two P-code Trees”</a> lists the final p-code+<a class="xref" href="sleigh_constructors.html#sleigh_pcode_image" title="Figure 3. Two P-code Trees">Figure 3, “Two P-code Trees”</a> lists the final p-codetranslation for our example instructions and shows the trees fromwhich the translation is derived. Symbol names within the p-code for aparticular node, as with the disassembly tree, are placeholders for@@ -2108,7 +2108,7 @@ the subtree below them. The final translation is put together byconcatenating the p-code from each node, traversing the nodes in adepth-first order. Thus the p-code of a child tends to come before thep-code of the parent node (but see-<a class="xref" href="sleigh_constructors.html#sleigh_macros" title="7.9.�P-code Macros">Section�7.9, “P-code Macros”</a>). Placeholders are filled in with the+<a class="xref" href="sleigh_constructors.html#sleigh_macros" title="7.9. P-code Macros">Section 7.9, “P-code Macros”</a>). Placeholders are filled in with theappropriate varnode, as determined by the export statement of the rootof the corresponding subtree.</p>@@ -2117,11 +2117,11 @@ of the corresponding subtree.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_macros"></a>7.9.�P-code Macros</h3></div></div></div>+<a name="sleigh_macros"></a>7.9. P-code Macros</h3></div></div></div><p>SLEIGH supports a macro facility for encapsulating semanticactions. The syntax, in effect, allows the designer to define p-code-subroutines which can be invoked as part of a constructor’s semantic+subroutines which can be invoked as part of a constructor’s semanticaction. The subroutine is expanded automatically at compile time.</p><p>@@ -2131,8 +2131,8 @@ anywhere in the file before its first use. This is followed by theglobal identifier for the new macro and a parameter list, commaseparated and in parentheses. The body of the definition comes next,surrounded by curly braces. The body is a sequence of semantic-statements with the same syntax as a constructor’s semantic-section. The identifiers in the macro’s parameter list are local in+statements with the same syntax as a constructor’s semantic+section. The identifiers in the macro’s parameter list are local inscope. The macro can refer to these and any global specific symbol.</p><div class="informalexample"><pre class="programlisting">@@ -2168,7 +2168,7 @@ directive however should not be used in a macro.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_build_directives"></a>7.10.�Build Directives</h3></div></div></div>+<a name="sleigh_build_directives"></a>7.10. Build Directives</h3></div></div></div><p>Because the nodes of a specific symbol tree are traversed in adepth-first order, the p-code for a child node in general comes before@@ -2180,10 +2180,10 @@ used to affect these issues in the rare cases where it isnecessary. The <span class="bold"><strong>build</strong></span> directive occursas another form of statement in the semantic section of aconstructor. The keyword <span class="bold"><strong>build</strong></span> is-followed by one of the constructor’s operand identifiers. Then,-instead of filling in the operand’s associated p-code based on an+followed by one of the constructor’s operand identifiers. Then,+instead of filling in the operand’s associated p-code based on anarbitrary traversal of the symbol tree, the directive specifies that-the operand’s p-code must occur at that point in the p-code for the+the operand’s p-code must occur at that point in the p-code for theparent constructor.</p><p>@@ -2199,7 +2199,7 @@ efficient to treat the condition bit which distinguishes the variantsas a special operand.</p><div class="informalexample"><pre class="programlisting">-cc: “c” is condition=1 { if (flag==1) goto inst_next; }+cc: “c” is condition=1 { if (flag==1) goto inst_next; }cc: is condition=0 { }:and^cc r1,r2 is opcode=0x67 & cc & r1 & r2 {@@ -2210,7 +2210,7 @@ cc: is condition=0 { }<p></p><p>-In this example, the conditional variant is distinguished by a ‘c’+In this example, the conditional variant is distinguished by a ‘c’appended to the assembly mnemonic. The <span class="emphasis"><em>cc</em></span> operandperforms the conditional side-effect, checking a flag in one case, ordoing nothing in the other. The two forms of the instruction can now@@ -2223,7 +2223,7 @@ normal action of the instruction.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_delayslot_directives"></a>7.11.�Delay Slot Directives</h3></div></div></div>+<a name="sleigh_delayslot_directives"></a>7.11. Delay Slot Directives</h3></div></div></div><p>For processors with a pipe-lined architecture, multiple instructionsare typically executing simultaneously. This can lead to processor@@ -2268,7 +2268,7 @@ Because the <span class="bold"><strong>delayslot</strong></span> directivecombines two or more instructions into one, the meaning of thesymbols <span class="emphasis"><em>inst_next</em></span> and <span class="emphasis"><em>inst_next2</em></span>become ambiguous. It is not-clear anymore what exactly the “next instruction” is. SLEIGH uses the+clear anymore what exactly the “next instruction” is. SLEIGH uses thefollowing conventions for interpretingan <span class="emphasis"><em>inst_next</em></span> symbol. If it is used in thesemantic section, the symbol refers to the address of the instruction@@ -2289,15 +2289,15 @@ when computing the value of <span class="emphasis"><em>inst_next2</em></span>.<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="sleigh_tokens.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="sleigh_context.html">Next</a>+<a accesskey="p" href="sleigh_tokens.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="sleigh_context.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">6.�Tokens and Fields�</td>+<td width="40%" align="left" valign="top">6. Tokens and Fields </td><td width="20%" align="center"><a accesskey="h" href="sleigh.html">Home</a></td>-<td width="40%" align="right" valign="top">�8.�Using Context</td>+<td width="40%" align="right" valign="top"> 8. Using Context</td></tr></table></div>diff --git a/GhidraDocs/languages/html/sleigh_context.html b/GhidraDocs/languages/html/sleigh_context.htmlindex a6da400f94..0239994cde 100644--- a/GhidraDocs/languages/html/sleigh_context.html+++ b/GhidraDocs/languages/html/sleigh_context.html@@ -1,24 +1,24 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">-<title>8.�Using Context</title>+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">+<title>8. Using Context</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="sleigh.html" title="SLEIGH"><link rel="up" href="sleigh.html" title="SLEIGH">-<link rel="prev" href="sleigh_constructors.html" title="7.�Constructors">-<link rel="next" href="sleigh_ref.html" title="9.�P-code Tables">+<link rel="prev" href="sleigh_constructors.html" title="7. Constructors">+<link rel="next" href="sleigh_ref.html" title="9. P-code Tables"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header">-<tr><th colspan="3" align="center">8.�Using Context</th></tr>+<tr><th colspan="3" align="center">8. Using Context</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="sleigh_constructors.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="sleigh_ref.html">Next</a>+<a accesskey="p" href="sleigh_constructors.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="sleigh_ref.html">Next</a></td></tr></table>@@ -26,7 +26,7 @@</div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both">-<a name="sleigh_context"></a>8.�Using Context</h2></div></div></div>+<a name="sleigh_context"></a>8. Using Context</h2></div></div></div><p>For most practical specifications, the disassembly and semanticmeaning of an instruction can be determined by looking only at the@@ -77,7 +77,7 @@ necessary.<p>SLEIGH solves these problems by introducing <span class="emphasis"><em>contextvariables</em></span>. The syntax for defining these symbols was-described in <a class="xref" href="sleigh_tokens.html#sleigh_context_variables" title="6.4.�Context Variables">Section�6.4, “Context Variables”</a>. As mentioned+described in <a class="xref" href="sleigh_tokens.html#sleigh_context_variables" title="6.4. Context Variables">Section 6.4, “Context Variables”</a>. As mentionedthere, the easiest and most common way to use a context variable is asjust another field to use in our bit patterns. It gives us the extrainformation we need to distinguish between different instructions@@ -85,7 +85,7 @@ whose encodings are otherwise the same.</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_context_basic"></a>8.1.�Basic Use of Context Variables</h3></div></div></div>+<a name="sleigh_context_basic"></a>8.1. Basic Use of Context Variables</h3></div></div></div><p>Suppose a processor supports the use of two different sets ofregisters in its main addressing mode, based on the setting of a@@ -149,12 +149,12 @@ although see the following sections.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_local_change"></a>8.2.�Local Context Change</h3></div></div></div>+<a name="sleigh_local_change"></a>8.2. Local Context Change</h3></div></div></div><p>SLEIGH can make direct modifications to context variables throughstatements in the disassembly action section of a constructor. Theleft-hand side of an assignment statement in this section can be a context variable,-see <a class="xref" href="sleigh_constructors.html#sleigh_general_actions" title="7.5.2.�General Actions and Pattern Expressions">Section�7.5.2, “General Actions and Pattern Expressions”</a>. Because the result of this+see <a class="xref" href="sleigh_constructors.html#sleigh_general_actions" title="7.5.2. General Actions and Pattern Expressions">Section 7.5.2, “General Actions and Pattern Expressions”</a>. Because the result of thisassignment is calculated in the middle of the instruction disassembly,the change in value of the context variable can potentially affect anyremaining parsing for that instruction. A modal variable is being@@ -193,7 +193,7 @@ use <span class="emphasis"><em>mode</em></span>, its value will have reverted tooriginal global state. The same holds for any context variablemodified with this syntax. If an instruction needs to permanentlymodify the state of a context variable, the designer must use-constructions described in <a class="xref" href="sleigh_context.html#sleigh_global_change" title="8.3.�Global Context Change">Section�8.3, “Global Context Change”</a>.+constructions described in <a class="xref" href="sleigh_context.html#sleigh_global_change" title="8.3. Global Context Change">Section 8.3, “Global Context Change”</a>.</p><p>Clearly, the behavior of the above example could be easily replicated@@ -219,7 +219,7 @@ by <span class="bold"><strong>build</strong></span> directives.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_global_change"></a>8.3.�Global Context Change</h3></div></div></div>+<a name="sleigh_global_change"></a>8.3. Global Context Change</h3></div></div></div><p>It is possible for an instruction to attempt a permanent change to acontext variable, which would then affect the parsing of other@@ -261,7 +261,7 @@ select <span class="emphasis"><em>r</em></span> registersvia <span class="emphasis"><em>rreg1</em></span>, and <span class="emphasis"><em>smode</em></span>sets <span class="emphasis"><em>mode</em></span> to 1 in order toselect <span class="emphasis"><em>s</em></span> registers. As is described in-<a class="xref" href="sleigh_context.html#sleigh_local_change" title="8.2.�Local Context Change">Section�8.2, “Local Context Change”</a>, these assignments by themselves+<a class="xref" href="sleigh_context.html#sleigh_local_change" title="8.2. Local Context Change">Section 8.2, “Local Context Change”</a>, these assignments by themselvescause only a local context change. However, thesubsequent <span class="bold"><strong>globalset</strong></span> directives makethe change persist outside of the the instructions@@ -276,7 +276,7 @@ of <span class="emphasis"><em>mode</em></span> begins at the next address.</p><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_contextflow"></a>8.3.1.�Context Flow</h4></div></div></div>+<a name="sleigh_contextflow"></a>8.3.1. Context Flow</h4></div></div></div><p>A global change to context that affects instruction decoding is typicallyopen-ended. I.e. once the mode switching instruction is executed, a permanent change@@ -290,7 +290,7 @@ is encountered.</p><p>Flow following behavior can be overridden by adding the <span class="bold"><strong>noflow</strong></span>-attribute to the definition of the context field. (See <a class="xref" href="sleigh_tokens.html#sleigh_context_variables" title="6.4.�Context Variables">Section�6.4, “Context Variables”</a>)+attribute to the definition of the context field. (See <a class="xref" href="sleigh_tokens.html#sleigh_context_variables" title="6.4. Context Variables">Section 6.4, “Context Variables”</a>)In this case, a <span class="bold"><strong>globalset</strong></span> directive only affects the contextof a single instruction at the specified address. Subsequent instructionsretain their original context. This can be useful in a variety of situations but is typically@@ -348,15 +348,15 @@ end and what to do if there are conflicts.<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="sleigh_constructors.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="sleigh_ref.html">Next</a>+<a accesskey="p" href="sleigh_constructors.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="sleigh_ref.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">7.�Constructors�</td>+<td width="40%" align="left" valign="top">7. Constructors </td><td width="20%" align="center"><a accesskey="h" href="sleigh.html">Home</a></td>-<td width="40%" align="right" valign="top">�9.�P-code Tables</td>+<td width="40%" align="right" valign="top"> 9. P-code Tables</td></tr></table></div>diff --git a/GhidraDocs/languages/html/sleigh_definitions.html b/GhidraDocs/languages/html/sleigh_definitions.htmlindex 43a2179522..58fecfb631 100644--- a/GhidraDocs/languages/html/sleigh_definitions.html+++ b/GhidraDocs/languages/html/sleigh_definitions.html@@ -1,24 +1,24 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">-<title>4.�Basic Definitions</title>+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">+<title>4. Basic Definitions</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="sleigh.html" title="SLEIGH"><link rel="up" href="sleigh.html" title="SLEIGH">-<link rel="prev" href="sleigh_preprocessing.html" title="3.�Preprocessing">-<link rel="next" href="sleigh_symbols.html" title="5.�Introduction to Symbols">+<link rel="prev" href="sleigh_preprocessing.html" title="3. Preprocessing">+<link rel="next" href="sleigh_symbols.html" title="5. Introduction to Symbols"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header">-<tr><th colspan="3" align="center">4.�Basic Definitions</th></tr>+<tr><th colspan="3" align="center">4. Basic Definitions</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="sleigh_preprocessing.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="sleigh_symbols.html">Next</a>+<a accesskey="p" href="sleigh_preprocessing.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="sleigh_symbols.html">Next</a></td></tr></table>@@ -26,15 +26,15 @@</div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both">-<a name="sleigh_definitions"></a>4.�Basic Definitions</h2></div></div></div>+<a name="sleigh_definitions"></a>4. Basic Definitions</h2></div></div></div><p>SLEIGH files must start with all the definitions needed by the rest ofthe specification. All definition statements start with the keyword-<span class="bold"><strong>define</strong></span> and end with a semicolon ‘;’.+<span class="bold"><strong>define</strong></span> and end with a semicolon ‘;’.</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_endianess_definition"></a>4.1.�Endianess Definition</h3></div></div></div>+<a name="sleigh_endianess_definition"></a>4.1. Endianess Definition</h3></div></div></div><p>The first definition in any SLEIGH specification must be for endianess. Either</p>@@ -46,7 +46,7 @@ define endian=little;This defines how the processor interprets contiguous sequences ofbytes as integers or other values and globally affects values acrossall address spaces. It also affects how integer fields-within an instruction are interpreted, (see <a class="xref" href="sleigh_tokens.html#sleigh_defining_tokens" title="6.1.�Defining Tokens and Fields">Section�6.1, “Defining Tokens and Fields”</a>),+within an instruction are interpreted, (see <a class="xref" href="sleigh_tokens.html#sleigh_defining_tokens" title="6.1. Defining Tokens and Fields">Section 6.1, “Defining Tokens and Fields”</a>),although it is possible to override this setting in the rare case that endianess isdifferent for data versus instruction encoding.The specification designer generally only needs to worry about@@ -56,7 +56,7 @@ otherwise the specification language hides endianess issues.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_alignment_definition"></a>4.2.�Alignment Definition</h3></div></div></div>+<a name="sleigh_alignment_definition"></a>4.2. Alignment Definition</h3></div></div></div><p>An alignment definition looks like</p>@@ -73,7 +73,7 @@ instruction as an error.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_space_definitions"></a>4.3.�Space Definitions</h3></div></div></div>+<a name="sleigh_space_definitions"></a>4.3. Space Definitions</h3></div></div></div><p>The definition of an address space looks like</p>@@ -115,7 +115,7 @@ and store from dynamic pointers into the space.</p><p>A space of type <span class="bold"><strong>register_space</strong></span> is-intended to model the processor’s general-purpose registers. In terms+intended to model the processor’s general-purpose registers. In termsof accessing and manipulating data within the space, SLEIGH and p-codemake no distinction between thetype <span class="bold"><strong>ram_space</strong></span> or the@@ -157,8 +157,8 @@ At least one space needs to be labeled withthe <span class="bold"><strong>default</strong></span> attribute. This should bethe space that the processor accesses with its main address bus. Interms of the rest of the specification file, this sets the default-space referred to by the ‘*’ operator (see-<a class="xref" href="sleigh_constructors.html#sleigh_star_operator" title="7.7.1.2.�The '*' Operator">Section�7.7.1.2, “The '*' Operator”</a>). It also has meaning to+space referred to by the ‘*’ operator (see+<a class="xref" href="sleigh_constructors.html#sleigh_star_operator" title="7.7.1.2. The '*' Operator">Section 7.7.1.2, “The '*' Operator”</a>). It also has meaning toGHIDRA.</p><p>@@ -184,7 +184,7 @@ bits).</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_naming_registers"></a>4.4.�Naming Registers</h3></div></div></div>+<a name="sleigh_naming_registers"></a>4.4. Naming Registers</h3></div></div></div><p>The general purpose registers of the processors can be named with thefollowing define syntax:@@ -194,8 +194,8 @@ define <span class="bold"><strong>spacename</strong></span> offset=<span class="</pre></div><p>A <span class="emphasis"><em>stringlist</em></span> is either a single string or a white-space separated list of strings in square brackets ‘[’ and ‘]’. A-string of just “_” indicates a skip in the sequence for that+space separated list of strings in square brackets ‘[’ and ‘]’. A+string of just “_” indicates a skip in the sequence for thatdefinition. The offset corresponding to that position in the list ofnames will not have a varnode defined at it.</p>@@ -228,7 +228,7 @@ define register offset=0 size=1</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_bitrange_registers"></a>4.5.�Bit Range Registers</h3></div></div></div>+<a name="sleigh_bitrange_registers"></a>4.5. Bit Range Registers</h3></div></div></div><p>Many processors define registers that either consist of a single bitor otherwise don't use an integral number of bytes. A recurring@@ -245,7 +245,7 @@ models because the smallest object they can manipulate directly is abyte. In order to manipulate single bits, p-code must use acombination of bitwise logical, extension, and truncationoperations. So a register defined as a bit range is not really a-varnode as described in <a class="xref" href="sleigh.html#sleigh_varnodes" title="1.2.�Varnodes">Section�1.2, “Varnodes”</a>, but is+varnode as described in <a class="xref" href="sleigh.html#sleigh_varnodes" title="1.2. Varnodes">Section 1.2, “Varnodes”</a>, but isreally just a signal to the SLEIGH compiler to fill in the properoperators to simulate the bit manipulation. Using this feature maygreatly increase the complexity of the compiled specification with@@ -265,7 +265,7 @@ register. In this example, <span class="emphasis"><em>statusreg</em></span> is dfirst as a 4 byte register, and the bit registers themselves are builtby the following <span class="bold"><strong>define bitrange</strong></span>statement. A single bit register definition consists of an identifier-for the register, followed by ‘=’, then the name of the register+for the register, followed by ‘=’, then the name of the registercontaining the bits, and finally a pair of numbers in squarebrackets. The first number indicates the lowest significant bit in thecontaining register of the bit range, where bit 0 is the least@@ -282,11 +282,11 @@ bit of <span class="emphasis"><em>statusreg</em></span> respectively.<p>The syntax for defining a new bit register is consistent with thepseudo bit range operator, described in-<a class="xref" href="sleigh_constructors.html#sleigh_bitrange_operator" title="7.7.1.5.�Bit Range Operator">Section�7.7.1.5, “Bit Range Operator”</a>, and the resulting symbol+<a class="xref" href="sleigh_constructors.html#sleigh_bitrange_operator" title="7.7.1.5. Bit Range Operator">Section 7.7.1.5, “Bit Range Operator”</a>, and the resulting symbolis really just a placeholder for this operator. Whenever SLEIGH seesthis symbol it generates p-code precisely as if the designer had usedthe bit range operator-instead. <a class="xref" href="sleigh_constructors.html#sleigh_bitrange_operator" title="7.7.1.5.�Bit Range Operator">Section�7.7.1.5, “Bit Range Operator”</a>, provides some+instead. <a class="xref" href="sleigh_constructors.html#sleigh_bitrange_operator" title="7.7.1.5. Bit Range Operator">Section 7.7.1.5, “Bit Range Operator”</a>, provides someadditional details about how p-code is generated, which apply to theuse of bit range registers.</p>@@ -299,14 +299,14 @@ used as an alternate syntax for defining overlapping registers.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_userdefined_operations"></a>4.6.�User-Defined Operations</h3></div></div></div>+<a name="sleigh_userdefined_operations"></a>4.6. User-Defined Operations</h3></div></div></div><p>The specification designer can define new p-code operations usinga <span class="bold"><strong>define pcodeop</strong></span> statement. Thisstatement automatically reserves an internal form for the new p-codeoperation and associates an identifier with it. This identifier canthen be used in semantic expressions (see-<a class="xref" href="sleigh_constructors.html#sleigh_userdef_op" title="7.7.1.8.�User-Defined Operations">Section�7.7.1.8, “User-Defined Operations”</a>). The following example defines a+<a class="xref" href="sleigh_constructors.html#sleigh_userdef_op" title="7.7.1.8. User-Defined Operations">Section 7.7.1.8, “User-Defined Operations”</a>). The following example defines anew p-code operation <span class="emphasis"><em>arctan</em></span>.</p><div class="informalexample"><pre class="programlisting">@@ -338,15 +338,15 @@ actions that are too esoteric or too complicated to implement.<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="sleigh_preprocessing.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="sleigh_symbols.html">Next</a>+<a accesskey="p" href="sleigh_preprocessing.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="sleigh_symbols.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">3.�Preprocessing�</td>+<td width="40%" align="left" valign="top">3. Preprocessing </td><td width="20%" align="center"><a accesskey="h" href="sleigh.html">Home</a></td>-<td width="40%" align="right" valign="top">�5.�Introduction to Symbols</td>+<td width="40%" align="right" valign="top"> 5. Introduction to Symbols</td></tr></table></div>diff --git a/GhidraDocs/languages/html/sleigh_layout.html b/GhidraDocs/languages/html/sleigh_layout.htmlindex 878e71be69..2a1497c89f 100644--- a/GhidraDocs/languages/html/sleigh_layout.html+++ b/GhidraDocs/languages/html/sleigh_layout.html@@ -1,24 +1,24 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">-<title>2.�Basic Specification Layout</title>+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">+<title>2. Basic Specification Layout</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="sleigh.html" title="SLEIGH"><link rel="up" href="sleigh.html" title="SLEIGH"><link rel="prev" href="sleigh.html" title="SLEIGH">-<link rel="next" href="sleigh_preprocessing.html" title="3.�Preprocessing">+<link rel="next" href="sleigh_preprocessing.html" title="3. Preprocessing"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header">-<tr><th colspan="3" align="center">2.�Basic Specification Layout</th></tr>+<tr><th colspan="3" align="center">2. Basic Specification Layout</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="sleigh.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="sleigh_preprocessing.html">Next</a>+<a accesskey="p" href="sleigh.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="sleigh_preprocessing.html">Next</a></td></tr></table>@@ -26,51 +26,51 @@</div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both">-<a name="sleigh_layout"></a>2.�Basic Specification Layout</h2></div></div></div>+<a name="sleigh_layout"></a>2. Basic Specification Layout</h2></div></div></div><p>A SLEIGH specification is typically contained in a single file,-although see <a class="xref" href="sleigh_preprocessing.html#sleigh_including_files" title="3.1.�Including Files">Section�3.1, “Including Files”</a>. The file must+although see <a class="xref" href="sleigh_preprocessing.html#sleigh_including_files" title="3.1. Including Files">Section 3.1, “Including Files”</a>. The file mustfollow a specific format as parsed by the SLEIGH compiler. In thissection, we list the basic formatting rules for this file as enforcedby the compiler.</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_comments"></a>2.1.�Comments</h3></div></div></div>+<a name="sleigh_comments"></a>2.1. Comments</h3></div></div></div><p>-Comments start with the ‘#’ character and continue to the end of the+Comments start with the ‘#’ character and continue to the end of theline. Comments can appear anywhere except the <span class="emphasis"><em>display section</em></span> of a-constructor (see <a class="xref" href="sleigh_constructors.html#sleigh_display_section" title="7.3.�The Display Section">Section�7.3, “The Display Section”</a>) where the ‘#’ character will be+constructor (see <a class="xref" href="sleigh_constructors.html#sleigh_display_section" title="7.3. The Display Section">Section 7.3, “The Display Section”</a>) where the ‘#’ character will beinterpreted as something that should be printed in disassembly.</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_identifiers"></a>2.2.�Identifiers</h3></div></div></div>+<a name="sleigh_identifiers"></a>2.2. Identifiers</h3></div></div></div><p>Identifiers are made up of letters a-z, capitals A-Z, digits 0-9 and-the characters ‘.’ and ‘_’. An identifier can use these characters in+the characters ‘.’ and ‘_’. An identifier can use these characters inany order and for any length, but it must not start with a digit.</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_strings"></a>2.3.�Strings</h3></div></div></div>+<a name="sleigh_strings"></a>2.3. Strings</h3></div></div></div><p>String literals can be used, when specifying names and when specifyinghow disassembly should be printed, so that special characters aretreated as literals. Strings are surrounded by the double quote-character ‘”’ and all characters in between lose their special+character ‘”’ and all characters in between lose their specialmeaning.</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_integers"></a>2.4.�Integers</h3></div></div></div>+<a name="sleigh_integers"></a>2.4. Integers</h3></div></div></div><p>Integers are specified either in a decimal format or in a standard<span class="emphasis"><em>C-style</em></span> hexadecimal format by prepending the-number with “0x”. Alternately, a binary representation of an integer+number with “0x”. Alternately, a binary representation of an integercan be given by prepending the string of '0' and '1' characters with "0b".</p><div class="informalexample"><pre class="programlisting">@@ -82,21 +82,21 @@ can be given by prepending the string of '0' and '1' characters with "0b".<p>Numbers are treated as unsignedexcept when used in patterns where they are treated as signed (see-<a class="xref" href="sleigh_constructors.html#sleigh_bit_pattern" title="7.4.�The Bit Pattern Section">Section�7.4, “The Bit Pattern Section”</a>). The number of bytes used to+<a class="xref" href="sleigh_constructors.html#sleigh_bit_pattern" title="7.4. The Bit Pattern Section">Section 7.4, “The Bit Pattern Section”</a>). The number of bytes used toencode the integer when specifying the semantics of an instruction isinferred from other parts of the syntax (see-<a class="xref" href="sleigh_constructors.html#sleigh_display_section" title="7.3.�The Display Section">Section�7.3, “The Display Section”</a>). Otherwise, integers should+<a class="xref" href="sleigh_constructors.html#sleigh_display_section" title="7.3. The Display Section">Section 7.3, “The Display Section”</a>). Otherwise, integers shouldbe thought of as having arbitrary precision. Currently, SLEIGH storesintegers internally with 64 bits of precision.</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_white_space"></a>2.5.�White Space</h3></div></div></div>+<a name="sleigh_white_space"></a>2.5. White Space</h3></div></div></div><p>White space characters include space, tab, line-feed, vertical-line-feed, and carriage-return (‘ ‘, ‘\t’, ‘\r’, ‘\v’,-‘\n’). Variations in spacing have no effect on the parsing of the file+line-feed, and carriage-return (‘ ‘, ‘\t’, ‘\r’, ‘\v’,+‘\n’). Variations in spacing have no effect on the parsing of the fileexcept in string literals.</p></div>@@ -106,15 +106,15 @@ except in string literals.<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="sleigh.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="sleigh_preprocessing.html">Next</a>+<a accesskey="p" href="sleigh.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="sleigh_preprocessing.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">SLEIGH�</td>+<td width="40%" align="left" valign="top">SLEIGH </td><td width="20%" align="center"><a accesskey="h" href="sleigh.html">Home</a></td>-<td width="40%" align="right" valign="top">�3.�Preprocessing</td>+<td width="40%" align="right" valign="top"> 3. Preprocessing</td></tr></table></div>diff --git a/GhidraDocs/languages/html/sleigh_preprocessing.html b/GhidraDocs/languages/html/sleigh_preprocessing.htmlindex 7f38480482..3006f08f6e 100644--- a/GhidraDocs/languages/html/sleigh_preprocessing.html+++ b/GhidraDocs/languages/html/sleigh_preprocessing.html@@ -1,24 +1,24 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">-<title>3.�Preprocessing</title>+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">+<title>3. Preprocessing</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="sleigh.html" title="SLEIGH"><link rel="up" href="sleigh.html" title="SLEIGH">-<link rel="prev" href="sleigh_layout.html" title="2.�Basic Specification Layout">-<link rel="next" href="sleigh_definitions.html" title="4.�Basic Definitions">+<link rel="prev" href="sleigh_layout.html" title="2. Basic Specification Layout">+<link rel="next" href="sleigh_definitions.html" title="4. Basic Definitions"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header">-<tr><th colspan="3" align="center">3.�Preprocessing</th></tr>+<tr><th colspan="3" align="center">3. Preprocessing</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="sleigh_layout.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="sleigh_definitions.html">Next</a>+<a accesskey="p" href="sleigh_layout.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="sleigh_definitions.html">Next</a></td></tr></table>@@ -26,16 +26,16 @@</div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both">-<a name="sleigh_preprocessing"></a>3.�Preprocessing</h2></div></div></div>+<a name="sleigh_preprocessing"></a>3. Preprocessing</h2></div></div></div><p>SLEIGH provides support for simple file inclusion, macros, and otherbasic preprocessing functions. These are all invoked with directives-that start with the ‘@’ character, which must be the first character+that start with the ‘@’ character, which must be the first characterin the line.</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_including_files"></a>3.1.�Including Files</h3></div></div></div>+<a name="sleigh_including_files"></a>3.1. Including Files</h3></div></div></div><p>In general a single SLEIGH specification is contained in a singlefile, and the compiler is invoked on one file at a time. Multiple@@ -54,7 +54,7 @@ own <span class="bold"><strong>@include</strong></span> directives.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_preprocessor_macros"></a>3.2.�Preprocessor Macros</h3></div></div></div>+<a name="sleigh_preprocessor_macros"></a>3.2. Preprocessor Macros</h3></div></div></div><p>SLEIGH allows simple (unparameterized) macro definitions andexpansions. A macro definition occurs on one line and starts with@@ -62,7 +62,7 @@ the <span class="bold"><strong>@define</strong></span> directive. This isfollowed by an identifier for the macro and then a string to which themacro should expand. The string must either be a proper identifieritself or surrounded with double quotes. The macro can then be-expanded with typical “$(identifier)” syntax at any other point in the+expanded with typical “$(identifier)” syntax at any other point in thespecification following the definition.</p><div class="informalexample"><pre class="programlisting">@@ -72,9 +72,9 @@ define endian=$(ENDIAN);</pre></div><p>This example defines a macro identified as <span class="emphasis"><em>ENDIAN</em></span>-with the string “big”, and then expands the macro in a later SLEIGH+with the string “big”, and then expands the macro in a later SLEIGHstatement. Macro definitions can also be made from the command line-and in the “.spec” file, allowing multiple specification variations to+and in the “.spec” file, allowing multiple specification variations tobe derived from one file. SLEIGH also hasan <span class="bold"><strong>@undef</strong></span> directive which removes thedefinition of a macro from that point on in the file.@@ -85,7 +85,7 @@ definition of a macro from that point on in the file.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_conditional_compilation"></a>3.3.�Conditional Compilation</h3></div></div></div>+<a name="sleigh_conditional_compilation"></a>3.3. Conditional Compilation</h3></div></div></div><p>SLEIGH supports several directives that allow conditional inclusion ofparts of a specification, based on the existence of a macro, or its@@ -103,7 +103,7 @@ and <span class="bold"><strong>@endif</strong></span>.</p><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_ifdef"></a>3.3.1.�@ifdef and @ifndef</h4></div></div></div>+<a name="sleigh_ifdef"></a>3.3.1. @ifdef and @ifndef</h4></div></div></div><p>The <span class="bold"><strong>@ifdef</strong></span> directive is followed by amacro identifier and evaluates to true if the macro is defined.@@ -129,14 +129,14 @@ or <span class="bold"><strong>@elif</strong></span> directive (See below).</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_if"></a>3.3.2.�@if</h4></div></div></div>+<a name="sleigh_if"></a>3.3.2. @if</h4></div></div></div><p>The <span class="bold"><strong>@if</strong></span> directive is followed by aboolean expression with macros as the variables and strings as theconstants. Comparisons between macros and strings are currentlylimited to string equality or inequality. But individual comparisonscan be combined arbitrarily using parentheses and the boolean-operators ‘&&’, ‘||’, and ‘^^’. These represent a <span class="emphasis"><em>logical+operators ‘&&’, ‘||’, and ‘^^’. These represent a <span class="emphasis"><em>logicaland</em></span>, a <span class="emphasis"><em>logical or</em></span>, anda <span class="emphasis"><em>logical exclusive-or</em></span> operation respectively. Itis possible to test whether a particular macro is defined within the@@ -158,7 +158,7 @@ is defined.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_else"></a>3.3.3.�@else and @elif</h4></div></div></div>+<a name="sleigh_else"></a>3.3.3. @else and @elif</h4></div></div></div><p>An <span class="bold"><strong>@else</strong></span> directive splits the linesbounded by an <span class="bold"><strong>@if</strong></span> directive and@@ -180,12 +180,12 @@ one <span class="bold"><strong>@else</strong></span>, which must occur after allthe <span class="bold"><strong>@elif</strong></span> directives.</p><div class="informalexample"><pre class="programlisting">-@if PROCESSOR == “mips”-@ define ENDIAN “big”-@elif ((PROCESSOR==”x86”)&&(OS!=”win”))-@ define ENDIAN “little”+@if PROCESSOR == “mips”+@ define ENDIAN “big”+@elif ((PROCESSOR==”x86”)&&(OS!=”win”))+@ define ENDIAN “little”@else-@ define ENDIAN “unknown”+@ define ENDIAN “unknown”@endif</pre></div><p>@@ -198,15 +198,15 @@ the <span class="bold"><strong>@elif</strong></span> directives.<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="sleigh_layout.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="sleigh_definitions.html">Next</a>+<a accesskey="p" href="sleigh_layout.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="sleigh_definitions.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">2.�Basic Specification Layout�</td>+<td width="40%" align="left" valign="top">2. Basic Specification Layout </td><td width="20%" align="center"><a accesskey="h" href="sleigh.html">Home</a></td>-<td width="40%" align="right" valign="top">�4.�Basic Definitions</td>+<td width="40%" align="right" valign="top"> 4. Basic Definitions</td></tr></table></div>diff --git a/GhidraDocs/languages/html/sleigh_ref.html b/GhidraDocs/languages/html/sleigh_ref.htmlindex d5e608dccd..b21fc5f37d 100644--- a/GhidraDocs/languages/html/sleigh_ref.html+++ b/GhidraDocs/languages/html/sleigh_ref.html@@ -1,34 +1,34 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">-<title>9.�P-code Tables</title>+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">+<title>9. P-code Tables</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="sleigh.html" title="SLEIGH"><link rel="up" href="sleigh.html" title="SLEIGH">-<link rel="prev" href="sleigh_context.html" title="8.�Using Context">+<link rel="prev" href="sleigh_context.html" title="8. Using Context"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header">-<tr><th colspan="3" align="center">9.�P-code Tables</th></tr>+<tr><th colspan="3" align="center">9. P-code Tables</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="sleigh_context.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�</td>+<a accesskey="p" href="sleigh_context.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> </td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both">-<a name="sleigh_ref"></a>9.�P-code Tables</h2></div></div></div>+<a name="sleigh_ref"></a>9. P-code Tables</h2></div></div></div><p>We list all the p-code operations by name along with the syntax forinvoking them within the semantic section of a constructor definition-(see <a class="xref" href="sleigh_constructors.html#sleigh_semantic_section" title="7.7.�The Semantic Section">Section�7.7, “The Semantic Section”</a>), and with a+(see <a class="xref" href="sleigh_constructors.html#sleigh_semantic_section" title="7.7. The Semantic Section">Section 7.7, “The Semantic Section”</a>), and with adescription of the operator. The terms <span class="emphasis"><em>v0</em></span>and <span class="emphasis"><em>v1</em></span> represent identifiers of individual inputvarnodes to the operation. In terms of syntax, <span class="emphasis"><em>v0</em></span>@@ -46,7 +46,7 @@ to lowest.</p><div class="informalexample"><div class="table">-<a name="syntaxref.htmltable"></a><p class="title"><b>Table�5.�Semantic Expression Operators and Syntax</b></p>+<a name="syntaxref.htmltable"></a><p class="title"><b>Table 5. Semantic Expression Operators and Syntax</b></p><div class="table-contents"><table xml:id="syntaxref.htmltable" width="95%" frame="box" rules="all"><col width="25%"><col width="25%">@@ -459,7 +459,7 @@ The following table lists the basic forms of a semantic statement.</p><div class="informalexample"><div class="table">-<a name="statementref.htmltable"></a><p class="title"><b>Table�6.�Basic Statements and Associated Operators</b></p>+<a name="statementref.htmltable"></a><p class="title"><b>Table 6. Basic Statements and Associated Operators</b></p><div class="table-contents"><table xml:id="statementref.htmltable" width="95%" frame="box" rules="all"><col width="25%"><col width="25%">@@ -538,7 +538,7 @@ The following table lists the branching operations and the statements which invo</p><div class="informalexample"><div class="table">-<a name="branchref.htmltable"></a><p class="title"><b>Table�7.�Branching Statements</b></p>+<a name="branchref.htmltable"></a><p class="title"><b>Table 7. Branching Statements</b></p><div class="table-contents"><table xml:id="branchref.htmltable" width="95%" frame="box" rules="all"><col width="25%"><col width="25%">@@ -592,14 +592,14 @@ The following table lists the branching operations and the statements which invo<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="sleigh_context.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�</td>+<a accesskey="p" href="sleigh_context.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> </td></tr><tr>-<td width="40%" align="left" valign="top">8.�Using Context�</td>+<td width="40%" align="left" valign="top">8. Using Context </td><td width="20%" align="center"><a accesskey="h" href="sleigh.html">Home</a></td>-<td width="40%" align="right" valign="top">�</td>+<td width="40%" align="right" valign="top"> </td></tr></table></div>diff --git a/GhidraDocs/languages/html/sleigh_symbols.html b/GhidraDocs/languages/html/sleigh_symbols.htmlindex df994eb7bd..2022555fb4 100644--- a/GhidraDocs/languages/html/sleigh_symbols.html+++ b/GhidraDocs/languages/html/sleigh_symbols.html@@ -1,24 +1,24 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">-<title>5.�Introduction to Symbols</title>+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">+<title>5. Introduction to Symbols</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="sleigh.html" title="SLEIGH"><link rel="up" href="sleigh.html" title="SLEIGH">-<link rel="prev" href="sleigh_definitions.html" title="4.�Basic Definitions">-<link rel="next" href="sleigh_tokens.html" title="6.�Tokens and Fields">+<link rel="prev" href="sleigh_definitions.html" title="4. Basic Definitions">+<link rel="next" href="sleigh_tokens.html" title="6. Tokens and Fields"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header">-<tr><th colspan="3" align="center">5.�Introduction to Symbols</th></tr>+<tr><th colspan="3" align="center">5. Introduction to Symbols</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="sleigh_definitions.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="sleigh_tokens.html">Next</a>+<a accesskey="p" href="sleigh_definitions.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="sleigh_tokens.html">Next</a></td></tr></table>@@ -26,7 +26,7 @@</div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both">-<a name="sleigh_symbols"></a>5.�Introduction to Symbols</h2></div></div></div>+<a name="sleigh_symbols"></a>5. Introduction to Symbols</h2></div></div></div><p>After the definition section, we are prepared to start writing thebody of the specification. This part of the specification shows how@@ -61,7 +61,7 @@ Formally a <span class="emphasis"><em>Specific Symbol</em></span> is defined as<p>The named registers that we defined earlier are the simplest examplesof specific symbols (see-<a class="xref" href="sleigh_definitions.html#sleigh_naming_registers" title="4.4.�Naming Registers">Section�4.4, “Naming Registers”</a>). The symbol identifier+<a class="xref" href="sleigh_definitions.html#sleigh_naming_registers" title="4.4. Naming Registers">Section 4.4, “Naming Registers”</a>). The symbol identifieritself is the string that will get printed in disassembly and thevarnode associated with the symbol is the one constructed by thedefine statement.@@ -79,7 +79,7 @@ instructions to specific symbols.<p>The set of instruction encodings that map to a single specific symbolis called an <span class="emphasis"><em>instruction pattern</em></span> and is described-more fully in <a class="xref" href="sleigh_constructors.html#sleigh_bit_pattern" title="7.4.�The Bit Pattern Section">Section�7.4, “The Bit Pattern Section”</a>. In most cases, this+more fully in <a class="xref" href="sleigh_constructors.html#sleigh_bit_pattern" title="7.4. The Bit Pattern Section">Section 7.4, “The Bit Pattern Section”</a>. In most cases, thiscan be thought of as a mask on the bits of the instruction and a valuethat the remaining unmasked bits must match. At any rate, the familysymbol identifier, when taken out of context, represents the entire@@ -98,14 +98,14 @@ that simulate the instruction.<p>The symbol responsible for combining smaller family symbols is calleda <span class="emphasis"><em>table</em></span>, which is fully described in-<a class="xref" href="sleigh_constructors.html#sleigh_tables" title="7.8.�Tables">Section�7.8, “Tables”</a>. Any <span class="emphasis"><em>table</em></span> symbol+<a class="xref" href="sleigh_constructors.html#sleigh_tables" title="7.8. Tables">Section 7.8, “Tables”</a>. Any <span class="emphasis"><em>table</em></span> symbolcan be used in the definition of other <span class="emphasis"><em>table</em></span>symbols until the root symbol is fully described. The root symbol hasthe predefined identifier <span class="emphasis"><em>instruction</em></span>.</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_notes_namespaces"></a>5.1.�Notes on Namespaces</h3></div></div></div>+<a name="sleigh_notes_namespaces"></a>5.1. Notes on Namespaces</h3></div></div></div><p>Almost all identifiers live in the same global "scope". The global scope includes</p>@@ -126,15 +126,15 @@ Almost all identifiers live in the same global "scope". The global scope includeNames of registers</li><li class="listitem" style="list-style-type: disc">- Names of macros (see <a class="xref" href="sleigh_constructors.html#sleigh_macros" title="7.9.�P-code Macros">Section�7.9, “P-code Macros”</a>)+ Names of macros (see <a class="xref" href="sleigh_constructors.html#sleigh_macros" title="7.9. P-code Macros">Section 7.9, “P-code Macros”</a>)</li><li class="listitem" style="list-style-type: disc">- Names of tables (see <a class="xref" href="sleigh_constructors.html#sleigh_tables" title="7.8.�Tables">Section�7.8, “Tables”</a>)+ Names of tables (see <a class="xref" href="sleigh_constructors.html#sleigh_tables" title="7.8. Tables">Section 7.8, “Tables”</a>)</li></ul></div></div><p>All of the names in this scope must be unique. Each-individual <span class="emphasis"><em>constructor</em></span> (defined in <a class="xref" href="sleigh_constructors.html" title="7.�Constructors">Section�7, “Constructors”</a>)+individual <span class="emphasis"><em>constructor</em></span> (defined in <a class="xref" href="sleigh_constructors.html" title="7. Constructors">Section 7, “Constructors”</a>)defines a local scope for operand names. As with most languages, alocal symbol with the same name as a globalsymbol <span class="emphasis"><em>hides</em></span> the global symbol while that scope@@ -143,13 +143,13 @@ is in effect.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_predefined_symbols"></a>5.2.�Predefined Symbols</h3></div></div></div>+<a name="sleigh_predefined_symbols"></a>5.2. Predefined Symbols</h3></div></div></div><p>We list all of the symbols that are predefined by SLEIGH.</p><div class="informalexample"><div class="table">-<a name="predefine.htmltable"></a><p class="title"><b>Table�2.�Predefined Symbols</b></p>+<a name="predefine.htmltable"></a><p class="title"><b>Table 2. Predefined Symbols</b></p><div class="table-contents"><table xml:id="predefine.htmltable" width="80%" frame="box" rules="all"><col width="30%"><col width="70%">@@ -213,15 +213,15 @@ is the root instruction table.<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="sleigh_definitions.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="sleigh_tokens.html">Next</a>+<a accesskey="p" href="sleigh_definitions.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="sleigh_tokens.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">4.�Basic Definitions�</td>+<td width="40%" align="left" valign="top">4. Basic Definitions </td><td width="20%" align="center"><a accesskey="h" href="sleigh.html">Home</a></td>-<td width="40%" align="right" valign="top">�6.�Tokens and Fields</td>+<td width="40%" align="right" valign="top"> 6. Tokens and Fields</td></tr></table></div>diff --git a/GhidraDocs/languages/html/sleigh_tokens.html b/GhidraDocs/languages/html/sleigh_tokens.htmlindex 2239604d1b..90f10cfc67 100644--- a/GhidraDocs/languages/html/sleigh_tokens.html+++ b/GhidraDocs/languages/html/sleigh_tokens.html@@ -1,24 +1,24 @@<html><head>-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">-<title>6.�Tokens and Fields</title>+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">+<title>6. Tokens and Fields</title><link rel="stylesheet" type="text/css" href="DefaultStyle.css"><link rel="stylesheet" type="text/css" href="languages.css">-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="sleigh.html" title="SLEIGH"><link rel="up" href="sleigh.html" title="SLEIGH">-<link rel="prev" href="sleigh_symbols.html" title="5.�Introduction to Symbols">-<link rel="next" href="sleigh_constructors.html" title="7.�Constructors">+<link rel="prev" href="sleigh_symbols.html" title="5. Introduction to Symbols">+<link rel="next" href="sleigh_constructors.html" title="7. Constructors"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header">-<tr><th colspan="3" align="center">6.�Tokens and Fields</th></tr>+<tr><th colspan="3" align="center">6. Tokens and Fields</th></tr><tr><td width="20%" align="left">-<a accesskey="p" href="sleigh_symbols.html">Prev</a>�</td>-<th width="60%" align="center">�</th>-<td width="20%" align="right">�<a accesskey="n" href="sleigh_constructors.html">Next</a>+<a accesskey="p" href="sleigh_symbols.html">Prev</a> </td>+<th width="60%" align="center"> </th>+<td width="20%" align="right"> <a accesskey="n" href="sleigh_constructors.html">Next</a></td></tr></table>@@ -26,10 +26,10 @@</div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both">-<a name="sleigh_tokens"></a>6.�Tokens and Fields</h2></div></div></div>+<a name="sleigh_tokens"></a>6. Tokens and Fields</h2></div></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_defining_tokens"></a>6.1.�Defining Tokens and Fields</h3></div></div></div>+<a name="sleigh_defining_tokens"></a>6.1. Defining Tokens and Fields</h3></div></div></div><p>A <span class="emphasis"><em>token</em></span> is one of the byte-sized pieces that makeup the machine code instructions being modeled.@@ -57,7 +57,7 @@ field and the range of bits within the token making up the field. Thesize of a field does <span class="emphasis"><em>not</em></span> need to be a multiple of8. The range is inclusive where the least significant bit in the tokenis labeled 0. When defining tokens that are bigger than 1 byte, the-global endianess setting (See <a class="xref" href="sleigh_definitions.html#sleigh_endianess_definition" title="4.1.�Endianess Definition">Section�4.1, “Endianess Definition”</a>)+global endianess setting (See <a class="xref" href="sleigh_definitions.html#sleigh_endianess_definition" title="4.1. Endianess Definition">Section 4.1, “Endianess Definition”</a>)will affect this labeling. Although it is rarely required, it is possible to overridethe global endianess setting for a specific token by appending either the qualifier<span class="bold"><strong>endian=little</strong></span> or <span class="bold"><strong>endian=big</strong></span>@@ -88,11 +88,11 @@ different names.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_fields_family"></a>6.2.�Fields as Family Symbols</h3></div></div></div>+<a name="sleigh_fields_family"></a>6.2. Fields as Family Symbols</h3></div></div></div><p>Fields are the most basic form of family symbol; they define a naturalmap from instruction bits to a specific symbol as follows. We take the-set of bits within the instruction as given by the field’s defining+set of bits within the instruction as given by the field’s definingrange and treat them as an integer encoding. The resulting integer isboth the display portion and the semantic meaning of the specificsymbol. The display string is obtained by converting the integer into@@ -113,7 +113,7 @@ the <span class="bold"><strong>dec</strong></span> attribute is not supported]</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_alternate_meanings"></a>6.3.�Attaching Alternate Meanings to Fields</h3></div></div></div>+<a name="sleigh_alternate_meanings"></a>6.3. Attaching Alternate Meanings to Fields</h3></div></div></div><p>The default interpretation of a field is probably the most natural butof course processors interpret fields within an instruction in a wide@@ -124,7 +124,7 @@ interpretations must be built up out of tables.</p><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_attaching_registers"></a>6.3.1.�Attaching Registers</h4></div></div></div>+<a name="sleigh_attaching_registers"></a>6.3.1. Attaching Registers</h4></div></div></div><p>Probably <span class="emphasis"><em>the</em></span> most common processor interpretationof a field is as an encoding of a particular register. In SLEIGH this@@ -140,7 +140,7 @@ space separated list of field identifiers surrounded by squarebrackets. A <span class="emphasis"><em>registerlist</em></span> must be a square bracketsurrounded and space separated list of register identifiers as createdwith <span class="bold"><strong>define</strong></span> statements (see Section-<a class="xref" href="sleigh_definitions.html#sleigh_naming_registers" title="4.4.�Naming Registers">Section�4.4, “Naming Registers”</a>). For each field in+<a class="xref" href="sleigh_definitions.html#sleigh_naming_registers" title="4.4. Naming Registers">Section 4.4, “Naming Registers”</a>). For each field inthe <span class="emphasis"><em>fieldlist</em></span>, instead of having the display andsemantic meaning of an integer, the field becomes a look-up table forthe given list of registers. The original integer interpretation is@@ -152,7 +152,7 @@ display and semantic meaning of the field are now taken from the newregister.</p><p>-A particular integer can remain unspecified by putting a ‘_’ character+A particular integer can remain unspecified by putting a ‘_’ characterin the appropriate position of the register list or also if the lengthof the register list is less than the integer. A specific integerencoding of the field that is unspecified like this@@ -163,7 +163,7 @@ of the instruction.</div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_attaching_integers"></a>6.3.2.�Attaching Other Integers</h4></div></div></div>+<a name="sleigh_attaching_integers"></a>6.3.2. Attaching Other Integers</h4></div></div></div><p>Sometimes a processor interprets a field as an integer but not theinteger given by the default interpretation. A different integer@@ -180,12 +180,12 @@ register interpretation is assigned to fields withan <span class="bold"><strong>attach variables</strong></span> statement, theintegers in the list are assigned to each field specified inthe <span class="emphasis"><em>fieldlist</em></span>. [Currently SLEIGH does not support-unspecified positions in the list using a ‘_’]+unspecified positions in the list using a ‘_’]</p></div><div class="sect3"><div class="titlepage"><div><div><h4 class="title">-<a name="sleigh_attaching_names"></a>6.3.3.�Attaching Names</h4></div></div></div>+<a name="sleigh_attaching_names"></a>6.3.3. Attaching Names</h4></div></div></div><p>It is possible to just modify the display characteristics of a fieldwithout changing the semantic meaning. The need for this is rare, but@@ -196,7 +196,7 @@ appropriate to define overlapping fields, one of which is defined tohave no semantic meaning. The most convenient way to break down therequired disassembly may not be the most convenient way to break downthe semantics. It is also possible to have symbols with semantic-meaning but no display meaning (see <a class="xref" href="sleigh_constructors.html#sleigh_invisible_operands" title="7.4.5.�Invisible Operands">Section�7.4.5, “Invisible Operands”</a>).+meaning but no display meaning (see <a class="xref" href="sleigh_constructors.html#sleigh_invisible_operands" title="7.4.5. Invisible Operands">Section 7.4.5, “Invisible Operands”</a>).</p><p>At any rate we can list the display interpretation of a field directly@@ -218,7 +218,7 @@ encodings.</div><div class="sect2"><div class="titlepage"><div><div><h3 class="title">-<a name="sleigh_context_variables"></a>6.4.�Context Variables</h3></div></div></div>+<a name="sleigh_context_variables"></a>6.4. Context Variables</h3></div></div></div><p>SLEIGH supports the concept of <span class="emphasis"><em>contextvariables</em></span>. For the most part processor instructions can be@@ -254,12 +254,12 @@ By default, globally setting a context variable affects instruction decodingfrom the point of the change, forward,following the flow of the instructions, but if the variable is labeled as<span class="bold"><strong>noflow</strong></span>, any change is limited to a-single instruction. (See <a class="xref" href="sleigh_context.html#sleigh_contextflow" title="8.3.1.�Context Flow">Section�8.3.1, “Context Flow”</a>)+single instruction. (See <a class="xref" href="sleigh_context.html#sleigh_contextflow" title="8.3.1. Context Flow">Section 8.3.1, “Context Flow”</a>)</p><p>Once the context variable is defined, in terms of the specificationsyntax, it can be treated as if it were just another field. See-<a class="xref" href="sleigh_context.html" title="8.�Using Context">Section�8, “Using Context”</a>, for a complete discussion of how to+<a class="xref" href="sleigh_context.html" title="8. Using Context">Section 8, “Using Context”</a>, for a complete discussion of how touse context variables.</p></div>@@ -269,15 +269,15 @@ use context variables.<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">-<a accesskey="p" href="sleigh_symbols.html">Prev</a>�</td>-<td width="20%" align="center">�</td>-<td width="40%" align="right">�<a accesskey="n" href="sleigh_constructors.html">Next</a>+<a accesskey="p" href="sleigh_symbols.html">Prev</a> </td>+<td width="20%" align="center"> </td>+<td width="40%" align="right"> <a accesskey="n" href="sleigh_constructors.html">Next</a></td></tr><tr>-<td width="40%" align="left" valign="top">5.�Introduction to Symbols�</td>+<td width="40%" align="left" valign="top">5. Introduction to Symbols </td><td width="20%" align="center"><a accesskey="h" href="sleigh.html">Home</a></td>-<td width="40%" align="right" valign="top">�7.�Constructors</td>+<td width="40%" align="right" valign="top"> 7. Constructors</td></tr></table></div>