diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-02-17 15:29:43 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-02-17 15:29:43 -0800 |
commit | c52ae116ace032a3eaa53bd297836b675cd8393e (patch) | |
tree | f7e6f7349db94ec0303ea323957040ca20999081 /html/mu-init.subx.html | |
parent | 6323661c2c588c4fed280f55f20ca3bbc92edb27 (diff) | |
download | mu-c52ae116ace032a3eaa53bd297836b675cd8393e.tar.gz |
6015
Diffstat (limited to 'html/mu-init.subx.html')
-rw-r--r-- | html/mu-init.subx.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/mu-init.subx.html b/html/mu-init.subx.html index e9fa6bab..324210e4 100644 --- a/html/mu-init.subx.html +++ b/html/mu-init.subx.html @@ -57,9 +57,9 @@ if ('onhashchange' in window) { <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># See translate_mu for how this file is used.</span> <span id="L4" class="LineNr"> 4 </span><span class="subxComment">#</span> <span id="L5" class="LineNr"> 5 </span><span class="subxComment"># Mu programs start at a function called 'main' with this signature:</span> -<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># fn main args: (address array kernel-string) -> exit_status/ebx: int</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># fn main args: (addr array kernel-string) -> exit-status/ebx: int</span> <span id="L7" class="LineNr"> 7 </span><span class="subxComment"># If your program doesn't need commandline arguments you can drop it:</span> -<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># fn main -> exit_status/ebx: int</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># fn main -> exit-status/ebx: int</span> <span id="L9" class="LineNr"> 9 </span><span class="subxComment">#</span> <span id="L10" class="LineNr">10 </span><span class="subxComment"># Notice that the output must be in ebx, so that the exit() syscall can pick</span> <span id="L11" class="LineNr">11 </span><span class="subxComment"># it up.</span> @@ -69,7 +69,7 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr">15 </span><span class="SpecialChar">Entry</span>: <span id="L16" class="LineNr">16 </span> <span class="subxComment"># we don't use ebp in Entry; just initialize it</span> <span id="L17" class="LineNr">17 </span> bd/copy-to-ebp 0/imm32 -<span id="L18" class="LineNr">18 </span> <span class="subxComment"># var args/eax: (address array kernel-string)</span> +<span id="L18" class="LineNr">18 </span> <span class="subxComment"># var args/eax: (addr array kernel-string)</span> <span id="L19" class="LineNr">19 </span> 89/<- %eax 4/r32/esp <span id="L20" class="LineNr">20 </span> <span class="subxComment"># initialize the heap</span> <span id="L21" class="LineNr">21 </span> (<a href='053new-segment.subx.html#L41'>new-segment</a> *<span class="SpecialChar"><a href='069allocate.subx.html#L29'>Heap-size</a></span> <span class="SpecialChar"><a href='069allocate.subx.html#L22'>Heap</a></span>) |