Commit df9423f4 authored by Rob Pike's avatar Rob Pike

doc: add a few more details about arm and ppc64 to asm.html

Update #10096

Arm64 and Ppc64 are still pretty sketchy.

Change-Id: Iaf821b0f17bad8c71d338d45de75d4a345cac2dd
Reviewed-on: https://go-review.googlesource.com/12160Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent e7a10a96
...@@ -663,6 +663,13 @@ The name <code>SP</code> always refers to the virtual stack pointer described ea ...@@ -663,6 +663,13 @@ The name <code>SP</code> always refers to the virtual stack pointer described ea
For the hardware register, use <code>R13</code>. For the hardware register, use <code>R13</code>.
</p> </p>
<p>
Condition code syntax is to append a period and the one- or two-letter code to the instruction,
as in <code>MOVW.EQ</code>.
Multiple codes may be appended: <code>MOVM.IA.W</code>.
The order of the code modifiers is irrelevant.
</p>
<p> <p>
Addressing modes: Addressing modes:
</p> </p>
...@@ -703,12 +710,23 @@ The other codes are <code>-&gt;</code> (arithmetic right shift), ...@@ -703,12 +710,23 @@ The other codes are <code>-&gt;</code> (arithmetic right shift),
<code>R0</code>, <code>g</code>, and <code>R12</code> through <code>R15</code> inclusive. <code>R0</code>, <code>g</code>, and <code>R12</code> through <code>R15</code> inclusive.
</li> </li>
<li>
<code>(R5, R6)</code>: Destination register pair.
</li>
</ul> </ul>
<h3 id="arm64">ARM64</h3> <h3 id="arm64">ARM64</h3>
<p> <p>
TODO The ARM64 port is in an experimental state.
</p>
<p>
Instruction modifiers are appended to the instruction following a period.
The only modifiers are <code>P</code> (postincrement) and <code>W</code>
(preincrement):
<code>MOVW.P</code>, <code>MOVW.W</code>
</p> </p>
<p> <p>
...@@ -718,7 +736,7 @@ Addressing modes: ...@@ -718,7 +736,7 @@ Addressing modes:
<ul> <ul>
<li> <li>
TODO <code>(R5, R6)</code>: Register pair for <code>LDP</code>/<code>STP</code>.
</li> </li>
</ul> </ul>
...@@ -726,7 +744,7 @@ TODO ...@@ -726,7 +744,7 @@ TODO
<h3 id="ppc64">Power64, a.k.a. ppc64</h3> <h3 id="ppc64">Power64, a.k.a. ppc64</h3>
<p> <p>
TODO The Power 64 port is in an experimental state.
</p> </p>
<p> <p>
...@@ -737,7 +755,11 @@ Addressing modes: ...@@ -737,7 +755,11 @@ Addressing modes:
<li> <li>
<code>(R5)(R6*1)</code>: The location at <code>R5</code> plus <code>R6</code>. It is a scaled <code>(R5)(R6*1)</code>: The location at <code>R5</code> plus <code>R6</code>. It is a scaled
mode like on the x86, but the only scale allowed is <code>1</code>. mode as on the x86, but the only scale allowed is <code>1</code>.
</li>
<li>
<code>(R5+R6)</code>: Alias for (R5)(R6*1)
</li> </li>
</ul> </ul>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment