diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-11-15 23:51:40 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-11-16 00:00:32 -0800 |
commit | 8d2dece2918675f4c7159b36a5cf154ff1ccd7f5 (patch) | |
tree | cc0c5ed66bca089d76ce9a7a43b7fc145f8dfecc /html | |
parent | 264aba4d929da6899af0672fcda7cc7a877099ec (diff) | |
download | mu-8d2dece2918675f4c7159b36a5cf154ff1ccd7f5.tar.gz |
7250
Diffstat (limited to 'html')
-rw-r--r-- | html/apps/ex2.mu.html | 2 | ||||
-rw-r--r-- | html/ex2.mu.png | bin | 12812 -> 100365 bytes | |||
-rw-r--r-- | html/mu-init.subx.html | 4 |
3 files changed, 3 insertions, 3 deletions
diff --git a/html/apps/ex2.mu.html b/html/apps/ex2.mu.html index faa89af6..603e330f 100644 --- a/html/apps/ex2.mu.html +++ b/html/apps/ex2.mu.html @@ -71,7 +71,7 @@ if ('onhashchange' in window) { <span id="L13" class="LineNr">13 </span><span class="Delimiter">}</span> <span id="L14" class="LineNr">14 </span> <span id="L15" class="LineNr">15 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex2.mu.html#L15'>do-add</a></span> a: int, b: int<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int <span class="Delimiter">{</span> -<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> result/<span class="Constant">ebx</span>: int <span class="SpecialChar"><-</span> copy a +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> result/<span class="Constant">ecx</span>: int <span class="SpecialChar"><-</span> copy a <span id="L17" class="LineNr">17 </span> result <span class="SpecialChar"><-</span> add b <span id="L18" class="LineNr">18 </span> <span class="PreProc">return</span> result <span id="L19" class="LineNr">19 </span><span class="Delimiter">}</span> diff --git a/html/ex2.mu.png b/html/ex2.mu.png index 4af277d4..9d846f4a 100644 --- a/html/ex2.mu.png +++ b/html/ex2.mu.png Binary files differdiff --git a/html/mu-init.subx.html b/html/mu-init.subx.html index dc0c5ec7..bc78932c 100644 --- a/html/mu-init.subx.html +++ b/html/mu-init.subx.html @@ -59,9 +59,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: (addr array addr array byte) -> exit-status/ebx: int</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># fn main args: (addr array addr array byte) -> _/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 -> _/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> |