about summary refs log tree commit diff stats
path: root/html/subx/070new-stream.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-20 01:44:06 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-20 01:44:06 -0700
commit52daf0722f7f4ad9d3f29e3cbbbaddde066f49f3 (patch)
treedac2a82e0b7148f2f215dee77c013b7a6fb329a2 /html/subx/070new-stream.subx.html
parentcfea67e9a00419c4493699c0ac8691d9bbb0ceca (diff)
downloadmu-52daf0722f7f4ad9d3f29e3cbbbaddde066f49f3.tar.gz
5211
Update syntax-highlighted renderings after a _long_ time.
Diffstat (limited to 'html/subx/070new-stream.subx.html')
-rw-r--r--html/subx/070new-stream.subx.html98
1 files changed, 49 insertions, 49 deletions
diff --git a/html/subx/070new-stream.subx.html b/html/subx/070new-stream.subx.html
index 08fa6b92..0779e2d7 100644
--- a/html/subx/070new-stream.subx.html
+++ b/html/subx/070new-stream.subx.html
@@ -18,7 +18,6 @@ a { color:inherit; }
 .subxS2Comment { color: #8a8a8a; }
 .LineNr { }
 .subxS1Comment { color: #0000af; }
-.SpecialChar { color: #d70000; }
 .subxFunction { color: #af5f00; text-decoration: underline; }
 .subxTest { color: #5f8700; }
 .Constant { color: #008787; }
@@ -89,7 +88,7 @@ if ('onhashchange' in window) {
 <span id="L29" class="LineNr"> 29 </span>    50/push-EAX
 <span id="L30" class="LineNr"> 30 </span>    ff          6/subop/push        1/mod/*+disp8   5/rm32/EBP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          8/disp8        <span class="Normal"> . </span>                <span class="subxComment"># push *(EBP+8)</span>
 <span id="L31" class="LineNr"> 31 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L32" class="LineNr"> 32 </span>    e8/call  <a href='069allocate.subx.html#L34'>allocate</a>/disp32
+<span id="L32" class="LineNr"> 32 </span>    e8/call  <a href='069allocate.subx.html#L26'>allocate</a>/disp32
 <span id="L33" class="LineNr"> 33 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L34" class="LineNr"> 34 </span>    81          0/subop/add         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/imm32           <span class="subxComment"># add to ESP</span>
 <span id="L35" class="LineNr"> 35 </span>    <span class="subxComment"># EAX-&gt;length = elemsize*length</span>
@@ -128,53 +127,54 @@ if ('onhashchange' in window) {
 <span id="L68" class="LineNr"> 68 </span>    <span class="subxS1Comment"># . prolog</span>
 <span id="L69" class="LineNr"> 69 </span>    55/push-EBP
 <span id="L70" class="LineNr"> 70 </span>    89/copy                         3/mod/direct    5/rm32/EBP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          4/r32/ESP  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy ESP to EBP</span>
-<span id="L71" class="LineNr"> 71 </span>    <span class="subxComment"># var ad/ECX : (address allocation-descriptor) = allocate-region(Heap, 512)</span>
-<span id="L72" class="LineNr"> 72 </span>    <span class="subxS1Comment"># . EAX = allocate-region(Heap, 512)</span>
-<span id="L73" class="LineNr"> 73 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L74" class="LineNr"> 74 </span>    68/push  0x200/imm32
-<span id="L75" class="LineNr"> 75 </span>    68/push  <span class="SpecialChar"><a href='069allocate.subx.html#L23'>Heap</a></span>/imm32
-<span id="L76" class="LineNr"> 76 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L77" class="LineNr"> 77 </span>    e8/call  <a href='069allocate.subx.html#L146'>allocate-region</a>/disp32
-<span id="L78" class="LineNr"> 78 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L79" class="LineNr"> 79 </span>    81          0/subop/add         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/imm32           <span class="subxComment"># add to ESP</span>
-<span id="L80" class="LineNr"> 80 </span>    <span class="subxS1Comment"># . ECX = EAX</span>
-<span id="L81" class="LineNr"> 81 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          0/r32/EAX  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy EAX to ECX</span>
-<span id="L82" class="LineNr"> 82 </span>    <span class="subxComment"># var start/EDX = ad-&gt;curr</span>
-<span id="L83" class="LineNr"> 83 </span>    8b/copy                         0/mod/indirect  1/rm32/ECX   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          2/r32/EDX  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy *ECX to EDX</span>
-<span id="L84" class="LineNr"> 84 </span>    <span class="subxComment"># EAX = new-stream(ad, 3, 2)</span>
-<span id="L85" class="LineNr"> 85 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L86" class="LineNr"> 86 </span>    68/push  2/imm32
-<span id="L87" class="LineNr"> 87 </span>    68/push  3/imm32
-<span id="L88" class="LineNr"> 88 </span>    51/push-ECX
-<span id="L89" class="LineNr"> 89 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L90" class="LineNr"> 90 </span>    e8/call  <a href='070new-stream.subx.html#L8'>new-stream</a>/disp32
-<span id="L91" class="LineNr"> 91 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L92" class="LineNr"> 92 </span>    81          0/subop/add         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0xc/imm32         <span class="subxComment"># add to ESP</span>
-<span id="L93" class="LineNr"> 93 </span>    <span class="subxComment"># check-ints-equal(EAX, EDX, msg)</span>
-<span id="L94" class="LineNr"> 94 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L95" class="LineNr"> 95 </span>    68/push  <span class="Constant">&quot;F - <a href='070new-stream.subx.html#L67'>test-new-stream</a>: returns current pointer of allocation descriptor&quot;</span>/imm32
-<span id="L96" class="LineNr"> 96 </span>    52/push-EDX
-<span id="L97" class="LineNr"> 97 </span>    50/push-EAX
-<span id="L98" class="LineNr"> 98 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L99" class="LineNr"> 99 </span>    e8/call  <a href='051test.subx.html#L24'>check-ints-equal</a>/disp32
-<span id="L100" class="LineNr">100 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L101" class="LineNr">101 </span>    81          0/subop/add         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0xc/imm32         <span class="subxComment"># add to ESP</span>
-<span id="L102" class="LineNr">102 </span>    <span class="subxComment"># check-ints-equal(EAX-&gt;length, 6, msg)</span>
-<span id="L103" class="LineNr">103 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L104" class="LineNr">104 </span>    68/push  <span class="Constant">&quot;F - <a href='070new-stream.subx.html#L67'>test-new-stream</a>: sets length correctly&quot;</span>/imm32
-<span id="L105" class="LineNr">105 </span>    68/push  6/imm32
-<span id="L106" class="LineNr">106 </span>    ff          6/subop/push        1/mod/*+disp8   0/rm32/EAX   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/disp8           <span class="subxComment"># push *(EAX+8)</span>
-<span id="L107" class="LineNr">107 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L108" class="LineNr">108 </span>    e8/call  <a href='051test.subx.html#L24'>check-ints-equal</a>/disp32
-<span id="L109" class="LineNr">109 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L110" class="LineNr">110 </span>    81          0/subop/add         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0xc/imm32         <span class="subxComment"># add to ESP</span>
-<span id="L111" class="LineNr">111 </span>    <span class="subxComment"># the rest is delegated to clear-stream() so we won't bother checking it</span>
-<span id="L112" class="LineNr">112 </span>    <span class="subxS1Comment"># . epilog</span>
-<span id="L113" class="LineNr">113 </span>    89/copy                         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          5/r32/EBP  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy EBP to ESP</span>
-<span id="L114" class="LineNr">114 </span>    5d/pop-to-EBP
-<span id="L115" class="LineNr">115 </span>    c3/return
-<span id="L116" class="LineNr">116 </span>
-<span id="L117" class="LineNr">117 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span>
+<span id="L71" class="LineNr"> 71 </span>    <span class="subxComment"># var heap/ECX : (address allocation-descriptor) = {0, 0}</span>
+<span id="L72" class="LineNr"> 72 </span>    68/push  0/imm32/limit
+<span id="L73" class="LineNr"> 73 </span>    68/push  0/imm32/curr
+<span id="L74" class="LineNr"> 74 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          4/r32/ESP  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy ESP to ECX</span>
+<span id="L75" class="LineNr"> 75 </span>    <span class="subxComment"># heap = new-segment(512)</span>
+<span id="L76" class="LineNr"> 76 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L77" class="LineNr"> 77 </span>    51/push-ECX
+<span id="L78" class="LineNr"> 78 </span>    68/push  0x200/imm32
+<span id="L79" class="LineNr"> 79 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L80" class="LineNr"> 80 </span>    e8/call  <a href='053new-segment.subx.html#L41'>new-segment</a>/disp32
+<span id="L81" class="LineNr"> 81 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L82" class="LineNr"> 82 </span>    81          0/subop/add         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/imm32           <span class="subxComment"># add to ESP</span>
+<span id="L83" class="LineNr"> 83 </span>    <span class="subxComment"># var start/EDX = ad-&gt;curr</span>
+<span id="L84" class="LineNr"> 84 </span>    8b/copy                         0/mod/indirect  1/rm32/ECX   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          2/r32/EDX  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy *ECX to EDX</span>
+<span id="L85" class="LineNr"> 85 </span>    <span class="subxComment"># EAX = new-stream(heap, 3, 2)</span>
+<span id="L86" class="LineNr"> 86 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L87" class="LineNr"> 87 </span>    68/push  2/imm32
+<span id="L88" class="LineNr"> 88 </span>    68/push  3/imm32
+<span id="L89" class="LineNr"> 89 </span>    51/push-ECX
+<span id="L90" class="LineNr"> 90 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L91" class="LineNr"> 91 </span>    e8/call  <a href='070new-stream.subx.html#L8'>new-stream</a>/disp32
+<span id="L92" class="LineNr"> 92 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L93" class="LineNr"> 93 </span>    81          0/subop/add         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0xc/imm32         <span class="subxComment"># add to ESP</span>
+<span id="L94" class="LineNr"> 94 </span>    <span class="subxComment"># check-ints-equal(EAX, EDX, msg)</span>
+<span id="L95" class="LineNr"> 95 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L96" class="LineNr"> 96 </span>    68/push  <span class="Constant">&quot;F - <a href='070new-stream.subx.html#L67'>test-new-stream</a>: returns current pointer of allocation descriptor&quot;</span>/imm32
+<span id="L97" class="LineNr"> 97 </span>    52/push-EDX
+<span id="L98" class="LineNr"> 98 </span>    50/push-EAX
+<span id="L99" class="LineNr"> 99 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L100" class="LineNr">100 </span>    e8/call  <a href='051test.subx.html#L24'>check-ints-equal</a>/disp32
+<span id="L101" class="LineNr">101 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L102" class="LineNr">102 </span>    81          0/subop/add         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0xc/imm32         <span class="subxComment"># add to ESP</span>
+<span id="L103" class="LineNr">103 </span>    <span class="subxComment"># check-ints-equal(EAX-&gt;length, 6, msg)</span>
+<span id="L104" class="LineNr">104 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L105" class="LineNr">105 </span>    68/push  <span class="Constant">&quot;F - <a href='070new-stream.subx.html#L67'>test-new-stream</a>: sets length correctly&quot;</span>/imm32
+<span id="L106" class="LineNr">106 </span>    68/push  6/imm32
+<span id="L107" class="LineNr">107 </span>    ff          6/subop/push        1/mod/*+disp8   0/rm32/EAX   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/disp8           <span class="subxComment"># push *(EAX+8)</span>
+<span id="L108" class="LineNr">108 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L109" class="LineNr">109 </span>    e8/call  <a href='051test.subx.html#L24'>check-ints-equal</a>/disp32
+<span id="L110" class="LineNr">110 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L111" class="LineNr">111 </span>    81          0/subop/add         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0xc/imm32         <span class="subxComment"># add to ESP</span>
+<span id="L112" class="LineNr">112 </span>    <span class="subxComment"># the rest is delegated to clear-stream() so we won't bother checking it</span>
+<span id="L113" class="LineNr">113 </span>    <span class="subxS1Comment"># . epilog</span>
+<span id="L114" class="LineNr">114 </span>    89/copy                         3/mod/direct    4/rm32/ESP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          5/r32/EBP  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy EBP to ESP</span>
+<span id="L115" class="LineNr">115 </span>    5d/pop-to-EBP
+<span id="L116" class="LineNr">116 </span>    c3/return
+<span id="L117" class="LineNr">117 </span>
+<span id="L118" class="LineNr">118 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span>
 </pre>
 </body>
 </html>