diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-07-11 00:02:29 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-07-11 00:02:29 -0700 |
commit | 1c349ac7c571a97978e1cbbe726430ae9c741972 (patch) | |
tree | a555a01c640d6c589febf3961a771366126376c6 /html/apps | |
parent | ec73ed1230d75deb0f913a32617c9f1e0a5ca640 (diff) | |
download | mu-1c349ac7c571a97978e1cbbe726430ae9c741972.tar.gz |
6631
Diffstat (limited to 'html/apps')
-rw-r--r-- | html/apps/arith.mu.html | 2 | ||||
-rw-r--r-- | html/apps/browse.mu.html | 2 | ||||
-rw-r--r-- | html/apps/crenshaw2-1.subx.html | 4 | ||||
-rw-r--r-- | html/apps/crenshaw2-1b.subx.html | 4 | ||||
-rw-r--r-- | html/apps/ex1.mu.html | 2 | ||||
-rw-r--r-- | html/apps/ex2.mu.html | 2 | ||||
-rw-r--r-- | html/apps/ex3.2.mu.html | 2 | ||||
-rw-r--r-- | html/apps/ex3.mu.html | 2 | ||||
-rw-r--r-- | html/apps/factorial.mu.html | 2 | ||||
-rw-r--r-- | html/apps/mu.subx.html | 6 | ||||
-rw-r--r-- | html/apps/parse-int.mu.html | 2 | ||||
-rw-r--r-- | html/apps/print-file.mu.html | 2 | ||||
-rw-r--r-- | html/apps/tui.mu.html | 2 |
13 files changed, 17 insertions, 17 deletions
diff --git a/html/apps/arith.mu.html b/html/apps/arith.mu.html index 842235c0..ede95c3e 100644 --- a/html/apps/arith.mu.html +++ b/html/apps/arith.mu.html @@ -91,7 +91,7 @@ if ('onhashchange' in window) { <span id="L32" class="LineNr"> 32 </span><span class="Comment">#</span> <span id="L33" class="LineNr"> 33 </span><span class="Comment"># Error handling is non-existent. This is just a prototype.</span> <span id="L34" class="LineNr"> 34 </span> -<span id="L35" class="LineNr"> 35 </span><span class="PreProc">fn</span> <span class="muFunction">main</span><span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> +<span id="L35" class="LineNr"> 35 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L35'>main</a></span><span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> look/<span class="Constant">esi</span>: byte <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> <span class="Comment"># lookahead</span> <span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> <span class="Comment"># result of each expression</span> <span id="L38" class="LineNr"> 38 </span> <a href='../304screen.subx.html#L123'>print-string-to-screen</a> <span class="Constant">"press ctrl-c or ctrl-d to exit\n"</span> diff --git a/html/apps/browse.mu.html b/html/apps/browse.mu.html index a587f8d5..74b1c5f1 100644 --- a/html/apps/browse.mu.html +++ b/html/apps/browse.mu.html @@ -65,7 +65,7 @@ if ('onhashchange' in window) { <span id="L6" class="LineNr"> 6 </span><span class="Comment">#</span> <span id="L7" class="LineNr"> 7 </span><span class="Comment"># Press 'q' to quit. All other keys scroll down.</span> <span id="L8" class="LineNr"> 8 </span> -<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction">main</span> args-on-stack: (addr array (addr array byte))<span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> +<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='browse.mu.html#L9'>main</a></span> args-on-stack: (addr array (addr array byte))<span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L10" class="Folded"> 10 </span><span class="Folded">+-- 20 lines: # var file/esi: (addr buffered-file) = open args-on-stack[1] for reading --------------------------------------------------------------------------------------------------</span> <span id="L30" class="LineNr"> 30 </span> <a href='../304screen.subx.html#L6'>enable-screen-grid-mode</a> <span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> nrows/<span class="Constant">eax</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> diff --git a/html/apps/crenshaw2-1.subx.html b/html/apps/crenshaw2-1.subx.html index e21e94bb..23df3be0 100644 --- a/html/apps/crenshaw2-1.subx.html +++ b/html/apps/crenshaw2-1.subx.html @@ -278,7 +278,7 @@ if ('onhashchange' in window) { <span id="L217" class="LineNr">217 </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="L218" class="LineNr">218 </span> <span class="subxS1Comment"># . if (eax == false)</span> <span id="L219" class="LineNr">219 </span> 3d/compare-eax-and 0/imm32/false -<span id="L220" class="LineNr">220 </span> 75/jump-if-!= $get-num:<a href='../mu-init-test.subx.html#L7'>main</a>/disp8 +<span id="L220" class="LineNr">220 </span> 75/jump-if-!= $get-num:main/disp8 <span id="L221" class="LineNr">221 </span> <span class="subxS1Comment"># . expected(ed, err, "integer")</span> <span id="L222" class="LineNr">222 </span> <span class="subxS2Comment"># . . push args</span> <span id="L223" class="LineNr">223 </span> 68/push <span class="Constant">"integer"</span>/imm32 @@ -288,7 +288,7 @@ if ('onhashchange' in window) { <span id="L227" class="LineNr">227 </span> e8/call <a href='crenshaw2-1.subx.html#L466'>expected</a>/disp32 <span class="subxComment"># never returns</span> <span id="L228" class="LineNr">228 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L229" class="LineNr">229 </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="L230" class="LineNr">230 </span><span class="Constant">$get-num:<a href='../mu-init-test.subx.html#L7'>main</a></span>: +<span id="L230" class="LineNr">230 </span><span class="Constant">$get-num:main</span>: <span id="L231" class="LineNr">231 </span> <span class="subxH1Comment"># - otherwise read a digit</span> <span id="L232" class="LineNr">232 </span> <span class="subxS1Comment"># . save registers</span> <span id="L233" class="LineNr">233 </span> 50/push-eax diff --git a/html/apps/crenshaw2-1b.subx.html b/html/apps/crenshaw2-1b.subx.html index ee5a830c..ebe6226e 100644 --- a/html/apps/crenshaw2-1b.subx.html +++ b/html/apps/crenshaw2-1b.subx.html @@ -283,7 +283,7 @@ if ('onhashchange' in window) { <span id="L222" class="LineNr">222 </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="L223" class="LineNr">223 </span> <span class="subxS1Comment"># . if (eax == false)</span> <span id="L224" class="LineNr">224 </span> 3d/compare-eax-and 0/imm32/false -<span id="L225" class="LineNr">225 </span> 75/jump-if-!= $get-num:<a href='../mu-init-test.subx.html#L7'>main</a>/disp8 +<span id="L225" class="LineNr">225 </span> 75/jump-if-!= $get-num:main/disp8 <span id="L226" class="LineNr">226 </span> <span class="subxS1Comment"># . expected(ed, err, "integer")</span> <span id="L227" class="LineNr">227 </span> <span class="subxS2Comment"># . . push args</span> <span id="L228" class="LineNr">228 </span> 68/push <span class="Constant">"integer"</span>/imm32 @@ -293,7 +293,7 @@ if ('onhashchange' in window) { <span id="L232" class="LineNr">232 </span> e8/call <a href='crenshaw2-1b.subx.html#L660'>expected</a>/disp32 <span class="subxComment"># never returns</span> <span id="L233" class="LineNr">233 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L234" class="LineNr">234 </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="L235" class="LineNr">235 </span><span class="Constant">$get-num:<a href='../mu-init-test.subx.html#L7'>main</a></span>: +<span id="L235" class="LineNr">235 </span><span class="Constant">$get-num:main</span>: <span id="L236" class="LineNr">236 </span> <span class="subxH1Comment"># - otherwise read a digit</span> <span id="L237" class="LineNr">237 </span> <span class="subxS1Comment"># . save registers</span> <span id="L238" class="LineNr">238 </span> 50/push-eax diff --git a/html/apps/ex1.mu.html b/html/apps/ex1.mu.html index aa62b62e..159569ff 100644 --- a/html/apps/ex1.mu.html +++ b/html/apps/ex1.mu.html @@ -66,7 +66,7 @@ if ('onhashchange' in window) { <span id="L8" class="LineNr"> 8 </span><span class="Comment"># $ echo $?</span> <span id="L9" class="LineNr"> 9 </span><span class="Comment"># 42</span> <span id="L10" class="LineNr">10 </span> -<span id="L11" class="LineNr">11 </span><span class="PreProc">fn</span> <span class="muFunction">main</span><span class="PreProc"> -> </span>result/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> +<span id="L11" class="LineNr">11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex1.mu.html#L11'>main</a></span><span class="PreProc"> -> </span>result/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L12" class="LineNr">12 </span> result <span class="SpecialChar"><-</span> copy <span class="Constant">0x2a</span> <span class="Comment"># Mu requires hexadecimal</span> <span id="L13" class="LineNr">13 </span><span class="Delimiter">}</span> </pre> diff --git a/html/apps/ex2.mu.html b/html/apps/ex2.mu.html index e3410433..b88c8e1d 100644 --- a/html/apps/ex2.mu.html +++ b/html/apps/ex2.mu.html @@ -65,7 +65,7 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span><span class="Comment"># $ echo $?</span> <span id="L8" class="LineNr"> 8 </span><span class="Comment"># 7</span> <span id="L9" class="LineNr"> 9 </span> -<span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction">main</span><span class="PreProc"> -> </span>result/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> +<span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex2.mu.html#L10'>main</a></span><span class="PreProc"> -> </span>result/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L11" class="LineNr">11 </span> result <span class="SpecialChar"><-</span> <a href='ex2.mu.html#L14'>do-add</a> <span class="Constant">3</span> <span class="Constant">4</span> <span id="L12" class="LineNr">12 </span><span class="Delimiter">}</span> <span id="L13" class="LineNr">13 </span> diff --git a/html/apps/ex3.2.mu.html b/html/apps/ex3.2.mu.html index ea4eb2eb..cc0c290d 100644 --- a/html/apps/ex3.2.mu.html +++ b/html/apps/ex3.2.mu.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { <span id="L6" class="LineNr"> 6 </span><span class="Comment"># $ echo $?</span> <span id="L7" class="LineNr"> 7 </span><span class="Comment"># 55</span> <span id="L8" class="LineNr"> 8 </span> -<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction">main</span><span class="PreProc"> -> </span>result/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> +<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex3.2.mu.html#L9'>main</a></span><span class="PreProc"> -> </span>result/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L10" class="LineNr">10 </span> <span class="Comment"># populate a</span> <span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> a: (array int <span class="Constant">0xb</span>) <span class="Comment"># 11; we waste index 0</span> <span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> i/<span class="Constant">ecx</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">1</span> diff --git a/html/apps/ex3.mu.html b/html/apps/ex3.mu.html index 3c68aed1..cb76985a 100644 --- a/html/apps/ex3.mu.html +++ b/html/apps/ex3.mu.html @@ -65,7 +65,7 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span><span class="Comment"># $ echo $?</span> <span id="L8" class="LineNr"> 8 </span><span class="Comment"># 55</span> <span id="L9" class="LineNr"> 9 </span> -<span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction">main</span><span class="PreProc"> -> </span>result/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> +<span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex3.mu.html#L10'>main</a></span><span class="PreProc"> -> </span>result/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L11" class="LineNr">11 </span> result <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> <span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> i/<span class="Constant">eax</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">1</span> <span id="L13" class="LineNr">13 </span> <span class="Delimiter">{</span> diff --git a/html/apps/factorial.mu.html b/html/apps/factorial.mu.html index e735e68e..bce88f11 100644 --- a/html/apps/factorial.mu.html +++ b/html/apps/factorial.mu.html @@ -90,7 +90,7 @@ if ('onhashchange' in window) { <span id="L31" class="LineNr">31 </span> <a href='../102test.subx.html#L23'>check-ints-equal</a> result <span class="Constant">0x78</span> <span class="Constant">"F - test-factorial"</span> <span id="L32" class="LineNr">32 </span><span class="Delimiter">}</span> <span id="L33" class="LineNr">33 </span> -<span id="L34" class="LineNr">34 </span><span class="PreProc">fn</span> <span class="muFunction">main</span> args-on-stack: (addr array (addr array byte))<span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> +<span id="L34" class="LineNr">34 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='factorial.mu.html#L34'>main</a></span> args-on-stack: (addr array (addr array byte))<span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L35" class="LineNr">35 </span> <span class="PreProc">var</span> args/<span class="Constant">eax</span>: (addr array (addr array byte)) <span class="SpecialChar"><-</span> copy args-on-stack <span id="L36" class="LineNr">36 </span> <span class="PreProc">var</span> tmp/<span class="Constant">ecx</span>: int <span class="SpecialChar"><-</span> length args <span id="L37" class="LineNr">37 </span> $main-body: <span class="Delimiter">{</span> diff --git a/html/apps/mu.subx.html b/html/apps/mu.subx.html index 10d87927..f4a10378 100644 --- a/html/apps/mu.subx.html +++ b/html/apps/mu.subx.html @@ -886,7 +886,7 @@ if ('onhashchange' in window) { <span id="L864" class="LineNr"> 864 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>) <span id="L865" class="LineNr"> 865 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> $_test-output-buffered-file->buffer) <span id="L866" class="LineNr"> 866 </span> <span class="subxComment">#</span> -<span id="L867" class="LineNr"> 867 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"fn <a href='../mu-init-test.subx.html#L7'>main</a> -> result/ebx: int {\n"</span>) +<span id="L867" class="LineNr"> 867 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"fn main -> result/ebx: int {\n"</span>) <span id="L868" class="LineNr"> 868 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">" result <- do-add 3 4\n"</span>) <span id="L869" class="LineNr"> 869 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"}\n"</span>) <span id="L870" class="LineNr"> 870 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"fn do-add a: int, b: int -> result/ebx: int {\n"</span>) @@ -940,7 +940,7 @@ if ('onhashchange' in window) { <span id="L923" class="LineNr"> 923 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>) <span id="L924" class="LineNr"> 924 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> $_test-output-buffered-file->buffer) <span id="L925" class="LineNr"> 925 </span> <span class="subxComment">#</span> -<span id="L926" class="LineNr"> 926 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"fn <a href='../mu-init-test.subx.html#L7'>main</a> -> result/ebx: int {\n"</span>) +<span id="L926" class="LineNr"> 926 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"fn main -> result/ebx: int {\n"</span>) <span id="L927" class="LineNr"> 927 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">" result <- do-add 3 4\n"</span>) <span id="L928" class="LineNr"> 928 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"}\n"</span>) <span id="L929" class="LineNr"> 929 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"sig do-add a: int, b: int -> result/ebx: int\n"</span>) @@ -1218,7 +1218,7 @@ if ('onhashchange' in window) { <span id="L1236" class="LineNr"> 1236 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>) <span id="L1237" class="LineNr"> 1237 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> $_test-output-buffered-file->buffer) <span id="L1238" class="LineNr"> 1238 </span> <span class="subxComment">#</span> -<span id="L1239" class="LineNr"> 1239 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"fn <a href='../mu-init-test.subx.html#L7'>main</a> -> result/ebx: int {\n"</span>) +<span id="L1239" class="LineNr"> 1239 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"fn main -> result/ebx: int {\n"</span>) <span id="L1240" class="LineNr"> 1240 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">" result <- foo\n"</span>) <span id="L1241" class="LineNr"> 1241 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"}\n"</span>) <span id="L1242" class="LineNr"> 1242 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">"fn foo -> result/ebx: int {\n"</span>) diff --git a/html/apps/parse-int.mu.html b/html/apps/parse-int.mu.html index e347f1a5..e1784221 100644 --- a/html/apps/parse-int.mu.html +++ b/html/apps/parse-int.mu.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { <span id="L6" class="LineNr"> 6 </span><span class="Comment"># $ echo $?</span> <span id="L7" class="LineNr"> 7 </span><span class="Comment"># 123</span> <span id="L8" class="LineNr"> 8 </span> -<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction">main</span> _args: (addr array (addr array byte))<span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> +<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='parse-int.mu.html#L9'>main</a></span> _args: (addr array (addr array byte))<span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L10" class="LineNr">10 </span>$main-body: <span class="Delimiter">{</span> <span id="L11" class="LineNr">11 </span> <span class="Comment"># if no args, print a message and exit</span> <span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> args/<span class="Constant">esi</span>: (addr array (addr array byte)) <span class="SpecialChar"><-</span> copy _args diff --git a/html/apps/print-file.mu.html b/html/apps/print-file.mu.html index fae1ca3f..17069ce9 100644 --- a/html/apps/print-file.mu.html +++ b/html/apps/print-file.mu.html @@ -65,7 +65,7 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span><span class="Comment"># $ ./a.elf x</span> <span id="L8" class="LineNr"> 8 </span><span class="Comment"># abc</span> <span id="L9" class="LineNr"> 9 </span> -<span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction">main</span> _args: (addr array (addr array byte))<span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> +<span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print-file.mu.html#L10'>main</a></span> _args: (addr array (addr array byte))<span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> args/<span class="Constant">eax</span>: (addr array (addr array byte)) <span class="SpecialChar"><-</span> copy _args <span id="L12" class="LineNr">12 </span>$main-body: <span class="Delimiter">{</span> <span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> n/<span class="Constant">ecx</span>: int <span class="SpecialChar"><-</span> length args diff --git a/html/apps/tui.mu.html b/html/apps/tui.mu.html index 93733c11..cc259340 100644 --- a/html/apps/tui.mu.html +++ b/html/apps/tui.mu.html @@ -62,7 +62,7 @@ if ('onhashchange' in window) { <span id="L4" class="LineNr"> 4 </span><span class="Comment"># $ ./translate_mu apps/tui.mu</span> <span id="L5" class="LineNr"> 5 </span><span class="Comment"># $ ./a.elf</span> <span id="L6" class="LineNr"> 6 </span> -<span id="L7" class="LineNr"> 7 </span><span class="PreProc">fn</span> <span class="muFunction">main</span><span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> +<span id="L7" class="LineNr"> 7 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tui.mu.html#L7'>main</a></span><span class="PreProc"> -> </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> nrows/<span class="Constant">eax</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> <span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> ncols/<span class="Constant">ecx</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> <span id="L10" class="LineNr">10 </span> nrows, ncols <span class="SpecialChar"><-</span> <a href='../304screen.subx.html#L37'>screen-size</a> |