about summary refs log tree commit diff stats
path: root/html/subx/examples/ex12.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-17 07:08:47 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-17 07:08:47 -0700
commit104e521c04d1a0cad9c68fb11e250e12ad8917ef (patch)
treedf4258ad26cb78e25abee64c80aedab47aa461ea /html/subx/examples/ex12.subx.html
parent800320a70c981008302af56b2f35a142c1101401 (diff)
downloadmu-104e521c04d1a0cad9c68fb11e250e12ad8917ef.tar.gz
4709
Diffstat (limited to 'html/subx/examples/ex12.subx.html')
-rw-r--r--html/subx/examples/ex12.subx.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/html/subx/examples/ex12.subx.html b/html/subx/examples/ex12.subx.html
index 93feff8c..b4ad239c 100644
--- a/html/subx/examples/ex12.subx.html
+++ b/html/subx/examples/ex12.subx.html
@@ -67,22 +67,22 @@ if ('onhashchange' in window) {
 <span id="L11" class="LineNr">11 </span><span class="Comment"># op          subop               mod             rm32          base        index         scale       r32</span>
 <span id="L12" class="LineNr">12 </span><span class="Comment"># 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes</span>
 <span id="L13" class="LineNr">13 </span>
-<span id="L14" class="LineNr">14 </span>  <span class="Comment"># mmap(0x1000)</span>
-<span id="L15" class="LineNr">15 </span>  bb/copy                        <span class="Delimiter"> . </span>             <span class="Delimiter"> . </span>           <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>           <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>              mmap_new_segment/imm32  <span class="Comment"># copy to EBX</span>
-<span id="L16" class="LineNr">16 </span>  b8/copy                        <span class="Delimiter"> . </span>             <span class="Delimiter"> . </span>           <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>           <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>              0x5a/imm32/mmap         <span class="Comment"># copy to EAX</span>
+<span id="L14" class="LineNr">14 </span>  <span class="Comment"># syscall(mmap, 0x1000)</span>
+<span id="L15" class="LineNr">15 </span>  bb/copy-to-EBX  mmap-new-segment/imm32
+<span id="L16" class="LineNr">16 </span>  b8/copy-to-EAX  0x5a/imm32/mmap
 <span id="L17" class="LineNr">17 </span>  cd/syscall  0x80/imm8
 <span id="L18" class="LineNr">18 </span>
 <span id="L19" class="LineNr">19 </span>  <span class="Comment"># store to *EAX</span>
 <span id="L20" class="LineNr">20 </span>  c7/copy                         0/mod/direct    0/rm32/EAX   <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>           <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>              0x34/imm32              <span class="Comment"># copy to *EAX</span>
 <span id="L21" class="LineNr">21 </span>
-<span id="L22" class="LineNr">22 </span>  <span class="Comment"># exit(EAX)</span>
+<span id="L22" class="LineNr">22 </span>  <span class="Comment"># syscall(exit, EAX)</span>
 <span id="L23" class="LineNr">23 </span>  89/copy                         3/mod/direct    3/rm32/EBX   <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>           <span class="Delimiter"> . </span>          0/r32/EAX  <span class="Delimiter"> . </span>             <span class="Delimiter"> . </span>                      <span class="Comment"># copy EAX to EBX</span>
-<span id="L24" class="LineNr">24 </span>  b8/copy                        <span class="Delimiter"> . </span>             <span class="Delimiter"> . </span>           <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>           <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>         <span class="Delimiter"> . </span>              1/imm32/exit            <span class="Comment"># copy to EAX</span>
+<span id="L24" class="LineNr">24 </span>  b8/copy-to-EAX  1/imm32/exit
 <span id="L25" class="LineNr">25 </span>  cd/syscall  0x80/imm8
 <span id="L26" class="LineNr">26 </span>
 <span id="L27" class="LineNr">27 </span>== data
 <span id="L28" class="LineNr">28 </span><span class="Comment"># various constants used here were found in the Linux sources (search for file mman-common.h)</span>
-<span id="L29" class="LineNr">29 </span>mmap_new_segment:  <span class="Comment"># type mmap_arg_struct</span>
+<span id="L29" class="LineNr">29 </span>mmap-new-segment:  <span class="Comment"># type mmap_arg_struct</span>
 <span id="L30" class="LineNr">30 </span>  <span class="Comment"># addr</span>
 <span id="L31" class="LineNr">31 </span>  00 00 00 00  <span class="Comment"># null</span>
 <span id="L32" class="LineNr">32 </span>  <span class="Comment"># len</span>
@@ -96,7 +96,7 @@ if ('onhashchange' in window) {
 <span id="L40" class="LineNr">40 </span>  <span class="Comment"># offset</span>
 <span id="L41" class="LineNr">41 </span>  00 00 00 00  <span class="Comment"># 0 since MAP_ANONYMOUS is specified</span>
 <span id="L42" class="LineNr">42 </span>
-<span id="L43" class="LineNr">43 </span><span class="Comment"># vim&#0058;ft=subx:nowrap:tw&amp;</span>
+<span id="L43" class="LineNr">43 </span><span class="Comment"># vim&#0058;nowrap:textwidth=0</span>
 </pre>
 </body>
 </html>