diff options
Diffstat (limited to 'html/subx/053new-segment.subx.html')
-rw-r--r-- | html/subx/053new-segment.subx.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html/subx/053new-segment.subx.html b/html/subx/053new-segment.subx.html index df60c22a..cce753d5 100644 --- a/html/subx/053new-segment.subx.html +++ b/html/subx/053new-segment.subx.html @@ -2,7 +2,7 @@ <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - subx/053new_segment.subx</title> +<title>Mu - subx/053new-segment.subx</title> <meta name="Generator" content="Vim/8.0"> <meta name="plugin-version" content="vim7.4_v2"> <meta name="syntax" content="none"> @@ -55,7 +55,7 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/master/subx/053new_segment.subx'>https://github.com/akkartik/mu/blob/master/subx/053new_segment.subx</a> +<a href='https://github.com/akkartik/mu/blob/master/subx/053new-segment.subx'>https://github.com/akkartik/mu/blob/master/subx/053new-segment.subx</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Create a new segment (for data) using mmap().</span> <span id="L2" class="LineNr"> 2 </span> @@ -69,7 +69,7 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr">10 </span> <span class="subxS2Comment"># . . push args</span> <span id="L11" class="LineNr">11 </span> 68/push 0x1000/imm32 <span id="L12" class="LineNr">12 </span> <span class="subxS2Comment"># . . call</span> -<span id="L13" class="LineNr">13 </span> e8/call <a href='053new_segment.subx.html#L25'>new-segment</a>/disp32 +<span id="L13" class="LineNr">13 </span> e8/call <a href='053new-segment.subx.html#L25'>new-segment</a>/disp32 <span id="L14" class="LineNr">14 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L15" class="LineNr">15 </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> 4/imm32 <span class="subxComment"># add to ESP</span> <span id="L16" class="LineNr">16 </span> @@ -89,10 +89,10 @@ if ('onhashchange' in window) { <span id="L30" class="LineNr">30 </span> <span class="subxComment"># copy len to _mmap-new-segment->len</span> <span id="L31" class="LineNr">31 </span> <span class="subxComment"># TODO: compute _mmap-new-segment+4 before runtime</span> <span id="L32" class="LineNr">32 </span> 8b/copy 1/mod/*+disp8 5/rm32/EBP <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/EAX 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(EBP+8) to EAX</span> -<span id="L33" class="LineNr">33 </span> bb/copy-to-EBX <a href='053new_segment.subx.html#L49'>_mmap-new-segment</a>/imm32 +<span id="L33" class="LineNr">33 </span> bb/copy-to-EBX <a href='053new-segment.subx.html#L49'>_mmap-new-segment</a>/imm32 <span id="L34" class="LineNr">34 </span> 89/copy 1/mod/*+disp8 3/rm32/EBX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/EAX 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy EAX to *(EBX+4)</span> <span id="L35" class="LineNr">35 </span> <span class="subxComment"># mmap(_mmap-new-segment)</span> -<span id="L36" class="LineNr">36 </span> bb/copy-to-EBX <a href='053new_segment.subx.html#L49'>_mmap-new-segment</a>/imm32 +<span id="L36" class="LineNr">36 </span> bb/copy-to-EBX <a href='053new-segment.subx.html#L49'>_mmap-new-segment</a>/imm32 <span id="L37" class="LineNr">37 </span> b8/copy-to-EAX 0x5a/imm32/mmap <span id="L38" class="LineNr">38 </span> cd/syscall 0x80/imm8 <span id="L39" class="LineNr">39 </span><span class="Constant">$new-segment:end</span>: |