diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-06-12 07:57:27 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-06-12 07:57:38 -0700 |
commit | 86351aafe218a7386f6578be3c4da3edcdcb0c98 (patch) | |
tree | 209e27b8ad7ed2a8f733c699b278d19d0f59bf43 /html/mu-init.subx.html | |
parent | 07dba48f13be2aaa531b3d75a7d48d36e6ab4cb1 (diff) | |
download | mu-86351aafe218a7386f6578be3c4da3edcdcb0c98.tar.gz |
6513
Diffstat (limited to 'html/mu-init.subx.html')
-rw-r--r-- | html/mu-init.subx.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html/mu-init.subx.html b/html/mu-init.subx.html index 8ae40214..cea26406 100644 --- a/html/mu-init.subx.html +++ b/html/mu-init.subx.html @@ -76,7 +76,7 @@ if ('onhashchange' in window) { <span id="L20" class="LineNr">20 </span> 89/<- %esi 4/r32/esp <span id="L21" class="LineNr">21 </span><span class="Constant">$Entry:initialize-heap</span>: <span id="L22" class="LineNr">22 </span> <span class="subxH1Comment"># - initialize the heap</span> -<span id="L23" class="LineNr">23 </span> (<a href='053new-segment.subx.html#L41'>new-segment</a> *<span class="SpecialChar"><a href='069allocate.subx.html#L34'>Heap-size</a></span> <span class="SpecialChar"><a href='069allocate.subx.html#L27'>Heap</a></span>) +<span id="L23" class="LineNr">23 </span> (<a href='053new-segment.subx.html#L40'>new-segment</a> *<span class="SpecialChar"><a href='069allocate.subx.html#L34'>Heap-size</a></span> <span class="SpecialChar"><a href='069allocate.subx.html#L27'>Heap</a></span>) <span id="L24" class="LineNr">24 </span><span class="Constant">$Entry:initialize-args</span>: <span id="L25" class="LineNr">25 </span> <span class="subxH1Comment"># - convert argv from null-terminated 'kernel' strings to length-prefixed Mu strings</span> <span id="L26" class="LineNr">26 </span> <span class="subxComment"># var argc/edx: int</span> @@ -88,8 +88,8 @@ if ('onhashchange' in window) { <span id="L32" class="LineNr">32 </span> 68/push 0/imm32 <span id="L33" class="LineNr">33 </span> 89/<- %ebx 4/r32/esp <span id="L34" class="LineNr">34 </span> <span class="subxComment"># var args/edi: (addr array (addr array byte))</span> -<span id="L35" class="LineNr">35 </span> (<a href='069allocate.subx.html#L557'>allocate-array</a> <span class="SpecialChar"><a href='069allocate.subx.html#L27'>Heap</a></span> %edx %ebx) -<span id="L36" class="LineNr">36 </span> (<a href='069allocate.subx.html#L258'>lookup</a> *ebx *(ebx+4)) <span class="subxComment"># => eax</span> +<span id="L35" class="LineNr">35 </span> (<a href='069allocate.subx.html#L576'>allocate-array</a> <span class="SpecialChar"><a href='069allocate.subx.html#L27'>Heap</a></span> %edx %ebx) +<span id="L36" class="LineNr">36 </span> (<a href='069allocate.subx.html#L256'>lookup</a> *ebx *(ebx+4)) <span class="subxComment"># => eax</span> <span id="L37" class="LineNr">37 </span> 89/<- %edi 0/r32/eax <span id="L38" class="LineNr">38 </span> <span class="subxComment"># var curr/ecx: (addr kernel-string) = argv</span> <span id="L39" class="LineNr">39 </span> 8d/copy-address *(esi+4) 1/r32/ecx @@ -103,7 +103,7 @@ if ('onhashchange' in window) { <span id="L47" class="LineNr">47 </span> 73/jump-if-addr>= <span class="Constant">break</span>/disp8 <span id="L48" class="LineNr">48 </span> <span class="subxComment"># *dest = kernel-string-to-string(*curr)</span> <span id="L49" class="LineNr">49 </span> (<a href='102kernel-string.subx.html#L7'>kernel-string-to-string</a> <span class="SpecialChar"><a href='069allocate.subx.html#L27'>Heap</a></span> *ecx %ebx) -<span id="L50" class="LineNr">50 </span> (<a href='069allocate.subx.html#L258'>lookup</a> *ebx *(ebx+4)) <span class="subxComment"># => eax</span> +<span id="L50" class="LineNr">50 </span> (<a href='069allocate.subx.html#L256'>lookup</a> *ebx *(ebx+4)) <span class="subxComment"># => eax</span> <span id="L51" class="LineNr">51 </span> 89/<- *esi 0/r32/eax <span id="L52" class="LineNr">52 </span> <span class="subxComment"># curr += 4</span> <span id="L53" class="LineNr">53 </span> 81 0/subop/add %ecx 4/imm32 @@ -113,7 +113,7 @@ if ('onhashchange' in window) { <span id="L57" class="LineNr">57 </span> eb/jump <span class="Constant">loop</span>/disp8 <span id="L58" class="LineNr">58 </span> } <span id="L59" class="LineNr">59 </span> <span class="subxH1Comment"># - run Mu program</span> -<span id="L60" class="LineNr">60 </span> (main %edi) <span class="subxComment"># => ebx</span> +<span id="L60" class="LineNr">60 </span> (<a href='mu-init-test.subx.html#L7'>main</a> %edi) <span class="subxComment"># => ebx</span> <span id="L61" class="LineNr">61 </span> <span class="subxH1Comment"># - exit</span> <span id="L62" class="LineNr">62 </span> (syscall_exit) </pre> |