diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-09-07 16:38:14 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-09-07 16:39:44 -0700 |
commit | 68df24fa778f7f5a2651a4623681f38dc920c490 (patch) | |
tree | 99d95cf1812e90ad6bfd4f7292ee42b6a5e7c935 /html/apps/arith.mu.html | |
parent | a0430d580719fc0fbe1fe0c92de2ec412245762c (diff) | |
download | mu-68df24fa778f7f5a2651a4623681f38dc920c490.tar.gz |
6746
Diffstat (limited to 'html/apps/arith.mu.html')
-rw-r--r-- | html/apps/arith.mu.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html/apps/arith.mu.html b/html/apps/arith.mu.html index 6eb9bd6a..80cd7ae6 100644 --- a/html/apps/arith.mu.html +++ b/html/apps/arith.mu.html @@ -94,19 +94,19 @@ if ('onhashchange' in window) { <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='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"press ctrl-c or ctrl-d to exit\n"</span> +<span id="L38" class="LineNr"> 38 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"press ctrl-c or ctrl-d to exit\n"</span> <span id="L39" class="LineNr"> 39 </span> <span class="Comment"># read-eval-print loop</span> <span id="L40" class="LineNr"> 40 </span> <span class="Delimiter">{</span> <span id="L41" class="LineNr"> 41 </span> <span class="Comment"># print prompt</span> -<span id="L42" class="LineNr"> 42 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"> "</span> +<span id="L42" class="LineNr"> 42 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"> "</span> <span id="L43" class="LineNr"> 43 </span> <span class="Comment"># read and eval</span> <span id="L44" class="LineNr"> 44 </span> n, look <span class="SpecialChar"><-</span> <a href='arith.mu.html#L57'>simplify</a> <span class="Comment"># we explicitly thread 'look' everywhere</span> <span id="L45" class="LineNr"> 45 </span> <span class="Comment"># if (look == 0) break</span> <span id="L46" class="LineNr"> 46 </span> compare look, <span class="Constant">0</span> <span id="L47" class="LineNr"> 47 </span> <span class="PreProc">break-if-=</span> <span id="L48" class="LineNr"> 48 </span> <span class="Comment"># print</span> -<span id="L49" class="LineNr"> 49 </span> <a href='../405screen.mu.html#L169'>print-int32-hex</a> <span class="Constant">0</span>, n -<span id="L50" class="LineNr"> 50 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L49" class="LineNr"> 49 </span> <a href='../405screen.mu.html#L427'>print-int32-hex</a> <span class="Constant">0</span>, n +<span id="L50" class="LineNr"> 50 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> <span id="L51" class="LineNr"> 51 </span> <span class="Comment">#</span> <span id="L52" class="LineNr"> 52 </span> <span class="PreProc">loop</span> <span id="L53" class="LineNr"> 53 </span> <span class="Delimiter">}</span> @@ -308,7 +308,7 @@ if ('onhashchange' in window) { <span id="L249" class="LineNr">249 </span> compare look, <span class="Constant">0</span> <span id="L250" class="LineNr">250 </span> <span class="Delimiter">{</span> <span id="L251" class="LineNr">251 </span> <span class="PreProc">break-if-!=</span> -<span id="L252" class="LineNr">252 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"^D\n"</span> +<span id="L252" class="LineNr">252 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"^D\n"</span> <span id="L253" class="LineNr">253 </span> syscall_exit <span id="L254" class="LineNr">254 </span> <span class="Delimiter">}</span> <span id="L255" class="LineNr">255 </span><span class="Delimiter">}</span> |