diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-07-16 08:38:43 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-07-16 08:38:43 -0700 |
commit | 78357b8852626b510527f3b8d770a7dd8956fcc7 (patch) | |
tree | 5e38d0f616ab151e66618090487b41dd2fc348e0 | |
parent | 44d26b77c45668c9b0c99894a4294cec004361fe (diff) | |
download | mu-78357b8852626b510527f3b8d770a7dd8956fcc7.tar.gz |
.
241 files changed, 18695 insertions, 9375 deletions
diff --git a/html/101screen.subx.html b/html/101screen.subx.html index 9224d187..775988d0 100644 --- a/html/101screen.subx.html +++ b/html/101screen.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 101screen.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,14 +16,14 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -67,7 +67,7 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr">10 </span> 55/push-ebp <span id="L11" class="LineNr">11 </span> 89/<- %ebp 4/r32/esp <span id="L12" class="LineNr">12 </span> <span class="subxComment">#</span> -<span id="L13" class="LineNr">13 </span> (<a href='101screen.subx.html#L21'>pixel-on-screen-buffer</a> *<span class="SpecialChar"><a href='boot.subx.html#L650'>Video-memory-addr</a></span> *(ebp+8) *(ebp+0xc) *(ebp+0x10) 0x400 0x300) +<span id="L13" class="LineNr">13 </span> (<a href='101screen.subx.html#L21'>pixel-on-screen-buffer</a> *<span class="SpecialChar"><a href='boot.subx.html#L651'>Video-memory-addr</a></span> *(ebp+8) *(ebp+0xc) *(ebp+0x10) 0x400 0x300) <span id="L14" class="LineNr">14 </span><span class="Constant">$pixel-on-real-screen:end</span>: <span id="L15" class="LineNr">15 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L16" class="LineNr">16 </span> 89/<- %esp 5/r32/ebp diff --git a/html/102keyboard.subx.html b/html/102keyboard.subx.html index 59581ccf..f29e4697 100644 --- a/html/102keyboard.subx.html +++ b/html/102keyboard.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 102keyboard.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,14 +16,14 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/103grapheme.subx.html b/html/103grapheme.subx.html index d66a2253..39408b1a 100644 --- a/html/103grapheme.subx.html +++ b/html/103grapheme.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 103grapheme.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,14 +16,14 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -76,7 +76,7 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr"> 19 </span> 55/push-ebp <span id="L20" class="LineNr"> 20 </span> 89/<- %ebp 4/r32/esp <span id="L21" class="LineNr"> 21 </span> <span class="subxComment">#</span> -<span id="L22" class="LineNr"> 22 </span> (<a href='103grapheme.subx.html#L74'>draw-grapheme-on-screen-buffer</a> *<span class="SpecialChar"><a href='boot.subx.html#L650'>Video-memory-addr</a></span> *(ebp+8) *(ebp+0xc) *(ebp+0x10) *(ebp+0x14) *(ebp+0x18) 0x80 0x30) +<span id="L22" class="LineNr"> 22 </span> (<a href='103grapheme.subx.html#L74'>draw-grapheme-on-screen-buffer</a> *<span class="SpecialChar"><a href='boot.subx.html#L651'>Video-memory-addr</a></span> *(ebp+8) *(ebp+0xc) *(ebp+0x10) *(ebp+0x14) *(ebp+0x18) 0x80 0x30) <span id="L23" class="LineNr"> 23 </span><span class="Constant">$draw-grapheme-on-real-screen:end</span>: <span id="L24" class="LineNr"> 24 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L25" class="LineNr"> 25 </span> 89/<- %esp 5/r32/ebp @@ -148,7 +148,7 @@ if ('onhashchange' in window) { <span id="L91" class="LineNr"> 91 </span> 0f 8d/jump-if->= $draw-grapheme-on-screen-buffer:end/disp32 <span id="L92" class="LineNr"> 92 </span> <span class="subxComment"># var letter-bitmap/esi = font[g]</span> <span id="L93" class="LineNr"> 93 </span> c1 4/subop/shift-left %esi 4/imm8 -<span id="L94" class="LineNr"> 94 </span> 81 0/subop/add %esi <span class="SpecialChar"><a href='boot.subx.html#L671'>Font</a></span>/imm32 +<span id="L94" class="LineNr"> 94 </span> 81 0/subop/add %esi <span class="SpecialChar"><a href='boot.subx.html#L672'>Font</a></span>/imm32 <span id="L95" class="LineNr"> 95 </span> <span class="subxComment"># var ycurr/edx: int = y*16</span> <span id="L96" class="LineNr"> 96 </span> 8b/-> *(ebp+0x14) 2/r32/edx <span id="L97" class="LineNr"> 97 </span> c1 4/subop/shift-left %edx 4/imm8 diff --git a/html/104test.subx.html b/html/104test.subx.html index 2aef68ce..42e944f7 100644 --- a/html/104test.subx.html +++ b/html/104test.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 104test.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,14 +16,14 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/105string-equal.subx.html b/html/105string-equal.subx.html index aacbd272..60f0432f 100644 --- a/html/105string-equal.subx.html +++ b/html/105string-equal.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 105string-equal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/106stream.subx.html b/html/106stream.subx.html index 5d139555..75acb0c9 100644 --- a/html/106stream.subx.html +++ b/html/106stream.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 106stream.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/108write.subx.html b/html/108write.subx.html index 918b12c0..db7d73df 100644 --- a/html/108write.subx.html +++ b/html/108write.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 108write.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/109stream-equal.subx.html b/html/109stream-equal.subx.html index f61cd3a4..025c73ce 100644 --- a/html/109stream-equal.subx.html +++ b/html/109stream-equal.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 109stream-equal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/112read-byte.subx.html b/html/112read-byte.subx.html index 7fca7fa5..c639aa56 100644 --- a/html/112read-byte.subx.html +++ b/html/112read-byte.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 112read-byte.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .subxMinorFunction { color: #875f5f; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -106,12 +106,12 @@ if ('onhashchange' in window) { <span id="L47" class="LineNr"> 47 </span><span class="subxMinorFunction">_test-input-stream</span>: <span class="subxComment"># (stream byte)</span> <span id="L48" class="LineNr"> 48 </span> <span class="subxComment"># current write index</span> <span id="L49" class="LineNr"> 49 </span> 0/imm32 -<span id="L50" class="LineNr"> 50 </span> <span class="subxComment"># current read index</span> -<span id="L51" class="LineNr"> 51 </span> 0/imm32 -<span id="L52" class="LineNr"> 52 </span> <span class="subxComment"># size</span> -<span id="L53" class="LineNr"> 53 </span> 0x400/imm32 <span class="subxComment"># 1024 bytes</span> -<span id="L54" class="LineNr"> 54 </span> <span class="subxComment"># data (64 lines x 16 bytes/line)</span> -<span id="L55" class="LineNr"> 55 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +<span id="L50" class="LineNr"> 50 </span><span class="Constant">$_test-input-stream->read</span>: +<span id="L51" class="LineNr"> 51 </span> <span class="subxComment"># current read index</span> +<span id="L52" class="LineNr"> 52 </span> 0/imm32 +<span id="L53" class="LineNr"> 53 </span> <span class="subxComment"># size</span> +<span id="L54" class="LineNr"> 54 </span> 0x400/imm32 <span class="subxComment"># 1024 bytes</span> +<span id="L55" class="LineNr"> 55 </span> <span class="subxComment"># data (64 lines x 16 bytes/line)</span> <span id="L56" class="LineNr"> 56 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <span id="L57" class="LineNr"> 57 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <span id="L58" class="LineNr"> 58 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 @@ -175,8 +175,9 @@ if ('onhashchange' in window) { <span id="L116" class="LineNr">116 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <span id="L117" class="LineNr">117 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <span id="L118" class="LineNr">118 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -<span id="L119" class="LineNr">119 </span> -<span id="L120" class="LineNr">120 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +<span id="L119" class="LineNr">119 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +<span id="L120" class="LineNr">120 </span> +<span id="L121" class="LineNr">121 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> </pre> </body> </html> diff --git a/html/113write-stream.subx.html b/html/113write-stream.subx.html index 1354d75c..3449febb 100644 --- a/html/113write-stream.subx.html +++ b/html/113write-stream.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 113write-stream.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -123,7 +123,7 @@ if ('onhashchange' in window) { <span id="L63" class="LineNr"> 63 </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="L64" class="LineNr"> 64 </span> <span class="subxS1Comment"># . clear-stream(_test-stream2)</span> <span id="L65" class="LineNr"> 65 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L66" class="LineNr"> 66 </span> 68/push <a href='113write-stream.subx.html#L163'>_test-stream2</a>/imm32 +<span id="L66" class="LineNr"> 66 </span> 68/push <a href='113write-stream.subx.html#L210'>_test-stream2</a>/imm32 <span id="L67" class="LineNr"> 67 </span> <span class="subxS2Comment"># . . call</span> <span id="L68" class="LineNr"> 68 </span> e8/call <a href='106stream.subx.html#L20'>clear-stream</a>/disp32 <span id="L69" class="LineNr"> 69 </span> <span class="subxS2Comment"># . . discard args</span> @@ -131,14 +131,14 @@ if ('onhashchange' in window) { <span id="L71" class="LineNr"> 71 </span> <span class="subxS1Comment"># . write(_test-stream2, "Ab")</span> <span id="L72" class="LineNr"> 72 </span> <span class="subxS2Comment"># . . push args</span> <span id="L73" class="LineNr"> 73 </span> 68/push <span class="Constant">"Ab"</span>/imm32 -<span id="L74" class="LineNr"> 74 </span> 68/push <a href='113write-stream.subx.html#L163'>_test-stream2</a>/imm32 +<span id="L74" class="LineNr"> 74 </span> 68/push <a href='113write-stream.subx.html#L210'>_test-stream2</a>/imm32 <span id="L75" class="LineNr"> 75 </span> <span class="subxS2Comment"># . . call</span> <span id="L76" class="LineNr"> 76 </span> e8/call <a href='108write.subx.html#L11'>write</a>/disp32 <span id="L77" class="LineNr"> 77 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L78" class="LineNr"> 78 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L79" class="LineNr"> 79 </span> <span class="subxComment"># write-stream(_test-stream, _test-stream2)</span> <span id="L80" class="LineNr"> 80 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L81" class="LineNr"> 81 </span> 68/push <a href='113write-stream.subx.html#L163'>_test-stream2</a>/imm32 +<span id="L81" class="LineNr"> 81 </span> 68/push <a href='113write-stream.subx.html#L210'>_test-stream2</a>/imm32 <span id="L82" class="LineNr"> 82 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 <span id="L83" class="LineNr"> 83 </span> <span class="subxS2Comment"># . . call</span> <span id="L84" class="LineNr"> 84 </span> e8/call <a href='113write-stream.subx.html#L8'>write-stream</a>/disp32 @@ -167,7 +167,7 @@ if ('onhashchange' in window) { <span id="L107" class="LineNr">107 </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="L108" class="LineNr">108 </span> <span class="subxS1Comment"># . clear-stream(_test-stream2)</span> <span id="L109" class="LineNr">109 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L110" class="LineNr">110 </span> 68/push <a href='113write-stream.subx.html#L163'>_test-stream2</a>/imm32 +<span id="L110" class="LineNr">110 </span> 68/push <a href='113write-stream.subx.html#L210'>_test-stream2</a>/imm32 <span id="L111" class="LineNr">111 </span> <span class="subxS2Comment"># . . call</span> <span id="L112" class="LineNr">112 </span> e8/call <a href='106stream.subx.html#L20'>clear-stream</a>/disp32 <span id="L113" class="LineNr">113 </span> <span class="subxS2Comment"># . . discard args</span> @@ -175,7 +175,7 @@ if ('onhashchange' in window) { <span id="L115" class="LineNr">115 </span> <span class="subxS1Comment"># . write(_test-stream2, "C")</span> <span id="L116" class="LineNr">116 </span> <span class="subxS2Comment"># . . push args</span> <span id="L117" class="LineNr">117 </span> 68/push <span class="Constant">"C"</span>/imm32 -<span id="L118" class="LineNr">118 </span> 68/push <a href='113write-stream.subx.html#L163'>_test-stream2</a>/imm32 +<span id="L118" class="LineNr">118 </span> 68/push <a href='113write-stream.subx.html#L210'>_test-stream2</a>/imm32 <span id="L119" class="LineNr">119 </span> <span class="subxS2Comment"># . . call</span> <span id="L120" class="LineNr">120 </span> e8/call <a href='108write.subx.html#L11'>write</a>/disp32 <span id="L121" class="LineNr">121 </span> <span class="subxS2Comment"># . . discard args</span> @@ -183,7 +183,7 @@ if ('onhashchange' in window) { <span id="L123" class="LineNr">123 </span> <span class="subxComment"># first write</span> <span id="L124" class="LineNr">124 </span> <span class="subxS1Comment"># . write-stream(_test-stream, _test-stream2)</span> <span id="L125" class="LineNr">125 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L126" class="LineNr">126 </span> 68/push <a href='113write-stream.subx.html#L163'>_test-stream2</a>/imm32 +<span id="L126" class="LineNr">126 </span> 68/push <a href='113write-stream.subx.html#L210'>_test-stream2</a>/imm32 <span id="L127" class="LineNr">127 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 <span id="L128" class="LineNr">128 </span> <span class="subxS2Comment"># . . call</span> <span id="L129" class="LineNr">129 </span> e8/call <a href='113write-stream.subx.html#L8'>write-stream</a>/disp32 @@ -193,14 +193,14 @@ if ('onhashchange' in window) { <span id="L133" class="LineNr">133 </span> <span class="subxS1Comment"># . write(_test-stream2, "D")</span> <span id="L134" class="LineNr">134 </span> <span class="subxS2Comment"># . . push args</span> <span id="L135" class="LineNr">135 </span> 68/push <span class="Constant">"D"</span>/imm32 -<span id="L136" class="LineNr">136 </span> 68/push <a href='113write-stream.subx.html#L163'>_test-stream2</a>/imm32 +<span id="L136" class="LineNr">136 </span> 68/push <a href='113write-stream.subx.html#L210'>_test-stream2</a>/imm32 <span id="L137" class="LineNr">137 </span> <span class="subxS2Comment"># . . call</span> <span id="L138" class="LineNr">138 </span> e8/call <a href='108write.subx.html#L11'>write</a>/disp32 <span id="L139" class="LineNr">139 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L140" class="LineNr">140 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L141" class="LineNr">141 </span> <span class="subxS1Comment"># . write-stream(_test-stream, _test-stream2)</span> <span id="L142" class="LineNr">142 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L143" class="LineNr">143 </span> 68/push <a href='113write-stream.subx.html#L163'>_test-stream2</a>/imm32 +<span id="L143" class="LineNr">143 </span> 68/push <a href='113write-stream.subx.html#L210'>_test-stream2</a>/imm32 <span id="L144" class="LineNr">144 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 <span id="L145" class="LineNr">145 </span> <span class="subxS2Comment"># . . call</span> <span id="L146" class="LineNr">146 </span> e8/call <a href='113write-stream.subx.html#L8'>write-stream</a>/disp32 @@ -218,19 +218,66 @@ if ('onhashchange' in window) { <span id="L158" class="LineNr">158 </span> <span class="subxS1Comment"># . end</span> <span id="L159" class="LineNr">159 </span> c3/return <span id="L160" class="LineNr">160 </span> -<span id="L161" class="LineNr">161 </span>== data -<span id="L162" class="LineNr">162 </span> -<span id="L163" class="LineNr">163 </span><span class="subxMinorFunction">_test-stream2</span>: <span class="subxComment"># (stream byte)</span> -<span id="L164" class="LineNr">164 </span> <span class="subxComment"># current write index</span> -<span id="L165" class="LineNr">165 </span> 4/imm32 -<span id="L166" class="LineNr">166 </span> <span class="subxComment"># current read index</span> -<span id="L167" class="LineNr">167 </span> 1/imm32 -<span id="L168" class="LineNr">168 </span> <span class="subxComment"># size</span> -<span id="L169" class="LineNr">169 </span> 8/imm32 -<span id="L170" class="LineNr">170 </span> <span class="subxComment"># data</span> -<span id="L171" class="LineNr">171 </span> 41/A 42/B 43/C 44/D 00 00 00 00 <span class="subxComment"># 8 bytes</span> -<span id="L172" class="LineNr">172 </span> -<span id="L173" class="LineNr">173 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +<span id="L161" class="LineNr">161 </span><span class="subxComment"># like write-stream, but don't update s->read</span> +<span id="L162" class="LineNr">162 </span><span class="subxComment"># is there a better name for this?</span> +<span id="L163" class="LineNr">163 </span><span class="subxFunction">write-stream-immutable</span>: <span class="subxComment"># f: (addr stream byte), s: (addr stream byte)</span> +<span id="L164" class="LineNr">164 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L165" class="LineNr">165 </span> 55/push-ebp +<span id="L166" class="LineNr">166 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L167" class="LineNr">167 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L168" class="LineNr">168 </span> 50/push-eax +<span id="L169" class="LineNr">169 </span> 56/push-esi +<span id="L170" class="LineNr">170 </span> 57/push-edi +<span id="L171" class="LineNr">171 </span> <span class="subxComment"># edi = f</span> +<span id="L172" class="LineNr">172 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 7/r32/edi 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to edi</span> +<span id="L173" class="LineNr">173 </span> <span class="subxComment"># esi = s</span> +<span id="L174" class="LineNr">174 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/esi 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+12) to esi</span> +<span id="L175" class="LineNr">175 </span> <span class="subxComment"># eax = _append-4(&f->data[f->write], &f->data[f->size], &s->data[s->read], &s->data[s->write])</span> +<span id="L176" class="LineNr">176 </span> <span class="subxS2Comment"># . . push &s->data[s->write]</span> +<span id="L177" class="LineNr">177 </span> 8b/copy 0/mod/indirect 6/rm32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *esi to eax</span> +<span id="L178" class="LineNr">178 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 6/base/esi 0/index/eax <span class="Normal"> . </span> 0/r32/eax 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy esi+eax+12 to eax</span> +<span id="L179" class="LineNr">179 </span> 50/push-eax +<span id="L180" class="LineNr">180 </span> <span class="subxS2Comment"># . . push &s->data[s->read]</span> +<span id="L181" class="LineNr">181 </span> 8b/copy 1/mod/*+disp8 6/rm32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(esi+4) to eax</span> +<span id="L182" class="LineNr">182 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 6/base/esi 0/index/eax <span class="Normal"> . </span> 0/r32/eax 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy esi+eax+12 to eax</span> +<span id="L183" class="LineNr">183 </span> 50/push-eax +<span id="L184" class="LineNr">184 </span> <span class="subxS2Comment"># . . push &f->data[f->size]</span> +<span id="L185" class="LineNr">185 </span> 8b/copy 1/mod/*+disp8 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(edi+8) to eax</span> +<span id="L186" class="LineNr">186 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/edi 0/index/eax <span class="Normal"> . </span> 0/r32/eax 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy edi+eax+12 to eax</span> +<span id="L187" class="LineNr">187 </span> 50/push-eax +<span id="L188" class="LineNr">188 </span> <span class="subxS2Comment"># . . push &f->data[f->write]</span> +<span id="L189" class="LineNr">189 </span> 8b/copy 0/mod/indirect 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *edi to eax</span> +<span id="L190" class="LineNr">190 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/edi 0/index/eax <span class="Normal"> . </span> 0/r32/eax 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy edi+eax+12 to eax</span> +<span id="L191" class="LineNr">191 </span> 50/push-eax +<span id="L192" class="LineNr">192 </span> <span class="subxS2Comment"># . . call</span> +<span id="L193" class="LineNr">193 </span> e8/call <a href='108write.subx.html#L257'>_append-4</a>/disp32 +<span id="L194" class="LineNr">194 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L195" class="LineNr">195 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L196" class="LineNr">196 </span> <span class="subxComment"># f->write += eax</span> +<span id="L197" class="LineNr">197 </span> 01/add 0/mod/indirect 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># add eax to *edi</span> +<span id="L198" class="LineNr">198 </span><span class="Constant">$write-stream-immutable:end</span>: +<span id="L199" class="LineNr">199 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L200" class="LineNr">200 </span> 5f/pop-to-edi +<span id="L201" class="LineNr">201 </span> 5e/pop-to-esi +<span id="L202" class="LineNr">202 </span> 58/pop-to-eax +<span id="L203" class="LineNr">203 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L204" class="LineNr">204 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L205" class="LineNr">205 </span> 5d/pop-to-ebp +<span id="L206" class="LineNr">206 </span> c3/return +<span id="L207" class="LineNr">207 </span> +<span id="L208" class="LineNr">208 </span>== data +<span id="L209" class="LineNr">209 </span> +<span id="L210" class="LineNr">210 </span><span class="subxMinorFunction">_test-stream2</span>: <span class="subxComment"># (stream byte)</span> +<span id="L211" class="LineNr">211 </span> <span class="subxComment"># current write index</span> +<span id="L212" class="LineNr">212 </span> 4/imm32 +<span id="L213" class="LineNr">213 </span> <span class="subxComment"># current read index</span> +<span id="L214" class="LineNr">214 </span> 1/imm32 +<span id="L215" class="LineNr">215 </span> <span class="subxComment"># size</span> +<span id="L216" class="LineNr">216 </span> 8/imm32 +<span id="L217" class="LineNr">217 </span> <span class="subxComment"># data</span> +<span id="L218" class="LineNr">218 </span> 41/A 42/B 43/C 44/D 00 00 00 00 <span class="subxComment"># 8 bytes</span> +<span id="L219" class="LineNr">219 </span> +<span id="L220" class="LineNr">220 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> </pre> </body> </html> diff --git a/html/115write-byte.subx.html b/html/115write-byte.subx.html index 45a38e59..c6f8a8b9 100644 --- a/html/115write-byte.subx.html +++ b/html/115write-byte.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 115write-byte.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/117write-int-hex.subx.html b/html/117write-int-hex.subx.html index 5dcaff3d..1ffc2d02 100644 --- a/html/117write-int-hex.subx.html +++ b/html/117write-int-hex.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 117write-int-hex.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } +.subxS1Comment { color: #0000af; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/118parse-hex-int.subx.html b/html/118parse-hex-int.subx.html index ac7be799..aa31384e 100644 --- a/html/118parse-hex-int.subx.html +++ b/html/118parse-hex-int.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 118parse-hex-int.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/120allocate.subx.html b/html/120allocate.subx.html index 7151ebec..03ac3047 100644 --- a/html/120allocate.subx.html +++ b/html/120allocate.subx.html @@ -1,33 +1,33 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 120allocate.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } .Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.subxS2Comment { color: #8a8a8a; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/121new-stream.subx.html b/html/121new-stream.subx.html index 65f826e7..37e05045 100644 --- a/html/121new-stream.subx.html +++ b/html/121new-stream.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 121new-stream.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/123slice.subx.html b/html/123slice.subx.html index 1ad943d7..8574ce8f 100644 --- a/html/123slice.subx.html +++ b/html/123slice.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 123slice.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,17 +17,17 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -1071,7 +1071,7 @@ if ('onhashchange' in window) { <span id="L1010" class="LineNr">1010 </span> 8b/copy 1/mod/*+disp8 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebx+4) to eax</span> <span id="L1011" class="LineNr">1011 </span> <span class="subxComment"># skip payload->allocid</span> <span id="L1012" class="LineNr">1012 </span> 05/add-to-eax 4/imm32 -<span id="L1013" class="Folded">1013 </span><span class="Folded">+-- 26 lines: #? # dump eax ---------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1013" class="Folded">1013 </span><span class="Folded">+-- 26 lines: #? # dump eax --------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1039" class="LineNr">1039 </span> <span class="subxComment"># eax = string-equal?(eax, "Abc")</span> <span id="L1040" class="LineNr">1040 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1041" class="LineNr">1041 </span> 68/push <span class="Constant">"Abc"</span>/imm32 diff --git a/html/124next-token.subx.html b/html/124next-token.subx.html index 3c1f3fb0..63b6e968 100644 --- a/html/124next-token.subx.html +++ b/html/124next-token.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 124next-token.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/126write-int-decimal.subx.html b/html/126write-int-decimal.subx.html index ca40a39d..c861199e 100644 --- a/html/126write-int-decimal.subx.html +++ b/html/126write-int-decimal.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 126write-int-decimal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,17 +17,17 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -286,7 +286,7 @@ if ('onhashchange' in window) { <span id="L225" class="LineNr">225 </span> e8/call <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a>/disp32 <span id="L226" class="LineNr">226 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L227" class="LineNr">227 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L228" class="Folded">228 </span><span class="Folded">+-- 26 lines: #? # dump _test-stream ------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L228" class="Folded">228 </span><span class="Folded">+-- 26 lines: #? # dump _test-stream -----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L254" class="LineNr">254 </span> <span class="subxComment"># check-stream-equal(_test-stream, "-9", msg)</span> <span id="L255" class="LineNr">255 </span> <span class="subxS2Comment"># . . push args</span> <span id="L256" class="LineNr">256 </span> 68/push <span class="Constant">"F - test-write-int32-decimal-negative"</span>/imm32 @@ -299,163 +299,194 @@ if ('onhashchange' in window) { <span id="L263" class="LineNr">263 </span> <span class="subxS1Comment"># . end</span> <span id="L264" class="LineNr">264 </span> c3/return <span id="L265" class="LineNr">265 </span> -<span id="L266" class="LineNr">266 </span><span class="subxTest">test-write-int32-decimal-negative-multiple-digits</span>: -<span id="L267" class="LineNr">267 </span> <span class="subxH1Comment"># - check that a multi-digit number converts correctly</span> -<span id="L268" class="LineNr">268 </span> <span class="subxComment"># setup</span> -<span id="L269" class="LineNr">269 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> -<span id="L270" class="LineNr">270 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L271" class="LineNr">271 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 -<span id="L272" class="LineNr">272 </span> <span class="subxS2Comment"># . . call</span> -<span id="L273" class="LineNr">273 </span> e8/call <a href='106stream.subx.html#L20'>clear-stream</a>/disp32 -<span id="L274" class="LineNr">274 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L275" class="LineNr">275 </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="L276" class="LineNr">276 </span> <span class="subxComment"># write-int32-decimal(_test-stream, -10)</span> -<span id="L277" class="LineNr">277 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L278" class="LineNr">278 </span> 68/push -0xa/imm32 -<span id="L279" class="LineNr">279 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 -<span id="L280" class="LineNr">280 </span> <span class="subxS2Comment"># . . call</span> -<span id="L281" class="LineNr">281 </span> e8/call <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a>/disp32 -<span id="L282" class="LineNr">282 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L283" class="LineNr">283 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L284" class="LineNr">284 </span> <span class="subxComment"># check-stream-equal(_test-stream, "-10", msg)</span> -<span id="L285" class="LineNr">285 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L286" class="LineNr">286 </span> 68/push <span class="Constant">"F - test-write-int32-decimal-negative-multiple-digits"</span>/imm32 -<span id="L287" class="LineNr">287 </span> 68/push <span class="Constant">"-10"</span>/imm32 -<span id="L288" class="LineNr">288 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 -<span id="L289" class="LineNr">289 </span> <span class="subxS2Comment"># . . call</span> -<span id="L290" class="LineNr">290 </span> e8/call <a href='109stream-equal.subx.html#L194'>check-stream-equal</a>/disp32 -<span id="L291" class="LineNr">291 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L292" class="LineNr">292 </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="L293" class="LineNr">293 </span> <span class="subxS1Comment"># . end</span> -<span id="L294" class="LineNr">294 </span> c3/return -<span id="L295" class="LineNr">295 </span> -<span id="L296" class="LineNr">296 </span><span class="subxFunction">decimal-digit?</span>: <span class="subxComment"># c: grapheme -> result/eax: boolean</span> -<span id="L297" class="LineNr">297 </span> <span class="subxS1Comment"># . prologue</span> -<span id="L298" class="LineNr">298 </span> 55/push-ebp -<span id="L299" class="LineNr">299 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> -<span id="L300" class="LineNr">300 </span> <span class="subxS1Comment"># . save registers</span> -<span id="L301" class="LineNr">301 </span> 51/push-ecx -<span id="L302" class="LineNr">302 </span> <span class="subxComment"># ecx = c</span> -<span id="L303" class="LineNr">303 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to ecx</span> -<span id="L304" class="LineNr">304 </span> <span class="subxComment"># result = false</span> -<span id="L305" class="LineNr">305 </span> b8/copy-to-eax 0/imm32/false -<span id="L306" class="LineNr">306 </span> <span class="subxComment"># return false if c < '0'</span> -<span id="L307" class="LineNr">307 </span> 81 7/subop/compare 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x30/imm32 <span class="subxComment"># compare ecx</span> -<span id="L308" class="LineNr">308 </span> 7c/jump-if-< $decimal-digit?:end/disp8 -<span id="L309" class="LineNr">309 </span> <span class="subxComment"># return (c <= '9')</span> -<span id="L310" class="LineNr">310 </span> 81 7/subop/compare 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x39/imm32 <span class="subxComment"># compare ecx</span> -<span id="L311" class="LineNr">311 </span> 7f/jump-if-> $decimal-digit?:end/disp8 -<span id="L312" class="LineNr">312 </span><span class="Constant">$decimal-digit?:true</span>: -<span id="L313" class="LineNr">313 </span> b8/copy-to-eax 1/imm32/true -<span id="L314" class="LineNr">314 </span><span class="Constant">$decimal-digit?:end</span>: -<span id="L315" class="LineNr">315 </span> <span class="subxS1Comment"># . restore registers</span> -<span id="L316" class="LineNr">316 </span> 59/pop-to-ecx -<span id="L317" class="LineNr">317 </span> <span class="subxS1Comment"># . epilogue</span> -<span id="L318" class="LineNr">318 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> -<span id="L319" class="LineNr">319 </span> 5d/pop-to-ebp -<span id="L320" class="LineNr">320 </span> c3/return -<span id="L321" class="LineNr">321 </span> -<span id="L322" class="LineNr">322 </span><span class="subxTest">test-decimal-digit-below-0</span>: -<span id="L323" class="LineNr">323 </span> <span class="subxComment"># eax = decimal-digit?(0x2f)</span> -<span id="L324" class="LineNr">324 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L325" class="LineNr">325 </span> 68/push 0x2f/imm32 -<span id="L326" class="LineNr">326 </span> <span class="subxS2Comment"># . . call</span> -<span id="L327" class="LineNr">327 </span> e8/call <a href='126write-int-decimal.subx.html#L296'>decimal-digit?</a>/disp32 -<span id="L328" class="LineNr">328 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L329" class="LineNr">329 </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="L330" class="LineNr">330 </span> <span class="subxComment"># check-ints-equal(eax, 0, msg)</span> -<span id="L331" class="LineNr">331 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L332" class="LineNr">332 </span> 68/push <span class="Constant">"F - test-decimal-digit-below-0"</span>/imm32 -<span id="L333" class="LineNr">333 </span> 68/push 0/imm32/false -<span id="L334" class="LineNr">334 </span> 50/push-eax -<span id="L335" class="LineNr">335 </span> <span class="subxS2Comment"># . . call</span> -<span id="L336" class="LineNr">336 </span> e8/call <a href='502test.mu.html#L2'>check-ints-equal</a>/disp32 -<span id="L337" class="LineNr">337 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L338" class="LineNr">338 </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="L339" class="LineNr">339 </span> c3/return -<span id="L340" class="LineNr">340 </span> -<span id="L341" class="LineNr">341 </span><span class="subxTest">test-decimal-digit-0-to-9</span>: -<span id="L342" class="LineNr">342 </span> <span class="subxComment"># eax = decimal-digit?(0x30)</span> -<span id="L343" class="LineNr">343 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L344" class="LineNr">344 </span> 68/push 0x30/imm32 -<span id="L345" class="LineNr">345 </span> <span class="subxS2Comment"># . . call</span> -<span id="L346" class="LineNr">346 </span> e8/call <a href='126write-int-decimal.subx.html#L296'>decimal-digit?</a>/disp32 -<span id="L347" class="LineNr">347 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L348" class="LineNr">348 </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="L349" class="LineNr">349 </span> <span class="subxComment"># check-ints-equal(eax, 1, msg)</span> -<span id="L350" class="LineNr">350 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L351" class="LineNr">351 </span> 68/push <span class="Constant">"F - test-decimal-digit-at-0"</span>/imm32 -<span id="L352" class="LineNr">352 </span> 68/push 1/imm32/true -<span id="L353" class="LineNr">353 </span> 50/push-eax -<span id="L354" class="LineNr">354 </span> <span class="subxS2Comment"># . . call</span> -<span id="L355" class="LineNr">355 </span> e8/call <a href='502test.mu.html#L2'>check-ints-equal</a>/disp32 -<span id="L356" class="LineNr">356 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L357" class="LineNr">357 </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="L358" class="LineNr">358 </span> <span class="subxComment"># eax = decimal-digit?(0x39)</span> -<span id="L359" class="LineNr">359 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L360" class="LineNr">360 </span> 68/push 0x39/imm32 -<span id="L361" class="LineNr">361 </span> <span class="subxS2Comment"># . . call</span> -<span id="L362" class="LineNr">362 </span> e8/call <a href='126write-int-decimal.subx.html#L296'>decimal-digit?</a>/disp32 -<span id="L363" class="LineNr">363 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L364" class="LineNr">364 </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="L365" class="LineNr">365 </span> <span class="subxComment"># check-ints-equal(eax, 1, msg)</span> -<span id="L366" class="LineNr">366 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L367" class="LineNr">367 </span> 68/push <span class="Constant">"F - test-decimal-digit-at-9"</span>/imm32 -<span id="L368" class="LineNr">368 </span> 68/push 1/imm32/true -<span id="L369" class="LineNr">369 </span> 50/push-eax -<span id="L370" class="LineNr">370 </span> <span class="subxS2Comment"># . . call</span> -<span id="L371" class="LineNr">371 </span> e8/call <a href='502test.mu.html#L2'>check-ints-equal</a>/disp32 -<span id="L372" class="LineNr">372 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L373" class="LineNr">373 </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="L374" class="LineNr">374 </span> c3/return -<span id="L375" class="LineNr">375 </span> -<span id="L376" class="LineNr">376 </span><span class="subxTest">test-decimal-digit-above-9</span>: -<span id="L377" class="LineNr">377 </span> <span class="subxComment"># eax = decimal-digit?(0x3a)</span> -<span id="L378" class="LineNr">378 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L379" class="LineNr">379 </span> 68/push 0x3a/imm32 -<span id="L380" class="LineNr">380 </span> <span class="subxS2Comment"># . . call</span> -<span id="L381" class="LineNr">381 </span> e8/call <a href='126write-int-decimal.subx.html#L296'>decimal-digit?</a>/disp32 -<span id="L382" class="LineNr">382 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L383" class="LineNr">383 </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="L384" class="LineNr">384 </span> <span class="subxComment"># check-ints-equal(eax, 0, msg)</span> -<span id="L385" class="LineNr">385 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L386" class="LineNr">386 </span> 68/push <span class="Constant">"F - test-decimal-digit-above-9"</span>/imm32 -<span id="L387" class="LineNr">387 </span> 68/push 0/imm32/false -<span id="L388" class="LineNr">388 </span> 50/push-eax -<span id="L389" class="LineNr">389 </span> <span class="subxS2Comment"># . . call</span> -<span id="L390" class="LineNr">390 </span> e8/call <a href='502test.mu.html#L2'>check-ints-equal</a>/disp32 -<span id="L391" class="LineNr">391 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L392" class="LineNr">392 </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="L393" class="LineNr">393 </span> c3/return -<span id="L394" class="LineNr">394 </span> -<span id="L395" class="LineNr">395 </span><span class="subxFunction">to-decimal-digit</span>: <span class="subxComment"># in: grapheme -> out/eax: int</span> -<span id="L396" class="LineNr">396 </span> <span class="subxS1Comment"># . prologue</span> -<span id="L397" class="LineNr">397 </span> 55/push-ebp -<span id="L398" class="LineNr">398 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> -<span id="L399" class="LineNr">399 </span> <span class="subxComment"># eax = in</span> -<span id="L400" class="LineNr">400 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to eax</span> -<span id="L401" class="LineNr">401 </span><span class="Constant">$to-decimal-digit:check0</span>: -<span id="L402" class="LineNr">402 </span> <span class="subxComment"># if (eax < '0') goto abort</span> -<span id="L403" class="LineNr">403 </span> 3d/compare-eax-with 0x30/imm32/0 -<span id="L404" class="LineNr">404 </span> 7c/jump-if-< $to-decimal-digit:<a href='317abort.subx.html#L5'>abort</a>/disp8 -<span id="L405" class="LineNr">405 </span><span class="Constant">$to-decimal-digit:check1</span>: -<span id="L406" class="LineNr">406 </span> <span class="subxComment"># if (eax > '9') goto abort</span> -<span id="L407" class="LineNr">407 </span> 3d/compare-eax-with 0x39/imm32/f -<span id="L408" class="LineNr">408 </span> 7f/jump-if-> $to-decimal-digit:<a href='317abort.subx.html#L5'>abort</a>/disp8 -<span id="L409" class="LineNr">409 </span><span class="Constant">$to-decimal-digit:digit</span>: -<span id="L410" class="LineNr">410 </span> <span class="subxComment"># return eax - '0'</span> -<span id="L411" class="LineNr">411 </span> 2d/subtract-from-eax 0x30/imm32/0 -<span id="L412" class="LineNr">412 </span><span class="Constant">$to-decimal-digit:end</span>: -<span id="L413" class="LineNr">413 </span> <span class="subxS1Comment"># . epilogue</span> -<span id="L414" class="LineNr">414 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> -<span id="L415" class="LineNr">415 </span> 5d/pop-to-ebp -<span id="L416" class="LineNr">416 </span> c3/return -<span id="L417" class="LineNr">417 </span> -<span id="L418" class="LineNr">418 </span><span class="Constant">$to-decimal-digit:<a href='317abort.subx.html#L5'>abort</a></span>: -<span id="L419" class="LineNr">419 </span> (<a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"to-decimal-digit: not a digit character"</span>) -<span id="L420" class="LineNr">420 </span> <span class="subxComment"># never gets here</span> -<span id="L421" class="LineNr">421 </span> -<span id="L422" class="LineNr">422 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +<span id="L266" class="LineNr">266 </span><span class="subxComment"># There's a special bit pattern that corresponds to no 2's complement integer.</span> +<span id="L267" class="LineNr">267 </span><span class="subxComment"># There doesn't seem to be a widespread convention for representing it.</span> +<span id="L268" class="LineNr">268 </span><span class="subxTest">test-write-int32-decimal-indefinite-integer</span>: +<span id="L269" class="LineNr">269 </span> <span class="subxComment"># setup</span> +<span id="L270" class="LineNr">270 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L271" class="LineNr">271 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L272" class="LineNr">272 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 +<span id="L273" class="LineNr">273 </span> <span class="subxS2Comment"># . . call</span> +<span id="L274" class="LineNr">274 </span> e8/call <a href='106stream.subx.html#L20'>clear-stream</a>/disp32 +<span id="L275" class="LineNr">275 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L276" class="LineNr">276 </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="L277" class="LineNr">277 </span> <span class="subxComment"># write-int32-decimal(_test-stream, 0x80000000)</span> +<span id="L278" class="LineNr">278 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L279" class="LineNr">279 </span> 68/push 0x80000000/imm32 +<span id="L280" class="LineNr">280 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 +<span id="L281" class="LineNr">281 </span> <span class="subxS2Comment"># . . call</span> +<span id="L282" class="LineNr">282 </span> e8/call <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a>/disp32 +<span id="L283" class="LineNr">283 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L284" class="LineNr">284 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L285" class="LineNr">285 </span> <span class="subxComment"># check-stream-equal(_test-stream, "-(", msg)</span> +<span id="L286" class="LineNr">286 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L287" class="LineNr">287 </span> 68/push <span class="Constant">"F - test-write-int32-decimal-indefinite-integer"</span>/imm32 +<span id="L288" class="LineNr">288 </span> 68/push <span class="Constant">"-("</span>/imm32 +<span id="L289" class="LineNr">289 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 +<span id="L290" class="LineNr">290 </span> <span class="subxS2Comment"># . . call</span> +<span id="L291" class="LineNr">291 </span> e8/call <a href='109stream-equal.subx.html#L194'>check-stream-equal</a>/disp32 +<span id="L292" class="LineNr">292 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L293" class="LineNr">293 </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="L294" class="LineNr">294 </span> <span class="subxS1Comment"># . end</span> +<span id="L295" class="LineNr">295 </span> c3/return +<span id="L296" class="LineNr">296 </span> +<span id="L297" class="LineNr">297 </span><span class="subxTest">test-write-int32-decimal-negative-multiple-digits</span>: +<span id="L298" class="LineNr">298 </span> <span class="subxH1Comment"># - check that a multi-digit number converts correctly</span> +<span id="L299" class="LineNr">299 </span> <span class="subxComment"># setup</span> +<span id="L300" class="LineNr">300 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L301" class="LineNr">301 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L302" class="LineNr">302 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 +<span id="L303" class="LineNr">303 </span> <span class="subxS2Comment"># . . call</span> +<span id="L304" class="LineNr">304 </span> e8/call <a href='106stream.subx.html#L20'>clear-stream</a>/disp32 +<span id="L305" class="LineNr">305 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L306" class="LineNr">306 </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="L307" class="LineNr">307 </span> <span class="subxComment"># write-int32-decimal(_test-stream, -10)</span> +<span id="L308" class="LineNr">308 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L309" class="LineNr">309 </span> 68/push -0xa/imm32 +<span id="L310" class="LineNr">310 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 +<span id="L311" class="LineNr">311 </span> <span class="subxS2Comment"># . . call</span> +<span id="L312" class="LineNr">312 </span> e8/call <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a>/disp32 +<span id="L313" class="LineNr">313 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L314" class="LineNr">314 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L315" class="LineNr">315 </span> <span class="subxComment"># check-stream-equal(_test-stream, "-10", msg)</span> +<span id="L316" class="LineNr">316 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L317" class="LineNr">317 </span> 68/push <span class="Constant">"F - test-write-int32-decimal-negative-multiple-digits"</span>/imm32 +<span id="L318" class="LineNr">318 </span> 68/push <span class="Constant">"-10"</span>/imm32 +<span id="L319" class="LineNr">319 </span> 68/push <a href='108write.subx.html#L125'>_test-stream</a>/imm32 +<span id="L320" class="LineNr">320 </span> <span class="subxS2Comment"># . . call</span> +<span id="L321" class="LineNr">321 </span> e8/call <a href='109stream-equal.subx.html#L194'>check-stream-equal</a>/disp32 +<span id="L322" class="LineNr">322 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L323" class="LineNr">323 </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="L324" class="LineNr">324 </span> <span class="subxS1Comment"># . end</span> +<span id="L325" class="LineNr">325 </span> c3/return +<span id="L326" class="LineNr">326 </span> +<span id="L327" class="LineNr">327 </span><span class="subxFunction">decimal-digit?</span>: <span class="subxComment"># c: grapheme -> result/eax: boolean</span> +<span id="L328" class="LineNr">328 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L329" class="LineNr">329 </span> 55/push-ebp +<span id="L330" class="LineNr">330 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L331" class="LineNr">331 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L332" class="LineNr">332 </span> 51/push-ecx +<span id="L333" class="LineNr">333 </span> <span class="subxComment"># ecx = c</span> +<span id="L334" class="LineNr">334 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to ecx</span> +<span id="L335" class="LineNr">335 </span> <span class="subxComment"># result = false</span> +<span id="L336" class="LineNr">336 </span> b8/copy-to-eax 0/imm32/false +<span id="L337" class="LineNr">337 </span> <span class="subxComment"># return false if c < '0'</span> +<span id="L338" class="LineNr">338 </span> 81 7/subop/compare 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x30/imm32 <span class="subxComment"># compare ecx</span> +<span id="L339" class="LineNr">339 </span> 7c/jump-if-< $decimal-digit?:end/disp8 +<span id="L340" class="LineNr">340 </span> <span class="subxComment"># return (c <= '9')</span> +<span id="L341" class="LineNr">341 </span> 81 7/subop/compare 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x39/imm32 <span class="subxComment"># compare ecx</span> +<span id="L342" class="LineNr">342 </span> 7f/jump-if-> $decimal-digit?:end/disp8 +<span id="L343" class="LineNr">343 </span><span class="Constant">$decimal-digit?:true</span>: +<span id="L344" class="LineNr">344 </span> b8/copy-to-eax 1/imm32/true +<span id="L345" class="LineNr">345 </span><span class="Constant">$decimal-digit?:end</span>: +<span id="L346" class="LineNr">346 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L347" class="LineNr">347 </span> 59/pop-to-ecx +<span id="L348" class="LineNr">348 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L349" class="LineNr">349 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L350" class="LineNr">350 </span> 5d/pop-to-ebp +<span id="L351" class="LineNr">351 </span> c3/return +<span id="L352" class="LineNr">352 </span> +<span id="L353" class="LineNr">353 </span><span class="subxTest">test-decimal-digit-below-0</span>: +<span id="L354" class="LineNr">354 </span> <span class="subxComment"># eax = decimal-digit?(0x2f)</span> +<span id="L355" class="LineNr">355 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L356" class="LineNr">356 </span> 68/push 0x2f/imm32 +<span id="L357" class="LineNr">357 </span> <span class="subxS2Comment"># . . call</span> +<span id="L358" class="LineNr">358 </span> e8/call <a href='126write-int-decimal.subx.html#L327'>decimal-digit?</a>/disp32 +<span id="L359" class="LineNr">359 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L360" class="LineNr">360 </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="L361" class="LineNr">361 </span> <span class="subxComment"># check-ints-equal(eax, 0, msg)</span> +<span id="L362" class="LineNr">362 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L363" class="LineNr">363 </span> 68/push <span class="Constant">"F - test-decimal-digit-below-0"</span>/imm32 +<span id="L364" class="LineNr">364 </span> 68/push 0/imm32/false +<span id="L365" class="LineNr">365 </span> 50/push-eax +<span id="L366" class="LineNr">366 </span> <span class="subxS2Comment"># . . call</span> +<span id="L367" class="LineNr">367 </span> e8/call <a href='502test.mu.html#L2'>check-ints-equal</a>/disp32 +<span id="L368" class="LineNr">368 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L369" class="LineNr">369 </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="L370" class="LineNr">370 </span> c3/return +<span id="L371" class="LineNr">371 </span> +<span id="L372" class="LineNr">372 </span><span class="subxTest">test-decimal-digit-0-to-9</span>: +<span id="L373" class="LineNr">373 </span> <span class="subxComment"># eax = decimal-digit?(0x30)</span> +<span id="L374" class="LineNr">374 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L375" class="LineNr">375 </span> 68/push 0x30/imm32 +<span id="L376" class="LineNr">376 </span> <span class="subxS2Comment"># . . call</span> +<span id="L377" class="LineNr">377 </span> e8/call <a href='126write-int-decimal.subx.html#L327'>decimal-digit?</a>/disp32 +<span id="L378" class="LineNr">378 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L379" class="LineNr">379 </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="L380" class="LineNr">380 </span> <span class="subxComment"># check-ints-equal(eax, 1, msg)</span> +<span id="L381" class="LineNr">381 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L382" class="LineNr">382 </span> 68/push <span class="Constant">"F - test-decimal-digit-at-0"</span>/imm32 +<span id="L383" class="LineNr">383 </span> 68/push 1/imm32/true +<span id="L384" class="LineNr">384 </span> 50/push-eax +<span id="L385" class="LineNr">385 </span> <span class="subxS2Comment"># . . call</span> +<span id="L386" class="LineNr">386 </span> e8/call <a href='502test.mu.html#L2'>check-ints-equal</a>/disp32 +<span id="L387" class="LineNr">387 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L388" class="LineNr">388 </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="L389" class="LineNr">389 </span> <span class="subxComment"># eax = decimal-digit?(0x39)</span> +<span id="L390" class="LineNr">390 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L391" class="LineNr">391 </span> 68/push 0x39/imm32 +<span id="L392" class="LineNr">392 </span> <span class="subxS2Comment"># . . call</span> +<span id="L393" class="LineNr">393 </span> e8/call <a href='126write-int-decimal.subx.html#L327'>decimal-digit?</a>/disp32 +<span id="L394" class="LineNr">394 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L395" class="LineNr">395 </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="L396" class="LineNr">396 </span> <span class="subxComment"># check-ints-equal(eax, 1, msg)</span> +<span id="L397" class="LineNr">397 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L398" class="LineNr">398 </span> 68/push <span class="Constant">"F - test-decimal-digit-at-9"</span>/imm32 +<span id="L399" class="LineNr">399 </span> 68/push 1/imm32/true +<span id="L400" class="LineNr">400 </span> 50/push-eax +<span id="L401" class="LineNr">401 </span> <span class="subxS2Comment"># . . call</span> +<span id="L402" class="LineNr">402 </span> e8/call <a href='502test.mu.html#L2'>check-ints-equal</a>/disp32 +<span id="L403" class="LineNr">403 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L404" class="LineNr">404 </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="L405" class="LineNr">405 </span> c3/return +<span id="L406" class="LineNr">406 </span> +<span id="L407" class="LineNr">407 </span><span class="subxTest">test-decimal-digit-above-9</span>: +<span id="L408" class="LineNr">408 </span> <span class="subxComment"># eax = decimal-digit?(0x3a)</span> +<span id="L409" class="LineNr">409 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L410" class="LineNr">410 </span> 68/push 0x3a/imm32 +<span id="L411" class="LineNr">411 </span> <span class="subxS2Comment"># . . call</span> +<span id="L412" class="LineNr">412 </span> e8/call <a href='126write-int-decimal.subx.html#L327'>decimal-digit?</a>/disp32 +<span id="L413" class="LineNr">413 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L414" class="LineNr">414 </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="L415" class="LineNr">415 </span> <span class="subxComment"># check-ints-equal(eax, 0, msg)</span> +<span id="L416" class="LineNr">416 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L417" class="LineNr">417 </span> 68/push <span class="Constant">"F - test-decimal-digit-above-9"</span>/imm32 +<span id="L418" class="LineNr">418 </span> 68/push 0/imm32/false +<span id="L419" class="LineNr">419 </span> 50/push-eax +<span id="L420" class="LineNr">420 </span> <span class="subxS2Comment"># . . call</span> +<span id="L421" class="LineNr">421 </span> e8/call <a href='502test.mu.html#L2'>check-ints-equal</a>/disp32 +<span id="L422" class="LineNr">422 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L423" class="LineNr">423 </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="L424" class="LineNr">424 </span> c3/return +<span id="L425" class="LineNr">425 </span> +<span id="L426" class="LineNr">426 </span><span class="subxFunction">to-decimal-digit</span>: <span class="subxComment"># in: grapheme -> out/eax: int</span> +<span id="L427" class="LineNr">427 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L428" class="LineNr">428 </span> 55/push-ebp +<span id="L429" class="LineNr">429 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L430" class="LineNr">430 </span> <span class="subxComment"># eax = in</span> +<span id="L431" class="LineNr">431 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to eax</span> +<span id="L432" class="LineNr">432 </span><span class="Constant">$to-decimal-digit:check0</span>: +<span id="L433" class="LineNr">433 </span> <span class="subxComment"># if (eax < '0') goto abort</span> +<span id="L434" class="LineNr">434 </span> 3d/compare-eax-with 0x30/imm32/0 +<span id="L435" class="LineNr">435 </span> 7c/jump-if-< $to-decimal-digit:<a href='317abort.subx.html#L5'>abort</a>/disp8 +<span id="L436" class="LineNr">436 </span><span class="Constant">$to-decimal-digit:check1</span>: +<span id="L437" class="LineNr">437 </span> <span class="subxComment"># if (eax > '9') goto abort</span> +<span id="L438" class="LineNr">438 </span> 3d/compare-eax-with 0x39/imm32/f +<span id="L439" class="LineNr">439 </span> 7f/jump-if-> $to-decimal-digit:<a href='317abort.subx.html#L5'>abort</a>/disp8 +<span id="L440" class="LineNr">440 </span><span class="Constant">$to-decimal-digit:digit</span>: +<span id="L441" class="LineNr">441 </span> <span class="subxComment"># return eax - '0'</span> +<span id="L442" class="LineNr">442 </span> 2d/subtract-from-eax 0x30/imm32/0 +<span id="L443" class="LineNr">443 </span><span class="Constant">$to-decimal-digit:end</span>: +<span id="L444" class="LineNr">444 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L445" class="LineNr">445 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L446" class="LineNr">446 </span> 5d/pop-to-ebp +<span id="L447" class="LineNr">447 </span> c3/return +<span id="L448" class="LineNr">448 </span> +<span id="L449" class="LineNr">449 </span><span class="Constant">$to-decimal-digit:<a href='317abort.subx.html#L5'>abort</a></span>: +<span id="L450" class="LineNr">450 </span> (<a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"to-decimal-digit: not a digit character"</span>) +<span id="L451" class="LineNr">451 </span> <span class="subxComment"># never gets here</span> +<span id="L452" class="LineNr">452 </span> +<span id="L453" class="LineNr">453 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> </pre> </body> </html> diff --git a/html/127next-word.subx.html b/html/127next-word.subx.html index 5d046d01..056f6578 100644 --- a/html/127next-word.subx.html +++ b/html/127next-word.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 127next-word.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/301array-equal.subx.html b/html/301array-equal.subx.html index 0b41e4eb..38a1d166 100644 --- a/html/301array-equal.subx.html +++ b/html/301array-equal.subx.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 301array-equal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.SpecialChar { color: #d70000; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/302stack_allocate.subx.html b/html/302stack_allocate.subx.html index 4ef9a743..78165198 100644 --- a/html/302stack_allocate.subx.html +++ b/html/302stack_allocate.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 302stack_allocate.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,14 +16,14 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.CommentedCode { color: #8a8a8a; } .subxFunction { color: #af5f00; text-decoration: underline; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/308allocate-array.subx.html b/html/308allocate-array.subx.html index 39ff92bc..108b3648 100644 --- a/html/308allocate-array.subx.html +++ b/html/308allocate-array.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 308allocate-array.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,13 +16,13 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/309stream.subx.html b/html/309stream.subx.html index 6807cd17..d990e8ab 100644 --- a/html/309stream.subx.html +++ b/html/309stream.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 309stream.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,13 +16,13 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -362,7 +362,7 @@ if ('onhashchange' in window) { <span id="L306" class="LineNr">306 </span> <span class="subxComment">#</span> <span id="L307" class="LineNr">307 </span> (<a href='309stream.subx.html#L211'>streams-data-equal?</a> *(ebp+8) *(ebp+0xc)) <span class="subxComment"># => eax</span> <span id="L308" class="LineNr">308 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> %eax 1 *(ebp+0x10)) -<span id="L309" class="LineNr">309 </span><span class="Constant">$check-streams-equal:end</span>: +<span id="L309" class="LineNr">309 </span><span class="Constant">$check-streams-data-equal:end</span>: <span id="L310" class="LineNr">310 </span> <span class="subxS1Comment"># . restore registers</span> <span id="L311" class="LineNr">311 </span> 58/pop-to-eax <span id="L312" class="LineNr">312 </span> <span class="subxS1Comment"># . epilogue</span> diff --git a/html/310copy-bytes.subx.html b/html/310copy-bytes.subx.html index 1592c739..e5ce0e39 100644 --- a/html/310copy-bytes.subx.html +++ b/html/310copy-bytes.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 310copy-bytes.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,15 +16,15 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -160,59 +160,63 @@ if ('onhashchange' in window) { <span id="L102" class="LineNr">102 </span> (<a href='108write.subx.html#L11'>write</a> <a href='112read-byte.subx.html#L47'>_test-input-stream</a> <span class="Constant">"abc"</span>) <span id="L103" class="LineNr">103 </span> <span class="subxComment"># skip something</span> <span id="L104" class="LineNr">104 </span> (<a href='112read-byte.subx.html#L13'>read-byte</a> <a href='112read-byte.subx.html#L47'>_test-input-stream</a>) <span class="subxComment"># => eax</span> -<span id="L105" class="LineNr">105 </span> <span class="subxComment"># var out/ecx: (handle array byte)</span> -<span id="L106" class="LineNr">106 </span> 68/push 0/imm32 -<span id="L107" class="LineNr">107 </span> 68/push 0/imm32 -<span id="L108" class="LineNr">108 </span> 89/<- %ecx 4/r32/esp -<span id="L109" class="LineNr">109 </span> <span class="subxComment">#</span> -<span id="L110" class="LineNr">110 </span> (<a href='310copy-bytes.subx.html#L60'>stream-to-array</a> <a href='112read-byte.subx.html#L47'>_test-input-stream</a> %ecx) -<span id="L111" class="LineNr">111 </span> (<a href='120allocate.subx.html#L223'>lookup</a> *ecx *(ecx+4)) <span class="subxComment"># => eax</span> -<span id="L112" class="LineNr">112 </span> (<a href='105string-equal.subx.html#L213'>check-strings-equal</a> %eax <span class="Constant">"bc"</span>) -<span id="L113" class="LineNr">113 </span> <span class="subxS1Comment"># . epilogue</span> -<span id="L114" class="LineNr">114 </span> 89/<- %esp 5/r32/ebp -<span id="L115" class="LineNr">115 </span> 5d/pop-to-ebp -<span id="L116" class="LineNr">116 </span> c3/return -<span id="L117" class="LineNr">117 </span> -<span id="L118" class="LineNr">118 </span><span class="subxComment"># like stream-to-array but ignore surrounding quotes</span> -<span id="L119" class="LineNr">119 </span><span class="subxComment"># we might do other stuff here later</span> -<span id="L120" class="LineNr">120 </span><span class="subxFunction">unquote-stream-to-array</span>: <span class="subxComment"># in: (addr stream _), out: (addr handle array _)</span> -<span id="L121" class="LineNr">121 </span> <span class="subxS1Comment"># . prologue</span> -<span id="L122" class="LineNr">122 </span> 55/push-ebp -<span id="L123" class="LineNr">123 </span> 89/<- %ebp 4/r32/esp -<span id="L124" class="LineNr">124 </span> <span class="subxS1Comment"># . save registers</span> -<span id="L125" class="LineNr">125 </span> 50/push-eax -<span id="L126" class="LineNr">126 </span> 51/push-ecx -<span id="L127" class="LineNr">127 </span> 52/push-edx -<span id="L128" class="LineNr">128 </span> 56/push-esi -<span id="L129" class="LineNr">129 </span> <span class="subxComment"># esi = s</span> -<span id="L130" class="LineNr">130 </span> 8b/-> *(ebp+8) 6/r32/esi -<span id="L131" class="LineNr">131 </span> <span class="subxComment"># var len/ecx: int = s->write - s->read - 2</span> -<span id="L132" class="LineNr">132 </span> 8b/-> *esi 1/r32/ecx -<span id="L133" class="LineNr">133 </span> 2b/subtract *(esi+4) 1/r32/ecx -<span id="L134" class="LineNr">134 </span> 81 7/subop/compare %ecx 2/imm32 -<span id="L135" class="LineNr">135 </span> 7c/jump-if-< $unquote-stream-to-array:end/disp8 -<span id="L136" class="LineNr">136 </span> 81 5/subop/subtract %ecx 2/imm32 -<span id="L137" class="LineNr">137 </span> <span class="subxComment"># allocate</span> -<span id="L138" class="LineNr">138 </span> (<a href='120allocate.subx.html#L556'>allocate-array</a> <span class="SpecialChar"><a href='120allocate.subx.html#L27'>Heap</a></span> %ecx *(ebp+0xc)) -<span id="L139" class="LineNr">139 </span> <span class="subxComment"># var in/edx: (addr byte) = s->data + s->read + 1</span> -<span id="L140" class="LineNr">140 </span> 8b/-> *(esi+4) 2/r32/edx -<span id="L141" class="LineNr">141 </span> 8d/copy-address *(esi+edx+0xd) 2/r32/edx <span class="subxComment"># Stream-data + 1</span> -<span id="L142" class="LineNr">142 </span> <span class="subxComment"># var dest/eax: (addr byte) = data for out</span> -<span id="L143" class="LineNr">143 </span> 8b/-> *(ebp+0xc) 0/r32/eax -<span id="L144" class="LineNr">144 </span> (<a href='120allocate.subx.html#L223'>lookup</a> *eax *(eax+4)) <span class="subxComment"># => eax</span> -<span id="L145" class="LineNr">145 </span> 8d/copy-address *(eax+4) 0/r32/eax -<span id="L146" class="LineNr">146 </span> <span class="subxComment">#</span> -<span id="L147" class="LineNr">147 </span> (<a href='310copy-bytes.subx.html#L6'>copy-bytes</a> %edx %eax %ecx) -<span id="L148" class="LineNr">148 </span><span class="Constant">$unquote-stream-to-array:end</span>: -<span id="L149" class="LineNr">149 </span> <span class="subxS1Comment"># . restore registers</span> -<span id="L150" class="LineNr">150 </span> 5e/pop-to-esi -<span id="L151" class="LineNr">151 </span> 5a/pop-to-edx -<span id="L152" class="LineNr">152 </span> 59/pop-to-ecx -<span id="L153" class="LineNr">153 </span> 58/pop-to-eax -<span id="L154" class="LineNr">154 </span> <span class="subxS1Comment"># . epilogue</span> -<span id="L155" class="LineNr">155 </span> 89/<- %esp 5/r32/ebp -<span id="L156" class="LineNr">156 </span> 5d/pop-to-ebp -<span id="L157" class="LineNr">157 </span> c3/return +<span id="L105" class="LineNr">105 </span> 8b/-> *$_test-input-stream->read 0/r32/eax +<span id="L106" class="LineNr">106 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> %eax 1 <span class="Constant">"F - <a href='310copy-bytes.subx.html#L96'>test-stream-to-array</a>/pre"</span>) +<span id="L107" class="LineNr">107 </span> <span class="subxComment"># var out/ecx: (handle array byte)</span> +<span id="L108" class="LineNr">108 </span> 68/push 0/imm32 +<span id="L109" class="LineNr">109 </span> 68/push 0/imm32 +<span id="L110" class="LineNr">110 </span> 89/<- %ecx 4/r32/esp +<span id="L111" class="LineNr">111 </span> <span class="subxComment">#</span> +<span id="L112" class="LineNr">112 </span> (<a href='310copy-bytes.subx.html#L60'>stream-to-array</a> <a href='112read-byte.subx.html#L47'>_test-input-stream</a> %ecx) +<span id="L113" class="LineNr">113 </span> (<a href='120allocate.subx.html#L223'>lookup</a> *ecx *(ecx+4)) <span class="subxComment"># => eax</span> +<span id="L114" class="LineNr">114 </span> (<a href='105string-equal.subx.html#L213'>check-strings-equal</a> %eax <span class="Constant">"bc"</span> <span class="Constant">"F - test-stream-to-array"</span>) +<span id="L115" class="LineNr">115 </span> 8b/-> *$_test-input-stream->read 0/r32/eax +<span id="L116" class="LineNr">116 </span> (<a href='502test.mu.html#L2'>check-ints-equal</a> %eax 1 <span class="Constant">"F - <a href='310copy-bytes.subx.html#L96'>test-stream-to-array</a>/read-pointer-not-perturbed"</span>) +<span id="L117" class="LineNr">117 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L118" class="LineNr">118 </span> 89/<- %esp 5/r32/ebp +<span id="L119" class="LineNr">119 </span> 5d/pop-to-ebp +<span id="L120" class="LineNr">120 </span> c3/return +<span id="L121" class="LineNr">121 </span> +<span id="L122" class="LineNr">122 </span><span class="subxComment"># like stream-to-array but ignore surrounding quotes</span> +<span id="L123" class="LineNr">123 </span><span class="subxComment"># we might do other stuff here later</span> +<span id="L124" class="LineNr">124 </span><span class="subxFunction">unquote-stream-to-array</span>: <span class="subxComment"># in: (addr stream _), out: (addr handle array _)</span> +<span id="L125" class="LineNr">125 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L126" class="LineNr">126 </span> 55/push-ebp +<span id="L127" class="LineNr">127 </span> 89/<- %ebp 4/r32/esp +<span id="L128" class="LineNr">128 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L129" class="LineNr">129 </span> 50/push-eax +<span id="L130" class="LineNr">130 </span> 51/push-ecx +<span id="L131" class="LineNr">131 </span> 52/push-edx +<span id="L132" class="LineNr">132 </span> 56/push-esi +<span id="L133" class="LineNr">133 </span> <span class="subxComment"># esi = s</span> +<span id="L134" class="LineNr">134 </span> 8b/-> *(ebp+8) 6/r32/esi +<span id="L135" class="LineNr">135 </span> <span class="subxComment"># var len/ecx: int = s->write - s->read - 2</span> +<span id="L136" class="LineNr">136 </span> 8b/-> *esi 1/r32/ecx +<span id="L137" class="LineNr">137 </span> 2b/subtract *(esi+4) 1/r32/ecx +<span id="L138" class="LineNr">138 </span> 81 7/subop/compare %ecx 2/imm32 +<span id="L139" class="LineNr">139 </span> 7c/jump-if-< $unquote-stream-to-array:end/disp8 +<span id="L140" class="LineNr">140 </span> 81 5/subop/subtract %ecx 2/imm32 +<span id="L141" class="LineNr">141 </span> <span class="subxComment"># allocate</span> +<span id="L142" class="LineNr">142 </span> (<a href='120allocate.subx.html#L556'>allocate-array</a> <span class="SpecialChar"><a href='120allocate.subx.html#L27'>Heap</a></span> %ecx *(ebp+0xc)) +<span id="L143" class="LineNr">143 </span> <span class="subxComment"># var in/edx: (addr byte) = s->data + s->read + 1</span> +<span id="L144" class="LineNr">144 </span> 8b/-> *(esi+4) 2/r32/edx +<span id="L145" class="LineNr">145 </span> 8d/copy-address *(esi+edx+0xd) 2/r32/edx <span class="subxComment"># Stream-data + 1</span> +<span id="L146" class="LineNr">146 </span> <span class="subxComment"># var dest/eax: (addr byte) = data for out</span> +<span id="L147" class="LineNr">147 </span> 8b/-> *(ebp+0xc) 0/r32/eax +<span id="L148" class="LineNr">148 </span> (<a href='120allocate.subx.html#L223'>lookup</a> *eax *(eax+4)) <span class="subxComment"># => eax</span> +<span id="L149" class="LineNr">149 </span> 8d/copy-address *(eax+4) 0/r32/eax +<span id="L150" class="LineNr">150 </span> <span class="subxComment">#</span> +<span id="L151" class="LineNr">151 </span> (<a href='310copy-bytes.subx.html#L6'>copy-bytes</a> %edx %eax %ecx) +<span id="L152" class="LineNr">152 </span><span class="Constant">$unquote-stream-to-array:end</span>: +<span id="L153" class="LineNr">153 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L154" class="LineNr">154 </span> 5e/pop-to-esi +<span id="L155" class="LineNr">155 </span> 5a/pop-to-edx +<span id="L156" class="LineNr">156 </span> 59/pop-to-ecx +<span id="L157" class="LineNr">157 </span> 58/pop-to-eax +<span id="L158" class="LineNr">158 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L159" class="LineNr">159 </span> 89/<- %esp 5/r32/ebp +<span id="L160" class="LineNr">160 </span> 5d/pop-to-ebp +<span id="L161" class="LineNr">161 </span> c3/return </pre> </body> </html> diff --git a/html/311decimal-int.subx.html b/html/311decimal-int.subx.html index f6765ef2..69355147 100644 --- a/html/311decimal-int.subx.html +++ b/html/311decimal-int.subx.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 311decimal-int.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.SpecialChar { color: #d70000; } +.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } .subxS1Comment { color: #0000af; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -187,7 +187,7 @@ if ('onhashchange' in window) { <span id="L127" class="LineNr">127 </span> <span class="subxComment"># if !decimal-digit?(*curr) return 0</span> <span id="L128" class="LineNr">128 </span> 8a/copy-byte *esi 1/r32/CL <span id="L129" class="LineNr">129 </span> 50/push-eax -<span id="L130" class="LineNr">130 </span> (<a href='126write-int-decimal.subx.html#L296'>decimal-digit?</a> %ecx) <span class="subxComment"># => eax</span> +<span id="L130" class="LineNr">130 </span> (<a href='126write-int-decimal.subx.html#L327'>decimal-digit?</a> %ecx) <span class="subxComment"># => eax</span> <span id="L131" class="LineNr">131 </span> { <span id="L132" class="LineNr">132 </span> 3d/compare-eax-and 0/imm32/false <span id="L133" class="LineNr">133 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 diff --git a/html/312copy.subx.html b/html/312copy.subx.html index 785d2c05..e66602bd 100644 --- a/html/312copy.subx.html +++ b/html/312copy.subx.html @@ -1,29 +1,29 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 312copy.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } -.subxComment { color: #005faf; } -.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } .SpecialChar { color: #d70000; } +.LineNr { } .subxS1Comment { color: #0000af; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.subxComment { color: #005faf; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/313index-bounds-check.subx.html b/html/313index-bounds-check.subx.html index c7624cfb..4e2c3f0d 100644 --- a/html/313index-bounds-check.subx.html +++ b/html/313index-bounds-check.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 313index-bounds-check.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,12 +17,12 @@ a { color:inherit; } .subxComment { color: #005faf; } .LineNr { } .subxS1Comment { color: #0000af; } -.subxMinorFunction { color: #875f5f; } .Constant { color: #008787; } +.subxMinorFunction { color: #875f5f; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/314divide.subx.html b/html/314divide.subx.html index 3a556e47..b3c42662 100644 --- a/html/314divide.subx.html +++ b/html/314divide.subx.html @@ -1,28 +1,28 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 314divide.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } -.subxComment { color: #005faf; } +.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } .subxS1Comment { color: #0000af; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.subxComment { color: #005faf; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/315stack-debug.subx.html b/html/315stack-debug.subx.html index 8d600f14..cd3b8ed2 100644 --- a/html/315stack-debug.subx.html +++ b/html/315stack-debug.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 315stack-debug.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,15 +16,15 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/316colors.subx.html b/html/316colors.subx.html index 6457bb9d..e5a942b6 100644 --- a/html/316colors.subx.html +++ b/html/316colors.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 316colors.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,15 +16,15 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/317abort.subx.html b/html/317abort.subx.html index 571d6fda..1fab2501 100644 --- a/html/317abort.subx.html +++ b/html/317abort.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 317abort.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,15 +16,15 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -140,10 +140,10 @@ if ('onhashchange' in window) { <span id="L82" class="LineNr"> 82 </span> c7 0/subop/copy *(ecx+4) 0/imm32 <span class="subxComment"># read index</span> <span id="L83" class="LineNr"> 83 </span> c7 0/subop/copy *(ecx+8) 0x01000000/imm32 <span class="subxComment"># stream capacity = 16MB</span> <span id="L84" class="LineNr"> 84 </span> <span class="subxComment"># load 0x400 sectors starting from sector 10080 = 0x2760</span> -<span id="L85" class="LineNr"> 85 </span> (<a href='boot.subx.html#L974'>load-sectors</a> <span class="SpecialChar"><a href='boot.subx.html#L922'>Primary-bus-primary-drive</a></span> 0x2760 0x100 %ecx) -<span id="L86" class="LineNr"> 86 </span> (<a href='boot.subx.html#L974'>load-sectors</a> <span class="SpecialChar"><a href='boot.subx.html#L922'>Primary-bus-primary-drive</a></span> 0x2860 0x100 %ecx) -<span id="L87" class="LineNr"> 87 </span> (<a href='boot.subx.html#L974'>load-sectors</a> <span class="SpecialChar"><a href='boot.subx.html#L922'>Primary-bus-primary-drive</a></span> 0x2960 0x100 %ecx) -<span id="L88" class="LineNr"> 88 </span> (<a href='boot.subx.html#L974'>load-sectors</a> <span class="SpecialChar"><a href='boot.subx.html#L922'>Primary-bus-primary-drive</a></span> 0x2a60 0x100 %ecx) +<span id="L85" class="LineNr"> 85 </span> (<a href='boot.subx.html#L976'>load-sectors</a> <span class="SpecialChar"><a href='boot.subx.html#L923'>Primary-bus-primary-drive</a></span> 0x2760 0x100 %ecx) +<span id="L86" class="LineNr"> 86 </span> (<a href='boot.subx.html#L976'>load-sectors</a> <span class="SpecialChar"><a href='boot.subx.html#L923'>Primary-bus-primary-drive</a></span> 0x2860 0x100 %ecx) +<span id="L87" class="LineNr"> 87 </span> (<a href='boot.subx.html#L976'>load-sectors</a> <span class="SpecialChar"><a href='boot.subx.html#L923'>Primary-bus-primary-drive</a></span> 0x2960 0x100 %ecx) +<span id="L88" class="LineNr"> 88 </span> (<a href='boot.subx.html#L976'>load-sectors</a> <span class="SpecialChar"><a href='boot.subx.html#L923'>Primary-bus-primary-drive</a></span> 0x2a60 0x100 %ecx) <span id="L89" class="LineNr"> 89 </span> <span class="subxH1Comment"># - parse pointers to portions of this stream into labels</span> <span id="L90" class="LineNr"> 90 </span> <span class="subxComment"># var curr/ecx: (addr byte) = s->data</span> <span id="L91" class="LineNr"> 91 </span> 81 0/subop/add %ecx 0xc/imm32 diff --git a/html/318debug-counter.subx.html b/html/318debug-counter.subx.html new file mode 100644 index 00000000..6d9366ab --- /dev/null +++ b/html/318debug-counter.subx.html @@ -0,0 +1,92 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - 318debug-counter.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } +.Constant { color: #008787; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/318debug-counter.subx'>https://github.com/akkartik/mu/blob/main/318debug-counter.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># A rudimentary counter that can be called from anywhere.</span> +<span id="L2" class="LineNr"> 2 </span> +<span id="L3" class="LineNr"> 3 </span>== code +<span id="L4" class="LineNr"> 4 </span> +<span id="L5" class="LineNr"> 5 </span><span class="subxFunction">count-event</span>: +<span id="L6" class="LineNr"> 6 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L7" class="LineNr"> 7 </span> 55/push-ebp +<span id="L8" class="LineNr"> 8 </span> 89/<- %ebp 4/r32/esp +<span id="L9" class="LineNr"> 9 </span> <span class="subxComment">#</span> +<span id="L10" class="LineNr">10 </span> ff 0/subop/increment *<span class="SpecialChar"><a href='318debug-counter.subx.html#L30'>Foo</a></span> +<span id="L11" class="LineNr">11 </span><span class="Constant">$count-event:end</span>: +<span id="L12" class="LineNr">12 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L13" class="LineNr">13 </span> 89/<- %esp 5/r32/ebp +<span id="L14" class="LineNr">14 </span> 5d/pop-to-ebp +<span id="L15" class="LineNr">15 </span> c3/return +<span id="L16" class="LineNr">16 </span> +<span id="L17" class="LineNr">17 </span><span class="subxFunction">count-of-events</span>: <span class="subxComment"># -> _/eax: int</span> +<span id="L18" class="LineNr">18 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L19" class="LineNr">19 </span> 55/push-ebp +<span id="L20" class="LineNr">20 </span> 89/<- %ebp 4/r32/esp +<span id="L21" class="LineNr">21 </span> <span class="subxComment">#</span> +<span id="L22" class="LineNr">22 </span> 8b/-> *<span class="SpecialChar"><a href='318debug-counter.subx.html#L30'>Foo</a></span> 0/r32/eax +<span id="L23" class="LineNr">23 </span><span class="Constant">$count-of-events:end</span>: +<span id="L24" class="LineNr">24 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L25" class="LineNr">25 </span> 89/<- %esp 5/r32/ebp +<span id="L26" class="LineNr">26 </span> 5d/pop-to-ebp +<span id="L27" class="LineNr">27 </span> c3/return +<span id="L28" class="LineNr">28 </span> +<span id="L29" class="LineNr">29 </span>== data +<span id="L30" class="LineNr">30 </span><span class="SpecialChar">Foo</span>: +<span id="L31" class="LineNr">31 </span> 0/imm32 +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/319timer.subx.html b/html/319timer.subx.html new file mode 100644 index 00000000..1409f834 --- /dev/null +++ b/html/319timer.subx.html @@ -0,0 +1,74 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - 319timer.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxFunction { color: #af5f00; text-decoration: underline; } +.SpecialChar { color: #d70000; } +.LineNr { } +.subxS1Comment { color: #0000af; } +.subxComment { color: #005faf; } +.Constant { color: #008787; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/319timer.subx'>https://github.com/akkartik/mu/blob/main/319timer.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span>== code +<span id="L2" class="LineNr"> 2 </span> +<span id="L3" class="LineNr"> 3 </span><span class="subxFunction">timer-counter</span>: <span class="subxComment"># -> _/eax: int</span> +<span id="L4" class="LineNr"> 4 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L5" class="LineNr"> 5 </span> 55/push-ebp +<span id="L6" class="LineNr"> 6 </span> 89/<- %ebp 4/r32/esp +<span id="L7" class="LineNr"> 7 </span> <span class="subxComment">#</span> +<span id="L8" class="LineNr"> 8 </span> 8b/-> *<span class="SpecialChar"><a href='boot.subx.html#L378'>Timer-counter</a></span> 0/r32/eax +<span id="L9" class="LineNr"> 9 </span><span class="Constant">$timer-counter:end</span>: +<span id="L10" class="LineNr">10 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L11" class="LineNr">11 </span> 89/<- %esp 5/r32/ebp +<span id="L12" class="LineNr">12 </span> 5d/pop-to-ebp +<span id="L13" class="LineNr">13 </span> c3/return +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/400.mu.html b/html/400.mu.html index 5febaa75..929aa511 100644 --- a/html/400.mu.html +++ b/html/400.mu.html @@ -1,29 +1,29 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 400.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.LineNr { } -.muRegEbx { color: #5f00ff; } .muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } +.LineNr { } .muComment { color: #005faf; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -64,108 +64,116 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span><span class="PreProc">sig</span> <a href='103grapheme.subx.html#L195'>draw-cursor-on-real-screen</a> g: grapheme <span id="L8" class="LineNr"> 8 </span><span class="PreProc">sig</span> <a href='316colors.subx.html#L7'>color-rgb</a> color: int<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int, _/<span class="muRegEdx">edx</span>: int, _/<span class="muRegEbx">ebx</span>: int <span id="L9" class="LineNr"> 9 </span> -<span id="L10" class="LineNr"> 10 </span><span class="muComment"># keyboard</span> -<span id="L11" class="LineNr"> 11 </span><span class="PreProc">sig</span> <a href='102keyboard.subx.html#L21'>read-key</a> kbd: (addr keyboard)<span class="PreProc"> -> </span>_/eax: byte +<span id="L10" class="LineNr"> 10 </span><span class="muComment"># timer</span> +<span id="L11" class="LineNr"> 11 </span><span class="PreProc">sig</span> <a href='319timer.subx.html#L3'>timer-counter</a><span class="PreProc"> -> </span>_/eax: int <span id="L12" class="LineNr"> 12 </span> -<span id="L13" class="LineNr"> 13 </span><span class="muComment"># disk</span> -<span id="L14" class="LineNr"> 14 </span><span class="PreProc">sig</span> <a href='boot.subx.html#L974'>load-sectors</a> disk: (addr disk), lba: int, n: int, out: (addr stream byte) -<span id="L15" class="LineNr"> 15 </span><span class="PreProc">sig</span> <a href='boot.subx.html#L1037'>store-sectors</a> disk: (addr disk), lba: int, n: int, out: (addr stream byte) -<span id="L16" class="LineNr"> 16 </span> -<span id="L17" class="LineNr"> 17 </span><span class="muComment"># mouse</span> -<span id="L18" class="LineNr"> 18 </span><span class="PreProc">sig</span> <a href='boot.subx.html#L1443'>read-mouse-event</a><span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int +<span id="L13" class="LineNr"> 13 </span><span class="muComment"># keyboard</span> +<span id="L14" class="LineNr"> 14 </span><span class="PreProc">sig</span> <a href='102keyboard.subx.html#L21'>read-key</a> kbd: (addr keyboard)<span class="PreProc"> -> </span>_/eax: byte +<span id="L15" class="LineNr"> 15 </span> +<span id="L16" class="LineNr"> 16 </span><span class="muComment"># disk</span> +<span id="L17" class="LineNr"> 17 </span><span class="PreProc">sig</span> <a href='boot.subx.html#L976'>load-sectors</a> disk: (addr disk), lba: int, n: int, out: (addr stream byte) +<span id="L18" class="LineNr"> 18 </span><span class="PreProc">sig</span> <a href='boot.subx.html#L1045'>store-sectors</a> disk: (addr disk), lba: int, n: int, out: (addr stream byte) <span id="L19" class="LineNr"> 19 </span> -<span id="L20" class="LineNr"> 20 </span><span class="muComment"># tests</span> -<span id="L21" class="LineNr"> 21 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L5'>count-test-failure</a> -<span id="L22" class="LineNr"> 22 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L17'>num-test-failures</a><span class="PreProc"> -> </span>_/eax: int -<span id="L23" class="LineNr"> 23 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L29'>running-tests?</a><span class="PreProc"> -> </span>_/eax: boolean -<span id="L24" class="LineNr"> 24 </span> -<span id="L25" class="LineNr"> 25 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L8'>string-equal?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L26" class="LineNr"> 26 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L50'>string-starts-with?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L27" class="LineNr"> 27 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> s: (addr array byte), expected: (addr array byte), msg: (addr array byte) -<span id="L28" class="LineNr"> 28 </span> -<span id="L29" class="LineNr"> 29 </span><span class="muComment"># debugging</span> -<span id="L30" class="LineNr"> 30 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L5'>check-stack</a> -<span id="L31" class="LineNr"> 31 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L26'>show-stack-state</a> -<span id="L32" class="LineNr"> 32 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L56'>debug-print</a> x: (addr array byte), fg: int, bg: int -<span id="L33" class="LineNr"> 33 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L84'>debug-print?</a><span class="PreProc"> -> </span>_/eax: boolean -<span id="L34" class="LineNr"> 34 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L96'>turn-on-debug-print</a> -<span id="L35" class="LineNr"> 35 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L108'>turn-off-debug-print</a> -<span id="L36" class="LineNr"> 36 </span><span class="PreProc">sig</span> <a href='317abort.subx.html#L5'>abort</a> e: (addr array byte) -<span id="L37" class="LineNr"> 37 </span><span class="PreProc">sig</span> <a href='317abort.subx.html#L21'>dump-call-stack</a> -<span id="L38" class="LineNr"> 38 </span> -<span id="L39" class="LineNr"> 39 </span><span class="PreProc">sig</span> <a href='318counter.subx.html#L5'>count-event</a> -<span id="L40" class="LineNr"> 40 </span><span class="PreProc">sig</span> <a href='318counter.subx.html#L17'>count-of-events</a><span class="PreProc"> -> </span>_/eax: int +<span id="L20" class="LineNr"> 20 </span><span class="muComment"># mouse</span> +<span id="L21" class="LineNr"> 21 </span><span class="PreProc">sig</span> <a href='boot.subx.html#L1451'>read-mouse-event</a><span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int +<span id="L22" class="LineNr"> 22 </span> +<span id="L23" class="LineNr"> 23 </span><span class="muComment"># tests</span> +<span id="L24" class="LineNr"> 24 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L5'>count-test-failure</a> +<span id="L25" class="LineNr"> 25 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L17'>num-test-failures</a><span class="PreProc"> -> </span>_/eax: int +<span id="L26" class="LineNr"> 26 </span><span class="PreProc">sig</span> <a href='104test.subx.html#L29'>running-tests?</a><span class="PreProc"> -> </span>_/eax: boolean +<span id="L27" class="LineNr"> 27 </span> +<span id="L28" class="LineNr"> 28 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L8'>string-equal?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L29" class="LineNr"> 29 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L50'>string-starts-with?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L30" class="LineNr"> 30 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L213'>check-strings-equal</a> s: (addr array byte), expected: (addr array byte), msg: (addr array byte) +<span id="L31" class="LineNr"> 31 </span> +<span id="L32" class="LineNr"> 32 </span><span class="muComment"># debugging</span> +<span id="L33" class="LineNr"> 33 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L5'>check-stack</a> +<span id="L34" class="LineNr"> 34 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L26'>show-stack-state</a> +<span id="L35" class="LineNr"> 35 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L56'>debug-print</a> x: (addr array byte), fg: int, bg: int +<span id="L36" class="LineNr"> 36 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L84'>debug-print?</a><span class="PreProc"> -> </span>_/eax: boolean +<span id="L37" class="LineNr"> 37 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L96'>turn-on-debug-print</a> +<span id="L38" class="LineNr"> 38 </span><span class="PreProc">sig</span> <a href='315stack-debug.subx.html#L108'>turn-off-debug-print</a> +<span id="L39" class="LineNr"> 39 </span><span class="PreProc">sig</span> <a href='317abort.subx.html#L5'>abort</a> e: (addr array byte) +<span id="L40" class="LineNr"> 40 </span><span class="PreProc">sig</span> <a href='317abort.subx.html#L21'>dump-call-stack</a> <span id="L41" class="LineNr"> 41 </span> -<span id="L42" class="LineNr"> 42 </span><span class="muComment"># streams</span> -<span id="L43" class="LineNr"> 43 </span><span class="PreProc">sig</span> <a href='106stream.subx.html#L20'>clear-stream</a> f: (addr stream _) -<span id="L44" class="LineNr"> 44 </span><span class="PreProc">sig</span> <a href='106stream.subx.html#L59'>rewind-stream</a> f: (addr stream _) -<span id="L45" class="LineNr"> 45 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L9'>stream-data-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L46" class="LineNr"> 46 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L211'>streams-data-equal?</a> a: (addr stream byte), b: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L47" class="LineNr"> 47 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte) -<span id="L48" class="LineNr"> 48 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L300'>check-streams-data-equal</a> s: (addr stream _), expected: (addr stream _), msg: (addr array byte) -<span id="L49" class="LineNr"> 49 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L230'>next-stream-line-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L50" class="LineNr"> 50 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte) -<span id="L51" class="LineNr"> 51 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L11'>write</a> f: (addr stream byte), s: (addr array byte) -<span id="L52" class="LineNr"> 52 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L138'>try-write</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L53" class="LineNr"> 53 </span><span class="muComment"># probably a bad idea; I definitely want to discourage its use for streams of non-bytes</span> -<span id="L54" class="LineNr"> 54 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L194'>stream-size</a> f: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int -<span id="L55" class="LineNr"> 55 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L176'>space-remaining-in-stream</a> f: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int -<span id="L56" class="LineNr"> 56 </span><span class="PreProc">sig</span> <a href='113write-stream.subx.html#L8'>write-stream</a> f: (addr stream byte), s: (addr stream byte) -<span id="L57" class="LineNr"> 57 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L13'>read-byte</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte -<span id="L58" class="LineNr"> 58 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L12'>append-byte</a> f: (addr stream byte), n: int <span class="muComment"># really just a byte, but I want to pass in literal numbers</span> -<span id="L59" class="LineNr"> 59 </span><span class="muComment">#sig to-hex-char in/eax: int -> out/eax: int</span> -<span id="L60" class="LineNr"> 60 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L21'>append-byte-hex</a> f: (addr stream byte), n: int <span class="muComment"># really just a byte, but I want to pass in literal numbers</span> -<span id="L61" class="LineNr"> 61 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L92'>write-int32-hex</a> f: (addr stream byte), n: int -<span id="L62" class="LineNr"> 62 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L123'>write-int32-hex-bits</a> f: (addr stream byte), n: int, bits: int -<span id="L63" class="LineNr"> 63 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L9'>hex-int?</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L64" class="LineNr"> 64 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L354'>parse-hex-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/eax: int -<span id="L65" class="LineNr"> 65 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L387'>parse-hex-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: int -<span id="L66" class="LineNr"> 66 </span><span class="muComment">#sig parse-hex-int-helper start: (addr byte), end: (addr byte) -> _/eax: int</span> -<span id="L67" class="LineNr"> 67 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> c: byte<span class="PreProc"> -> </span>_/eax: boolean -<span id="L68" class="LineNr"> 68 </span><span class="muComment">#sig from-hex-char in/eax: byte -> out/eax: nibble</span> -<span id="L69" class="LineNr"> 69 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L23'>parse-decimal-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/eax: int -<span id="L70" class="LineNr"> 70 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: int -<span id="L71" class="LineNr"> 71 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int -<span id="L72" class="LineNr"> 72 </span><span class="muComment">#sig parse-decimal-int-helper start: (addr byte), end: (addr byte) -> _/eax: int</span> -<span id="L73" class="LineNr"> 73 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L312'>decimal-size</a> n: int<span class="PreProc"> -> </span>_/eax: int -<span id="L74" class="LineNr"> 74 </span><span class="muComment">#sig allocate ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> -<span id="L75" class="LineNr"> 75 </span><span class="muComment">#sig allocate-raw ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> -<span id="L76" class="LineNr"> 76 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L223'>lookup</a> h: (handle _T)<span class="PreProc"> -> </span>_/eax: (addr _T) -<span id="L77" class="LineNr"> 77 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> a: (handle _T), b: (handle _T)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L78" class="LineNr"> 78 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L479'>copy-handle</a> src: (handle _T), dest: (addr handle _T) -<span id="L79" class="LineNr"> 79 </span><span class="muComment">#sig allocate-region ad: (addr allocation-descriptor), n: int, out: (addr handle allocation-descriptor)</span> -<span id="L80" class="LineNr"> 80 </span><span class="muComment">#sig allocate-array ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> -<span id="L81" class="LineNr"> 81 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L690'>copy-array</a> ad: (addr allocation-descriptor), src: (addr array _T), out: (addr handle array _T) -<span id="L82" class="LineNr"> 82 </span><span class="muComment">#sig zero-out start: (addr byte), size: int</span> -<span id="L83" class="LineNr"> 83 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L9'>slice-empty?</a> s: (addr slice)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L84" class="LineNr"> 84 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L120'>slice-equal?</a> s: (addr slice), p: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L85" class="LineNr"> 85 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L487'>slice-starts-with?</a> s: (addr slice), head: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L86" class="LineNr"> 86 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L793'>write-slice</a> out: (addr stream byte), s: (addr slice) -<span id="L87" class="LineNr"> 87 </span><span class="muComment"># bad name alert</span> -<span id="L88" class="LineNr"> 88 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L898'>slice-to-string</a> ad: (addr allocation-descriptor), in: (addr slice), out: (addr handle array byte) -<span id="L89" class="LineNr"> 89 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> out: (addr stream byte), n: int -<span id="L90" class="LineNr"> 90 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L296'>decimal-digit?</a> c: grapheme<span class="PreProc"> -> </span>_/eax: boolean -<span id="L91" class="LineNr"> 91 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L395'>to-decimal-digit</a> in: grapheme<span class="PreProc"> -> </span>_/eax: int -<span id="L92" class="LineNr"> 92 </span><span class="muComment"># bad name alert</span> -<span id="L93" class="LineNr"> 93 </span><span class="muComment"># next-word really tokenizes</span> -<span id="L94" class="LineNr"> 94 </span><span class="muComment"># next-raw-word really reads whitespace-separated words</span> -<span id="L95" class="LineNr"> 95 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L11'>next-word</a> line: (addr stream byte), out: (addr slice) <span class="muComment"># skips '#' comments</span> -<span id="L96" class="LineNr"> 96 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L306'>next-raw-word</a> line: (addr stream byte), out: (addr slice) <span class="muComment"># does not skip '#' comments</span> -<span id="L97" class="LineNr"> 97 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L98" class="LineNr"> 98 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L30'>stream-full?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L99" class="LineNr"> 99 </span><span class="PreProc">sig</span> <a href='310copy-bytes.subx.html#L60'>stream-to-array</a> in: (addr stream _), out: (addr handle array _) -<span id="L100" class="LineNr">100 </span><span class="PreProc">sig</span> <a href='310copy-bytes.subx.html#L120'>unquote-stream-to-array</a> in: (addr stream _), out: (addr handle array _) -<span id="L101" class="LineNr">101 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L154'>stream-first</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte -<span id="L102" class="LineNr">102 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L181'>stream-final</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte -<span id="L103" class="LineNr">103 </span> -<span id="L104" class="LineNr">104 </span><span class="muComment">#sig copy-bytes src: (addr byte), dest: (addr byte), n: int</span> -<span id="L105" class="LineNr">105 </span><span class="PreProc">sig</span> <a href='312copy.subx.html#L3'>copy-array-object</a> src: (addr array _), dest-ah: (addr handle array _) -<span id="L106" class="LineNr">106 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L5'>array-equal?</a> a: (addr array int), b: (addr array int)<span class="PreProc"> -> </span>_/eax: boolean -<span id="L107" class="LineNr">107 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L368'>parse-array-of-ints</a> s: (addr array byte), out: (addr handle array int) -<span id="L108" class="LineNr">108 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L623'>parse-array-of-decimal-ints</a> s: (addr array byte), out: (addr handle array int) -<span id="L109" class="LineNr">109 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L382'>check-array-equal</a> a: (addr array int), expected: (addr string), msg: (addr string) -<span id="L110" class="LineNr">110 </span> -<span id="L111" class="LineNr">111 </span><span class="PreProc">sig</span> <a href='314divide.subx.html#L3'>integer-divide</a> a: int, b: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEdx">edx</span>: int +<span id="L42" class="LineNr"> 42 </span><span class="PreProc">sig</span> <a href='318debug-counter.subx.html#L5'>count-event</a> +<span id="L43" class="LineNr"> 43 </span><span class="PreProc">sig</span> <a href='318debug-counter.subx.html#L17'>count-of-events</a><span class="PreProc"> -> </span>_/eax: int +<span id="L44" class="LineNr"> 44 </span> +<span id="L45" class="LineNr"> 45 </span><span class="muComment"># streams</span> +<span id="L46" class="LineNr"> 46 </span><span class="PreProc">sig</span> <a href='106stream.subx.html#L20'>clear-stream</a> f: (addr stream _) +<span id="L47" class="LineNr"> 47 </span><span class="PreProc">sig</span> <a href='106stream.subx.html#L59'>rewind-stream</a> f: (addr stream _) +<span id="L48" class="LineNr"> 48 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L9'>stream-data-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L49" class="LineNr"> 49 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L211'>streams-data-equal?</a> a: (addr stream byte), b: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L50" class="LineNr"> 50 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte) +<span id="L51" class="LineNr"> 51 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L300'>check-streams-data-equal</a> s: (addr stream _), expected: (addr stream _), msg: (addr array byte) +<span id="L52" class="LineNr"> 52 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L230'>next-stream-line-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L53" class="LineNr"> 53 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte) +<span id="L54" class="LineNr"> 54 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L11'>write</a> f: (addr stream byte), s: (addr array byte) +<span id="L55" class="LineNr"> 55 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L138'>try-write</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L56" class="LineNr"> 56 </span><span class="muComment"># probably a bad idea; I definitely want to discourage its use for streams of non-bytes</span> +<span id="L57" class="LineNr"> 57 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L194'>stream-size</a> f: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L58" class="LineNr"> 58 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L176'>space-remaining-in-stream</a> f: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L59" class="LineNr"> 59 </span><span class="PreProc">sig</span> <a href='113write-stream.subx.html#L8'>write-stream</a> f: (addr stream byte), s: (addr stream byte) +<span id="L60" class="LineNr"> 60 </span><span class="PreProc">sig</span> <a href='113write-stream.subx.html#L163'>write-stream-immutable</a> f: (addr stream byte), s: (addr stream byte) +<span id="L61" class="LineNr"> 61 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L13'>read-byte</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte +<span id="L62" class="LineNr"> 62 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L12'>append-byte</a> f: (addr stream byte), n: int <span class="muComment"># really just a byte, but I want to pass in literal numbers</span> +<span id="L63" class="LineNr"> 63 </span><span class="muComment">#sig to-hex-char in/eax: int -> out/eax: int</span> +<span id="L64" class="LineNr"> 64 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L21'>append-byte-hex</a> f: (addr stream byte), n: int <span class="muComment"># really just a byte, but I want to pass in literal numbers</span> +<span id="L65" class="LineNr"> 65 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L92'>write-int32-hex</a> f: (addr stream byte), n: int +<span id="L66" class="LineNr"> 66 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L123'>write-int32-hex-bits</a> f: (addr stream byte), n: int, bits: int +<span id="L67" class="LineNr"> 67 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L9'>hex-int?</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L68" class="LineNr"> 68 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L354'>parse-hex-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L69" class="LineNr"> 69 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L387'>parse-hex-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: int +<span id="L70" class="LineNr"> 70 </span><span class="muComment">#sig parse-hex-int-helper start: (addr byte), end: (addr byte) -> _/eax: int</span> +<span id="L71" class="LineNr"> 71 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> c: byte<span class="PreProc"> -> </span>_/eax: boolean +<span id="L72" class="LineNr"> 72 </span><span class="muComment">#sig from-hex-char in/eax: byte -> out/eax: nibble</span> +<span id="L73" class="LineNr"> 73 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L23'>parse-decimal-int</a> in: (addr array byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L74" class="LineNr"> 74 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> in: (addr slice)<span class="PreProc"> -> </span>_/eax: int +<span id="L75" class="LineNr"> 75 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int +<span id="L76" class="LineNr"> 76 </span><span class="muComment">#sig parse-decimal-int-helper start: (addr byte), end: (addr byte) -> _/eax: int</span> +<span id="L77" class="LineNr"> 77 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L312'>decimal-size</a> n: int<span class="PreProc"> -> </span>_/eax: int +<span id="L78" class="LineNr"> 78 </span><span class="muComment">#sig allocate ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> +<span id="L79" class="LineNr"> 79 </span><span class="muComment">#sig allocate-raw ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> +<span id="L80" class="LineNr"> 80 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L223'>lookup</a> h: (handle _T)<span class="PreProc"> -> </span>_/eax: (addr _T) +<span id="L81" class="LineNr"> 81 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> a: (handle _T), b: (handle _T)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L82" class="LineNr"> 82 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L479'>copy-handle</a> src: (handle _T), dest: (addr handle _T) +<span id="L83" class="LineNr"> 83 </span><span class="muComment">#sig allocate-region ad: (addr allocation-descriptor), n: int, out: (addr handle allocation-descriptor)</span> +<span id="L84" class="LineNr"> 84 </span><span class="muComment">#sig allocate-array ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span> +<span id="L85" class="LineNr"> 85 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L690'>copy-array</a> ad: (addr allocation-descriptor), src: (addr array _T), out: (addr handle array _T) +<span id="L86" class="LineNr"> 86 </span><span class="muComment">#sig zero-out start: (addr byte), size: int</span> +<span id="L87" class="LineNr"> 87 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L9'>slice-empty?</a> s: (addr slice)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L88" class="LineNr"> 88 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L120'>slice-equal?</a> s: (addr slice), p: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L89" class="LineNr"> 89 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L487'>slice-starts-with?</a> s: (addr slice), head: (addr array byte)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L90" class="LineNr"> 90 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L793'>write-slice</a> out: (addr stream byte), s: (addr slice) +<span id="L91" class="LineNr"> 91 </span><span class="muComment"># bad name alert</span> +<span id="L92" class="LineNr"> 92 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L898'>slice-to-string</a> ad: (addr allocation-descriptor), in: (addr slice), out: (addr handle array byte) +<span id="L93" class="LineNr"> 93 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> out: (addr stream byte), n: int +<span id="L94" class="LineNr"> 94 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L327'>decimal-digit?</a> c: grapheme<span class="PreProc"> -> </span>_/eax: boolean +<span id="L95" class="LineNr"> 95 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L426'>to-decimal-digit</a> in: grapheme<span class="PreProc"> -> </span>_/eax: int +<span id="L96" class="LineNr"> 96 </span><span class="muComment"># bad name alert</span> +<span id="L97" class="LineNr"> 97 </span><span class="muComment"># next-word really tokenizes</span> +<span id="L98" class="LineNr"> 98 </span><span class="muComment"># next-raw-word really reads whitespace-separated words</span> +<span id="L99" class="LineNr"> 99 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L11'>next-word</a> line: (addr stream byte), out: (addr slice) <span class="muComment"># skips '#' comments</span> +<span id="L100" class="LineNr">100 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L306'>next-raw-word</a> line: (addr stream byte), out: (addr slice) <span class="muComment"># does not skip '#' comments</span> +<span id="L101" class="LineNr">101 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L188'>skip-chars-matching</a> in: (addr stream byte), delimiter: byte +<span id="L102" class="LineNr">102 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L311'>skip-chars-matching-whitespace</a> in: (addr stream byte) +<span id="L103" class="LineNr">103 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L401'>skip-chars-not-matching</a> in: (addr stream byte), delimiter: byte +<span id="L104" class="LineNr">104 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L563'>skip-chars-not-matching-whitespace</a> in: (addr stream byte) +<span id="L105" class="LineNr">105 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L106" class="LineNr">106 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L30'>stream-full?</a> s: (addr stream _)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L107" class="LineNr">107 </span><span class="PreProc">sig</span> <a href='310copy-bytes.subx.html#L60'>stream-to-array</a> in: (addr stream _), out: (addr handle array _) +<span id="L108" class="LineNr">108 </span><span class="PreProc">sig</span> <a href='310copy-bytes.subx.html#L124'>unquote-stream-to-array</a> in: (addr stream _), out: (addr handle array _) +<span id="L109" class="LineNr">109 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L154'>stream-first</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte +<span id="L110" class="LineNr">110 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L181'>stream-final</a> s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: byte +<span id="L111" class="LineNr">111 </span> +<span id="L112" class="LineNr">112 </span><span class="muComment">#sig copy-bytes src: (addr byte), dest: (addr byte), n: int</span> +<span id="L113" class="LineNr">113 </span><span class="PreProc">sig</span> <a href='312copy.subx.html#L3'>copy-array-object</a> src: (addr array _), dest-ah: (addr handle array _) +<span id="L114" class="LineNr">114 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L5'>array-equal?</a> a: (addr array int), b: (addr array int)<span class="PreProc"> -> </span>_/eax: boolean +<span id="L115" class="LineNr">115 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L368'>parse-array-of-ints</a> s: (addr array byte), out: (addr handle array int) +<span id="L116" class="LineNr">116 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L623'>parse-array-of-decimal-ints</a> s: (addr array byte), out: (addr handle array int) +<span id="L117" class="LineNr">117 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L382'>check-array-equal</a> a: (addr array int), expected: (addr string), msg: (addr string) +<span id="L118" class="LineNr">118 </span> +<span id="L119" class="LineNr">119 </span><span class="PreProc">sig</span> <a href='314divide.subx.html#L3'>integer-divide</a> a: int, b: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEdx">edx</span>: int </pre> </body> </html> diff --git a/html/403unicode.mu.html b/html/403unicode.mu.html index 6cee5b30..5aabf05b 100644 --- a/html/403unicode.mu.html +++ b/html/403unicode.mu.html @@ -1,34 +1,34 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 403unicode.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/408float.mu.html b/html/408float.mu.html index b6be4fab..c5520cad 100644 --- a/html/408float.mu.html +++ b/html/408float.mu.html @@ -1,31 +1,31 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 408float.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/411string.mu.html b/html/411string.mu.html index 1d1baa8f..c552176e 100644 --- a/html/411string.mu.html +++ b/html/411string.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 411string.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } .muRegEcx { color: #870000; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.CommentedCode { color: #8a8a8a; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/412render-float-decimal.mu.html b/html/412render-float-decimal.mu.html index ae8caf91..7e6ad710 100644 --- a/html/412render-float-decimal.mu.html +++ b/html/412render-float-decimal.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 412render-float-decimal.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } -.muRegEdi { color: #00af00; } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } -.Special { color: #ff6060; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/500fake-screen.mu.html b/html/500fake-screen.mu.html index 3060c3c3..609ab4e4 100644 --- a/html/500fake-screen.mu.html +++ b/html/500fake-screen.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 500fake-screen.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } -.muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/501draw-text.mu.html b/html/501draw-text.mu.html index 576d10b8..1bd05f7b 100644 --- a/html/501draw-text.mu.html +++ b/html/501draw-text.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 501draw-text.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/502test.mu.html b/html/502test.mu.html index a06d9345..6a70bc52 100644 --- a/html/502test.mu.html +++ b/html/502test.mu.html @@ -1,31 +1,31 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 502test.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/503manhattan-line.mu.html b/html/503manhattan-line.mu.html index 7dde0592..dcf3032f 100644 --- a/html/503manhattan-line.mu.html +++ b/html/503manhattan-line.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 503manhattan-line.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,13 +16,13 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } .LineNr { } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/504test-screen.mu.html b/html/504test-screen.mu.html index 0d955bfd..cf15a22e 100644 --- a/html/504test-screen.mu.html +++ b/html/504test-screen.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 504test-screen.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/505colors.mu.html b/html/505colors.mu.html index 5cd01173..40cf2f9c 100644 --- a/html/505colors.mu.html +++ b/html/505colors.mu.html @@ -1,35 +1,37 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 505colors.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } -.PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } -.muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } .Delimiter { color: #c000c0; } .muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.Special { color: #ff6060; } +.PreProc { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -61,240 +63,364 @@ if ('onhashchange' in window) { <body onload='JumpToLine();'> <a href='https://github.com/akkartik/mu/blob/main/505colors.mu'>https://github.com/akkartik/mu/blob/main/505colors.mu</a> <pre id='vimCodeElement'> -<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Hue/saturation/luminance for an rgb triple.</span> -<span id="L2" class="LineNr"> 2 </span><span class="muComment"># rgb are in [0, 256)</span> -<span id="L3" class="LineNr"> 3 </span><span class="muComment"># hsl are also returned in [0, 256)</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># from <a href="https://www.niwa.nu/2013/05/math-behind-colorspace-conversions-rgb-hsl">https://www.niwa.nu/2013/05/math-behind-colorspace-conversions-rgb-hsl</a></span> -<span id="L5" class="LineNr"> 5 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L5'>hsl</a></span> r: int, g: int, b: int<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int, _/<span class="muRegEdx">edx</span>: int, _/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> _max/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L216'>maximum</a> r, g -<span id="L7" class="LineNr"> 7 </span> _max <span class="Special"><-</span> <a href='505colors.mu.html#L216'>maximum</a> _max, b -<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> max/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _max -<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> _min/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L226'>minimum</a> r, g -<span id="L10" class="LineNr"> 10 </span> _min <span class="Special"><-</span> <a href='505colors.mu.html#L226'>minimum</a> _min, b -<span id="L11" class="LineNr"> 11 </span> <span class="PreProc">var</span> min/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _min -<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> luminance/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy min -<span id="L13" class="LineNr"> 13 </span> luminance <span class="Special"><-</span> add max -<span id="L14" class="LineNr"> 14 </span> luminance <span class="Special"><-</span> shift-right <span class="Constant">1</span> <span class="muComment"># TODO: round up instead of down</span> -<span id="L15" class="LineNr"> 15 </span> <span class="muComment"># if rgb are all equal, it's a shade of grey</span> -<span id="L16" class="LineNr"> 16 </span> compare min, max -<span id="L17" class="LineNr"> 17 </span> <span class="Delimiter">{</span> -<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">break-if-!=</span> -<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">return</span> <span class="Constant">0</span>, <span class="Constant">0</span>, luminance -<span id="L20" class="LineNr"> 20 </span> <span class="Delimiter">}</span> -<span id="L21" class="LineNr"> 21 </span> <span class="muComment"># saturation =</span> -<span id="L22" class="LineNr"> 22 </span> <span class="muComment"># luminance < 128 | 255*(max-min)/ (max+min)</span> -<span id="L23" class="LineNr"> 23 </span> <span class="muComment"># otherwise | 255*(max-min)/(2*255 - (max+min))</span> -<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> nr/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy max -<span id="L25" class="LineNr"> 25 </span> nr <span class="Special"><-</span> subtract min -<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> dr/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L27" class="LineNr"> 27 </span> compare luminance, <span class="Constant">0x80</span> -<span id="L28" class="LineNr"> 28 </span> <span class="Delimiter">{</span> -<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">break-if->=</span> -<span id="L30" class="LineNr"> 30 </span> dr <span class="Special"><-</span> copy max -<span id="L31" class="LineNr"> 31 </span> dr <span class="Special"><-</span> add min -<span id="L32" class="LineNr"> 32 </span> <span class="Delimiter">}</span> -<span id="L33" class="LineNr"> 33 </span> <span class="Delimiter">{</span> -<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">break-if-<</span> -<span id="L35" class="LineNr"> 35 </span> dr <span class="Special"><-</span> copy <span class="Constant">0xff</span> -<span id="L36" class="LineNr"> 36 </span> dr <span class="Special"><-</span> shift-left <span class="Constant">1</span> -<span id="L37" class="LineNr"> 37 </span> dr <span class="Special"><-</span> subtract max -<span id="L38" class="LineNr"> 38 </span> dr <span class="Special"><-</span> subtract min -<span id="L39" class="LineNr"> 39 </span> <span class="Delimiter">}</span> -<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> q/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert nr -<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> tmp/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert dr -<span id="L42" class="LineNr"> 42 </span> q <span class="Special"><-</span> divide tmp -<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> int-255/eax: int <span class="Special"><-</span> copy <span class="Constant">0xff</span> -<span id="L44" class="LineNr"> 44 </span> tmp <span class="Special"><-</span> convert int-255 -<span id="L45" class="LineNr"> 45 </span> q <span class="Special"><-</span> multiply tmp -<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> saturation/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> convert q -<span id="L47" class="LineNr"> 47 </span> <span class="muComment"># hue = </span> -<span id="L48" class="LineNr"> 48 </span> <span class="muComment"># red is max | 256.0/6* (g-b)/(max-min)</span> -<span id="L49" class="LineNr"> 49 </span> <span class="muComment"># green is max | 256.0/6*(2.0 + (b-r)/(max-min))</span> -<span id="L50" class="LineNr"> 50 </span> <span class="muComment"># blue is max | 256.0/6*(4.0 + (r-g)/(max-min))</span> -<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> zero/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> hue-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert zero -<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> dr/eax: int <span class="Special"><-</span> copy max -<span id="L54" class="LineNr"> 54 </span> dr <span class="Special"><-</span> subtract min -<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> dr-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert dr -<span id="L56" class="LineNr"> 56 </span> $hsl:compute-hue-normalized: <span class="Delimiter">{</span> -<span id="L57" class="LineNr"> 57 </span> compare r, max -<span id="L58" class="LineNr"> 58 </span> <span class="Delimiter">{</span> -<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">break-if-!=</span> -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> nr/eax: int <span class="Special"><-</span> copy g -<span id="L61" class="LineNr"> 61 </span> nr <span class="Special"><-</span> subtract b -<span id="L62" class="LineNr"> 62 </span> hue-f <span class="Special"><-</span> convert nr -<span id="L63" class="LineNr"> 63 </span> hue-f <span class="Special"><-</span> divide dr-f -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">break</span> $hsl:compute-hue-normalized -<span id="L65" class="LineNr"> 65 </span> <span class="Delimiter">}</span> -<span id="L66" class="LineNr"> 66 </span> compare g, max -<span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">{</span> -<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">break-if-!=</span> -<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> nr/eax: int <span class="Special"><-</span> copy b -<span id="L70" class="LineNr"> 70 </span> nr <span class="Special"><-</span> subtract r -<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert nr -<span id="L72" class="LineNr"> 72 </span> f <span class="Special"><-</span> divide dr-f -<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> two/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> -<span id="L74" class="LineNr"> 74 </span> hue-f <span class="Special"><-</span> convert two -<span id="L75" class="LineNr"> 75 </span> hue-f <span class="Special"><-</span> add f -<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">break</span> $hsl:compute-hue-normalized -<span id="L77" class="LineNr"> 77 </span> <span class="Delimiter">}</span> -<span id="L78" class="LineNr"> 78 </span> compare b, max -<span id="L79" class="LineNr"> 79 </span> <span class="Delimiter">{</span> -<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">break-if-!=</span> -<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> nr/eax: int <span class="Special"><-</span> copy r -<span id="L82" class="LineNr"> 82 </span> nr <span class="Special"><-</span> subtract g -<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert nr -<span id="L84" class="LineNr"> 84 </span> f <span class="Special"><-</span> divide dr-f -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> two/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">4</span> -<span id="L86" class="LineNr"> 86 </span> hue-f <span class="Special"><-</span> convert two -<span id="L87" class="LineNr"> 87 </span> hue-f <span class="Special"><-</span> add f -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">break</span> $hsl:compute-hue-normalized -<span id="L89" class="LineNr"> 89 </span> <span class="Delimiter">}</span> -<span id="L90" class="LineNr"> 90 </span> <span class="Delimiter">}</span> -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> int-256/eax: int <span class="Special"><-</span> copy <span class="Constant">0x100</span> -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> scaling-factor/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert int-256 -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> int-6/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert int-6 -<span id="L95" class="LineNr"> 95 </span> scaling-factor <span class="Special"><-</span> divide six-f -<span id="L96" class="LineNr"> 96 </span> hue-f <span class="Special"><-</span> multiply scaling-factor -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> hue/eax: int <span class="Special"><-</span> convert hue-f -<span id="L98" class="LineNr"> 98 </span> <span class="muComment"># if hue < 0, hue = 256 - hue</span> -<span id="L99" class="LineNr"> 99 </span> compare hue, <span class="Constant">0</span> -<span id="L100" class="LineNr">100 </span> <span class="Delimiter">{</span> -<span id="L101" class="LineNr">101 </span> <span class="PreProc">break-if->=</span> -<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> tmp/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x100</span> -<span id="L103" class="LineNr">103 </span> tmp <span class="Special"><-</span> subtract hue -<span id="L104" class="LineNr">104 </span> hue <span class="Special"><-</span> copy tmp -<span id="L105" class="LineNr">105 </span> <span class="Delimiter">}</span> -<span id="L106" class="LineNr">106 </span> <span class="PreProc">return</span> hue, saturation, luminance -<span id="L107" class="LineNr">107 </span><span class="Delimiter">}</span> -<span id="L108" class="LineNr">108 </span> -<span id="L109" class="LineNr">109 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L109'>test-hsl-black</a></span> <span class="Delimiter">{</span> -<span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L113" class="LineNr">113 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> <span class="Constant">0</span>, <span class="Constant">0</span>, <span class="Constant">0</span> -<span id="L114" class="LineNr">114 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L109'>test-hsl-black</a>/hue"</span> -<span id="L115" class="LineNr">115 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L109'>test-hsl-black</a>/saturation"</span> -<span id="L116" class="LineNr">116 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L109'>test-hsl-black</a>/luminance"</span> -<span id="L117" class="LineNr">117 </span><span class="Delimiter">}</span> -<span id="L118" class="LineNr">118 </span> -<span id="L119" class="LineNr">119 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L119'>test-hsl-white</a></span> <span class="Delimiter">{</span> -<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L123" class="LineNr">123 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> <span class="Constant">0xff</span>, <span class="Constant">0xff</span>, <span class="Constant">0xff</span> -<span id="L124" class="LineNr">124 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L119'>test-hsl-white</a>/hue"</span> -<span id="L125" class="LineNr">125 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L119'>test-hsl-white</a>/saturation"</span> -<span id="L126" class="LineNr">126 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L119'>test-hsl-white</a>/luminance"</span> -<span id="L127" class="LineNr">127 </span><span class="Delimiter">}</span> -<span id="L128" class="LineNr">128 </span> -<span id="L129" class="LineNr">129 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L129'>test-hsl-grey</a></span> <span class="Delimiter">{</span> -<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L133" class="LineNr">133 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> <span class="Constant">0x30</span>, <span class="Constant">0x30</span>, <span class="Constant">0x30</span> -<span id="L134" class="LineNr">134 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L129'>test-hsl-grey</a>/hue"</span> -<span id="L135" class="LineNr">135 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L129'>test-hsl-grey</a>/saturation"</span> -<span id="L136" class="LineNr">136 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0x30</span>, <span class="Constant">"F - <a href='505colors.mu.html#L129'>test-hsl-grey</a>/luminance"</span> -<span id="L137" class="LineNr">137 </span><span class="Delimiter">}</span> -<span id="L138" class="LineNr">138 </span> -<span id="L139" class="LineNr">139 </span><span class="muComment"># red hues: 0-0x54</span> -<span id="L140" class="LineNr">140 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L140'>test-hsl-slightly-red</a></span> <span class="Delimiter">{</span> -<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L144" class="LineNr">144 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> <span class="Constant">0xff</span>, <span class="Constant">0xfe</span>, <span class="Constant">0xfe</span> -<span id="L145" class="LineNr">145 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L140'>test-hsl-slightly-red</a>/hue"</span> -<span id="L146" class="LineNr">146 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L140'>test-hsl-slightly-red</a>/saturation"</span> -<span id="L147" class="LineNr">147 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0xfe</span>, <span class="Constant">"F - <a href='505colors.mu.html#L140'>test-hsl-slightly-red</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> -<span id="L148" class="LineNr">148 </span><span class="Delimiter">}</span> -<span id="L149" class="LineNr">149 </span> -<span id="L150" class="LineNr">150 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L150'>test-hsl-extremely-red</a></span> <span class="Delimiter">{</span> -<span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L154" class="LineNr">154 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> <span class="Constant">0xff</span>, <span class="Constant">0</span>, <span class="Constant">0</span> -<span id="L155" class="LineNr">155 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L150'>test-hsl-extremely-red</a>/hue"</span> -<span id="L156" class="LineNr">156 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L150'>test-hsl-extremely-red</a>/saturation"</span> -<span id="L157" class="LineNr">157 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0x7f</span>, <span class="Constant">"F - <a href='505colors.mu.html#L150'>test-hsl-extremely-red</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> -<span id="L158" class="LineNr">158 </span><span class="Delimiter">}</span> -<span id="L159" class="LineNr">159 </span> -<span id="L160" class="LineNr">160 </span><span class="muComment"># green hues: 0x55-0xaa</span> -<span id="L161" class="LineNr">161 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L161'>test-hsl-slightly-green</a></span> <span class="Delimiter">{</span> -<span id="L162" class="LineNr">162 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L163" class="LineNr">163 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L164" class="LineNr">164 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L165" class="LineNr">165 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> <span class="Constant">0xfe</span>, <span class="Constant">0xff</span>, <span class="Constant">0xfe</span> -<span id="L166" class="LineNr">166 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0x55</span>, <span class="Constant">"F - <a href='505colors.mu.html#L161'>test-hsl-slightly-green</a>/hue"</span> -<span id="L167" class="LineNr">167 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L161'>test-hsl-slightly-green</a>/saturation"</span> -<span id="L168" class="LineNr">168 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0xfe</span>, <span class="Constant">"F - <a href='505colors.mu.html#L161'>test-hsl-slightly-green</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> -<span id="L169" class="LineNr">169 </span><span class="Delimiter">}</span> -<span id="L170" class="LineNr">170 </span> -<span id="L171" class="LineNr">171 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L171'>test-hsl-extremely-green</a></span> <span class="Delimiter">{</span> -<span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L175" class="LineNr">175 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> <span class="Constant">0</span>, <span class="Constant">0xff</span>, <span class="Constant">0</span> -<span id="L176" class="LineNr">176 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0x55</span>, <span class="Constant">"F - <a href='505colors.mu.html#L171'>test-hsl-extremely-green</a>/hue"</span> -<span id="L177" class="LineNr">177 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L171'>test-hsl-extremely-green</a>/saturation"</span> -<span id="L178" class="LineNr">178 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0x7f</span>, <span class="Constant">"F - <a href='505colors.mu.html#L171'>test-hsl-extremely-green</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> -<span id="L179" class="LineNr">179 </span><span class="Delimiter">}</span> -<span id="L180" class="LineNr">180 </span> -<span id="L181" class="LineNr">181 </span><span class="muComment"># blue hues: 0xab-0xff</span> -<span id="L182" class="LineNr">182 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L182'>test-hsl-slightly-blue</a></span> <span class="Delimiter">{</span> -<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L186" class="LineNr">186 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> <span class="Constant">0xfe</span>, <span class="Constant">0xfe</span>, <span class="Constant">0xff</span> -<span id="L187" class="LineNr">187 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0xab</span>, <span class="Constant">"F - <a href='505colors.mu.html#L182'>test-hsl-slightly-blue</a>/hue"</span> -<span id="L188" class="LineNr">188 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L182'>test-hsl-slightly-blue</a>/saturation"</span> -<span id="L189" class="LineNr">189 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0xfe</span>, <span class="Constant">"F - <a href='505colors.mu.html#L182'>test-hsl-slightly-blue</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> -<span id="L190" class="LineNr">190 </span><span class="Delimiter">}</span> -<span id="L191" class="LineNr">191 </span> -<span id="L192" class="LineNr">192 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L192'>test-hsl-extremely-blue</a></span> <span class="Delimiter">{</span> -<span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L194" class="LineNr">194 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L196" class="LineNr">196 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> <span class="Constant">0</span>, <span class="Constant">0</span>, <span class="Constant">0xff</span> -<span id="L197" class="LineNr">197 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0xab</span>, <span class="Constant">"F - <a href='505colors.mu.html#L192'>test-hsl-extremely-blue</a>/hue"</span> -<span id="L198" class="LineNr">198 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L192'>test-hsl-extremely-blue</a>/saturation"</span> -<span id="L199" class="LineNr">199 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0x7f</span>, <span class="Constant">"F - <a href='505colors.mu.html#L192'>test-hsl-extremely-blue</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> -<span id="L200" class="LineNr">200 </span><span class="Delimiter">}</span> -<span id="L201" class="LineNr">201 </span> -<span id="L202" class="LineNr">202 </span><span class="muComment"># cyan: 0x7f</span> -<span id="L203" class="LineNr">203 </span> -<span id="L204" class="LineNr">204 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L204'>test-hsl-cyan</a></span> <span class="Delimiter">{</span> -<span id="L205" class="LineNr">205 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L208" class="LineNr">208 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> <span class="Constant">0</span>, <span class="Constant">0xff</span>, <span class="Constant">0xff</span> -<span id="L209" class="LineNr">209 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0x80</span>, <span class="Constant">"F - <a href='505colors.mu.html#L204'>test-hsl-cyan</a>/hue"</span> -<span id="L210" class="LineNr">210 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L204'>test-hsl-cyan</a>/saturation"</span> -<span id="L211" class="LineNr">211 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0x7f</span>, <span class="Constant">"F - <a href='505colors.mu.html#L204'>test-hsl-cyan</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> -<span id="L212" class="LineNr">212 </span><span class="Delimiter">}</span> -<span id="L213" class="LineNr">213 </span> -<span id="L214" class="LineNr">214 </span><span class="muComment">###</span> -<span id="L215" class="LineNr">215 </span> -<span id="L216" class="LineNr">216 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L216'>maximum</a></span> a: int, b: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> -<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> a2/eax: int <span class="Special"><-</span> copy a -<span id="L218" class="LineNr">218 </span> compare a2, b -<span id="L219" class="LineNr">219 </span> <span class="Delimiter">{</span> -<span id="L220" class="LineNr">220 </span> <span class="PreProc">break-if-<</span> -<span id="L221" class="LineNr">221 </span> <span class="PreProc">return</span> a -<span id="L222" class="LineNr">222 </span> <span class="Delimiter">}</span> -<span id="L223" class="LineNr">223 </span> <span class="PreProc">return</span> b -<span id="L224" class="LineNr">224 </span><span class="Delimiter">}</span> -<span id="L225" class="LineNr">225 </span> -<span id="L226" class="LineNr">226 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L226'>minimum</a></span> a: int, b: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> -<span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> a2/eax: int <span class="Special"><-</span> copy a -<span id="L228" class="LineNr">228 </span> compare a2, b -<span id="L229" class="LineNr">229 </span> <span class="Delimiter">{</span> -<span id="L230" class="LineNr">230 </span> <span class="PreProc">break-if-></span> -<span id="L231" class="LineNr">231 </span> <span class="PreProc">return</span> a -<span id="L232" class="LineNr">232 </span> <span class="Delimiter">}</span> -<span id="L233" class="LineNr">233 </span> <span class="PreProc">return</span> b -<span id="L234" class="LineNr">234 </span><span class="Delimiter">}</span> +<span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L1'>nearest-color-euclidean</a></span> r: int, g: int, b: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L2" class="LineNr"> 2 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0x100</span>/invalid +<span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> max-distance/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy <span class="Constant">0x30000</span>/max <span class="muComment"># 3 * 0x100*0x100</span> +<span id="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> r2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L5" class="LineNr"> 5 </span> <span class="PreProc">var</span> g2/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> b2/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L8" class="LineNr"> 8 </span> <span class="Delimiter">{</span> +<span id="L9" class="LineNr"> 9 </span> compare color, <span class="Constant">0x100</span> +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">break-if->=</span> +<span id="L11" class="LineNr"> 11 </span> $nearest-color-euclidean:body: <span class="Delimiter">{</span> +<span id="L12" class="LineNr"> 12 </span> r2, g2, b2 <span class="Special"><-</span> <a href='316colors.subx.html#L7'>color-rgb</a> color +<span id="L13" class="LineNr"> 13 </span> <span class="Delimiter">{</span> +<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> curr-distance/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L27'>euclidean-distance-squared</a> r, g, b, r2, g2, b2 +<span id="L15" class="LineNr"> 15 </span> compare curr-distance, max-distance +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">break-if->=</span> $nearest-color-euclidean:body +<span id="L17" class="LineNr"> 17 </span> max-distance <span class="Special"><-</span> copy curr-distance +<span id="L18" class="LineNr"> 18 </span> <span class="Delimiter">}</span> +<span id="L19" class="LineNr"> 19 </span> result <span class="Special"><-</span> copy color +<span id="L20" class="LineNr"> 20 </span> <span class="Delimiter">}</span> +<span id="L21" class="LineNr"> 21 </span> color <span class="Special"><-</span> increment +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">loop</span> +<span id="L23" class="LineNr"> 23 </span> <span class="Delimiter">}</span> +<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">return</span> result +<span id="L25" class="LineNr"> 25 </span><span class="Delimiter">}</span> +<span id="L26" class="LineNr"> 26 </span> +<span id="L27" class="LineNr"> 27 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L27'>euclidean-distance-squared</a></span> r1: int, g1: int, b1: int, r2: int, g2: int, b2: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L29" class="LineNr"> 29 </span> <span class="muComment"># red</span> +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy r1 +<span id="L31" class="LineNr"> 31 </span> tmp <span class="Special"><-</span> subtract r2 +<span id="L32" class="LineNr"> 32 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L33" class="LineNr"> 33 </span> result <span class="Special"><-</span> add tmp +<span id="L34" class="LineNr"> 34 </span> <span class="muComment"># green</span> +<span id="L35" class="LineNr"> 35 </span> tmp <span class="Special"><-</span> copy g1 +<span id="L36" class="LineNr"> 36 </span> tmp <span class="Special"><-</span> subtract g2 +<span id="L37" class="LineNr"> 37 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L38" class="LineNr"> 38 </span> result <span class="Special"><-</span> add tmp +<span id="L39" class="LineNr"> 39 </span> <span class="muComment"># blue</span> +<span id="L40" class="LineNr"> 40 </span> tmp <span class="Special"><-</span> copy b1 +<span id="L41" class="LineNr"> 41 </span> tmp <span class="Special"><-</span> subtract b2 +<span id="L42" class="LineNr"> 42 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L43" class="LineNr"> 43 </span> result <span class="Special"><-</span> add tmp +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">return</span> result +<span id="L45" class="LineNr"> 45 </span><span class="Delimiter">}</span> +<span id="L46" class="LineNr"> 46 </span> +<span id="L47" class="LineNr"> 47 </span><span class="muComment"># Hue/saturation/luminance for an rgb triple.</span> +<span id="L48" class="LineNr"> 48 </span><span class="muComment"># rgb are in [0, 256)</span> +<span id="L49" class="LineNr"> 49 </span><span class="muComment"># hsl are also returned in [0, 256)</span> +<span id="L50" class="LineNr"> 50 </span><span class="muComment"># from <a href="https://www.niwa.nu/2013/05/math-behind-colorspace-conversions-rgb-hsl">https://www.niwa.nu/2013/05/math-behind-colorspace-conversions-rgb-hsl</a></span> +<span id="L51" class="LineNr"> 51 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L51'>hsl</a></span> r: int, g: int, b: int<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int, _/<span class="muRegEdx">edx</span>: int, _/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> _max/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L340'>maximum</a> r, g +<span id="L53" class="LineNr"> 53 </span> _max <span class="Special"><-</span> <a href='505colors.mu.html#L340'>maximum</a> _max, b +<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> max/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _max +<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> _min/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L350'>minimum</a> r, g +<span id="L56" class="LineNr"> 56 </span> _min <span class="Special"><-</span> <a href='505colors.mu.html#L350'>minimum</a> _min, b +<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> min/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _min +<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> luminance/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy min +<span id="L59" class="LineNr"> 59 </span> luminance <span class="Special"><-</span> add max +<span id="L60" class="LineNr"> 60 </span> luminance <span class="Special"><-</span> shift-right <span class="Constant">1</span> <span class="muComment"># TODO: round up instead of down</span> +<span id="L61" class="LineNr"> 61 </span> <span class="muComment"># if rgb are all equal, it's a shade of grey</span> +<span id="L62" class="LineNr"> 62 </span> compare min, max +<span id="L63" class="LineNr"> 63 </span> <span class="Delimiter">{</span> +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">break-if-!=</span> +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">return</span> <span class="Constant">0</span>, <span class="Constant">0</span>, luminance +<span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">}</span> +<span id="L67" class="LineNr"> 67 </span> <span class="muComment"># saturation =</span> +<span id="L68" class="LineNr"> 68 </span> <span class="muComment"># luminance < 128 | 255*(max-min)/ (max+min)</span> +<span id="L69" class="LineNr"> 69 </span> <span class="muComment"># otherwise | 255*(max-min)/(2*255 - (max+min))</span> +<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> nr/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy max +<span id="L71" class="LineNr"> 71 </span> nr <span class="Special"><-</span> subtract min +<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> dr/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L73" class="LineNr"> 73 </span> compare luminance, <span class="Constant">0x80</span> +<span id="L74" class="LineNr"> 74 </span> <span class="Delimiter">{</span> +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">break-if->=</span> +<span id="L76" class="LineNr"> 76 </span> dr <span class="Special"><-</span> copy max +<span id="L77" class="LineNr"> 77 </span> dr <span class="Special"><-</span> add min +<span id="L78" class="LineNr"> 78 </span> <span class="Delimiter">}</span> +<span id="L79" class="LineNr"> 79 </span> <span class="Delimiter">{</span> +<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">break-if-<</span> +<span id="L81" class="LineNr"> 81 </span> dr <span class="Special"><-</span> copy <span class="Constant">0xff</span> +<span id="L82" class="LineNr"> 82 </span> dr <span class="Special"><-</span> shift-left <span class="Constant">1</span> +<span id="L83" class="LineNr"> 83 </span> dr <span class="Special"><-</span> subtract max +<span id="L84" class="LineNr"> 84 </span> dr <span class="Special"><-</span> subtract min +<span id="L85" class="LineNr"> 85 </span> <span class="Delimiter">}</span> +<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> q/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert nr +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> tmp/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert dr +<span id="L88" class="LineNr"> 88 </span> q <span class="Special"><-</span> divide tmp +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> int-255/eax: int <span class="Special"><-</span> copy <span class="Constant">0xff</span> +<span id="L90" class="LineNr"> 90 </span> tmp <span class="Special"><-</span> convert int-255 +<span id="L91" class="LineNr"> 91 </span> q <span class="Special"><-</span> multiply tmp +<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> saturation/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> convert q +<span id="L93" class="LineNr"> 93 </span> <span class="muComment"># hue = </span> +<span id="L94" class="LineNr"> 94 </span> <span class="muComment"># red is max | 256.0/6* (g-b)/(max-min)</span> +<span id="L95" class="LineNr"> 95 </span> <span class="muComment"># green is max | 256.0/6*(2.0 + (b-r)/(max-min))</span> +<span id="L96" class="LineNr"> 96 </span> <span class="muComment"># blue is max | 256.0/6*(4.0 + (r-g)/(max-min))</span> +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> zero/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> hue-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert zero +<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> dr/eax: int <span class="Special"><-</span> copy max +<span id="L100" class="LineNr">100 </span> dr <span class="Special"><-</span> subtract min +<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> dr-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert dr +<span id="L102" class="LineNr">102 </span> $hsl:compute-hue-normalized: <span class="Delimiter">{</span> +<span id="L103" class="LineNr">103 </span> compare r, max +<span id="L104" class="LineNr">104 </span> <span class="Delimiter">{</span> +<span id="L105" class="LineNr">105 </span> <span class="PreProc">break-if-!=</span> +<span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> nr/eax: int <span class="Special"><-</span> copy g +<span id="L107" class="LineNr">107 </span> nr <span class="Special"><-</span> subtract b +<span id="L108" class="LineNr">108 </span> hue-f <span class="Special"><-</span> convert nr +<span id="L109" class="LineNr">109 </span> hue-f <span class="Special"><-</span> divide dr-f +<span id="L110" class="LineNr">110 </span> <span class="PreProc">break</span> $hsl:compute-hue-normalized +<span id="L111" class="LineNr">111 </span> <span class="Delimiter">}</span> +<span id="L112" class="LineNr">112 </span> compare g, max +<span id="L113" class="LineNr">113 </span> <span class="Delimiter">{</span> +<span id="L114" class="LineNr">114 </span> <span class="PreProc">break-if-!=</span> +<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> nr/eax: int <span class="Special"><-</span> copy b +<span id="L116" class="LineNr">116 </span> nr <span class="Special"><-</span> subtract r +<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert nr +<span id="L118" class="LineNr">118 </span> f <span class="Special"><-</span> divide dr-f +<span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> two/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L120" class="LineNr">120 </span> hue-f <span class="Special"><-</span> convert two +<span id="L121" class="LineNr">121 </span> hue-f <span class="Special"><-</span> add f +<span id="L122" class="LineNr">122 </span> <span class="PreProc">break</span> $hsl:compute-hue-normalized +<span id="L123" class="LineNr">123 </span> <span class="Delimiter">}</span> +<span id="L124" class="LineNr">124 </span> compare b, max +<span id="L125" class="LineNr">125 </span> <span class="Delimiter">{</span> +<span id="L126" class="LineNr">126 </span> <span class="PreProc">break-if-!=</span> +<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> nr/eax: int <span class="Special"><-</span> copy r +<span id="L128" class="LineNr">128 </span> nr <span class="Special"><-</span> subtract g +<span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert nr +<span id="L130" class="LineNr">130 </span> f <span class="Special"><-</span> divide dr-f +<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> two/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">4</span> +<span id="L132" class="LineNr">132 </span> hue-f <span class="Special"><-</span> convert two +<span id="L133" class="LineNr">133 </span> hue-f <span class="Special"><-</span> add f +<span id="L134" class="LineNr">134 </span> <span class="PreProc">break</span> $hsl:compute-hue-normalized +<span id="L135" class="LineNr">135 </span> <span class="Delimiter">}</span> +<span id="L136" class="LineNr">136 </span> <span class="Delimiter">}</span> +<span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> int-256/eax: int <span class="Special"><-</span> copy <span class="Constant">0x100</span> +<span id="L138" class="LineNr">138 </span> <span class="PreProc">var</span> scaling-factor/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert int-256 +<span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> int-6/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert int-6 +<span id="L141" class="LineNr">141 </span> scaling-factor <span class="Special"><-</span> divide six-f +<span id="L142" class="LineNr">142 </span> hue-f <span class="Special"><-</span> multiply scaling-factor +<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> hue/eax: int <span class="Special"><-</span> convert hue-f +<span id="L144" class="LineNr">144 </span> <span class="muComment"># if hue < 0, hue = 256 - hue</span> +<span id="L145" class="LineNr">145 </span> compare hue, <span class="Constant">0</span> +<span id="L146" class="LineNr">146 </span> <span class="Delimiter">{</span> +<span id="L147" class="LineNr">147 </span> <span class="PreProc">break-if->=</span> +<span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> tmp/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x100</span> +<span id="L149" class="LineNr">149 </span> tmp <span class="Special"><-</span> subtract hue +<span id="L150" class="LineNr">150 </span> hue <span class="Special"><-</span> copy tmp +<span id="L151" class="LineNr">151 </span> <span class="Delimiter">}</span> +<span id="L152" class="LineNr">152 </span> <span class="PreProc">return</span> hue, saturation, luminance +<span id="L153" class="LineNr">153 </span><span class="Delimiter">}</span> +<span id="L154" class="LineNr">154 </span> +<span id="L155" class="LineNr">155 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L155'>test-hsl-black</a></span> <span class="Delimiter">{</span> +<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L159" class="LineNr">159 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> <span class="Constant">0</span>, <span class="Constant">0</span>, <span class="Constant">0</span> +<span id="L160" class="LineNr">160 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L155'>test-hsl-black</a>/hue"</span> +<span id="L161" class="LineNr">161 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L155'>test-hsl-black</a>/saturation"</span> +<span id="L162" class="LineNr">162 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L155'>test-hsl-black</a>/luminance"</span> +<span id="L163" class="LineNr">163 </span><span class="Delimiter">}</span> +<span id="L164" class="LineNr">164 </span> +<span id="L165" class="LineNr">165 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L165'>test-hsl-white</a></span> <span class="Delimiter">{</span> +<span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L167" class="LineNr">167 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L168" class="LineNr">168 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L169" class="LineNr">169 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> <span class="Constant">0xff</span>, <span class="Constant">0xff</span>, <span class="Constant">0xff</span> +<span id="L170" class="LineNr">170 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L165'>test-hsl-white</a>/hue"</span> +<span id="L171" class="LineNr">171 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L165'>test-hsl-white</a>/saturation"</span> +<span id="L172" class="LineNr">172 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L165'>test-hsl-white</a>/luminance"</span> +<span id="L173" class="LineNr">173 </span><span class="Delimiter">}</span> +<span id="L174" class="LineNr">174 </span> +<span id="L175" class="LineNr">175 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L175'>test-hsl-grey</a></span> <span class="Delimiter">{</span> +<span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L179" class="LineNr">179 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> <span class="Constant">0x30</span>, <span class="Constant">0x30</span>, <span class="Constant">0x30</span> +<span id="L180" class="LineNr">180 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L175'>test-hsl-grey</a>/hue"</span> +<span id="L181" class="LineNr">181 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L175'>test-hsl-grey</a>/saturation"</span> +<span id="L182" class="LineNr">182 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0x30</span>, <span class="Constant">"F - <a href='505colors.mu.html#L175'>test-hsl-grey</a>/luminance"</span> +<span id="L183" class="LineNr">183 </span><span class="Delimiter">}</span> +<span id="L184" class="LineNr">184 </span> +<span id="L185" class="LineNr">185 </span><span class="muComment"># red hues: 0-0x54</span> +<span id="L186" class="LineNr">186 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L186'>test-hsl-slightly-red</a></span> <span class="Delimiter">{</span> +<span id="L187" class="LineNr">187 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L190" class="LineNr">190 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> <span class="Constant">0xff</span>, <span class="Constant">0xfe</span>, <span class="Constant">0xfe</span> +<span id="L191" class="LineNr">191 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L186'>test-hsl-slightly-red</a>/hue"</span> +<span id="L192" class="LineNr">192 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L186'>test-hsl-slightly-red</a>/saturation"</span> +<span id="L193" class="LineNr">193 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0xfe</span>, <span class="Constant">"F - <a href='505colors.mu.html#L186'>test-hsl-slightly-red</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> +<span id="L194" class="LineNr">194 </span><span class="Delimiter">}</span> +<span id="L195" class="LineNr">195 </span> +<span id="L196" class="LineNr">196 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L196'>test-hsl-extremely-red</a></span> <span class="Delimiter">{</span> +<span id="L197" class="LineNr">197 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L200" class="LineNr">200 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> <span class="Constant">0xff</span>, <span class="Constant">0</span>, <span class="Constant">0</span> +<span id="L201" class="LineNr">201 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0</span>, <span class="Constant">"F - <a href='505colors.mu.html#L196'>test-hsl-extremely-red</a>/hue"</span> +<span id="L202" class="LineNr">202 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L196'>test-hsl-extremely-red</a>/saturation"</span> +<span id="L203" class="LineNr">203 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0x7f</span>, <span class="Constant">"F - <a href='505colors.mu.html#L196'>test-hsl-extremely-red</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> +<span id="L204" class="LineNr">204 </span><span class="Delimiter">}</span> +<span id="L205" class="LineNr">205 </span> +<span id="L206" class="LineNr">206 </span><span class="muComment"># green hues: 0x55-0xaa</span> +<span id="L207" class="LineNr">207 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L207'>test-hsl-slightly-green</a></span> <span class="Delimiter">{</span> +<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L211" class="LineNr">211 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> <span class="Constant">0xfe</span>, <span class="Constant">0xff</span>, <span class="Constant">0xfe</span> +<span id="L212" class="LineNr">212 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0x55</span>, <span class="Constant">"F - <a href='505colors.mu.html#L207'>test-hsl-slightly-green</a>/hue"</span> +<span id="L213" class="LineNr">213 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L207'>test-hsl-slightly-green</a>/saturation"</span> +<span id="L214" class="LineNr">214 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0xfe</span>, <span class="Constant">"F - <a href='505colors.mu.html#L207'>test-hsl-slightly-green</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> +<span id="L215" class="LineNr">215 </span><span class="Delimiter">}</span> +<span id="L216" class="LineNr">216 </span> +<span id="L217" class="LineNr">217 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L217'>test-hsl-extremely-green</a></span> <span class="Delimiter">{</span> +<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L221" class="LineNr">221 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> <span class="Constant">0</span>, <span class="Constant">0xff</span>, <span class="Constant">0</span> +<span id="L222" class="LineNr">222 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0x55</span>, <span class="Constant">"F - <a href='505colors.mu.html#L217'>test-hsl-extremely-green</a>/hue"</span> +<span id="L223" class="LineNr">223 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L217'>test-hsl-extremely-green</a>/saturation"</span> +<span id="L224" class="LineNr">224 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0x7f</span>, <span class="Constant">"F - <a href='505colors.mu.html#L217'>test-hsl-extremely-green</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> +<span id="L225" class="LineNr">225 </span><span class="Delimiter">}</span> +<span id="L226" class="LineNr">226 </span> +<span id="L227" class="LineNr">227 </span><span class="muComment"># blue hues: 0xab-0xff</span> +<span id="L228" class="LineNr">228 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L228'>test-hsl-slightly-blue</a></span> <span class="Delimiter">{</span> +<span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L232" class="LineNr">232 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> <span class="Constant">0xfe</span>, <span class="Constant">0xfe</span>, <span class="Constant">0xff</span> +<span id="L233" class="LineNr">233 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0xab</span>, <span class="Constant">"F - <a href='505colors.mu.html#L228'>test-hsl-slightly-blue</a>/hue"</span> +<span id="L234" class="LineNr">234 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L228'>test-hsl-slightly-blue</a>/saturation"</span> +<span id="L235" class="LineNr">235 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0xfe</span>, <span class="Constant">"F - <a href='505colors.mu.html#L228'>test-hsl-slightly-blue</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> +<span id="L236" class="LineNr">236 </span><span class="Delimiter">}</span> +<span id="L237" class="LineNr">237 </span> +<span id="L238" class="LineNr">238 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L238'>test-hsl-extremely-blue</a></span> <span class="Delimiter">{</span> +<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L242" class="LineNr">242 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> <span class="Constant">0</span>, <span class="Constant">0</span>, <span class="Constant">0xff</span> +<span id="L243" class="LineNr">243 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0xab</span>, <span class="Constant">"F - <a href='505colors.mu.html#L238'>test-hsl-extremely-blue</a>/hue"</span> +<span id="L244" class="LineNr">244 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L238'>test-hsl-extremely-blue</a>/saturation"</span> +<span id="L245" class="LineNr">245 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0x7f</span>, <span class="Constant">"F - <a href='505colors.mu.html#L238'>test-hsl-extremely-blue</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> +<span id="L246" class="LineNr">246 </span><span class="Delimiter">}</span> +<span id="L247" class="LineNr">247 </span> +<span id="L248" class="LineNr">248 </span><span class="muComment"># cyan: 0x7f</span> +<span id="L249" class="LineNr">249 </span> +<span id="L250" class="LineNr">250 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L250'>test-hsl-cyan</a></span> <span class="Delimiter">{</span> +<span id="L251" class="LineNr">251 </span> <span class="PreProc">var</span> h/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L252" class="LineNr">252 </span> <span class="PreProc">var</span> s/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> l/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L254" class="LineNr">254 </span> h, s, l <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> <span class="Constant">0</span>, <span class="Constant">0xff</span>, <span class="Constant">0xff</span> +<span id="L255" class="LineNr">255 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> h, <span class="Constant">0x80</span>, <span class="Constant">"F - <a href='505colors.mu.html#L250'>test-hsl-cyan</a>/hue"</span> +<span id="L256" class="LineNr">256 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> s, <span class="Constant">0xff</span>, <span class="Constant">"F - <a href='505colors.mu.html#L250'>test-hsl-cyan</a>/saturation"</span> +<span id="L257" class="LineNr">257 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> l, <span class="Constant">0x7f</span>, <span class="Constant">"F - <a href='505colors.mu.html#L250'>test-hsl-cyan</a>/luminance"</span> <span class="muComment"># TODO: should round up</span> +<span id="L258" class="LineNr">258 </span><span class="Delimiter">}</span> +<span id="L259" class="LineNr">259 </span> +<span id="L260" class="LineNr">260 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a></span> h: int, s: int, l: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L261" class="LineNr">261 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0x100</span>/invalid +<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> max-distance/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy <span class="Constant">0x30000</span>/max <span class="muComment"># 3 * 0x100*0x100</span> +<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> a/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> c/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L266" class="LineNr">266 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L267" class="LineNr">267 </span> <span class="Delimiter">{</span> +<span id="L268" class="LineNr">268 </span> compare color, <span class="Constant">0x100</span> +<span id="L269" class="LineNr">269 </span> <span class="PreProc">break-if->=</span> +<span id="L270" class="LineNr">270 </span> $nearest-color-euclidean-hsl:body: <span class="Delimiter">{</span> +<span id="L271" class="LineNr">271 </span> a, b, c <span class="Special"><-</span> <a href='316colors.subx.html#L7'>color-rgb</a> color +<span id="L272" class="LineNr">272 </span> a, b, c <span class="Special"><-</span> <a href='505colors.mu.html#L51'>hsl</a> a, b, c +<span id="L273" class="LineNr">273 </span> <span class="Delimiter">{</span> +<span id="L274" class="LineNr">274 </span> <span class="PreProc">var</span> curr-distance/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L316'>euclidean-hsl-squared</a> a, b, c, h, s, l +<span id="L275" class="LineNr">275 </span> compare curr-distance, max-distance +<span id="L276" class="LineNr">276 </span> <span class="PreProc">break-if->=</span> $nearest-color-euclidean-hsl:body +<span id="L277" class="LineNr">277 </span> max-distance <span class="Special"><-</span> copy curr-distance +<span id="L278" class="LineNr">278 </span> <span class="Delimiter">}</span> +<span id="L279" class="LineNr">279 </span> result <span class="Special"><-</span> copy color +<span id="L280" class="LineNr">280 </span> <span class="Delimiter">}</span> +<span id="L281" class="LineNr">281 </span> color <span class="Special"><-</span> increment +<span id="L282" class="LineNr">282 </span> <span class="PreProc">loop</span> +<span id="L283" class="LineNr">283 </span> <span class="Delimiter">}</span> +<span id="L284" class="LineNr">284 </span> <span class="PreProc">return</span> result +<span id="L285" class="LineNr">285 </span><span class="Delimiter">}</span> +<span id="L286" class="LineNr">286 </span> +<span id="L287" class="LineNr">287 </span><span class="PreProc">fn</span> <span class="muTest"><a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a></span> <span class="Delimiter">{</span> +<span id="L288" class="LineNr">288 </span> <span class="muComment"># red from lightest to darkest</span> +<span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> red/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0</span>, <span class="Constant">0xff</span>, <span class="Constant">0xff</span> +<span id="L290" class="LineNr">290 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">0x58</span>/<span class="Constant">88</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/full-red1"</span> +<span id="L291" class="LineNr">291 </span> red <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0</span>, <span class="Constant">0xff</span>, <span class="Constant">0xc0</span> +<span id="L292" class="LineNr">292 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">0x40</span>/<span class="Constant">64</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/full-red2"</span> +<span id="L293" class="LineNr">293 </span> red <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0</span>, <span class="Constant">0xff</span>, <span class="Constant">0x80</span> +<span id="L294" class="LineNr">294 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">0x28</span>/<span class="Constant">40</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/full-red3"</span> +<span id="L295" class="LineNr">295 </span> red <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0</span>, <span class="Constant">0xff</span>, <span class="Constant">0x40</span> +<span id="L296" class="LineNr">296 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">0x28</span>/<span class="Constant">40</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/full-red4"</span> +<span id="L297" class="LineNr">297 </span> red <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0</span>, <span class="Constant">0xff</span>, <span class="Constant">0</span> +<span id="L298" class="LineNr">298 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">0x28</span>/<span class="Constant">40</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/full-red5"</span> +<span id="L299" class="LineNr">299 </span> <span class="muComment"># try a number really close to red but on the other side of the cylinder</span> +<span id="L300" class="LineNr">300 </span> red <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0xff</span>, <span class="Constant">0xff</span>, <span class="Constant">0xff</span> +<span id="L301" class="LineNr">301 </span><span class="CommentedCode">#? draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, red, 7/fg 0/bg</span> +<span id="L302" class="LineNr">302 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">0x57</span>/<span class="Constant">87</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/other-end-of-red"</span> <span class="muComment"># still looks red</span> +<span id="L303" class="LineNr">303 </span> <span class="muComment"># half-saturation red from lightest to darkest</span> +<span id="L304" class="LineNr">304 </span> red <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0</span>, <span class="Constant">0x80</span>, <span class="Constant">0xff</span> +<span id="L305" class="LineNr">305 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">0xf</span>/<span class="Constant">15</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/half-red1"</span> <span class="muComment"># ?? grey ??</span> +<span id="L306" class="LineNr">306 </span> red <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0</span>, <span class="Constant">0x80</span>, <span class="Constant">0xc0</span> +<span id="L307" class="LineNr">307 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">4</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/half-red2"</span> +<span id="L308" class="LineNr">308 </span> red <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0</span>, <span class="Constant">0x80</span>, <span class="Constant">0x80</span> +<span id="L309" class="LineNr">309 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">4</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/half-red3"</span> +<span id="L310" class="LineNr">310 </span> red <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0</span>, <span class="Constant">0x80</span>, <span class="Constant">0x40</span> +<span id="L311" class="LineNr">311 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">4</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/half-red4"</span> +<span id="L312" class="LineNr">312 </span> red <span class="Special"><-</span> <a href='505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> <span class="Constant">0</span>, <span class="Constant">0x80</span>, <span class="Constant">0</span> +<span id="L313" class="LineNr">313 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> red, <span class="Constant">0x70</span>/<span class="Constant">112</span>, <span class="Constant">"F - <a href='505colors.mu.html#L287'>test-nearest-color-euclidean-hsl</a>/half-red5"</span> +<span id="L314" class="LineNr">314 </span><span class="Delimiter">}</span> +<span id="L315" class="LineNr">315 </span> +<span id="L316" class="LineNr">316 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L316'>euclidean-hsl-squared</a></span> h1: int, s1: int, l1: int, h2: int, s2: int, l2: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L317" class="LineNr">317 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L318" class="LineNr">318 </span> <span class="muComment"># hue</span> +<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy h1 +<span id="L320" class="LineNr">320 </span> tmp <span class="Special"><-</span> subtract h2 +<span id="L321" class="LineNr">321 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L322" class="LineNr">322 </span> <span class="muComment"># TODO: should we do something to reflect that hue is a cylindrical space?</span> +<span id="L323" class="LineNr">323 </span> <span class="muComment"># I can't come up with a failing test.</span> +<span id="L324" class="LineNr">324 </span> result <span class="Special"><-</span> add tmp +<span id="L325" class="LineNr">325 </span> <span class="muComment"># saturation</span> +<span id="L326" class="LineNr">326 </span> tmp <span class="Special"><-</span> copy s1 +<span id="L327" class="LineNr">327 </span> tmp <span class="Special"><-</span> subtract s2 +<span id="L328" class="LineNr">328 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L329" class="LineNr">329 </span> result <span class="Special"><-</span> add tmp +<span id="L330" class="LineNr">330 </span> <span class="muComment"># luminance</span> +<span id="L331" class="LineNr">331 </span> tmp <span class="Special"><-</span> copy l1 +<span id="L332" class="LineNr">332 </span> tmp <span class="Special"><-</span> subtract l2 +<span id="L333" class="LineNr">333 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L334" class="LineNr">334 </span> result <span class="Special"><-</span> add tmp +<span id="L335" class="LineNr">335 </span> <span class="PreProc">return</span> result +<span id="L336" class="LineNr">336 </span><span class="Delimiter">}</span> +<span id="L337" class="LineNr">337 </span> +<span id="L338" class="LineNr">338 </span><span class="muComment">###</span> +<span id="L339" class="LineNr">339 </span> +<span id="L340" class="LineNr">340 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L340'>maximum</a></span> a: int, b: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L341" class="LineNr">341 </span> <span class="PreProc">var</span> a2/eax: int <span class="Special"><-</span> copy a +<span id="L342" class="LineNr">342 </span> compare a2, b +<span id="L343" class="LineNr">343 </span> <span class="Delimiter">{</span> +<span id="L344" class="LineNr">344 </span> <span class="PreProc">break-if-<</span> +<span id="L345" class="LineNr">345 </span> <span class="PreProc">return</span> a +<span id="L346" class="LineNr">346 </span> <span class="Delimiter">}</span> +<span id="L347" class="LineNr">347 </span> <span class="PreProc">return</span> b +<span id="L348" class="LineNr">348 </span><span class="Delimiter">}</span> +<span id="L349" class="LineNr">349 </span> +<span id="L350" class="LineNr">350 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='505colors.mu.html#L350'>minimum</a></span> a: int, b: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L351" class="LineNr">351 </span> <span class="PreProc">var</span> a2/eax: int <span class="Special"><-</span> copy a +<span id="L352" class="LineNr">352 </span> compare a2, b +<span id="L353" class="LineNr">353 </span> <span class="Delimiter">{</span> +<span id="L354" class="LineNr">354 </span> <span class="PreProc">break-if-></span> +<span id="L355" class="LineNr">355 </span> <span class="PreProc">return</span> a +<span id="L356" class="LineNr">356 </span> <span class="Delimiter">}</span> +<span id="L357" class="LineNr">357 </span> <span class="PreProc">return</span> b +<span id="L358" class="LineNr">358 </span><span class="Delimiter">}</span> </pre> </body> </html> diff --git a/html/506math.mu.html b/html/506math.mu.html index 76390e16..3574d4c3 100644 --- a/html/506math.mu.html +++ b/html/506math.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 506math.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,15 +16,15 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } .LineNr { } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/507line.mu.html b/html/507line.mu.html index 93615766..b4929342 100644 --- a/html/507line.mu.html +++ b/html/507line.mu.html @@ -1,33 +1,33 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 507line.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } -.LineNr { } -.Constant { color: #008787; } .muRegEbx { color: #5f00ff; } -.muRegEdx { color: #af5f00; } .muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.muRegEdx { color: #af5f00; } +.LineNr { } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/508circle.mu.html b/html/508circle.mu.html index 91d8b440..8d4e568f 100644 --- a/html/508circle.mu.html +++ b/html/508circle.mu.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 508circle.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/509bezier.mu.html b/html/509bezier.mu.html index 7ecbd5b3..eb630d94 100644 --- a/html/509bezier.mu.html +++ b/html/509bezier.mu.html @@ -1,33 +1,33 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - 509bezier.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } -.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/ex1.mu.html b/html/apps/*.subx.html index fc07e235..afdc5581 100644 --- a/html/ex1.mu.html +++ b/html/apps/*.subx.html @@ -1,27 +1,24 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex1.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/*.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } -.PreProc { color: #c000c0; } .LineNr { } -.Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -51,11 +48,9 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex1.mu'>https://github.com/akkartik/mu/blob/main/ex1.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/*.subx'>https://github.com/akkartik/mu/blob/main/apps/*.subx</a> <pre id='vimCodeElement'> -<span id="L1" class="LineNr">1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex1.mu.html#L1'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L2" class="LineNr">2 </span> <span class="PreProc">loop</span> -<span id="L3" class="LineNr">3 </span><span class="Delimiter">}</span> +<span id="L1" class="LineNr">1 </span> </pre> </body> </html> diff --git a/html/apps/colors.mu.html b/html/apps/colors.mu.html new file mode 100644 index 00000000..2085fbdd --- /dev/null +++ b/html/apps/colors.mu.html @@ -0,0 +1,309 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - apps/colors.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.Special { color: #ff6060; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/apps/colors.mu'>https://github.com/akkartik/mu/blob/main/apps/colors.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Return colors 'near' a given r/g/b value (expressed in hex)</span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment"># If we did this rigorously we'd need to implement cosines. So we won't.</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment">#</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># To build:</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./translate apps/colors.mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment">#</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># Example session:</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># $ qemu-system-i386 code.img</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># Enter 3 hex bytes for r, g, b (lowercase; no 0x prefix) separated by a single space> aa 0 aa</span> +<span id="L10" class="LineNr"> 10 </span><span class="muComment"># 5</span> +<span id="L11" class="LineNr"> 11 </span><span class="muComment"># This means only color 5 in the default palette is similar to #aa00aa.</span> +<span id="L12" class="LineNr"> 12 </span> +<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L13'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> in-storage: (stream byte <span class="Constant">0x10</span>) +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address in-storage +<span id="L16" class="LineNr"> 16 </span> <span class="Delimiter">{</span> +<span id="L17" class="LineNr"> 17 </span> <span class="muComment"># print prompt</span> +<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"Enter 3 hex bytes for r, g, b (lowercase; no 0x prefix) separated by a single space> "</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0x80</span>/xmax, <span class="Constant">0x28</span>/y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg +<span id="L19" class="LineNr"> 19 </span> <span class="muComment"># read line from keyboard</span> +<span id="L20" class="LineNr"> 20 </span> <a href='../106stream.subx.html#L20'>clear-stream</a> in +<span id="L21" class="LineNr"> 21 </span> <span class="Delimiter">{</span> +<span id="L22" class="LineNr"> 22 </span> <a href='../500fake-screen.mu.html#L237'>draw-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x20</span>/space +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L24" class="LineNr"> 24 </span> compare key, <span class="Constant">0xa</span>/newline +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">break-if-=</span> +<span id="L26" class="LineNr"> 26 </span> compare key, <span class="Constant">0</span> +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">loop-if-=</span> +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> key2/eax: int <span class="Special"><-</span> copy key +<span id="L29" class="LineNr"> 29 </span> <a href='../115write-byte.subx.html#L12'>append-byte</a> in, key2 +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy key2 +<span id="L31" class="LineNr"> 31 </span> <a href='../501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, g, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg +<span id="L32" class="LineNr"> 32 </span> <a href='../501draw-text.mu.html#L16'>move-cursor-right</a> <span class="Constant">0</span> +<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">loop</span> +<span id="L34" class="LineNr"> 34 </span> <span class="Delimiter">}</span> +<span id="L35" class="LineNr"> 35 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L36" class="LineNr"> 36 </span> <span class="muComment"># parse</span> +<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> a/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> c/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L40" class="LineNr"> 40 </span> <span class="muComment"># a, b, c = r, g, b</span> +<span id="L41" class="LineNr"> 41 </span> a, b, c <span class="Special"><-</span> <a href='colors.mu.html#L65'>parse</a> in +<span id="L42" class="LineNr"> 42 </span><span class="CommentedCode">#? set-cursor-position screen, 0x10/x, 0x1a/y</span> +<span id="L43" class="LineNr"> 43 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, a, 7/fg, 0/bg</span> +<span id="L44" class="LineNr"> 44 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> +<span id="L45" class="LineNr"> 45 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, b, 7/fg, 0/bg</span> +<span id="L46" class="LineNr"> 46 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> +<span id="L47" class="LineNr"> 47 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, c, 7/fg, 0/bg</span> +<span id="L48" class="LineNr"> 48 </span> a, b, c <span class="Special"><-</span> <a href='../505colors.mu.html#L51'>hsl</a> a, b, c +<span id="L49" class="LineNr"> 49 </span> <span class="muComment"># return all colors in the same quadrant in h, s and l</span> +<span id="L50" class="LineNr"> 50 </span> <a href='colors.mu.html#L189'>print-nearby-colors</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, a, b, c +<span id="L51" class="LineNr"> 51 </span> <span class="muComment"># another metric</span> +<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='../505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> a, b, c +<span id="L53" class="LineNr"> 53 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x10</span>/x, <span class="Constant">0x26</span>/y +<span id="L54" class="LineNr"> 54 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"nearest (euclidean, h/s/l): "</span>, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg +<span id="L55" class="LineNr"> 55 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, color, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg +<span id="L56" class="LineNr"> 56 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" "</span>, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg +<span id="L57" class="LineNr"> 57 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" "</span>, <span class="Constant">0</span>/fg, color +<span id="L58" class="LineNr"> 58 </span> <span class="muComment">#</span> +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">loop</span> +<span id="L60" class="LineNr"> 60 </span> <span class="Delimiter">}</span> +<span id="L61" class="LineNr"> 61 </span><span class="Delimiter">}</span> +<span id="L62" class="LineNr"> 62 </span> +<span id="L63" class="LineNr"> 63 </span><span class="muComment"># read exactly 3 words in a single line</span> +<span id="L64" class="LineNr"> 64 </span><span class="muComment"># Each word consists of exactly 1 or 2 hex bytes. No hex prefix.</span> +<span id="L65" class="LineNr"> 65 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L65'>parse</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int, _/<span class="muRegEdx">edx</span>: int, _/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L66" class="LineNr"> 66 </span> <span class="muComment"># read first byte of r</span> +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L13'>read-byte</a> in +<span id="L68" class="LineNr"> 68 </span> <span class="Delimiter">{</span> +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='../118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L70" class="LineNr"> 70 </span> compare valid?, <span class="Constant">0</span>/false +<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">break-if-!=</span> +<span id="L72" class="LineNr"> 72 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"invalid byte 0 of r"</span> +<span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">}</span> +<span id="L74" class="LineNr"> 74 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L176'>fast-hex-digit-value</a> tmp +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> r/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy tmp +<span id="L76" class="LineNr"> 76 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x10/y</span> +<span id="L77" class="LineNr"> 77 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, r, 7/fg, 0/bg</span> +<span id="L78" class="LineNr"> 78 </span> <span class="muComment"># read second byte of r</span> +<span id="L79" class="LineNr"> 79 </span> tmp <span class="Special"><-</span> <a href='../112read-byte.subx.html#L13'>read-byte</a> in +<span id="L80" class="LineNr"> 80 </span> <span class="Delimiter">{</span> +<span id="L81" class="LineNr"> 81 </span> <span class="Delimiter">{</span> +<span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='../118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L83" class="LineNr"> 83 </span> compare valid?, <span class="Constant">0</span>/false +<span id="L84" class="LineNr"> 84 </span> <span class="Delimiter">}</span> +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">break-if-=</span> +<span id="L86" class="LineNr"> 86 </span> r <span class="Special"><-</span> shift-left <span class="Constant">4</span> +<span id="L87" class="LineNr"> 87 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L176'>fast-hex-digit-value</a> tmp +<span id="L88" class="LineNr"> 88 </span><span class="CommentedCode">#? {</span> +<span id="L89" class="LineNr"> 89 </span><span class="CommentedCode">#? var foo/eax: int <- copy tmp</span> +<span id="L90" class="LineNr"> 90 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x11/y</span> +<span id="L91" class="LineNr"> 91 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, foo, 7/fg, 0/bg</span> +<span id="L92" class="LineNr"> 92 </span><span class="CommentedCode">#? }</span> +<span id="L93" class="LineNr"> 93 </span> r <span class="Special"><-</span> add tmp +<span id="L94" class="LineNr"> 94 </span><span class="CommentedCode">#? {</span> +<span id="L95" class="LineNr"> 95 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x12/y</span> +<span id="L96" class="LineNr"> 96 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, r, 7/fg, 0/bg</span> +<span id="L97" class="LineNr"> 97 </span><span class="CommentedCode">#? }</span> +<span id="L98" class="LineNr"> 98 </span> tmp <span class="Special"><-</span> <a href='../112read-byte.subx.html#L13'>read-byte</a> in <span class="muComment"># skip space</span> +<span id="L99" class="LineNr"> 99 </span> <span class="Delimiter">}</span> +<span id="L100" class="LineNr">100 </span> <span class="muComment"># read first byte of g</span> +<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L13'>read-byte</a> in +<span id="L102" class="LineNr">102 </span> <span class="Delimiter">{</span> +<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='../118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L104" class="LineNr">104 </span> compare valid?, <span class="Constant">0</span>/false +<span id="L105" class="LineNr">105 </span> <span class="PreProc">break-if-!=</span> +<span id="L106" class="LineNr">106 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"invalid byte 0 of g"</span> +<span id="L107" class="LineNr">107 </span> <span class="Delimiter">}</span> +<span id="L108" class="LineNr">108 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L176'>fast-hex-digit-value</a> tmp +<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> g/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy tmp +<span id="L110" class="LineNr">110 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x13/y</span> +<span id="L111" class="LineNr">111 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, g, 7/fg, 0/bg</span> +<span id="L112" class="LineNr">112 </span> <span class="muComment"># read second byte of g</span> +<span id="L113" class="LineNr">113 </span> tmp <span class="Special"><-</span> <a href='../112read-byte.subx.html#L13'>read-byte</a> in +<span id="L114" class="LineNr">114 </span> <span class="Delimiter">{</span> +<span id="L115" class="LineNr">115 </span> <span class="Delimiter">{</span> +<span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='../118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L117" class="LineNr">117 </span> compare valid?, <span class="Constant">0</span>/false +<span id="L118" class="LineNr">118 </span> <span class="Delimiter">}</span> +<span id="L119" class="LineNr">119 </span> <span class="PreProc">break-if-=</span> +<span id="L120" class="LineNr">120 </span> g <span class="Special"><-</span> shift-left <span class="Constant">4</span> +<span id="L121" class="LineNr">121 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L176'>fast-hex-digit-value</a> tmp +<span id="L122" class="LineNr">122 </span><span class="CommentedCode">#? {</span> +<span id="L123" class="LineNr">123 </span><span class="CommentedCode">#? var foo/eax: int <- copy tmp</span> +<span id="L124" class="LineNr">124 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x14/y</span> +<span id="L125" class="LineNr">125 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, foo, 7/fg, 0/bg</span> +<span id="L126" class="LineNr">126 </span><span class="CommentedCode">#? }</span> +<span id="L127" class="LineNr">127 </span> g <span class="Special"><-</span> add tmp +<span id="L128" class="LineNr">128 </span><span class="CommentedCode">#? {</span> +<span id="L129" class="LineNr">129 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x15/y</span> +<span id="L130" class="LineNr">130 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, g, 7/fg, 0/bg</span> +<span id="L131" class="LineNr">131 </span><span class="CommentedCode">#? }</span> +<span id="L132" class="LineNr">132 </span> tmp <span class="Special"><-</span> <a href='../112read-byte.subx.html#L13'>read-byte</a> in <span class="muComment"># skip space</span> +<span id="L133" class="LineNr">133 </span> <span class="Delimiter">}</span> +<span id="L134" class="LineNr">134 </span> <span class="muComment"># read first byte of b</span> +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L13'>read-byte</a> in +<span id="L136" class="LineNr">136 </span> <span class="Delimiter">{</span> +<span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='../118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L138" class="LineNr">138 </span> compare valid?, <span class="Constant">0</span>/false +<span id="L139" class="LineNr">139 </span> <span class="PreProc">break-if-!=</span> +<span id="L140" class="LineNr">140 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"invalid byte 0 of b"</span> +<span id="L141" class="LineNr">141 </span> <span class="Delimiter">}</span> +<span id="L142" class="LineNr">142 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L176'>fast-hex-digit-value</a> tmp +<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> b/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy tmp +<span id="L144" class="LineNr">144 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x16/y</span> +<span id="L145" class="LineNr">145 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, b, 7/fg, 0/bg</span> +<span id="L146" class="LineNr">146 </span> <span class="muComment"># read second byte of b</span> +<span id="L147" class="LineNr">147 </span> <span class="Delimiter">{</span> +<span id="L148" class="LineNr">148 </span> <span class="Delimiter">{</span> +<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in +<span id="L150" class="LineNr">150 </span> compare done?, <span class="Constant">0</span>/false +<span id="L151" class="LineNr">151 </span> <span class="Delimiter">}</span> +<span id="L152" class="LineNr">152 </span> <span class="PreProc">break-if-!=</span> +<span id="L153" class="LineNr">153 </span> tmp <span class="Special"><-</span> <a href='../112read-byte.subx.html#L13'>read-byte</a> in +<span id="L154" class="LineNr">154 </span> <span class="Delimiter">{</span> +<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='../118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp +<span id="L156" class="LineNr">156 </span> compare valid?, <span class="Constant">0</span>/false +<span id="L157" class="LineNr">157 </span> <span class="Delimiter">}</span> +<span id="L158" class="LineNr">158 </span> <span class="PreProc">break-if-=</span> +<span id="L159" class="LineNr">159 </span> b <span class="Special"><-</span> shift-left <span class="Constant">4</span> +<span id="L160" class="LineNr">160 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L176'>fast-hex-digit-value</a> tmp +<span id="L161" class="LineNr">161 </span><span class="CommentedCode">#? {</span> +<span id="L162" class="LineNr">162 </span><span class="CommentedCode">#? var foo/eax: int <- copy tmp</span> +<span id="L163" class="LineNr">163 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x17/y</span> +<span id="L164" class="LineNr">164 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, foo, 7/fg, 0/bg</span> +<span id="L165" class="LineNr">165 </span><span class="CommentedCode">#? }</span> +<span id="L166" class="LineNr">166 </span> b <span class="Special"><-</span> add tmp +<span id="L167" class="LineNr">167 </span><span class="CommentedCode">#? {</span> +<span id="L168" class="LineNr">168 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x18/y</span> +<span id="L169" class="LineNr">169 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, b, 7/fg, 0/bg</span> +<span id="L170" class="LineNr">170 </span><span class="CommentedCode">#? }</span> +<span id="L171" class="LineNr">171 </span> <span class="Delimiter">}</span> +<span id="L172" class="LineNr">172 </span> <span class="PreProc">return</span> r, g, b +<span id="L173" class="LineNr">173 </span><span class="Delimiter">}</span> +<span id="L174" class="LineNr">174 </span> +<span id="L175" class="LineNr">175 </span><span class="muComment"># no error checking</span> +<span id="L176" class="LineNr">176 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L176'>fast-hex-digit-value</a></span> in: byte<span class="PreProc"> -> </span>_/eax: byte <span class="Delimiter">{</span> +<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> result/eax: byte <span class="Special"><-</span> copy in +<span id="L178" class="LineNr">178 </span> compare result, <span class="Constant">0x39</span> +<span id="L179" class="LineNr">179 </span> <span class="Delimiter">{</span> +<span id="L180" class="LineNr">180 </span> <span class="PreProc">break-if-></span> +<span id="L181" class="LineNr">181 </span> result <span class="Special"><-</span> subtract <span class="Constant">0x30</span>/<span class="Constant">0</span> +<span id="L182" class="LineNr">182 </span> <span class="PreProc">return</span> result +<span id="L183" class="LineNr">183 </span> <span class="Delimiter">}</span> +<span id="L184" class="LineNr">184 </span> result <span class="Special"><-</span> subtract <span class="Constant">0x61</span>/a +<span id="L185" class="LineNr">185 </span> result <span class="Special"><-</span> add <span class="Constant">0xa</span>/<span class="Constant">10</span> +<span id="L186" class="LineNr">186 </span> <span class="PreProc">return</span> result +<span id="L187" class="LineNr">187 </span><span class="Delimiter">}</span> +<span id="L188" class="LineNr">188 </span> +<span id="L189" class="LineNr">189 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L189'>print-nearby-colors</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), h: int, s: int, l: int <span class="Delimiter">{</span> +<span id="L190" class="LineNr">190 </span><span class="CommentedCode">#? set-cursor-position screen, 0x10/x, 0x1c/y</span> +<span id="L191" class="LineNr">191 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, h, 7/fg, 0/bg</span> +<span id="L192" class="LineNr">192 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> +<span id="L193" class="LineNr">193 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, s, 7/fg, 0/bg</span> +<span id="L194" class="LineNr">194 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> +<span id="L195" class="LineNr">195 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, l, 7/fg, 0/bg</span> +<span id="L196" class="LineNr">196 </span> <span class="muComment"># save just top 2 bits of each, so that we narrow down to 1/64th of the volume</span> +<span id="L197" class="LineNr">197 </span> shift-right h, <span class="Constant">6</span> +<span id="L198" class="LineNr">198 </span> shift-right s, <span class="Constant">6</span> +<span id="L199" class="LineNr">199 </span> shift-right l, <span class="Constant">6</span> +<span id="L200" class="LineNr">200 </span><span class="CommentedCode">#? set-cursor-position screen, 0x10/x, 0x1/y</span> +<span id="L201" class="LineNr">201 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, h, 7/fg, 0/bg</span> +<span id="L202" class="LineNr">202 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> +<span id="L203" class="LineNr">203 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, s, 7/fg, 0/bg</span> +<span id="L204" class="LineNr">204 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> +<span id="L205" class="LineNr">205 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, l, 7/fg, 0/bg</span> +<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> a/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> c/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> y/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L211" class="LineNr">211 </span> <span class="Delimiter">{</span> +<span id="L212" class="LineNr">212 </span> compare color, <span class="Constant">0x100</span> +<span id="L213" class="LineNr">213 </span> <span class="PreProc">break-if->=</span> +<span id="L214" class="LineNr">214 </span> a, b, c <span class="Special"><-</span> <a href='../316colors.subx.html#L7'>color-rgb</a> color +<span id="L215" class="LineNr">215 </span> a, b, c <span class="Special"><-</span> <a href='../505colors.mu.html#L51'>hsl</a> a, b, c +<span id="L216" class="LineNr">216 </span> a <span class="Special"><-</span> shift-right <span class="Constant">6</span> +<span id="L217" class="LineNr">217 </span> b <span class="Special"><-</span> shift-right <span class="Constant">6</span> +<span id="L218" class="LineNr">218 </span> c <span class="Special"><-</span> shift-right <span class="Constant">6</span> +<span id="L219" class="LineNr">219 </span> <span class="Delimiter">{</span> +<span id="L220" class="LineNr">220 </span> compare a, h +<span id="L221" class="LineNr">221 </span> <span class="PreProc">break-if-!=</span> +<span id="L222" class="LineNr">222 </span> compare b, s +<span id="L223" class="LineNr">223 </span> <span class="PreProc">break-if-!=</span> +<span id="L224" class="LineNr">224 </span> compare c, l +<span id="L225" class="LineNr">225 </span> <span class="PreProc">break-if-!=</span> +<span id="L226" class="LineNr">226 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x10</span>/x, y +<span id="L227" class="LineNr">227 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, color, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg +<span id="L228" class="LineNr">228 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x14</span>/x, y +<span id="L229" class="LineNr">229 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" "</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg +<span id="L230" class="LineNr">230 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" "</span>, <span class="Constant">0</span>/fg, color +<span id="L231" class="LineNr">231 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> +<span id="L232" class="LineNr">232 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, a, 7/fg, 0/bg</span> +<span id="L233" class="LineNr">233 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> +<span id="L234" class="LineNr">234 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, b, 7/fg, 0/bg</span> +<span id="L235" class="LineNr">235 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> +<span id="L236" class="LineNr">236 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, c, 7/fg, 0/bg</span> +<span id="L237" class="LineNr">237 </span> y <span class="Special"><-</span> increment +<span id="L238" class="LineNr">238 </span> <span class="Delimiter">}</span> +<span id="L239" class="LineNr">239 </span> color <span class="Special"><-</span> increment +<span id="L240" class="LineNr">240 </span> <span class="PreProc">loop</span> +<span id="L241" class="LineNr">241 </span> <span class="Delimiter">}</span> +<span id="L242" class="LineNr">242 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/apps/ex1.mu.html b/html/apps/ex1.mu.html new file mode 100644 index 00000000..cc21ce0f --- /dev/null +++ b/html/apps/ex1.mu.html @@ -0,0 +1,74 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - apps/ex1.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.LineNr { } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex1.mu'>https://github.com/akkartik/mu/blob/main/apps/ex1.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># The simplest possible bare-metal program.</span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate apps/ex1.mu # emits code.img</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># qemu-system-i386 code.img</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># Or:</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># bochs -f bochsrc # bochsrc loads code.img</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment">#</span> +<span id="L10" class="LineNr">10 </span><span class="muComment"># Expected output: blank screen with no errors</span> +<span id="L11" class="LineNr">11 </span> +<span id="L12" class="LineNr">12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex1.mu.html#L12'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L13" class="LineNr">13 </span> <span class="PreProc">loop</span> +<span id="L14" class="LineNr">14 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/ex10.mu.html b/html/apps/ex10.mu.html index 2627880c..6f506cd3 100644 --- a/html/ex10.mu.html +++ b/html/apps/ex10.mu.html @@ -1,31 +1,31 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex10.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/ex10.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } +.muRegEcx { color: #870000; } .LineNr { } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -55,12 +55,12 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex10.mu'>https://github.com/akkartik/mu/blob/main/ex10.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex10.mu'>https://github.com/akkartik/mu/blob/main/apps/ex10.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Demo of mouse support.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate ex10.mu # emits code.img</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate apps/ex10.mu # emits code.img</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># qemu-system-i386 code.img</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># Or:</span> @@ -70,12 +70,12 @@ if ('onhashchange' in window) { <span id="L11" class="LineNr">11 </span><span class="muComment"># Values between -256 and +255 as you move the mouse over the window.</span> <span id="L12" class="LineNr">12 </span><span class="muComment"># You might need to click on the window once.</span> <span id="L13" class="LineNr">13 </span> -<span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex10.mu.html#L14'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex10.mu.html#L14'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L15" class="LineNr">15 </span> <span class="muComment"># repeatedly print out mouse driver results if non-zero</span> <span id="L16" class="LineNr">16 </span> $main:event-loop: <span class="Delimiter">{</span> <span id="L17" class="LineNr">17 </span> <span class="PreProc">var</span> dx/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> dy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L19" class="LineNr">19 </span> dx, dy <span class="Special"><-</span> <a href='boot.subx.html#L1443'>read-mouse-event</a> +<span id="L19" class="LineNr">19 </span> dx, dy <span class="Special"><-</span> read-mouse-event <span id="L20" class="LineNr">20 </span> <span class="Delimiter">{</span> <span id="L21" class="LineNr">21 </span> compare dx, <span class="Constant">0</span> <span id="L22" class="LineNr">22 </span> <span class="PreProc">break-if-!=</span> @@ -86,15 +86,15 @@ if ('onhashchange' in window) { <span id="L27" class="LineNr">27 </span> <span class="Delimiter">{</span> <span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> dummy1/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> dummy2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L30" class="LineNr">30 </span> dummy1, dummy2 <span class="Special"><-</span> <a href='501draw-text.mu.html#L256'>draw-text-wrapping-right-then-down-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" "</span>, <span class="Constant">0</span>/x, <span class="Constant">0x10</span>/y, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg +<span id="L30" class="LineNr">30 </span> dummy1, dummy2 <span class="Special"><-</span> <a href='../501draw-text.mu.html#L256'>draw-text-wrapping-right-then-down-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" "</span>, <span class="Constant">0</span>/x, <span class="Constant">0x10</span>/y, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg <span id="L31" class="LineNr">31 </span> <span class="Delimiter">}</span> <span id="L32" class="LineNr">32 </span> <span class="Delimiter">{</span> <span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L34" class="LineNr">34 </span> dx, dummy <span class="Special"><-</span> <a href='501draw-text.mu.html#L364'>draw-int32-decimal-wrapping-right-then-down-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, dx, <span class="Constant">0</span>/x, <span class="Constant">0x10</span>/y, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg +<span id="L34" class="LineNr">34 </span> dx, dummy <span class="Special"><-</span> <a href='../501draw-text.mu.html#L364'>draw-int32-decimal-wrapping-right-then-down-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, dx, <span class="Constant">0</span>/x, <span class="Constant">0x10</span>/y, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg <span id="L35" class="LineNr">35 </span> <span class="Delimiter">}</span> <span id="L36" class="LineNr">36 </span> <span class="Delimiter">{</span> <span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L38" class="LineNr">38 </span> dummy, dy <span class="Special"><-</span> <a href='501draw-text.mu.html#L364'>draw-int32-decimal-wrapping-right-then-down-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, dy, <span class="Constant">5</span>/x, <span class="Constant">0x10</span>/y, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg +<span id="L38" class="LineNr">38 </span> dummy, dy <span class="Special"><-</span> <a href='../501draw-text.mu.html#L364'>draw-int32-decimal-wrapping-right-then-down-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, dy, <span class="Constant">5</span>/x, <span class="Constant">0x10</span>/y, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg <span id="L39" class="LineNr">39 </span> <span class="Delimiter">}</span> <span id="L40" class="LineNr">40 </span> <span class="PreProc">loop</span> <span id="L41" class="LineNr">41 </span> <span class="Delimiter">}</span> diff --git a/html/ex11.mu.html b/html/apps/ex11.mu.html index 8c0e2788..e4ff1600 100644 --- a/html/ex11.mu.html +++ b/html/apps/ex11.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex11.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/ex11.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } -.muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -59,12 +59,12 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex11.mu'>https://github.com/akkartik/mu/blob/main/ex11.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex11.mu'>https://github.com/akkartik/mu/blob/main/apps/ex11.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Demo of an interactive app: controlling a Bezier curve on screen</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate ex11.mu # emits code.img</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate apps/ex11.mu # emits code.img</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># qemu-system-i386 code.img</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># Or:</span> @@ -74,12 +74,12 @@ if ('onhashchange' in window) { <span id="L11" class="LineNr"> 11 </span><span class="muComment"># between control points, and arrow keys to move the control point at the</span> <span id="L12" class="LineNr"> 12 </span><span class="muComment"># cursor.</span> <span id="L13" class="LineNr"> 13 </span> -<span id="L14" class="LineNr"> 14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L14'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L14" class="LineNr"> 14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L14'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> env-storage: <a href='ex11.mu.html#L25'>environment</a> <span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> address env-storage <span id="L17" class="LineNr"> 17 </span> <a href='ex11.mu.html#L233'>initialize-environment</a> env, <span class="Constant">0x200</span> <span class="Constant">0x20</span>, <span class="Constant">0x180</span> <span class="Constant">0x90</span>, <span class="Constant">0x180</span> <span class="Constant">0x160</span> <span id="L18" class="LineNr"> 18 </span> <span class="Delimiter">{</span> -<span id="L19" class="LineNr"> 19 </span> <a href='ex11.mu.html#L37'>render</a> <a href='500fake-screen.mu.html#L14'>screen</a>, env +<span id="L19" class="LineNr"> 19 </span> <a href='ex11.mu.html#L37'>render</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, env <span id="L20" class="LineNr"> 20 </span> <a href='ex11.mu.html#L101'>edit</a> keyboard, env <span id="L21" class="LineNr"> 21 </span> <span class="PreProc">loop</span> <span id="L22" class="LineNr"> 22 </span> <span class="Delimiter">}</span> @@ -97,34 +97,34 @@ if ('onhashchange' in window) { <span id="L34" class="LineNr"> 34 </span> y: int <span id="L35" class="LineNr"> 35 </span><span class="Delimiter">}</span> <span id="L36" class="LineNr"> 36 </span> -<span id="L37" class="LineNr"> 37 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L37'>render</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> -<span id="L38" class="LineNr"> 38 </span> <a href='500fake-screen.mu.html#L251'>clear-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a> +<span id="L37" class="LineNr"> 37 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L37'>render</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> +<span id="L38" class="LineNr"> 38 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p0 -<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> tmp/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> tmp/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> p0/<span class="muRegEbx">ebx</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy tmp <span id="L43" class="LineNr"> 43 </span> tmp-ah <span class="Special"><-</span> get self, p1 -<span id="L44" class="LineNr"> 44 </span> tmp <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L44" class="LineNr"> 44 </span> tmp <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> p1/<span class="muRegEdx">edx</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy tmp <span id="L46" class="LineNr"> 46 </span> tmp-ah <span class="Special"><-</span> get self, p2 -<span id="L47" class="LineNr"> 47 </span> tmp <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L47" class="LineNr"> 47 </span> tmp <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> p2/<span class="muRegEcx">ecx</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy tmp <span id="L49" class="LineNr"> 49 </span> <span class="muComment"># control lines</span> -<span id="L50" class="LineNr"> 50 </span> <a href='ex11.mu.html#L216'>line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, p0, p1, <span class="Constant">7</span>/color -<span id="L51" class="LineNr"> 51 </span> <a href='ex11.mu.html#L216'>line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, p1, p2, <span class="Constant">7</span>/color +<span id="L50" class="LineNr"> 50 </span> <a href='ex11.mu.html#L216'>line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, p0, p1, <span class="Constant">7</span>/color +<span id="L51" class="LineNr"> 51 </span> <a href='ex11.mu.html#L216'>line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, p1, p2, <span class="Constant">7</span>/color <span id="L52" class="LineNr"> 52 </span> <span class="muComment"># curve above control lines</span> -<span id="L53" class="LineNr"> 53 </span> <a href='ex11.mu.html#L64'>bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, p0, p1, p2, <span class="Constant">0xc</span>/color +<span id="L53" class="LineNr"> 53 </span> <a href='ex11.mu.html#L64'>bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, p0, p1, p2, <span class="Constant">0xc</span>/color <span id="L54" class="LineNr"> 54 </span> <span class="muComment"># points above curve</span> -<span id="L55" class="LineNr"> 55 </span> <a href='ex11.mu.html#L226'>disc</a> <a href='500fake-screen.mu.html#L14'>screen</a>, p0, <span class="Constant">3</span>/radius, <span class="Constant">7</span>/color <span class="Constant">0xf</span>/border -<span id="L56" class="LineNr"> 56 </span> <a href='ex11.mu.html#L226'>disc</a> <a href='500fake-screen.mu.html#L14'>screen</a>, p1, <span class="Constant">3</span>/radius, <span class="Constant">7</span>/color <span class="Constant">0xf</span>/border -<span id="L57" class="LineNr"> 57 </span> <a href='ex11.mu.html#L226'>disc</a> <a href='500fake-screen.mu.html#L14'>screen</a>, p2, <span class="Constant">3</span>/radius, <span class="Constant">7</span>/color <span class="Constant">0xf</span>/border +<span id="L55" class="LineNr"> 55 </span> <a href='ex11.mu.html#L226'>disc</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, p0, <span class="Constant">3</span>/radius, <span class="Constant">7</span>/color <span class="Constant">0xf</span>/border +<span id="L56" class="LineNr"> 56 </span> <a href='ex11.mu.html#L226'>disc</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, p1, <span class="Constant">3</span>/radius, <span class="Constant">7</span>/color <span class="Constant">0xf</span>/border +<span id="L57" class="LineNr"> 57 </span> <a href='ex11.mu.html#L226'>disc</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, p2, <span class="Constant">3</span>/radius, <span class="Constant">7</span>/color <span class="Constant">0xf</span>/border <span id="L58" class="LineNr"> 58 </span> <span class="muComment"># cursor last of all</span> <span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> cursor-ah/eax: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah -<span id="L61" class="LineNr"> 61 </span> <a href='ex11.mu.html#L77'>cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <a href='ex11.mu.html#L77'>cursor</a>, <span class="Constant">0xa</span>/side, <span class="Constant">3</span>/color +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cursor-ah +<span id="L61" class="LineNr"> 61 </span> <a href='ex11.mu.html#L77'>cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='ex11.mu.html#L77'>cursor</a>, <span class="Constant">0xa</span>/side, <span class="Constant">3</span>/color <span id="L62" class="LineNr"> 62 </span><span class="Delimiter">}</span> <span id="L63" class="LineNr"> 63 </span> -<span id="L64" class="LineNr"> 64 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L64'>bezier</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _p0: (addr <a href='ex11.mu.html#L32'>point</a>), _p1: (addr <a href='ex11.mu.html#L32'>point</a>), _p2: (addr <a href='ex11.mu.html#L32'>point</a>), color: int <span class="Delimiter">{</span> +<span id="L64" class="LineNr"> 64 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L64'>bezier</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _p0: (addr <a href='ex11.mu.html#L32'>point</a>), _p1: (addr <a href='ex11.mu.html#L32'>point</a>), _p2: (addr <a href='ex11.mu.html#L32'>point</a>), color: int <span class="Delimiter">{</span> <span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> p0/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p0 <span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> x0/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get p0, x <span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> y0/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get p0, y @@ -134,10 +134,10 @@ if ('onhashchange' in window) { <span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> p2/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p2 <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> x2/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> get p2, x <span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> y2/<span class="muRegEsi">esi</span>: (addr int) <span class="Special"><-</span> get p2, y -<span id="L74" class="LineNr"> 74 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, *x0 *y0, *x1 *y1, *x2 *y2, color +<span id="L74" class="LineNr"> 74 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *x0 *y0, *x1 *y1, *x2 *y2, color <span id="L75" class="LineNr"> 75 </span><span class="Delimiter">}</span> <span id="L76" class="LineNr"> 76 </span> -<span id="L77" class="LineNr"> 77 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L77'>cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _p: (addr <a href='ex11.mu.html#L32'>point</a>), side: int, color: int <span class="Delimiter">{</span> +<span id="L77" class="LineNr"> 77 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L77'>cursor</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _p: (addr <a href='ex11.mu.html#L32'>point</a>), side: int, color: int <span class="Delimiter">{</span> <span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> half-side/eax: int <span class="Special"><-</span> copy side <span id="L79" class="LineNr"> 79 </span> half-side <span class="Special"><-</span> shift-right <span class="Constant">1</span> <span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> p/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p @@ -149,21 +149,21 @@ if ('onhashchange' in window) { <span id="L86" class="LineNr"> 86 </span> top-y <span class="Special"><-</span> subtract half-side <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> max/eax: int <span class="Special"><-</span> copy left-x <span id="L88" class="LineNr"> 88 </span> max <span class="Special"><-</span> add side -<span id="L89" class="LineNr"> 89 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, top-y, left-x, max, color +<span id="L89" class="LineNr"> 89 </span> <a href='../507line.mu.html#L64'>draw-horizontal-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, top-y, left-x, max, color <span id="L90" class="LineNr"> 90 </span> max <span class="Special"><-</span> copy top-y <span id="L91" class="LineNr"> 91 </span> max <span class="Special"><-</span> add side -<span id="L92" class="LineNr"> 92 </span> <a href='507line.mu.html#L75'>draw-vertical-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, left-x, top-y, max, color +<span id="L92" class="LineNr"> 92 </span> <a href='../507line.mu.html#L75'>draw-vertical-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, left-x, top-y, max, color <span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> right-x/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy left-x <span id="L94" class="LineNr"> 94 </span> right-x <span class="Special"><-</span> add side -<span id="L95" class="LineNr"> 95 </span> <a href='507line.mu.html#L75'>draw-vertical-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, right-x, top-y, max, color +<span id="L95" class="LineNr"> 95 </span> <a href='../507line.mu.html#L75'>draw-vertical-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-x, top-y, max, color <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> bottom-y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy top-y <span id="L97" class="LineNr"> 97 </span> bottom-y <span class="Special"><-</span> add side -<span id="L98" class="LineNr"> 98 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, bottom-y, left-x, right-x, color +<span id="L98" class="LineNr"> 98 </span> <a href='../507line.mu.html#L64'>draw-horizontal-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, bottom-y, left-x, right-x, color <span id="L99" class="LineNr"> 99 </span><span class="Delimiter">}</span> <span id="L100" class="LineNr">100 </span> <span id="L101" class="LineNr">101 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L101'>edit</a></span> keyboard: (addr keyboard), _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> <span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L104" class="LineNr">104 </span> compare key, <span class="Constant">0</span> <span id="L105" class="LineNr">105 </span> <span class="PreProc">loop-if-=</span> <span id="L106" class="LineNr">106 </span> <span class="Delimiter">{</span> @@ -205,33 +205,33 @@ if ('onhashchange' in window) { <span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> p1-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p1 <span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> p2-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p2 <span id="L144" class="LineNr">144 </span> <span class="Delimiter">{</span> -<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> p0?/eax: boolean <span class="Special"><-</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> *p0-ah, *cursor-ah +<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> p0?/eax: boolean <span class="Special"><-</span> <a href='../120allocate.subx.html#L448'>handle-equal?</a> *p0-ah, *cursor-ah <span id="L146" class="LineNr">146 </span> compare p0?, <span class="Constant">0</span>/false <span id="L147" class="LineNr">147 </span> <span class="PreProc">break-if-=</span> <span id="L148" class="LineNr">148 </span> copy-object p1-ah, cursor-ah <span id="L149" class="LineNr">149 </span> <span class="PreProc">return</span> <span id="L150" class="LineNr">150 </span> <span class="Delimiter">}</span> <span id="L151" class="LineNr">151 </span> <span class="Delimiter">{</span> -<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> p1?/eax: boolean <span class="Special"><-</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> *p1-ah, *cursor-ah +<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> p1?/eax: boolean <span class="Special"><-</span> <a href='../120allocate.subx.html#L448'>handle-equal?</a> *p1-ah, *cursor-ah <span id="L153" class="LineNr">153 </span> compare p1?, <span class="Constant">0</span>/false <span id="L154" class="LineNr">154 </span> <span class="PreProc">break-if-=</span> <span id="L155" class="LineNr">155 </span> copy-object p2-ah, cursor-ah <span id="L156" class="LineNr">156 </span> <span class="PreProc">return</span> <span id="L157" class="LineNr">157 </span> <span class="Delimiter">}</span> <span id="L158" class="LineNr">158 </span> <span class="Delimiter">{</span> -<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> p2?/eax: boolean <span class="Special"><-</span> <a href='120allocate.subx.html#L448'>handle-equal?</a> *p2-ah, *cursor-ah +<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> p2?/eax: boolean <span class="Special"><-</span> <a href='../120allocate.subx.html#L448'>handle-equal?</a> *p2-ah, *cursor-ah <span id="L160" class="LineNr">160 </span> compare p2?, <span class="Constant">0</span>/false <span id="L161" class="LineNr">161 </span> <span class="PreProc">break-if-=</span> <span id="L162" class="LineNr">162 </span> copy-object p0-ah, cursor-ah <span id="L163" class="LineNr">163 </span> <span class="PreProc">return</span> <span id="L164" class="LineNr">164 </span> <span class="Delimiter">}</span> -<span id="L165" class="LineNr">165 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"lost cursor"</span> +<span id="L165" class="LineNr">165 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"lost cursor"</span> <span id="L166" class="LineNr">166 </span><span class="Delimiter">}</span> <span id="L167" class="LineNr">167 </span> <span id="L168" class="LineNr">168 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L168'>cursor-left</a></span> _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> <span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> -<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah +<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cursor-ah <span id="L172" class="LineNr">172 </span> <span class="PreProc">var</span> cursor-x/eax: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, x <span id="L173" class="LineNr">173 </span> compare *cursor-x, <span class="Constant">0x20</span> <span id="L174" class="LineNr">174 </span> <span class="Delimiter">{</span> @@ -243,7 +243,7 @@ if ('onhashchange' in window) { <span id="L180" class="LineNr">180 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L180'>cursor-right</a></span> _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> <span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L182" class="LineNr">182 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> -<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah +<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cursor-ah <span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> cursor-x/eax: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, x <span id="L185" class="LineNr">185 </span> compare *cursor-x, <span class="Constant">0x3f0</span> <span id="L186" class="LineNr">186 </span> <span class="Delimiter">{</span> @@ -255,7 +255,7 @@ if ('onhashchange' in window) { <span id="L192" class="LineNr">192 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L192'>cursor-up</a></span> _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> <span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L194" class="LineNr">194 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> -<span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah +<span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cursor-ah <span id="L196" class="LineNr">196 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, y <span id="L197" class="LineNr">197 </span> compare *cursor-y, <span class="Constant">0x20</span> <span id="L198" class="LineNr">198 </span> <span class="Delimiter">{</span> @@ -267,7 +267,7 @@ if ('onhashchange' in window) { <span id="L204" class="LineNr">204 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L204'>cursor-down</a></span> _self: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Delimiter">{</span> <span id="L205" class="LineNr">205 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> -<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *cursor-ah +<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> <a href='ex11.mu.html#L77'>cursor</a>/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *cursor-ah <span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> cursor-y/eax: (addr int) <span class="Special"><-</span> get <a href='ex11.mu.html#L77'>cursor</a>, y <span id="L209" class="LineNr">209 </span> compare *cursor-y, <span class="Constant">0x2f0</span> <span id="L210" class="LineNr">210 </span> <span class="Delimiter">{</span> @@ -276,36 +276,36 @@ if ('onhashchange' in window) { <span id="L213" class="LineNr">213 </span> <span class="Delimiter">}</span> <span id="L214" class="LineNr">214 </span><span class="Delimiter">}</span> <span id="L215" class="LineNr">215 </span> -<span id="L216" class="LineNr">216 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L216'>line</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _p0: (addr <a href='ex11.mu.html#L32'>point</a>), _p1: (addr <a href='ex11.mu.html#L32'>point</a>), color: int <span class="Delimiter">{</span> +<span id="L216" class="LineNr">216 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L216'>line</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _p0: (addr <a href='ex11.mu.html#L32'>point</a>), _p1: (addr <a href='ex11.mu.html#L32'>point</a>), color: int <span class="Delimiter">{</span> <span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> p0/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p0 <span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> x0/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get p0, x <span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> y0/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get p0, y <span id="L220" class="LineNr">220 </span> <span class="PreProc">var</span> p1/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p1 <span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> x1/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get p1, x <span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> y1/eax: (addr int) <span class="Special"><-</span> get p1, y -<span id="L223" class="LineNr">223 </span> <a href='507line.mu.html#L1'>draw-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, *x0 *y0, *x1 *y1, color +<span id="L223" class="LineNr">223 </span> <a href='../507line.mu.html#L1'>draw-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *x0 *y0, *x1 *y1, color <span id="L224" class="LineNr">224 </span><span class="Delimiter">}</span> <span id="L225" class="LineNr">225 </span> -<span id="L226" class="LineNr">226 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L226'>disc</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _p: (addr <a href='ex11.mu.html#L32'>point</a>), radius: int, color: int, border-color: int <span class="Delimiter">{</span> +<span id="L226" class="LineNr">226 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L226'>disc</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _p: (addr <a href='ex11.mu.html#L32'>point</a>), radius: int, color: int, border-color: int <span class="Delimiter">{</span> <span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> p/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> copy _p <span id="L228" class="LineNr">228 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get p, x <span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get p, y -<span id="L230" class="LineNr">230 </span> <a href='508circle.mu.html#L80'>draw-disc</a> <a href='500fake-screen.mu.html#L14'>screen</a>, *x *y, radius, color, border-color +<span id="L230" class="LineNr">230 </span> <a href='../508circle.mu.html#L80'>draw-disc</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *x *y, radius, color, border-color <span id="L231" class="LineNr">231 </span><span class="Delimiter">}</span> <span id="L232" class="LineNr">232 </span> <span id="L233" class="LineNr">233 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L233'>initialize-environment</a></span> _self: (addr <a href='ex11.mu.html#L25'>environment</a>), x0: int, y0: int, x1: int, y1: int, x2: int, y2: int <span class="Delimiter">{</span> <span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L25'>environment</a>) <span class="Special"><-</span> copy _self <span id="L235" class="LineNr">235 </span> <span class="PreProc">var</span> p0-ah/eax: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p0 -<span id="L236" class="LineNr">236 </span> <a href='120allocate.subx.html#L43'>allocate</a> p0-ah -<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> p0/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *p0-ah +<span id="L236" class="LineNr">236 </span> <a href='../120allocate.subx.html#L43'>allocate</a> p0-ah +<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> p0/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *p0-ah <span id="L238" class="LineNr">238 </span> <a href='ex11.mu.html#L253'>initialize-point</a> p0, x0 y0 <span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> p1-ah/eax: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p1 -<span id="L240" class="LineNr">240 </span> <a href='120allocate.subx.html#L43'>allocate</a> p1-ah -<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> p1/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *p1-ah +<span id="L240" class="LineNr">240 </span> <a href='../120allocate.subx.html#L43'>allocate</a> p1-ah +<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> p1/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *p1-ah <span id="L242" class="LineNr">242 </span> <a href='ex11.mu.html#L253'>initialize-point</a> p1, x1 y1 <span id="L243" class="LineNr">243 </span> <span class="PreProc">var</span> p2-ah/eax: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, p2 -<span id="L244" class="LineNr">244 </span> <a href='120allocate.subx.html#L43'>allocate</a> p2-ah -<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> p2/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *p2-ah +<span id="L244" class="LineNr">244 </span> <a href='../120allocate.subx.html#L43'>allocate</a> p2-ah +<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> p2/eax: (addr <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *p2-ah <span id="L246" class="LineNr">246 </span> <a href='ex11.mu.html#L253'>initialize-point</a> p2, x2 y2 <span id="L247" class="LineNr">247 </span> <span class="muComment"># cursor initially at p0</span> <span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> cursor-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='ex11.mu.html#L32'>point</a>) <span class="Special"><-</span> get self, <a href='ex11.mu.html#L77'>cursor</a> diff --git a/html/apps/ex12.mu.html b/html/apps/ex12.mu.html new file mode 100644 index 00000000..b0b3a763 --- /dev/null +++ b/html/apps/ex12.mu.html @@ -0,0 +1,92 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - apps/ex12.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } +.LineNr { } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.Special { color: #ff6060; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex12.mu'>https://github.com/akkartik/mu/blob/main/apps/ex12.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Checking the timer.</span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate apps/ex12.mu # emits code.img</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># qemu-system-i386 code.img</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># Or:</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># bochs -f bochsrc # bochsrc loads code.img</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment">#</span> +<span id="L10" class="LineNr">10 </span><span class="muComment"># Expected output: text with slowly updating colors</span> +<span id="L11" class="LineNr">11 </span> +<span id="L12" class="LineNr">12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex12.mu.html#L12'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> fg/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> prev-timer-counter/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L15" class="LineNr">15 </span> <span class="Delimiter">{</span> +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"hello from baremetal Mu!"</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x10</span>/y, fg, <span class="Constant">0</span>/bg +<span id="L17" class="LineNr">17 </span> <span class="muComment"># wait for timer to bump</span> +<span id="L18" class="LineNr">18 </span> <span class="Delimiter">{</span> +<span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> curr-timer-counter/eax: int <span class="Special"><-</span> <a href='../319timer.subx.html#L3'>timer-counter</a> +<span id="L20" class="LineNr">20 </span> compare curr-timer-counter, prev-timer-counter +<span id="L21" class="LineNr">21 </span> <span class="PreProc">loop-if-=</span> +<span id="L22" class="LineNr">22 </span> prev-timer-counter <span class="Special"><-</span> copy curr-timer-counter +<span id="L23" class="LineNr">23 </span> <span class="Delimiter">}</span> +<span id="L24" class="LineNr">24 </span> <span class="muComment"># switch color</span> +<span id="L25" class="LineNr">25 </span> fg <span class="Special"><-</span> increment +<span id="L26" class="LineNr">26 </span> <span class="PreProc">loop</span> +<span id="L27" class="LineNr">27 </span> <span class="Delimiter">}</span> +<span id="L28" class="LineNr">28 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/ex2.mu.html b/html/apps/ex2.mu.html index 12b20923..6bd96247 100644 --- a/html/ex2.mu.html +++ b/html/apps/ex2.mu.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex2.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/ex2.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -56,18 +56,18 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex2.mu'>https://github.com/akkartik/mu/blob/main/ex2.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex2.mu'>https://github.com/akkartik/mu/blob/main/apps/ex2.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Test out the video mode by filling in the screen with pixels.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate ex2.mu # emits code.img</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate apps/ex2.mu # emits code.img</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># qemu-system-i386 code.img</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># Or:</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># bochs -f bochsrc # bochsrc loads code.img</span> <span id="L9" class="LineNr"> 9 </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> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <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> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> y/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L12" class="LineNr">12 </span> <span class="Delimiter">{</span> <span id="L13" class="LineNr">13 </span> compare y, <span class="Constant">0x300</span>/screen-height=<span class="Constant">768</span> @@ -78,7 +78,7 @@ if ('onhashchange' in window) { <span id="L18" class="LineNr">18 </span> <span class="PreProc">break-if->=</span> <span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> color/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy x <span id="L20" class="LineNr">20 </span> color <span class="Special"><-</span> and <span class="Constant">0xff</span> -<span id="L21" class="LineNr">21 </span> <a href='500fake-screen.mu.html#L483'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a> x, y, color +<span id="L21" class="LineNr">21 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a> x, y, color <span id="L22" class="LineNr">22 </span> x <span class="Special"><-</span> increment <span id="L23" class="LineNr">23 </span> <span class="PreProc">loop</span> <span id="L24" class="LineNr">24 </span> <span class="Delimiter">}</span> diff --git a/html/ex3.mu.html b/html/apps/ex3.mu.html index 8a600e92..864032ce 100644 --- a/html/ex3.mu.html +++ b/html/apps/ex3.mu.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex3.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/ex3.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -56,13 +56,13 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex3.mu'>https://github.com/akkartik/mu/blob/main/ex3.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex3.mu'>https://github.com/akkartik/mu/blob/main/apps/ex3.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Draw pixels in response to keyboard events, starting from the top-left</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment"># and in raster order.</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment">#</span> <span id="L4" class="LineNr"> 4 </span><span class="muComment"># To build a disk image:</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># ./translate ex3.mu # emits code.img</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># ./translate apps/ex3.mu # emits code.img</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># To run:</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># qemu-system-i386 code.img</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># Or:</span> @@ -71,14 +71,14 @@ if ('onhashchange' in window) { <span id="L11" class="LineNr">11 </span><span class="muComment"># Expected output: a new green pixel starting from the top left corner of the</span> <span id="L12" class="LineNr">12 </span><span class="muComment"># screen every time you press a key (letter or digit)</span> <span id="L13" class="LineNr">13 </span> -<span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex3.mu.html#L14'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex3.mu.html#L14'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span> -<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L19" class="LineNr">19 </span> compare key, <span class="Constant">0</span> <span id="L20" class="LineNr">20 </span> <span class="PreProc">loop-if-=</span> <span class="muComment"># busy wait</span> -<span id="L21" class="LineNr">21 </span> <a href='101screen.subx.html#L8'>pixel-on-real-screen</a> x, y, <span class="Constant">0x31</span>/green +<span id="L21" class="LineNr">21 </span> <a href='../101screen.subx.html#L8'>pixel-on-real-screen</a> x, y, <span class="Constant">0x31</span>/green <span id="L22" class="LineNr">22 </span> x <span class="Special"><-</span> increment <span id="L23" class="LineNr">23 </span> compare x, <span class="Constant">0x400</span>/screen-width=<span class="Constant">1024</span> <span id="L24" class="LineNr">24 </span> <span class="Delimiter">{</span> diff --git a/html/ex4.mu.html b/html/apps/ex4.mu.html index 4b0f564f..eb7ee20a 100644 --- a/html/ex4.mu.html +++ b/html/apps/ex4.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex4.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/ex4.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,13 +17,13 @@ a { color:inherit; } .PreProc { color: #c000c0; } .LineNr { } .Constant { color: #008787; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -53,12 +53,12 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex4.mu'>https://github.com/akkartik/mu/blob/main/ex4.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex4.mu'>https://github.com/akkartik/mu/blob/main/apps/ex4.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Draw a character using the built-in font (GNU unifont)</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate ex4.mu # emits code.img</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate apps/ex4.mu # emits code.img</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># qemu-system-i386 code.img</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># Or:</span> @@ -66,8 +66,8 @@ if ('onhashchange' in window) { <span id="L9" class="LineNr"> 9 </span><span class="muComment">#</span> <span id="L10" class="LineNr">10 </span><span class="muComment"># Expected output: letter 'A' in green near the top-left corner of screen</span> <span id="L11" class="LineNr">11 </span> -<span id="L12" class="LineNr">12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex4.mu.html#L12'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L13" class="LineNr">13 </span> <a href='500fake-screen.mu.html#L130'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x41</span>/A, <span class="Constant">2</span>/row, <span class="Constant">1</span>/col, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L12" class="LineNr">12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex4.mu.html#L12'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L13" class="LineNr">13 </span> <a href='../500fake-screen.mu.html#L130'>draw-code-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x41</span>/A, <span class="Constant">2</span>/row, <span class="Constant">1</span>/col, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg <span id="L14" class="LineNr">14 </span><span class="Delimiter">}</span> </pre> </body> diff --git a/html/ex5.mu.html b/html/apps/ex5.mu.html index cc216a53..5c4ede6e 100644 --- a/html/ex5.mu.html +++ b/html/apps/ex5.mu.html @@ -1,30 +1,30 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex5.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/ex5.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -54,13 +54,13 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex5.mu'>https://github.com/akkartik/mu/blob/main/ex5.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex5.mu'>https://github.com/akkartik/mu/blob/main/apps/ex5.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Draw a single line of ASCII text using the built-in font (GNU unifont)</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment"># Also demonstrates bounds-checking _before_ drawing.</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment">#</span> <span id="L4" class="LineNr"> 4 </span><span class="muComment"># To build a disk image:</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># ./translate ex5.mu # emits code.img</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># ./translate apps/ex5.mu # emits code.img</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># To run:</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># qemu-system-i386 code.img</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># Or:</span> @@ -68,9 +68,9 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr">10 </span><span class="muComment">#</span> <span id="L11" class="LineNr">11 </span><span class="muComment"># Expected output: text in green near the top-left corner of screen</span> <span id="L12" class="LineNr">12 </span> -<span id="L13" class="LineNr">13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex5.mu.html#L13'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"hello from baremetal Mu!"</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x10</span>/y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L15" class="LineNr">15 </span> dummy <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"you shouldn't see this"</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0xa0</span>/xmax, <span class="Constant">0x30</span>/y, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span class="muComment"># xmax is too narrow</span> +<span id="L13" class="LineNr">13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex5.mu.html#L13'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"hello from baremetal Mu!"</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x10</span>/y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L15" class="LineNr">15 </span> dummy <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"you shouldn't see this"</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0xa0</span>/xmax, <span class="Constant">0x30</span>/y, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span class="muComment"># xmax is too narrow</span> <span id="L16" class="LineNr">16 </span><span class="Delimiter">}</span> </pre> </body> diff --git a/html/apps/ex6.mu.html b/html/apps/ex6.mu.html new file mode 100644 index 00000000..aa159ad5 --- /dev/null +++ b/html/apps/ex6.mu.html @@ -0,0 +1,95 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - apps/ex6.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } +.LineNr { } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.Special { color: #ff6060; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex6.mu'>https://github.com/akkartik/mu/blob/main/apps/ex6.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Drawing ASCII text incrementally.</span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate apps/ex6.mu # emits code.img</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># qemu-system-i386 code.img</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># Or:</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># bochs -f bochsrc # bochsrc loads code.img</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment">#</span> +<span id="L10" class="LineNr">10 </span><span class="muComment"># Expected output: a box and text that doesn't overflow it</span> +<span id="L11" class="LineNr">11 </span> +<span id="L12" class="LineNr">12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex6.mu.html#L12'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L13" class="LineNr">13 </span> <span class="muComment"># drawing text within a bounding box</span> +<span id="L14" class="LineNr">14 </span> <a href='../503manhattan-line.mu.html#L1'>draw-box-on-real-screen</a> <span class="Constant">0xf</span>, <span class="Constant">0x1f</span>, <span class="Constant">0x79</span>, <span class="Constant">0x51</span>, <span class="Constant">0x4</span> +<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0x20</span> +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x20</span> +<span id="L17" class="LineNr">17 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"hello "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L18" class="LineNr">18 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"from "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L19" class="LineNr">19 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"baremetal "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L20" class="LineNr">20 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"Mu!"</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L21" class="LineNr">21 </span> +<span id="L22" class="LineNr">22 </span> <span class="muComment"># drawing at the cursor in multiple directions</span> +<span id="L23" class="LineNr">23 </span> <a href='../501draw-text.mu.html#L493'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"abc"</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L24" class="LineNr">24 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"def"</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L25" class="LineNr">25 </span> +<span id="L26" class="LineNr">26 </span> <span class="muComment"># test drawing near the edge</span> +<span id="L27" class="LineNr">27 </span> x <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"R"</span>, <span class="Constant">0x7f</span>/x, <span class="Constant">0x80</span>/xmax=screen-width, <span class="Constant">0x18</span>/y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L28" class="LineNr">28 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"wrapped from R"</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L29" class="LineNr">29 </span> +<span id="L30" class="LineNr">30 </span> x <span class="Special"><-</span> <a href='../501draw-text.mu.html#L399'>draw-text-downward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"D"</span>, <span class="Constant">0x20</span>/x, <span class="Constant">0x2f</span>/y, <span class="Constant">0x30</span>/ymax=screen-height, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L31" class="LineNr">31 </span> <a href='../501draw-text.mu.html#L493'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"wrapped from D"</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg +<span id="L32" class="LineNr">32 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/ex7.mu.html b/html/apps/ex7.mu.html index 08050bc9..2c99ddf5 100644 --- a/html/ex7.mu.html +++ b/html/apps/ex7.mu.html @@ -1,30 +1,30 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex7.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/ex7.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -54,12 +54,12 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex7.mu'>https://github.com/akkartik/mu/blob/main/ex7.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex7.mu'>https://github.com/akkartik/mu/blob/main/apps/ex7.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Cursor-based motions.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate ex7.mu # emits code.img</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate apps/ex7.mu # emits code.img</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># qemu-system-i386 code.img</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># Or:</span> @@ -68,36 +68,36 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr">10 </span><span class="muComment"># Expected output: an interactive game a bit like "snakes". Try pressing h, j,</span> <span id="L11" class="LineNr">11 </span><span class="muComment"># k, l.</span> <span id="L12" class="LineNr">12 </span> -<span id="L13" class="LineNr">13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex7.mu.html#L13'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L13" class="LineNr">13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex7.mu.html#L13'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> space/eax: grapheme <span class="Special"><-</span> copy <span class="Constant">0x20</span> -<span id="L15" class="LineNr">15 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>, <span class="Constant">0</span> +<span id="L15" class="LineNr">15 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>, <span class="Constant">0</span> <span id="L16" class="LineNr">16 </span> <span class="Delimiter">{</span> -<span id="L17" class="LineNr">17 </span> <a href='500fake-screen.mu.html#L237'>draw-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, space -<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L17" class="LineNr">17 </span> <a href='../500fake-screen.mu.html#L237'>draw-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, space +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L19" class="LineNr">19 </span> <span class="Delimiter">{</span> <span id="L20" class="LineNr">20 </span> compare key, <span class="Constant">0x68</span>/h <span id="L21" class="LineNr">21 </span> <span class="PreProc">break-if-!=</span> -<span id="L22" class="LineNr">22 </span> <a href='501draw-text.mu.html#L92'>draw-code-point-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>/dash, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg -<span id="L23" class="LineNr">23 </span> <a href='501draw-text.mu.html#L3'>move-cursor-left</a> <span class="Constant">0</span> +<span id="L22" class="LineNr">22 </span> <a href='../501draw-text.mu.html#L92'>draw-code-point-at-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>/dash, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg +<span id="L23" class="LineNr">23 </span> <a href='../501draw-text.mu.html#L3'>move-cursor-left</a> <span class="Constant">0</span> <span id="L24" class="LineNr">24 </span> <span class="Delimiter">}</span> <span id="L25" class="LineNr">25 </span> <span class="Delimiter">{</span> <span id="L26" class="LineNr">26 </span> compare key, <span class="Constant">0x6a</span>/j <span id="L27" class="LineNr">27 </span> <span class="PreProc">break-if-!=</span> -<span id="L28" class="LineNr">28 </span> <a href='501draw-text.mu.html#L92'>draw-code-point-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x7c</span>/vertical-bar, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg -<span id="L29" class="LineNr">29 </span> <a href='501draw-text.mu.html#L47'>move-cursor-down</a> <span class="Constant">0</span> +<span id="L28" class="LineNr">28 </span> <a href='../501draw-text.mu.html#L92'>draw-code-point-at-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x7c</span>/vertical-bar, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg +<span id="L29" class="LineNr">29 </span> <a href='../501draw-text.mu.html#L47'>move-cursor-down</a> <span class="Constant">0</span> <span id="L30" class="LineNr">30 </span> <span class="Delimiter">}</span> <span id="L31" class="LineNr">31 </span> <span class="Delimiter">{</span> <span id="L32" class="LineNr">32 </span> compare key, <span class="Constant">0x6b</span>/k <span id="L33" class="LineNr">33 </span> <span class="PreProc">break-if-!=</span> -<span id="L34" class="LineNr">34 </span> <a href='501draw-text.mu.html#L92'>draw-code-point-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x7c</span>/vertical-bar, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg -<span id="L35" class="LineNr">35 </span> <a href='501draw-text.mu.html#L34'>move-cursor-up</a> <span class="Constant">0</span> +<span id="L34" class="LineNr">34 </span> <a href='../501draw-text.mu.html#L92'>draw-code-point-at-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x7c</span>/vertical-bar, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg +<span id="L35" class="LineNr">35 </span> <a href='../501draw-text.mu.html#L34'>move-cursor-up</a> <span class="Constant">0</span> <span id="L36" class="LineNr">36 </span> <span class="Delimiter">}</span> <span id="L37" class="LineNr">37 </span> <span class="Delimiter">{</span> <span id="L38" class="LineNr">38 </span> compare key, <span class="Constant">0x6c</span>/l <span id="L39" class="LineNr">39 </span> <span class="PreProc">break-if-!=</span> <span id="L40" class="LineNr">40 </span> <span class="PreProc">var</span> g/eax: code-point <span class="Special"><-</span> copy <span class="Constant">0x2d</span>/dash -<span id="L41" class="LineNr">41 </span> <a href='501draw-text.mu.html#L92'>draw-code-point-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>/dash, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg -<span id="L42" class="LineNr">42 </span> <a href='501draw-text.mu.html#L16'>move-cursor-right</a> <span class="Constant">0</span> +<span id="L41" class="LineNr">41 </span> <a href='../501draw-text.mu.html#L92'>draw-code-point-at-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>/dash, <span class="Constant">0x31</span>/fg, <span class="Constant">0</span>/bg +<span id="L42" class="LineNr">42 </span> <a href='../501draw-text.mu.html#L16'>move-cursor-right</a> <span class="Constant">0</span> <span id="L43" class="LineNr">43 </span> <span class="Delimiter">}</span> <span id="L44" class="LineNr">44 </span> <span class="PreProc">loop</span> <span id="L45" class="LineNr">45 </span> <span class="Delimiter">}</span> diff --git a/html/ex8.mu.html b/html/apps/ex8.mu.html index 5ae27a7b..d218205a 100644 --- a/html/ex8.mu.html +++ b/html/apps/ex8.mu.html @@ -1,30 +1,30 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex8.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/ex8.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -54,17 +54,17 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex8.mu'>https://github.com/akkartik/mu/blob/main/ex8.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex8.mu'>https://github.com/akkartik/mu/blob/main/apps/ex8.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Demo of floating-point support.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate ex8.mu # emits code.img</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate apps/ex8.mu # emits code.img</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># bochs -f bochsrc # bochsrc loads code.img</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># Set a breakpoint at 0x7c00 and start stepping.</span> <span id="L8" class="LineNr"> 8 </span> -<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex8.mu.html#L9'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex8.mu.html#L9'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert n <span id="L12" class="LineNr">12 </span><span class="Delimiter">}</span> diff --git a/html/ex9.mu.html b/html/apps/ex9.mu.html index ac7e8b68..54a158b2 100644 --- a/html/ex9.mu.html +++ b/html/apps/ex9.mu.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex9.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/ex9.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -56,13 +56,13 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex9.mu'>https://github.com/akkartik/mu/blob/main/ex9.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/ex9.mu'>https://github.com/akkartik/mu/blob/main/apps/ex9.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Demo of reading and writing to disk.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># Steps for trying it out:</span> <span id="L4" class="LineNr"> 4 </span><span class="muComment"># 1. Translate this example into a disk image code.img.</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># ./translate ex9.mu</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># ./translate apps/ex9.mu</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># 2. Build a second disk image data.img containing some text.</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># dd if=/dev/zero of=data.img count=20160</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># echo 'abc def ghi' |dd of=data.img conv=notrunc</span> @@ -75,26 +75,26 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr">15 </span><span class="muComment"># 6. Notice that the data disk now contains the word count of the original text.</span> <span id="L16" class="LineNr">16 </span><span class="muComment"># xxd data.img |head</span> <span id="L17" class="LineNr">17 </span> -<span id="L18" class="LineNr">18 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex9.mu.html#L18'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L18" class="LineNr">18 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex9.mu.html#L18'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> text-storage: (stream byte <span class="Constant">0x200</span>) <span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> text/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address text-storage -<span id="L21" class="LineNr">21 </span> <a href='boot.subx.html#L974'>load-sectors</a> data-disk, <span class="Constant">0</span>/lba, <span class="Constant">1</span>/num-sectors, text +<span id="L21" class="LineNr">21 </span> load-sectors data-disk, <span class="Constant">0</span>/lba, <span class="Constant">1</span>/num-sectors, text <span id="L22" class="LineNr">22 </span> <span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> <a href='ex9.mu.html#L31'>word-count</a>/eax: int <span class="Special"><-</span> <a href='ex9.mu.html#L31'>word-count</a> text <span id="L24" class="LineNr">24 </span> <span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> result-storage: (stream byte <span class="Constant">0x10</span>) <span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address result-storage -<span id="L27" class="LineNr">27 </span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> result, <a href='ex9.mu.html#L31'>word-count</a> -<span id="L28" class="LineNr">28 </span> <a href='boot.subx.html#L1037'>store-sectors</a> data-disk, <span class="Constant">0</span>/lba, <span class="Constant">1</span>/num-sectors, result +<span id="L27" class="LineNr">27 </span> <a href='../126write-int-decimal.subx.html#L8'>write-int32-decimal</a> result, <a href='ex9.mu.html#L31'>word-count</a> +<span id="L28" class="LineNr">28 </span> store-sectors data-disk, <span class="Constant">0</span>/lba, <span class="Constant">1</span>/num-sectors, result <span id="L29" class="LineNr">29 </span><span class="Delimiter">}</span> <span id="L30" class="LineNr">30 </span> <span id="L31" class="LineNr">31 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex9.mu.html#L31'>word-count</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L32" class="LineNr">32 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L33" class="LineNr">33 </span> <span class="Delimiter">{</span> -<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in +<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in <span id="L35" class="LineNr">35 </span> compare done?, <span class="Constant">0</span>/false <span id="L36" class="LineNr">36 </span> <span class="PreProc">break-if-!=</span> -<span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='403unicode.mu.html#L92'>read-grapheme</a> in +<span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> in <span id="L38" class="LineNr">38 </span> <span class="Delimiter">{</span> <span id="L39" class="LineNr">39 </span> compare g, <span class="Constant">0x20</span>/space <span id="L40" class="LineNr">40 </span> <span class="PreProc">break-if-!=</span> diff --git a/html/apps/hest-life.mu.html b/html/apps/hest-life.mu.html new file mode 100644 index 00000000..2fb30163 --- /dev/null +++ b/html/apps/hest-life.mu.html @@ -0,0 +1,1097 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - apps/hest-life.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEbx { color: #5f00ff; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.Special { color: #ff6060; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/apps/hest-life.mu'>https://github.com/akkartik/mu/blob/main/apps/hest-life.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Conway's Game of Life in a Hestified way</span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment"># <a href="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life</a></span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># <a href="https://ivanish.ca/hest-podcast">https://ivanish.ca/hest-podcast</a></span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment">#</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># To build:</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/hest-life.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># I run it on my 2.5GHz Linux laptop like this:</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># $ qemu-system-i386 code.img</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment">#</span> +<span id="L10" class="LineNr"> 10 </span><span class="muComment"># If things seem too fast or too slow on your computer, adjust the loop bounds</span> +<span id="L11" class="LineNr"> 11 </span><span class="muComment"># in the function `linger` at the bottom. Its value will depend on how you</span> +<span id="L12" class="LineNr"> 12 </span><span class="muComment"># accelerate Qemu (`-accel help`). Mu will eventually get a clock to obviate</span> +<span id="L13" class="LineNr"> 13 </span><span class="muComment"># the need for this tuning.</span> +<span id="L14" class="LineNr"> 14 </span><span class="muComment">#</span> +<span id="L15" class="LineNr"> 15 </span><span class="muComment"># Keyboard shortcuts:</span> +<span id="L16" class="LineNr"> 16 </span><span class="muComment"># space: pause/resume</span> +<span id="L17" class="LineNr"> 17 </span><span class="muComment"># 0: restart time</span> +<span id="L18" class="LineNr"> 18 </span><span class="muComment"># l: start looping from 0 to curren time</span> +<span id="L19" class="LineNr"> 19 </span><span class="muComment"># L: stop looping</span> +<span id="L20" class="LineNr"> 20 </span><span class="muComment"># +: zoom in</span> +<span id="L21" class="LineNr"> 21 </span><span class="muComment"># -: zoom out</span> +<span id="L22" class="LineNr"> 22 </span> +<span id="L23" class="LineNr"> 23 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L23'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> env-storage: <a href='hest-life.mu.html#L50'>environment</a> +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> address env-storage +<span id="L26" class="LineNr"> 26 </span> <a href='hest-life.mu.html#L718'>initialize-environment</a> env +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> second-buffer: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> second-screen/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address second-buffer +<span id="L29" class="LineNr"> 29 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> second-screen, <span class="Constant">0x80</span>, <span class="Constant">0x30</span>, <span class="Constant">1</span>/include-pixels +<span id="L30" class="LineNr"> 30 </span> <a href='hest-life.mu.html#L63'>render</a> second-screen, env +<span id="L31" class="LineNr"> 31 </span> <a href='../500fake-screen.mu.html#L588'>convert-graphemes-to-pixels</a> second-screen +<span id="L32" class="LineNr"> 32 </span> <a href='../500fake-screen.mu.html#L548'>copy-pixels</a> second-screen, <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L33" class="LineNr"> 33 </span> <span class="Delimiter">{</span> +<span id="L34" class="LineNr"> 34 </span> <a href='hest-life.mu.html#L595'>edit</a> keyboard, env +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> play?/eax: (addr boolean) <span class="Special"><-</span> get env, play? +<span id="L36" class="LineNr"> 36 </span> compare *play?, <span class="Constant">0</span>/false +<span id="L37" class="LineNr"> 37 </span> <span class="Delimiter">{</span> +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">break-if-=</span> +<span id="L39" class="LineNr"> 39 </span> <a href='hest-life.mu.html#L679'>step</a> env +<span id="L40" class="LineNr"> 40 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> second-screen +<span id="L41" class="LineNr"> 41 </span> <a href='hest-life.mu.html#L63'>render</a> second-screen, env +<span id="L42" class="LineNr"> 42 </span> <a href='../500fake-screen.mu.html#L588'>convert-graphemes-to-pixels</a> second-screen +<span id="L43" class="LineNr"> 43 </span> <a href='../500fake-screen.mu.html#L548'>copy-pixels</a> second-screen, <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L44" class="LineNr"> 44 </span> <span class="Delimiter">}</span> +<span id="L45" class="LineNr"> 45 </span> <a href='hest-life.mu.html#L1019'>linger</a> env +<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">loop</span> +<span id="L47" class="LineNr"> 47 </span> <span class="Delimiter">}</span> +<span id="L48" class="LineNr"> 48 </span><span class="Delimiter">}</span> +<span id="L49" class="LineNr"> 49 </span> +<span id="L50" class="LineNr"> 50 </span><span class="PreProc">type</span> <a href='hest-life.mu.html#L50'>environment</a> <span class="Delimiter">{</span> +<span id="L51" class="LineNr"> 51 </span> data: (handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) +<span id="L52" class="LineNr"> 52 </span> zoom: int <span class="muComment"># 0 = 1024 px per cell; 5 = 4px per cell; each step adjusts by a factor of 4</span> +<span id="L53" class="LineNr"> 53 </span> tick: int +<span id="L54" class="LineNr"> 54 </span> play?: boolean +<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">loop</span>: int <span class="muComment"># if non-zero, return tick to 0 after this point</span> +<span id="L56" class="LineNr"> 56 </span><span class="Delimiter">}</span> +<span id="L57" class="LineNr"> 57 </span> +<span id="L58" class="LineNr"> 58 </span><span class="PreProc">type</span> <a href='hest-life.mu.html#L58'>cell</a> <span class="Delimiter">{</span> +<span id="L59" class="LineNr"> 59 </span> curr: boolean +<span id="L60" class="LineNr"> 60 </span> next: boolean +<span id="L61" class="LineNr"> 61 </span><span class="Delimiter">}</span> +<span id="L62" class="LineNr"> 62 </span> +<span id="L63" class="LineNr"> 63 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L63'>render</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom +<span id="L66" class="LineNr"> 66 </span> compare *zoom, <span class="Constant">0</span> +<span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">{</span> +<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">break-if-!=</span> +<span id="L69" class="LineNr"> 69 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L70" class="LineNr"> 70 </span> <a href='hest-life.mu.html#L92'>render0</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self +<span id="L71" class="LineNr"> 71 </span> <span class="Delimiter">}</span> +<span id="L72" class="LineNr"> 72 </span> compare *zoom, <span class="Constant">1</span> +<span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">{</span> +<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">break-if-!=</span> +<span id="L75" class="LineNr"> 75 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L76" class="LineNr"> 76 </span> <a href='hest-life.mu.html#L212'>render1</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self +<span id="L77" class="LineNr"> 77 </span> <span class="Delimiter">}</span> +<span id="L78" class="LineNr"> 78 </span> compare *zoom, <span class="Constant">4</span> +<span id="L79" class="LineNr"> 79 </span> <span class="Delimiter">{</span> +<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">break-if-!=</span> +<span id="L81" class="LineNr"> 81 </span> <a href='hest-life.mu.html#L867'>render4</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self +<span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">}</span> +<span id="L83" class="LineNr"> 83 </span> <span class="muComment"># clock</span> +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L85" class="LineNr"> 85 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x78</span>/x, <span class="Constant">0</span>/y +<span id="L86" class="LineNr"> 86 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *tick-a, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg +<span id="L87" class="LineNr"> 87 </span><span class="Delimiter">}</span> +<span id="L88" class="LineNr"> 88 </span> +<span id="L89" class="LineNr"> 89 </span><span class="muComment"># Lots of hardcoded constants for now.</span> +<span id="L90" class="LineNr"> 90 </span><span class="muComment"># TODO: split this up into a primitive to render a single cell and its</span> +<span id="L91" class="LineNr"> 91 </span><span class="muComment"># incoming edges (but not the neighboring nodes they emanate from)</span> +<span id="L92" class="LineNr"> 92 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L92'>render0</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L94" class="LineNr"> 94 </span> <span class="muComment"># cell border</span> +<span id="L95" class="LineNr"> 95 </span> <a href='../507line.mu.html#L75'>draw-vertical-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x, <span class="Constant">0</span>/ymin, <span class="Constant">0x300</span>/ymax, <span class="Constant">0x16</span>/color=dark-grey +<span id="L96" class="LineNr"> 96 </span> <a href='../507line.mu.html#L75'>draw-vertical-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x, <span class="Constant">0</span>/ymin, <span class="Constant">0x300</span>/ymax, <span class="Constant">0x16</span>/color=dark-grey +<span id="L97" class="LineNr"> 97 </span> <a href='../507line.mu.html#L64'>draw-horizontal-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x40</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey +<span id="L98" class="LineNr"> 98 </span> <a href='../507line.mu.html#L64'>draw-horizontal-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2c0</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey +<span id="L99" class="LineNr"> 99 </span> <span class="muComment"># neighboring inputs, corners</span> +<span id="L100" class="LineNr"> 100 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/cur-topleftx, <span class="Constant">0x5f</span>/cur-toplefty +<span id="L101" class="LineNr"> 101 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x90</span>/xmin <span class="Constant">0x10</span>/ymin, <span class="Constant">0xb0</span>/xmax <span class="Constant">0x30</span>/ymax, color +<span id="L102" class="LineNr"> 102 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/cur-toprightx, <span class="Constant">0x5f</span>/cur-toprighty +<span id="L103" class="LineNr"> 103 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x350</span>/xmin <span class="Constant">0x10</span>/ymin, <span class="Constant">0x370</span>/xmax <span class="Constant">0x30</span>/ymax, color +<span id="L104" class="LineNr"> 104 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/cur-botleftx, <span class="Constant">0x61</span>/cur-botlefty +<span id="L105" class="LineNr"> 105 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x90</span>/xmin <span class="Constant">0x2d0</span>/ymin, <span class="Constant">0xb0</span>/xmax <span class="Constant">0x2f0</span>/ymax, color +<span id="L106" class="LineNr"> 106 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/cur-botrightx, <span class="Constant">0x61</span>/cur-botrighty +<span id="L107" class="LineNr"> 107 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x350</span>/xmin <span class="Constant">0x2d0</span>/ymin, <span class="Constant">0x370</span>/xmax <span class="Constant">0x2f0</span>/ymax, color +<span id="L108" class="LineNr"> 108 </span> <span class="muComment"># neighboring inputs, edges</span> +<span id="L109" class="LineNr"> 109 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/cur-topx, <span class="Constant">0x5f</span>/cur-topy +<span id="L110" class="LineNr"> 110 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1f0</span>/xmin <span class="Constant">0x10</span>/ymin, <span class="Constant">0x210</span>/xmax <span class="Constant">0x30</span>/ymax, color +<span id="L111" class="LineNr"> 111 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/cur-leftx, <span class="Constant">0x60</span>/cur-lefty +<span id="L112" class="LineNr"> 112 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x90</span>/xmin <span class="Constant">0x170</span>/ymin, <span class="Constant">0xb0</span>/xmax <span class="Constant">0x190</span>/ymax, color +<span id="L113" class="LineNr"> 113 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/cur-botx, <span class="Constant">0x61</span>/cur-boty +<span id="L114" class="LineNr"> 114 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1f0</span>/xmin <span class="Constant">0x2d0</span>/ymin, <span class="Constant">0x210</span>/xmax <span class="Constant">0x2f0</span>/ymax, color +<span id="L115" class="LineNr"> 115 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/cur-rightx, <span class="Constant">0x60</span>/cur-righty +<span id="L116" class="LineNr"> 116 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x350</span>/xmin <span class="Constant">0x170</span>/ymin, <span class="Constant">0x370</span>/xmax <span class="Constant">0x190</span>/ymax, color +<span id="L117" class="LineNr"> 117 </span> <span class="muComment"># sum node</span> +<span id="L118" class="LineNr"> 118 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/xsmin <span class="Constant">0x140</span>/ysmin, <span class="Constant">0x190</span>/xsmax <span class="Constant">0x160</span>/ysmax, <span class="Constant">0x40</span>/color +<span id="L119" class="LineNr"> 119 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>/scol, <span class="Constant">0x13</span>/srow +<span id="L120" class="LineNr"> 120 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"+"</span>, <span class="Constant">0xf</span>/color, <span class="Constant">0</span>/bg +<span id="L121" class="LineNr"> 121 </span> <span class="muComment"># conveyors from neighboring inputs to sum node</span> +<span id="L122" class="LineNr"> 122 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color +<span id="L123" class="LineNr"> 123 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x180</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color +<span id="L124" class="LineNr"> 124 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color +<span id="L125" class="LineNr"> 125 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x200</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x90</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color +<span id="L126" class="LineNr"> 126 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x200</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x200</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color +<span id="L127" class="LineNr"> 127 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x360</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0xc0</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color +<span id="L128" class="LineNr"> 128 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x360</span>/x0 <span class="Constant">0x180</span>/y0, <span class="Constant">0x35c</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color +<span id="L129" class="LineNr"> 129 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x360</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x200</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color +<span id="L130" class="LineNr"> 130 </span> <span class="muComment"># filter node</span> +<span id="L131" class="LineNr"> 131 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x200</span>/xfmin <span class="Constant">0x1c0</span>/yfmin, <span class="Constant">0x220</span>/xfmax <span class="Constant">0x1e0</span>/yfmax, <span class="Constant">0x31</span>/color +<span id="L132" class="LineNr"> 132 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x40</span>/fcol, <span class="Constant">0x1b</span>/frow +<span id="L133" class="LineNr"> 133 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"?"</span>, <span class="Constant">0xf</span>/color, <span class="Constant">0</span>/bg +<span id="L134" class="LineNr"> 134 </span> <span class="muComment"># conveyor from sum node to filter node</span> +<span id="L135" class="LineNr"> 135 </span> <a href='../507line.mu.html#L1'>draw-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span class="Constant">0x180</span>/xs, <span class="Constant">0x150</span>/ys, <span class="Constant">0x210</span>/xf, <span class="Constant">0x1d0</span>/yf, <span class="Constant">0xa2</span>/color +<span id="L136" class="LineNr"> 136 </span> <span class="muComment"># cell outputs at corners</span> +<span id="L137" class="LineNr"> 137 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L138" class="LineNr"> 138 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xd0</span>/xmin <span class="Constant">0x50</span>/ymin, <span class="Constant">0xf0</span>/xmax <span class="Constant">0x70</span>/ymax, color +<span id="L139" class="LineNr"> 139 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x310</span>/xmin <span class="Constant">0x50</span>/ymin, <span class="Constant">0x330</span>/xmax <span class="Constant">0x70</span>/ymax, color +<span id="L140" class="LineNr"> 140 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xd0</span>/xmin <span class="Constant">0x290</span>/ymin, <span class="Constant">0xf0</span>/xmax <span class="Constant">0x2b0</span>/ymax, color +<span id="L141" class="LineNr"> 141 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x310</span>/xmin <span class="Constant">0x290</span>/ymin, <span class="Constant">0x330</span>/xmax <span class="Constant">0x2b0</span>/ymax, color +<span id="L142" class="LineNr"> 142 </span> <span class="muComment"># cell outputs at edges</span> +<span id="L143" class="LineNr"> 143 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1f0</span>/xmin <span class="Constant">0x50</span>/ymin, <span class="Constant">0x210</span>/xmax <span class="Constant">0x70</span>/ymax, color +<span id="L144" class="LineNr"> 144 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xd0</span>/xmin <span class="Constant">0x170</span>/ymin, <span class="Constant">0xf0</span>/xmax <span class="Constant">0x190</span>/ymax, color +<span id="L145" class="LineNr"> 145 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1f0</span>/xmin <span class="Constant">0x290</span>/ymin, <span class="Constant">0x210</span>/xmax <span class="Constant">0x2b0</span>/ymax, color +<span id="L146" class="LineNr"> 146 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x310</span>/xmin <span class="Constant">0x170</span>/ymin, <span class="Constant">0x330</span>/xmax <span class="Constant">0x190</span>/ymax, color +<span id="L147" class="LineNr"> 147 </span> <span class="muComment"># conveyors from filter to outputs</span> +<span id="L148" class="LineNr"> 148 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x1c0</span>/x1 <span class="Constant">0x60</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L149" class="LineNr"> 149 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0xe0</span>/x1 <span class="Constant">0x1c0</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x180</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L150" class="LineNr"> 150 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x1c0</span>/x1 <span class="Constant">0x2a0</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L151" class="LineNr"> 151 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x210</span>/x1 <span class="Constant">0x60</span>/y1, <span class="Constant">0x200</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L152" class="LineNr"> 152 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x210</span>/x1 <span class="Constant">0x230</span>/y1, <span class="Constant">0x200</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L153" class="LineNr"> 153 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x120</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L154" class="LineNr"> 154 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x1c0</span>/y1 <span class="Constant">0x320</span>/x2 <span class="Constant">0x180</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L155" class="LineNr"> 155 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x230</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L156" class="LineNr"> 156 </span> <span class="muComment"># time-variant portion: 16 repeating steps</span> +<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a +<span id="L159" class="LineNr"> 159 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> +<span id="L160" class="LineNr"> 160 </span> <span class="muComment"># 7 time steps for getting inputs to sum</span> +<span id="L161" class="LineNr"> 161 </span> <span class="Delimiter">{</span> +<span id="L162" class="LineNr"> 162 </span> compare progress, <span class="Constant">7</span> +<span id="L163" class="LineNr"> 163 </span> <span class="PreProc">break-if->=</span> +<span id="L164" class="LineNr"> 164 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L165" class="LineNr"> 165 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L166" class="LineNr"> 166 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six +<span id="L167" class="LineNr"> 167 </span> u <span class="Special"><-</span> divide six-f +<span id="L168" class="LineNr"> 168 </span> <span class="muComment"># points on conveyors from neighboring cells</span> +<span id="L169" class="LineNr"> 169 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L170" class="LineNr"> 170 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x180</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L171" class="LineNr"> 171 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L172" class="LineNr"> 172 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x200</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x90</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L173" class="LineNr"> 173 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x200</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x200</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L174" class="LineNr"> 174 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x360</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0xc0</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L175" class="LineNr"> 175 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x360</span>/x0 <span class="Constant">0x180</span>/y0, <span class="Constant">0x35c</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L176" class="LineNr"> 176 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x360</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x200</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L177" class="LineNr"> 177 </span> <span class="PreProc">return</span> +<span id="L178" class="LineNr"> 178 </span> <span class="Delimiter">}</span> +<span id="L179" class="LineNr"> 179 </span> <span class="muComment"># two time steps for getting count to filter</span> +<span id="L180" class="LineNr"> 180 </span> progress <span class="Special"><-</span> subtract <span class="Constant">7</span> +<span id="L181" class="LineNr"> 181 </span> <span class="Delimiter">{</span> +<span id="L182" class="LineNr"> 182 </span> compare progress, <span class="Constant">2</span> +<span id="L183" class="LineNr"> 183 </span> <span class="PreProc">break-if->=</span> +<span id="L184" class="LineNr"> 184 </span> progress <span class="Special"><-</span> increment <span class="muComment"># (0, 1) => (1, 2)</span> +<span id="L185" class="LineNr"> 185 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L186" class="LineNr"> 186 </span> <span class="PreProc">var</span> three/eax: int <span class="Special"><-</span> copy <span class="Constant">3</span> +<span id="L187" class="LineNr"> 187 </span> <span class="PreProc">var</span> three-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert three +<span id="L188" class="LineNr"> 188 </span> u <span class="Special"><-</span> divide three-f +<span id="L189" class="LineNr"> 189 </span> <a href='hest-life.mu.html#L588'>draw-linear-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x180</span>/xs, <span class="Constant">0x150</span>/ys, <span class="Constant">0x210</span>/xf, <span class="Constant">0x1d0</span>/yf, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L190" class="LineNr"> 190 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x3a</span>/scol, <span class="Constant">0x18</span>/srow +<span id="L191" class="LineNr"> 191 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L192" class="LineNr"> 192 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg +<span id="L193" class="LineNr"> 193 </span> <span class="PreProc">return</span> +<span id="L194" class="LineNr"> 194 </span> <span class="Delimiter">}</span> +<span id="L195" class="LineNr"> 195 </span> <span class="muComment"># final 7 time steps for updating output</span> +<span id="L196" class="LineNr"> 196 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> +<span id="L197" class="LineNr"> 197 </span> <span class="muComment"># points on conveyors to outputs</span> +<span id="L198" class="LineNr"> 198 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L199" class="LineNr"> 199 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L200" class="LineNr"> 200 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six +<span id="L201" class="LineNr"> 201 </span> u <span class="Special"><-</span> divide six-f +<span id="L202" class="LineNr"> 202 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x1c0</span>/x1 <span class="Constant">0x60</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L203" class="LineNr"> 203 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0xe0</span>/x1 <span class="Constant">0x1c0</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x180</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L204" class="LineNr"> 204 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x1c0</span>/x1 <span class="Constant">0x2a0</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L205" class="LineNr"> 205 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x210</span>/xf <span class="Constant">0x60</span>/y1, <span class="Constant">0x200</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L206" class="LineNr"> 206 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x210</span>/xf <span class="Constant">0x230</span>/y1, <span class="Constant">0x200</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L207" class="LineNr"> 207 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x120</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L208" class="LineNr"> 208 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x1c0</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x180</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L209" class="LineNr"> 209 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x230</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L210" class="LineNr"> 210 </span><span class="Delimiter">}</span> +<span id="L211" class="LineNr"> 211 </span> +<span id="L212" class="LineNr"> 212 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L212'>render1</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L213" class="LineNr"> 213 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L214" class="LineNr"> 214 </span> <span class="muComment"># cell borders</span> +<span id="L215" class="LineNr"> 215 </span> <a href='../507line.mu.html#L75'>draw-vertical-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe0</span>/x, <span class="Constant">0</span>/ymin, <span class="Constant">0x300</span>/ymax, <span class="Constant">0x16</span>/color=dark-grey +<span id="L216" class="LineNr"> 216 </span> <a href='../507line.mu.html#L75'>draw-vertical-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x200</span>/x, <span class="Constant">0</span>/ymin, <span class="Constant">0x300</span>/ymax, <span class="Constant">0x16</span>/color=dark-grey +<span id="L217" class="LineNr"> 217 </span> <a href='../507line.mu.html#L75'>draw-vertical-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x320</span>/x, <span class="Constant">0</span>/ymin, <span class="Constant">0x300</span>/ymax, <span class="Constant">0x16</span>/color=dark-grey +<span id="L218" class="LineNr"> 218 </span> <a href='../507line.mu.html#L64'>draw-horizontal-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x60</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey +<span id="L219" class="LineNr"> 219 </span> <a href='../507line.mu.html#L64'>draw-horizontal-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x180</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey +<span id="L220" class="LineNr"> 220 </span> <a href='../507line.mu.html#L64'>draw-horizontal-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a0</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey +<span id="L221" class="LineNr"> 221 </span> <span class="muComment"># cell 0: outputs</span> +<span id="L222" class="LineNr"> 222 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L223" class="LineNr"> 223 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x98</span>/ymax, color +<span id="L224" class="LineNr"> 224 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x100</span>/ymax, color +<span id="L225" class="LineNr"> 225 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x178</span>/ymax, color +<span id="L226" class="LineNr"> 226 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x98</span>/ymax, color +<span id="L227" class="LineNr"> 227 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x178</span>/ymax, color +<span id="L228" class="LineNr"> 228 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x98</span>/ymax, color +<span id="L229" class="LineNr"> 229 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x100</span>/ymax, color +<span id="L230" class="LineNr"> 230 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x178</span>/ymax, color +<span id="L231" class="LineNr"> 231 </span> <span class="muComment"># cell 1: outputs</span> +<span id="L232" class="LineNr"> 232 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L233" class="LineNr"> 233 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x98</span>/ymax, color +<span id="L234" class="LineNr"> 234 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x100</span>/ymax, color +<span id="L235" class="LineNr"> 235 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x178</span>/ymax, color +<span id="L236" class="LineNr"> 236 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x98</span>/ymax, color +<span id="L237" class="LineNr"> 237 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x178</span>/ymax, color +<span id="L238" class="LineNr"> 238 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x98</span>/ymax, color +<span id="L239" class="LineNr"> 239 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x100</span>/ymax, color +<span id="L240" class="LineNr"> 240 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x178</span>/ymax, color +<span id="L241" class="LineNr"> 241 </span> <span class="muComment"># cell 2: outputs</span> +<span id="L242" class="LineNr"> 242 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L243" class="LineNr"> 243 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x1b8</span>/ymax, color +<span id="L244" class="LineNr"> 244 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x220</span>/ymax, color +<span id="L245" class="LineNr"> 245 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x298</span>/ymax, color +<span id="L246" class="LineNr"> 246 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x1b8</span>/ymax, color +<span id="L247" class="LineNr"> 247 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x298</span>/ymax, color +<span id="L248" class="LineNr"> 248 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x1b8</span>/ymax, color +<span id="L249" class="LineNr"> 249 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x220</span>/ymax, color +<span id="L250" class="LineNr"> 250 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x298</span>/ymax, color +<span id="L251" class="LineNr"> 251 </span> <span class="muComment"># cell 3: outputs</span> +<span id="L252" class="LineNr"> 252 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L253" class="LineNr"> 253 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x1b8</span>/ymax, color +<span id="L254" class="LineNr"> 254 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x220</span>/ymax, color +<span id="L255" class="LineNr"> 255 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x298</span>/ymax, color +<span id="L256" class="LineNr"> 256 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x1b8</span>/ymax, color +<span id="L257" class="LineNr"> 257 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x298</span>/ymax, color +<span id="L258" class="LineNr"> 258 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x1b8</span>/ymax, color +<span id="L259" class="LineNr"> 259 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x220</span>/ymax, color +<span id="L260" class="LineNr"> 260 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x298</span>/ymax, color +<span id="L261" class="LineNr"> 261 </span> <span class="muComment"># neighboring nodes</span> +<span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x5f</span>/cury +<span id="L263" class="LineNr"> 263 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x58</span>/ymax, color +<span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x5f</span>/cury +<span id="L265" class="LineNr"> 265 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x58</span>/ymax, color +<span id="L266" class="LineNr"> 266 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x58</span>/ymax, color +<span id="L267" class="LineNr"> 267 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x5f</span>/cury +<span id="L268" class="LineNr"> 268 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x58</span>/ymax, color +<span id="L269" class="LineNr"> 269 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x58</span>/ymax, color +<span id="L270" class="LineNr"> 270 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x5f</span>/cury +<span id="L271" class="LineNr"> 271 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x58</span>/ymax, color +<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L273" class="LineNr"> 273 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x100</span>/ymax, color +<span id="L274" class="LineNr"> 274 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x178</span>/ymax, color +<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L276" class="LineNr"> 276 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x100</span>/ymax, color +<span id="L277" class="LineNr"> 277 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x178</span>/ymax, color +<span id="L278" class="LineNr"> 278 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L279" class="LineNr"> 279 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x1b8</span>/ymax, color +<span id="L280" class="LineNr"> 280 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x220</span>/ymax, color +<span id="L281" class="LineNr"> 281 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L282" class="LineNr"> 282 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x1b8</span>/ymax, color +<span id="L283" class="LineNr"> 283 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x220</span>/ymax, color +<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x62</span>/cury +<span id="L285" class="LineNr"> 285 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x2d8</span>/ymax, color +<span id="L286" class="LineNr"> 286 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x62</span>/cury +<span id="L287" class="LineNr"> 287 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x2d8</span>/ymax, color +<span id="L288" class="LineNr"> 288 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x2d8</span>/ymax, color +<span id="L289" class="LineNr"> 289 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x62</span>/cury +<span id="L290" class="LineNr"> 290 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x2d8</span>/ymax, color +<span id="L291" class="LineNr"> 291 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x2d8</span>/ymax, color +<span id="L292" class="LineNr"> 292 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x62</span>/cury +<span id="L293" class="LineNr"> 293 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x2d8</span>/ymax, color +<span id="L294" class="LineNr"> 294 </span> <span class="muComment"># cell 0: sum and filter nodes</span> +<span id="L295" class="LineNr"> 295 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x148</span>/xsmin <span class="Constant">0xc8</span>/ysmin, <span class="Constant">0x158</span>/xsmax <span class="Constant">0xd8</span>/ysmax, <span class="Constant">0x40</span>/color +<span id="L296" class="LineNr"> 296 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x180</span>/xfmin <span class="Constant">0xf8</span>/yfmin, <span class="Constant">0x190</span>/xfmax <span class="Constant">0x108</span>/yfmax, <span class="Constant">0x31</span>/color +<span id="L297" class="LineNr"> 297 </span> <span class="muComment"># cell 1: sum and filter nodes</span> +<span id="L298" class="LineNr"> 298 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x268</span>/xsmin <span class="Constant">0xc8</span>/ysmin, <span class="Constant">0x278</span>/xsmax <span class="Constant">0xd8</span>/ysmax, <span class="Constant">0x40</span>/color +<span id="L299" class="LineNr"> 299 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a0</span>/xfmin <span class="Constant">0xf8</span>/yfmin, <span class="Constant">0x2b0</span>/xfmax <span class="Constant">0x108</span>/yfmax, <span class="Constant">0x31</span>/color +<span id="L300" class="LineNr"> 300 </span> <span class="muComment"># cell 2: sum and filter nodes</span> +<span id="L301" class="LineNr"> 301 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x148</span>/xsmin <span class="Constant">0x1e8</span>/ysmin, <span class="Constant">0x158</span>/xsmax <span class="Constant">0x1f8</span>/ysmax, <span class="Constant">0x40</span>/color +<span id="L302" class="LineNr"> 302 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x180</span>/xfmin <span class="Constant">0x218</span>/yfmin, <span class="Constant">0x190</span>/xfmax <span class="Constant">0x228</span>/yfmax, <span class="Constant">0x31</span>/color +<span id="L303" class="LineNr"> 303 </span> <span class="muComment"># cell 3: sum and filter nodes</span> +<span id="L304" class="LineNr"> 304 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x268</span>/xsmin <span class="Constant">0x1e8</span>/ysmin, <span class="Constant">0x278</span>/xsmax <span class="Constant">0x1f8</span>/ysmax, <span class="Constant">0x40</span>/color +<span id="L305" class="LineNr"> 305 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a0</span>/xfmin <span class="Constant">0x218</span>/yfmin, <span class="Constant">0x2b0</span>/xfmax <span class="Constant">0x228</span>/yfmax, <span class="Constant">0x31</span>/color +<span id="L306" class="LineNr"> 306 </span> <span class="muComment"># neighbor counts</span> +<span id="L307" class="LineNr"> 307 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L308" class="LineNr"> 308 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>, <span class="Constant">0xe</span> +<span id="L309" class="LineNr"> 309 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg +<span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x60</span>/cury +<span id="L311" class="LineNr"> 311 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x52</span>, <span class="Constant">0xe</span> +<span id="L312" class="LineNr"> 312 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg +<span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L314" class="LineNr"> 314 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>, <span class="Constant">0x20</span> +<span id="L315" class="LineNr"> 315 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg +<span id="L316" class="LineNr"> 316 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x61</span>/cury +<span id="L317" class="LineNr"> 317 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x52</span>, <span class="Constant">0x20</span> +<span id="L318" class="LineNr"> 318 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg +<span id="L319" class="LineNr"> 319 </span> <span class="muComment"># cell 0: conveyors from neighboring inputs to sum node</span> +<span id="L320" class="LineNr"> 320 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L321" class="LineNr"> 321 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L322" class="LineNr"> 322 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0xe0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L323" class="LineNr"> 323 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L324" class="LineNr"> 324 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L325" class="LineNr"> 325 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L326" class="LineNr"> 326 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0xd0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L327" class="LineNr"> 327 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L328" class="LineNr"> 328 </span> <span class="muComment"># cell 0: conveyors from filter to outputs</span> +<span id="L329" class="LineNr"> 329 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x160</span>/x1 <span class="Constant">0x8c</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L330" class="LineNr"> 330 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L331" class="LineNr"> 331 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L332" class="LineNr"> 332 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x188</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L333" class="LineNr"> 333 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x188</span>/x1 <span class="Constant">0x160</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L334" class="LineNr"> 334 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L335" class="LineNr"> 335 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1 <span class="Constant">0x1e0</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L336" class="LineNr"> 336 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L337" class="LineNr"> 337 </span> <span class="muComment"># cell 0: time-variant portion: 16 repeating steps</span> +<span id="L338" class="LineNr"> 338 </span> $render1:cell0: <span class="Delimiter">{</span> +<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a +<span id="L341" class="LineNr"> 341 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> +<span id="L342" class="LineNr"> 342 </span> <span class="muComment"># cell 0: 7 time steps for getting inputs to sum</span> +<span id="L343" class="LineNr"> 343 </span> <span class="Delimiter">{</span> +<span id="L344" class="LineNr"> 344 </span> compare progress, <span class="Constant">7</span> +<span id="L345" class="LineNr"> 345 </span> <span class="PreProc">break-if->=</span> +<span id="L346" class="LineNr"> 346 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L347" class="LineNr"> 347 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L348" class="LineNr"> 348 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six +<span id="L349" class="LineNr"> 349 </span> u <span class="Special"><-</span> divide six-f +<span id="L350" class="LineNr"> 350 </span> <span class="muComment"># points on conveyors from neighboring cells</span> +<span id="L351" class="LineNr"> 351 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L352" class="LineNr"> 352 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L353" class="LineNr"> 353 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0xe0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L354" class="LineNr"> 354 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x170</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L355" class="LineNr"> 355 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x170</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L356" class="LineNr"> 356 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L357" class="LineNr"> 357 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0xd0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L358" class="LineNr"> 358 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L359" class="LineNr"> 359 </span> <span class="PreProc">break</span> $render1:cell0 +<span id="L360" class="LineNr"> 360 </span> <span class="Delimiter">}</span> +<span id="L361" class="LineNr"> 361 </span> <span class="muComment"># cell 0: two time steps for getting count to filter</span> +<span id="L362" class="LineNr"> 362 </span> progress <span class="Special"><-</span> subtract <span class="Constant">7</span> +<span id="L363" class="LineNr"> 363 </span> <span class="Delimiter">{</span> +<span id="L364" class="LineNr"> 364 </span> compare progress, <span class="Constant">2</span> +<span id="L365" class="LineNr"> 365 </span> <span class="PreProc">break-if->=</span> +<span id="L366" class="LineNr"> 366 </span> <span class="PreProc">break</span> $render1:cell0 +<span id="L367" class="LineNr"> 367 </span> <span class="Delimiter">}</span> +<span id="L368" class="LineNr"> 368 </span> <span class="muComment"># cell 0: final 7 time steps for updating output</span> +<span id="L369" class="LineNr"> 369 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> +<span id="L370" class="LineNr"> 370 </span> <span class="muComment"># cell 0: points on conveyors to outputs</span> +<span id="L371" class="LineNr"> 371 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L372" class="LineNr"> 372 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six +<span id="L374" class="LineNr"> 374 </span> u <span class="Special"><-</span> divide six-f +<span id="L375" class="LineNr"> 375 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x160</span>/x1 <span class="Constant">0x8c</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L376" class="LineNr"> 376 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L377" class="LineNr"> 377 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L378" class="LineNr"> 378 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x188</span>/xf <span class="Constant">0x80</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L379" class="LineNr"> 379 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x188</span>/xf <span class="Constant">0x160</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L380" class="LineNr"> 380 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L381" class="LineNr"> 381 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L382" class="LineNr"> 382 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L383" class="LineNr"> 383 </span> <span class="Delimiter">}</span> +<span id="L384" class="LineNr"> 384 </span> <span class="muComment"># cell 1: conveyors from neighboring inputs to sum node</span> +<span id="L385" class="LineNr"> 385 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L386" class="LineNr"> 386 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L387" class="LineNr"> 387 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x200</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L388" class="LineNr"> 388 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x290</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L389" class="LineNr"> 389 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x290</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L390" class="LineNr"> 390 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L391" class="LineNr"> 391 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x340</span>/x1 <span class="Constant">0xd0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L392" class="LineNr"> 392 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x2a0</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color +<span id="L393" class="LineNr"> 393 </span> <span class="muComment"># cell 1: conveyors from filter to outputs</span> +<span id="L394" class="LineNr"> 394 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x280</span>/x1 <span class="Constant">0x8c</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L395" class="LineNr"> 395 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L396" class="LineNr"> 396 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L397" class="LineNr"> 397 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x2a8</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L398" class="LineNr"> 398 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x2a8</span>/x1 <span class="Constant">0x160</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L399" class="LineNr"> 399 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L400" class="LineNr"> 400 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1 <span class="Constant">0x300</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L401" class="LineNr"> 401 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L402" class="LineNr"> 402 </span> <span class="muComment"># cell 1: time-variant portion: 16 repeating steps</span> +<span id="L403" class="LineNr"> 403 </span> $render1:cell1: <span class="Delimiter">{</span> +<span id="L404" class="LineNr"> 404 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L405" class="LineNr"> 405 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a +<span id="L406" class="LineNr"> 406 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> +<span id="L407" class="LineNr"> 407 </span> <span class="muComment"># cell 1: 7 time steps for getting inputs to sum</span> +<span id="L408" class="LineNr"> 408 </span> <span class="Delimiter">{</span> +<span id="L409" class="LineNr"> 409 </span> compare progress, <span class="Constant">7</span> +<span id="L410" class="LineNr"> 410 </span> <span class="PreProc">break-if->=</span> +<span id="L411" class="LineNr"> 411 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L413" class="LineNr"> 413 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six +<span id="L414" class="LineNr"> 414 </span> u <span class="Special"><-</span> divide six-f +<span id="L415" class="LineNr"> 415 </span> <span class="muComment"># points on conveyors from neighboring cells</span> +<span id="L416" class="LineNr"> 416 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L417" class="LineNr"> 417 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L418" class="LineNr"> 418 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x200</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L419" class="LineNr"> 419 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x290</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L420" class="LineNr"> 420 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x290</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L421" class="LineNr"> 421 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L422" class="LineNr"> 422 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x340</span>/x1 <span class="Constant">0xd0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L423" class="LineNr"> 423 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x2a0</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L424" class="LineNr"> 424 </span> <span class="PreProc">break</span> $render1:cell1 +<span id="L425" class="LineNr"> 425 </span> <span class="Delimiter">}</span> +<span id="L426" class="LineNr"> 426 </span> <span class="muComment"># cell 1: two time steps for getting count to filter</span> +<span id="L427" class="LineNr"> 427 </span> progress <span class="Special"><-</span> subtract <span class="Constant">7</span> +<span id="L428" class="LineNr"> 428 </span> <span class="Delimiter">{</span> +<span id="L429" class="LineNr"> 429 </span> compare progress, <span class="Constant">2</span> +<span id="L430" class="LineNr"> 430 </span> <span class="PreProc">break-if->=</span> +<span id="L431" class="LineNr"> 431 </span> <span class="PreProc">break</span> $render1:cell1 +<span id="L432" class="LineNr"> 432 </span> <span class="Delimiter">}</span> +<span id="L433" class="LineNr"> 433 </span> <span class="muComment"># cell 1: final 7 time steps for updating output</span> +<span id="L434" class="LineNr"> 434 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> +<span id="L435" class="LineNr"> 435 </span> <span class="muComment"># cell 1: points on conveyors to outputs</span> +<span id="L436" class="LineNr"> 436 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L437" class="LineNr"> 437 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L438" class="LineNr"> 438 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six +<span id="L439" class="LineNr"> 439 </span> u <span class="Special"><-</span> divide six-f +<span id="L440" class="LineNr"> 440 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x280</span>/x1 <span class="Constant">0x8c</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L441" class="LineNr"> 441 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L442" class="LineNr"> 442 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L443" class="LineNr"> 443 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x80</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L444" class="LineNr"> 444 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x160</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L445" class="LineNr"> 445 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L446" class="LineNr"> 446 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L447" class="LineNr"> 447 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L448" class="LineNr"> 448 </span> <span class="Delimiter">}</span> +<span id="L449" class="LineNr"> 449 </span> <span class="muComment"># cell 2: conveyors from neighboring inputs to sum node</span> +<span id="L450" class="LineNr"> 450 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L451" class="LineNr"> 451 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L452" class="LineNr"> 452 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0xe0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L453" class="LineNr"> 453 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L454" class="LineNr"> 454 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L455" class="LineNr"> 455 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L456" class="LineNr"> 456 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0x1f0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L457" class="LineNr"> 457 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L458" class="LineNr"> 458 </span> <span class="muComment"># cell 2: conveyors from filter to outputs</span> +<span id="L459" class="LineNr"> 459 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x160</span>/x1 <span class="Constant">0x1ac</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L460" class="LineNr"> 460 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L461" class="LineNr"> 461 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L462" class="LineNr"> 462 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x188</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L463" class="LineNr"> 463 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x188</span>/x1 <span class="Constant">0x280</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L464" class="LineNr"> 464 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L465" class="LineNr"> 465 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1 <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L466" class="LineNr"> 466 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L467" class="LineNr"> 467 </span> <span class="muComment"># cell 2: time-variant portion: 16 repeating steps</span> +<span id="L468" class="LineNr"> 468 </span> $render1:cell2: <span class="Delimiter">{</span> +<span id="L469" class="LineNr"> 469 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L470" class="LineNr"> 470 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a +<span id="L471" class="LineNr"> 471 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> +<span id="L472" class="LineNr"> 472 </span> <span class="muComment"># cell 2: 7 time steps for getting inputs to sum</span> +<span id="L473" class="LineNr"> 473 </span> <span class="Delimiter">{</span> +<span id="L474" class="LineNr"> 474 </span> compare progress, <span class="Constant">7</span> +<span id="L475" class="LineNr"> 475 </span> <span class="PreProc">break-if->=</span> +<span id="L476" class="LineNr"> 476 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L478" class="LineNr"> 478 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six +<span id="L479" class="LineNr"> 479 </span> u <span class="Special"><-</span> divide six-f +<span id="L480" class="LineNr"> 480 </span> <span class="muComment"># points on conveyors from neighboring cells</span> +<span id="L481" class="LineNr"> 481 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L482" class="LineNr"> 482 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L483" class="LineNr"> 483 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0xe0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L484" class="LineNr"> 484 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x170</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L485" class="LineNr"> 485 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x170</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L486" class="LineNr"> 486 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L487" class="LineNr"> 487 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0x1f0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L488" class="LineNr"> 488 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">break</span> $render1:cell2 +<span id="L490" class="LineNr"> 490 </span> <span class="Delimiter">}</span> +<span id="L491" class="LineNr"> 491 </span> <span class="muComment"># cell 2: two time steps for getting count to filter</span> +<span id="L492" class="LineNr"> 492 </span> progress <span class="Special"><-</span> subtract <span class="Constant">7</span> +<span id="L493" class="LineNr"> 493 </span> <span class="Delimiter">{</span> +<span id="L494" class="LineNr"> 494 </span> compare progress, <span class="Constant">2</span> +<span id="L495" class="LineNr"> 495 </span> <span class="PreProc">break-if->=</span> +<span id="L496" class="LineNr"> 496 </span> <span class="PreProc">break</span> $render1:cell2 +<span id="L497" class="LineNr"> 497 </span> <span class="Delimiter">}</span> +<span id="L498" class="LineNr"> 498 </span> <span class="muComment"># cell 2: final 7 time steps for updating output</span> +<span id="L499" class="LineNr"> 499 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> +<span id="L500" class="LineNr"> 500 </span> <span class="muComment"># cell 2: points on conveyors to outputs</span> +<span id="L501" class="LineNr"> 501 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L502" class="LineNr"> 502 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L503" class="LineNr"> 503 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six +<span id="L504" class="LineNr"> 504 </span> u <span class="Special"><-</span> divide six-f +<span id="L505" class="LineNr"> 505 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x160</span>/x1 <span class="Constant">0x1ac</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L506" class="LineNr"> 506 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L507" class="LineNr"> 507 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L508" class="LineNr"> 508 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x188</span>/xf <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L509" class="LineNr"> 509 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x188</span>/xf <span class="Constant">0x280</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L510" class="LineNr"> 510 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L511" class="LineNr"> 511 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L512" class="LineNr"> 512 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L513" class="LineNr"> 513 </span> <span class="Delimiter">}</span> +<span id="L514" class="LineNr"> 514 </span> <span class="muComment"># cell 3: conveyors from neighboring inputs to sum node</span> +<span id="L515" class="LineNr"> 515 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L516" class="LineNr"> 516 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L517" class="LineNr"> 517 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x200</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L518" class="LineNr"> 518 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x290</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L519" class="LineNr"> 519 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x290</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L520" class="LineNr"> 520 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L521" class="LineNr"> 521 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x340</span>/x1 <span class="Constant">0x1f0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L522" class="LineNr"> 522 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x2a0</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color +<span id="L523" class="LineNr"> 523 </span> <span class="muComment"># cell 3: conveyors from filter to outputs</span> +<span id="L524" class="LineNr"> 524 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x280</span>/x1 <span class="Constant">0x1ac</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L525" class="LineNr"> 525 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L526" class="LineNr"> 526 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L527" class="LineNr"> 527 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x2a8</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L528" class="LineNr"> 528 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x2a8</span>/x1 <span class="Constant">0x280</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L529" class="LineNr"> 529 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L530" class="LineNr"> 530 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1 <span class="Constant">0x300</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L531" class="LineNr"> 531 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color +<span id="L532" class="LineNr"> 532 </span> <span class="muComment"># cell 3: time-variant portion: 16 repeating steps</span> +<span id="L533" class="LineNr"> 533 </span> $render1:cell3: <span class="Delimiter">{</span> +<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L535" class="LineNr"> 535 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a +<span id="L536" class="LineNr"> 536 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> +<span id="L537" class="LineNr"> 537 </span> <span class="muComment"># cell 3: 7 time steps for getting inputs to sum</span> +<span id="L538" class="LineNr"> 538 </span> <span class="Delimiter">{</span> +<span id="L539" class="LineNr"> 539 </span> compare progress, <span class="Constant">7</span> +<span id="L540" class="LineNr"> 540 </span> <span class="PreProc">break-if->=</span> +<span id="L541" class="LineNr"> 541 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L542" class="LineNr"> 542 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L543" class="LineNr"> 543 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six +<span id="L544" class="LineNr"> 544 </span> u <span class="Special"><-</span> divide six-f +<span id="L545" class="LineNr"> 545 </span> <span class="muComment"># points on conveyors from neighboring cells</span> +<span id="L546" class="LineNr"> 546 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L547" class="LineNr"> 547 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L548" class="LineNr"> 548 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x200</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L549" class="LineNr"> 549 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x290</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L550" class="LineNr"> 550 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x290</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L551" class="LineNr"> 551 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L552" class="LineNr"> 552 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x340</span>/x1 <span class="Constant">0x1f0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L553" class="LineNr"> 553 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x2a0</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L554" class="LineNr"> 554 </span> <span class="PreProc">break</span> $render1:cell3 +<span id="L555" class="LineNr"> 555 </span> <span class="Delimiter">}</span> +<span id="L556" class="LineNr"> 556 </span> <span class="muComment"># cell 3: two time steps for getting count to filter</span> +<span id="L557" class="LineNr"> 557 </span> progress <span class="Special"><-</span> subtract <span class="Constant">7</span> +<span id="L558" class="LineNr"> 558 </span> <span class="Delimiter">{</span> +<span id="L559" class="LineNr"> 559 </span> compare progress, <span class="Constant">2</span> +<span id="L560" class="LineNr"> 560 </span> <span class="PreProc">break-if->=</span> +<span id="L561" class="LineNr"> 561 </span> <span class="PreProc">break</span> $render1:cell3 +<span id="L562" class="LineNr"> 562 </span> <span class="Delimiter">}</span> +<span id="L563" class="LineNr"> 563 </span> <span class="muComment"># cell 3: final 7 time steps for updating output</span> +<span id="L564" class="LineNr"> 564 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> +<span id="L565" class="LineNr"> 565 </span> <span class="muComment"># cell 3: points on conveyors to outputs</span> +<span id="L566" class="LineNr"> 566 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress +<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> +<span id="L568" class="LineNr"> 568 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six +<span id="L569" class="LineNr"> 569 </span> u <span class="Special"><-</span> divide six-f +<span id="L570" class="LineNr"> 570 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x280</span>/x1 <span class="Constant">0x1ac</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L571" class="LineNr"> 571 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L572" class="LineNr"> 572 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L573" class="LineNr"> 573 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L574" class="LineNr"> 574 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x280</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L575" class="LineNr"> 575 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L576" class="LineNr"> 576 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L577" class="LineNr"> 577 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius +<span id="L578" class="LineNr"> 578 </span> <span class="Delimiter">}</span> +<span id="L579" class="LineNr"> 579 </span><span class="Delimiter">}</span> +<span id="L580" class="LineNr"> 580 </span> +<span id="L581" class="LineNr"> 581 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L581'>draw-bezier-point</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), u: float, x0: int, y0: int, x1: int, y1: int, x2: int, y2: int, color: int, radius: int <span class="Delimiter">{</span> +<span id="L582" class="LineNr"> 582 </span> <span class="PreProc">var</span> _cy/eax: int <span class="Special"><-</span> <a href='../509bezier.mu.html#L298'>bezier-point</a> u, y0, y1, y2 +<span id="L583" class="LineNr"> 583 </span> <span class="PreProc">var</span> cy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _cy +<span id="L584" class="LineNr"> 584 </span> <span class="PreProc">var</span> cx/eax: int <span class="Special"><-</span> <a href='../509bezier.mu.html#L298'>bezier-point</a> u, x0, x1, x2 +<span id="L585" class="LineNr"> 585 </span> <a href='../508circle.mu.html#L80'>draw-disc</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, cx, cy, radius, color, <span class="Constant">0xf</span>/border-color=white +<span id="L586" class="LineNr"> 586 </span><span class="Delimiter">}</span> +<span id="L587" class="LineNr"> 587 </span> +<span id="L588" class="LineNr"> 588 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L588'>draw-linear-point</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), u: float, x0: int, y0: int, x1: int, y1: int, color: int, radius: int <span class="Delimiter">{</span> +<span id="L589" class="LineNr"> 589 </span> <span class="PreProc">var</span> _cy/eax: int <span class="Special"><-</span> <a href='../507line.mu.html#L98'>line-point</a> u, y0, y1 +<span id="L590" class="LineNr"> 590 </span> <span class="PreProc">var</span> cy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _cy +<span id="L591" class="LineNr"> 591 </span> <span class="PreProc">var</span> cx/eax: int <span class="Special"><-</span> <a href='../507line.mu.html#L98'>line-point</a> u, x0, x1 +<span id="L592" class="LineNr"> 592 </span> <a href='../508circle.mu.html#L80'>draw-disc</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, cx, cy, radius, color, <span class="Constant">0xf</span>/border-color=white +<span id="L593" class="LineNr"> 593 </span><span class="Delimiter">}</span> +<span id="L594" class="LineNr"> 594 </span> +<span id="L595" class="LineNr"> 595 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L595'>edit</a></span> keyboard: (addr keyboard), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L596" class="LineNr"> 596 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L597" class="LineNr"> 597 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L598" class="LineNr"> 598 </span> <span class="muComment"># space: play/pause</span> +<span id="L599" class="LineNr"> 599 </span> <span class="Delimiter">{</span> +<span id="L600" class="LineNr"> 600 </span> compare key, <span class="Constant">0x20</span>/space +<span id="L601" class="LineNr"> 601 </span> <span class="PreProc">break-if-!=</span> +<span id="L602" class="LineNr"> 602 </span> <span class="PreProc">var</span> play?/eax: (addr boolean) <span class="Special"><-</span> get self, play? +<span id="L603" class="LineNr"> 603 </span> compare *play?, <span class="Constant">0</span>/false +<span id="L604" class="LineNr"> 604 </span> <span class="Delimiter">{</span> +<span id="L605" class="LineNr"> 605 </span> <span class="PreProc">break-if-=</span> +<span id="L606" class="LineNr"> 606 </span> copy-to *play?, <span class="Constant">0</span>/false +<span id="L607" class="LineNr"> 607 </span> <span class="PreProc">return</span> +<span id="L608" class="LineNr"> 608 </span> <span class="Delimiter">}</span> +<span id="L609" class="LineNr"> 609 </span> copy-to *play?, <span class="Constant">1</span>/true +<span id="L610" class="LineNr"> 610 </span> <span class="PreProc">return</span> +<span id="L611" class="LineNr"> 611 </span> <span class="Delimiter">}</span> +<span id="L612" class="LineNr"> 612 </span> <span class="muComment"># 0: back to start</span> +<span id="L613" class="LineNr"> 613 </span> <span class="Delimiter">{</span> +<span id="L614" class="LineNr"> 614 </span> compare key, <span class="Constant">0x30</span>/<span class="Constant">0</span> +<span id="L615" class="LineNr"> 615 </span> <span class="PreProc">break-if-!=</span> +<span id="L616" class="LineNr"> 616 </span> <a href='hest-life.mu.html#L744'>clear-environment</a> self +<span id="L617" class="LineNr"> 617 </span> <span class="PreProc">return</span> +<span id="L618" class="LineNr"> 618 </span> <span class="Delimiter">}</span> +<span id="L619" class="LineNr"> 619 </span> <span class="muComment"># l: loop from here to start</span> +<span id="L620" class="LineNr"> 620 </span> <span class="Delimiter">{</span> +<span id="L621" class="LineNr"> 621 </span> compare key, <span class="Constant">0x6c</span>/l +<span id="L622" class="LineNr"> 622 </span> <span class="PreProc">break-if-!=</span> +<span id="L623" class="LineNr"> 623 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L624" class="LineNr"> 624 </span> <span class="PreProc">var</span> tick/eax: int <span class="Special"><-</span> copy *tick-a +<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> +<span id="L626" class="LineNr"> 626 </span> copy-to *<span class="PreProc">loop</span>, tick +<span id="L627" class="LineNr"> 627 </span> <span class="PreProc">return</span> +<span id="L628" class="LineNr"> 628 </span> <span class="Delimiter">}</span> +<span id="L629" class="LineNr"> 629 </span> <span class="muComment"># L: reset loop</span> +<span id="L630" class="LineNr"> 630 </span> <span class="Delimiter">{</span> +<span id="L631" class="LineNr"> 631 </span> compare key, <span class="Constant">0x4c</span>/L +<span id="L632" class="LineNr"> 632 </span> <span class="PreProc">break-if-!=</span> +<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> +<span id="L634" class="LineNr"> 634 </span> copy-to *<span class="PreProc">loop</span>, <span class="Constant">0</span> +<span id="L635" class="LineNr"> 635 </span> <span class="PreProc">return</span> +<span id="L636" class="LineNr"> 636 </span> <span class="Delimiter">}</span> +<span id="L637" class="LineNr"> 637 </span> <span class="muComment"># -: zoom out</span> +<span id="L638" class="LineNr"> 638 </span> <span class="Delimiter">{</span> +<span id="L639" class="LineNr"> 639 </span> compare key, <span class="Constant">0x2d</span>/- +<span id="L640" class="LineNr"> 640 </span> <span class="PreProc">break-if-!=</span> +<span id="L641" class="LineNr"> 641 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom +<span id="L642" class="LineNr"> 642 </span> compare *zoom, <span class="Constant">1</span> +<span id="L643" class="LineNr"> 643 </span> <span class="Delimiter">{</span> +<span id="L644" class="LineNr"> 644 </span> <span class="PreProc">break-if-!=</span> +<span id="L645" class="LineNr"> 645 </span> copy-to *zoom, <span class="Constant">4</span> +<span id="L646" class="LineNr"> 646 </span> <span class="Delimiter">}</span> +<span id="L647" class="LineNr"> 647 </span> compare *zoom, <span class="Constant">0</span> +<span id="L648" class="LineNr"> 648 </span> <span class="Delimiter">{</span> +<span id="L649" class="LineNr"> 649 </span> <span class="PreProc">break-if-!=</span> +<span id="L650" class="LineNr"> 650 </span> copy-to *zoom, <span class="Constant">1</span> +<span id="L651" class="LineNr"> 651 </span> <span class="Delimiter">}</span> +<span id="L652" class="LineNr"> 652 </span> <span class="muComment"># set tick to a multiple of zoom</span> +<span id="L653" class="LineNr"> 653 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, tick +<span id="L654" class="LineNr"> 654 </span> <a href='../506math.mu.html#L47'>clear-lowest-bits</a> tick-a, *zoom +<span id="L655" class="LineNr"> 655 </span> <span class="PreProc">return</span> +<span id="L656" class="LineNr"> 656 </span> <span class="Delimiter">}</span> +<span id="L657" class="LineNr"> 657 </span> <span class="muComment"># +: zoom in</span> +<span id="L658" class="LineNr"> 658 </span> <span class="Delimiter">{</span> +<span id="L659" class="LineNr"> 659 </span> compare key, <span class="Constant">0x2b</span>/+ +<span id="L660" class="LineNr"> 660 </span> <span class="PreProc">break-if-!=</span> +<span id="L661" class="LineNr"> 661 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom +<span id="L662" class="LineNr"> 662 </span> compare *zoom, <span class="Constant">1</span> +<span id="L663" class="LineNr"> 663 </span> <span class="Delimiter">{</span> +<span id="L664" class="LineNr"> 664 </span> <span class="PreProc">break-if-!=</span> +<span id="L665" class="LineNr"> 665 </span> copy-to *zoom, <span class="Constant">0</span> +<span id="L666" class="LineNr"> 666 </span> <span class="Delimiter">}</span> +<span id="L667" class="LineNr"> 667 </span> compare *zoom, <span class="Constant">4</span> +<span id="L668" class="LineNr"> 668 </span> <span class="Delimiter">{</span> +<span id="L669" class="LineNr"> 669 </span> <span class="PreProc">break-if-!=</span> +<span id="L670" class="LineNr"> 670 </span> copy-to *zoom, <span class="Constant">1</span> +<span id="L671" class="LineNr"> 671 </span> <span class="Delimiter">}</span> +<span id="L672" class="LineNr"> 672 </span> <span class="muComment"># set tick to a multiple of zoom</span> +<span id="L673" class="LineNr"> 673 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, tick +<span id="L674" class="LineNr"> 674 </span> <a href='../506math.mu.html#L47'>clear-lowest-bits</a> tick-a, *zoom +<span id="L675" class="LineNr"> 675 </span> <span class="PreProc">return</span> +<span id="L676" class="LineNr"> 676 </span> <span class="Delimiter">}</span> +<span id="L677" class="LineNr"> 677 </span><span class="Delimiter">}</span> +<span id="L678" class="LineNr"> 678 </span> +<span id="L679" class="LineNr"> 679 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L679'>step</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L680" class="LineNr"> 680 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L681" class="LineNr"> 681 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, tick +<span id="L682" class="LineNr"> 682 </span> <span class="PreProc">var</span> zoom/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, zoom +<span id="L683" class="LineNr"> 683 </span> compare *zoom, <span class="Constant">0</span> +<span id="L684" class="LineNr"> 684 </span> <span class="Delimiter">{</span> +<span id="L685" class="LineNr"> 685 </span> <span class="PreProc">break-if-!=</span> +<span id="L686" class="LineNr"> 686 </span> increment *tick-a +<span id="L687" class="LineNr"> 687 </span> <span class="Delimiter">}</span> +<span id="L688" class="LineNr"> 688 </span> compare *zoom, <span class="Constant">1</span> +<span id="L689" class="LineNr"> 689 </span> <span class="Delimiter">{</span> +<span id="L690" class="LineNr"> 690 </span> <span class="PreProc">break-if-!=</span> +<span id="L691" class="LineNr"> 691 </span> <span class="muComment"># I wanted to speed up time, but that doesn't seem very usable.</span> +<span id="L692" class="LineNr"> 692 </span><span class="CommentedCode">#? add-to *tick-a, 2</span> +<span id="L693" class="LineNr"> 693 </span> increment *tick-a +<span id="L694" class="LineNr"> 694 </span> <span class="Delimiter">}</span> +<span id="L695" class="LineNr"> 695 </span> compare *zoom, <span class="Constant">4</span> +<span id="L696" class="LineNr"> 696 </span> <span class="Delimiter">{</span> +<span id="L697" class="LineNr"> 697 </span> <span class="PreProc">break-if-!=</span> +<span id="L698" class="LineNr"> 698 </span> add-to *tick-a, <span class="Constant">0x10</span> +<span id="L699" class="LineNr"> 699 </span> <span class="Delimiter">}</span> +<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> tick/eax: int <span class="Special"><-</span> copy *tick-a +<span id="L701" class="LineNr"> 701 </span> tick <span class="Special"><-</span> and <span class="Constant">0xf</span> +<span id="L702" class="LineNr"> 702 </span> compare tick, <span class="Constant">0</span> +<span id="L703" class="LineNr"> 703 </span> <span class="Delimiter">{</span> +<span id="L704" class="LineNr"> 704 </span> <span class="PreProc">break-if-!=</span> +<span id="L705" class="LineNr"> 705 </span> <a href='hest-life.mu.html#L908'>step4</a> self +<span id="L706" class="LineNr"> 706 </span> <span class="Delimiter">}</span> +<span id="L707" class="LineNr"> 707 </span> <span class="PreProc">var</span> loop-a/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> +<span id="L708" class="LineNr"> 708 </span> compare *loop-a, <span class="Constant">0</span> +<span id="L709" class="LineNr"> 709 </span> <span class="Delimiter">{</span> +<span id="L710" class="LineNr"> 710 </span> <span class="PreProc">break-if-=</span> +<span id="L711" class="LineNr"> 711 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/eax: int <span class="Special"><-</span> copy *loop-a +<span id="L712" class="LineNr"> 712 </span> compare *tick-a, <span class="PreProc">loop</span> +<span id="L713" class="LineNr"> 713 </span> <span class="PreProc">break-if-<</span> +<span id="L714" class="LineNr"> 714 </span> <a href='hest-life.mu.html#L744'>clear-environment</a> self +<span id="L715" class="LineNr"> 715 </span> <span class="Delimiter">}</span> +<span id="L716" class="LineNr"> 716 </span><span class="Delimiter">}</span> +<span id="L717" class="LineNr"> 717 </span> +<span id="L718" class="LineNr"> 718 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L718'>initialize-environment</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L719" class="LineNr"> 719 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom +<span id="L721" class="LineNr"> 721 </span> copy-to *zoom, <span class="Constant">0</span> +<span id="L722" class="LineNr"> 722 </span> <span class="PreProc">var</span> play?/eax: (addr boolean) <span class="Special"><-</span> get self, play? +<span id="L723" class="LineNr"> 723 </span> copy-to *play?, <span class="Constant">1</span>/true +<span id="L724" class="LineNr"> 724 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data +<span id="L725" class="LineNr"> 725 </span> populate data-ah, <span class="Constant">0x100</span> +<span id="L726" class="LineNr"> 726 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L727" class="LineNr"> 727 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L728" class="LineNr"> 728 </span> <span class="Delimiter">{</span> +<span id="L729" class="LineNr"> 729 </span> compare y, <span class="Constant">0xc0</span> +<span id="L730" class="LineNr"> 730 </span> <span class="PreProc">break-if->=</span> +<span id="L731" class="LineNr"> 731 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y +<span id="L732" class="LineNr"> 732 </span> populate dest-ah, <span class="Constant">0x100</span> +<span id="L733" class="LineNr"> 733 </span> y <span class="Special"><-</span> increment +<span id="L734" class="LineNr"> 734 </span> <span class="PreProc">loop</span> +<span id="L735" class="LineNr"> 735 </span> <span class="Delimiter">}</span> +<span id="L736" class="LineNr"> 736 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/alive +<span id="L737" class="LineNr"> 737 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x81</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/alive +<span id="L738" class="LineNr"> 738 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x7f</span>, <span class="Constant">0x60</span>, <span class="Constant">1</span>/alive +<span id="L739" class="LineNr"> 739 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x60</span>, <span class="Constant">1</span>/alive +<span id="L740" class="LineNr"> 740 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x61</span>, <span class="Constant">1</span>/alive +<span id="L741" class="LineNr"> 741 </span> <a href='hest-life.mu.html#L837'>flush</a> self +<span id="L742" class="LineNr"> 742 </span><span class="Delimiter">}</span> +<span id="L743" class="LineNr"> 743 </span> +<span id="L744" class="LineNr"> 744 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L744'>clear-environment</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L745" class="LineNr"> 745 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L746" class="LineNr"> 746 </span> <span class="PreProc">var</span> tick/eax: (addr int) <span class="Special"><-</span> get self, tick +<span id="L747" class="LineNr"> 747 </span> copy-to *tick, <span class="Constant">0</span> +<span id="L748" class="LineNr"> 748 </span> <span class="muComment"># don't touch zoom or play settings</span> +<span id="L749" class="LineNr"> 749 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data +<span id="L750" class="LineNr"> 750 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L751" class="LineNr"> 751 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L752" class="LineNr"> 752 </span> <span class="Delimiter">{</span> +<span id="L753" class="LineNr"> 753 </span> compare y, <span class="Constant">0xc0</span> +<span id="L754" class="LineNr"> 754 </span> <span class="PreProc">break-if->=</span> +<span id="L755" class="LineNr"> 755 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y +<span id="L756" class="LineNr"> 756 </span> <span class="PreProc">var</span> row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *row-ah +<span id="L757" class="LineNr"> 757 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L758" class="LineNr"> 758 </span> <span class="Delimiter">{</span> +<span id="L759" class="LineNr"> 759 </span> compare x, <span class="Constant">0x100</span> +<span id="L760" class="LineNr"> 760 </span> <span class="PreProc">break-if->=</span> +<span id="L761" class="LineNr"> 761 </span> <span class="PreProc">var</span> dest/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x +<span id="L762" class="LineNr"> 762 </span> clear-object dest +<span id="L763" class="LineNr"> 763 </span> x <span class="Special"><-</span> increment +<span id="L764" class="LineNr"> 764 </span> <span class="PreProc">loop</span> +<span id="L765" class="LineNr"> 765 </span> <span class="Delimiter">}</span> +<span id="L766" class="LineNr"> 766 </span> y <span class="Special"><-</span> increment +<span id="L767" class="LineNr"> 767 </span> <span class="PreProc">loop</span> +<span id="L768" class="LineNr"> 768 </span> <span class="Delimiter">}</span> +<span id="L769" class="LineNr"> 769 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/alive +<span id="L770" class="LineNr"> 770 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x81</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/alive +<span id="L771" class="LineNr"> 771 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x7f</span>, <span class="Constant">0x60</span>, <span class="Constant">1</span>/alive +<span id="L772" class="LineNr"> 772 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x60</span>, <span class="Constant">1</span>/alive +<span id="L773" class="LineNr"> 773 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x61</span>, <span class="Constant">1</span>/alive +<span id="L774" class="LineNr"> 774 </span> <a href='hest-life.mu.html#L837'>flush</a> self +<span id="L775" class="LineNr"> 775 </span><span class="Delimiter">}</span> +<span id="L776" class="LineNr"> 776 </span> +<span id="L777" class="LineNr"> 777 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L777'>set</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), _x: int, _y: int, _val: boolean <span class="Delimiter">{</span> +<span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L779" class="LineNr"> 779 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data +<span id="L780" class="LineNr"> 780 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L781" class="LineNr"> 781 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _y +<span id="L782" class="LineNr"> 782 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y +<span id="L783" class="LineNr"> 783 </span> <span class="PreProc">var</span> row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *row-ah +<span id="L784" class="LineNr"> 784 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _x +<span id="L785" class="LineNr"> 785 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L58'>cell</a>/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x +<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> dest/eax: (addr boolean) <span class="Special"><-</span> get <a href='hest-life.mu.html#L58'>cell</a>, next +<span id="L787" class="LineNr"> 787 </span> <span class="PreProc">var</span> val/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy _val +<span id="L788" class="LineNr"> 788 </span> copy-to *dest, val +<span id="L789" class="LineNr"> 789 </span><span class="Delimiter">}</span> +<span id="L790" class="LineNr"> 790 </span> +<span id="L791" class="LineNr"> 791 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L791'>state</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), _x: int, _y: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L792" class="LineNr"> 792 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L793" class="LineNr"> 793 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _x +<span id="L794" class="LineNr"> 794 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _y +<span id="L795" class="LineNr"> 795 </span> <span class="muComment"># clip at the edge</span> +<span id="L796" class="LineNr"> 796 </span> compare x, <span class="Constant">0</span> +<span id="L797" class="LineNr"> 797 </span> <span class="Delimiter">{</span> +<span id="L798" class="LineNr"> 798 </span> <span class="PreProc">break-if->=</span> +<span id="L799" class="LineNr"> 799 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L800" class="LineNr"> 800 </span> <span class="Delimiter">}</span> +<span id="L801" class="LineNr"> 801 </span> compare y, <span class="Constant">0</span> +<span id="L802" class="LineNr"> 802 </span> <span class="Delimiter">{</span> +<span id="L803" class="LineNr"> 803 </span> <span class="PreProc">break-if->=</span> +<span id="L804" class="LineNr"> 804 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L805" class="LineNr"> 805 </span> <span class="Delimiter">}</span> +<span id="L806" class="LineNr"> 806 </span> compare x, <span class="Constant">0x100</span>/width +<span id="L807" class="LineNr"> 807 </span> <span class="Delimiter">{</span> +<span id="L808" class="LineNr"> 808 </span> <span class="PreProc">break-if-<</span> +<span id="L809" class="LineNr"> 809 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L810" class="LineNr"> 810 </span> <span class="Delimiter">}</span> +<span id="L811" class="LineNr"> 811 </span> compare y, <span class="Constant">0xc0</span>/height +<span id="L812" class="LineNr"> 812 </span> <span class="Delimiter">{</span> +<span id="L813" class="LineNr"> 813 </span> <span class="PreProc">break-if-<</span> +<span id="L814" class="LineNr"> 814 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L815" class="LineNr"> 815 </span> <span class="Delimiter">}</span> +<span id="L816" class="LineNr"> 816 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data +<span id="L817" class="LineNr"> 817 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L818" class="LineNr"> 818 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y +<span id="L819" class="LineNr"> 819 </span> <span class="PreProc">var</span> row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *row-ah +<span id="L820" class="LineNr"> 820 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L58'>cell</a>/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x +<span id="L821" class="LineNr"> 821 </span> <span class="PreProc">var</span> src/eax: (addr boolean) <span class="Special"><-</span> get <a href='hest-life.mu.html#L58'>cell</a>, curr +<span id="L822" class="LineNr"> 822 </span> <span class="PreProc">return</span> *src +<span id="L823" class="LineNr"> 823 </span><span class="Delimiter">}</span> +<span id="L824" class="LineNr"> 824 </span> +<span id="L825" class="LineNr"> 825 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L825'>state-color</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), x: int, y: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L826" class="LineNr"> 826 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L827" class="LineNr"> 827 </span> <span class="PreProc">var</span> color/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x1a</span>/dead +<span id="L828" class="LineNr"> 828 </span> <span class="Delimiter">{</span> +<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L791'>state</a>/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L830" class="LineNr"> 830 </span> compare <a href='hest-life.mu.html#L791'>state</a>, <span class="Constant">0</span>/dead +<span id="L831" class="LineNr"> 831 </span> <span class="PreProc">break-if-=</span> +<span id="L832" class="LineNr"> 832 </span> color <span class="Special"><-</span> copy <span class="Constant">0xf</span>/alive +<span id="L833" class="LineNr"> 833 </span> <span class="Delimiter">}</span> +<span id="L834" class="LineNr"> 834 </span> <span class="PreProc">return</span> color +<span id="L835" class="LineNr"> 835 </span><span class="Delimiter">}</span> +<span id="L836" class="LineNr"> 836 </span> +<span id="L837" class="LineNr"> 837 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L837'>flush</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L838" class="LineNr"> 838 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L839" class="LineNr"> 839 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data +<span id="L840" class="LineNr"> 840 </span> <span class="PreProc">var</span> _data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L841" class="LineNr"> 841 </span> <span class="PreProc">var</span> data/<span class="muRegEsi">esi</span>: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> copy _data +<span id="L842" class="LineNr"> 842 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L843" class="LineNr"> 843 </span> <span class="Delimiter">{</span> +<span id="L844" class="LineNr"> 844 </span> compare y, <span class="Constant">0xc0</span>/height +<span id="L845" class="LineNr"> 845 </span> <span class="PreProc">break-if->=</span> +<span id="L846" class="LineNr"> 846 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y +<span id="L847" class="LineNr"> 847 </span> <span class="PreProc">var</span> _row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *row-ah +<span id="L848" class="LineNr"> 848 </span> <span class="PreProc">var</span> row/<span class="muRegEbx">ebx</span>: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> copy _row +<span id="L849" class="LineNr"> 849 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L850" class="LineNr"> 850 </span> <span class="Delimiter">{</span> +<span id="L851" class="LineNr"> 851 </span> compare x, <span class="Constant">0x100</span>/width +<span id="L852" class="LineNr"> 852 </span> <span class="PreProc">break-if->=</span> +<span id="L853" class="LineNr"> 853 </span> <span class="PreProc">var</span> cell-a/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x +<span id="L854" class="LineNr"> 854 </span> <span class="PreProc">var</span> curr-a/<span class="muRegEdi">edi</span>: (addr boolean) <span class="Special"><-</span> get cell-a, curr +<span id="L855" class="LineNr"> 855 </span> <span class="PreProc">var</span> next-a/<span class="muRegEsi">esi</span>: (addr boolean) <span class="Special"><-</span> get cell-a, next +<span id="L856" class="LineNr"> 856 </span> <span class="PreProc">var</span> val/eax: boolean <span class="Special"><-</span> copy *next-a +<span id="L857" class="LineNr"> 857 </span> copy-to *curr-a, val +<span id="L858" class="LineNr"> 858 </span> copy-to *next-a, <span class="Constant">0</span>/dead +<span id="L859" class="LineNr"> 859 </span> x <span class="Special"><-</span> increment +<span id="L860" class="LineNr"> 860 </span> <span class="PreProc">loop</span> +<span id="L861" class="LineNr"> 861 </span> <span class="Delimiter">}</span> +<span id="L862" class="LineNr"> 862 </span> y <span class="Special"><-</span> increment +<span id="L863" class="LineNr"> 863 </span> <span class="PreProc">loop</span> +<span id="L864" class="LineNr"> 864 </span> <span class="Delimiter">}</span> +<span id="L865" class="LineNr"> 865 </span><span class="Delimiter">}</span> +<span id="L866" class="LineNr"> 866 </span> +<span id="L867" class="LineNr"> 867 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L867'>render4</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L868" class="LineNr"> 868 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L869" class="LineNr"> 869 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L870" class="LineNr"> 870 </span> <span class="Delimiter">{</span> +<span id="L871" class="LineNr"> 871 </span> compare y, <span class="Constant">0xc0</span>/height +<span id="L872" class="LineNr"> 872 </span> <span class="PreProc">break-if->=</span> +<span id="L873" class="LineNr"> 873 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L874" class="LineNr"> 874 </span> <span class="Delimiter">{</span> +<span id="L875" class="LineNr"> 875 </span> compare x, <span class="Constant">0x100</span>/width +<span id="L876" class="LineNr"> 876 </span> <span class="PreProc">break-if->=</span> +<span id="L877" class="LineNr"> 877 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L791'>state</a>/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L878" class="LineNr"> 878 </span> compare <a href='hest-life.mu.html#L791'>state</a>, <span class="Constant">0</span>/false +<span id="L879" class="LineNr"> 879 </span> <span class="Delimiter">{</span> +<span id="L880" class="LineNr"> 880 </span> <span class="PreProc">break-if-=</span> +<span id="L881" class="LineNr"> 881 </span> <a href='hest-life.mu.html#L896'>render4-cell</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, <span class="Constant">0xf</span>/alive +<span id="L882" class="LineNr"> 882 </span> <span class="Delimiter">}</span> +<span id="L883" class="LineNr"> 883 </span> compare <a href='hest-life.mu.html#L791'>state</a>, <span class="Constant">0</span>/false +<span id="L884" class="LineNr"> 884 </span> <span class="Delimiter">{</span> +<span id="L885" class="LineNr"> 885 </span> <span class="PreProc">break-if-!=</span> +<span id="L886" class="LineNr"> 886 </span> <a href='hest-life.mu.html#L896'>render4-cell</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, <span class="Constant">0x1a</span>/dead +<span id="L887" class="LineNr"> 887 </span> <span class="Delimiter">}</span> +<span id="L888" class="LineNr"> 888 </span> x <span class="Special"><-</span> increment +<span id="L889" class="LineNr"> 889 </span> <span class="PreProc">loop</span> +<span id="L890" class="LineNr"> 890 </span> <span class="Delimiter">}</span> +<span id="L891" class="LineNr"> 891 </span> y <span class="Special"><-</span> increment +<span id="L892" class="LineNr"> 892 </span> <span class="PreProc">loop</span> +<span id="L893" class="LineNr"> 893 </span> <span class="Delimiter">}</span> +<span id="L894" class="LineNr"> 894 </span><span class="Delimiter">}</span> +<span id="L895" class="LineNr"> 895 </span> +<span id="L896" class="LineNr"> 896 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L896'>render4-cell</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), x: int, y: int, color: int <span class="Delimiter">{</span> +<span id="L897" class="LineNr"> 897 </span> <span class="PreProc">var</span> xmin/eax: int <span class="Special"><-</span> copy x +<span id="L898" class="LineNr"> 898 </span> xmin <span class="Special"><-</span> shift-left <span class="Constant">2</span> +<span id="L899" class="LineNr"> 899 </span> <span class="PreProc">var</span> xmax/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy xmin +<span id="L900" class="LineNr"> 900 </span> xmax <span class="Special"><-</span> add <span class="Constant">4</span> +<span id="L901" class="LineNr"> 901 </span> <span class="PreProc">var</span> ymin/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy y +<span id="L902" class="LineNr"> 902 </span> ymin <span class="Special"><-</span> shift-left <span class="Constant">2</span> +<span id="L903" class="LineNr"> 903 </span> <span class="PreProc">var</span> ymax/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy ymin +<span id="L904" class="LineNr"> 904 </span> ymax <span class="Special"><-</span> add <span class="Constant">4</span> +<span id="L905" class="LineNr"> 905 </span> <a href='../507line.mu.html#L86'>draw-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin ymin, xmax ymax, color +<span id="L906" class="LineNr"> 906 </span><span class="Delimiter">}</span> +<span id="L907" class="LineNr"> 907 </span> +<span id="L908" class="LineNr"> 908 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L908'>step4</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L909" class="LineNr"> 909 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L910" class="LineNr"> 910 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L911" class="LineNr"> 911 </span> <span class="Delimiter">{</span> +<span id="L912" class="LineNr"> 912 </span> compare y, <span class="Constant">0xc0</span>/height +<span id="L913" class="LineNr"> 913 </span> <span class="PreProc">break-if->=</span> +<span id="L914" class="LineNr"> 914 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L915" class="LineNr"> 915 </span> <span class="Delimiter">{</span> +<span id="L916" class="LineNr"> 916 </span> compare x, <span class="Constant">0x100</span>/width +<span id="L917" class="LineNr"> 917 </span> <span class="PreProc">break-if->=</span> +<span id="L918" class="LineNr"> 918 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, x, y +<span id="L919" class="LineNr"> 919 </span> <span class="muComment"># if neighbors < 2, die of loneliness</span> +<span id="L920" class="LineNr"> 920 </span> <span class="Delimiter">{</span> +<span id="L921" class="LineNr"> 921 </span> compare n, <span class="Constant">2</span> +<span id="L922" class="LineNr"> 922 </span> <span class="PreProc">break-if->=</span> +<span id="L923" class="LineNr"> 923 </span> <a href='hest-life.mu.html#L777'>set</a> self, x, y, <span class="Constant">0</span>/dead +<span id="L924" class="LineNr"> 924 </span> <span class="Delimiter">}</span> +<span id="L925" class="LineNr"> 925 </span> <span class="muComment"># if neighbors > 3, die of overcrowding</span> +<span id="L926" class="LineNr"> 926 </span> <span class="Delimiter">{</span> +<span id="L927" class="LineNr"> 927 </span> compare n, <span class="Constant">3</span> +<span id="L928" class="LineNr"> 928 </span> <span class="PreProc">break-if-<=</span> +<span id="L929" class="LineNr"> 929 </span> <a href='hest-life.mu.html#L777'>set</a> self, x, y, <span class="Constant">0</span>/dead +<span id="L930" class="LineNr"> 930 </span> <span class="Delimiter">}</span> +<span id="L931" class="LineNr"> 931 </span> <span class="muComment"># if neighbors = 2, preserve state</span> +<span id="L932" class="LineNr"> 932 </span> <span class="Delimiter">{</span> +<span id="L933" class="LineNr"> 933 </span> compare n, <span class="Constant">2</span> +<span id="L934" class="LineNr"> 934 </span> <span class="PreProc">break-if-!=</span> +<span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> old-state/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L936" class="LineNr"> 936 </span> <a href='hest-life.mu.html#L777'>set</a> self, x, y, old-state +<span id="L937" class="LineNr"> 937 </span> <span class="Delimiter">}</span> +<span id="L938" class="LineNr"> 938 </span> <span class="muComment"># if neighbors = 3, cell quickens to life</span> +<span id="L939" class="LineNr"> 939 </span> <span class="Delimiter">{</span> +<span id="L940" class="LineNr"> 940 </span> compare n, <span class="Constant">3</span> +<span id="L941" class="LineNr"> 941 </span> <span class="PreProc">break-if-!=</span> +<span id="L942" class="LineNr"> 942 </span> <a href='hest-life.mu.html#L777'>set</a> self, x, y, <span class="Constant">1</span>/live +<span id="L943" class="LineNr"> 943 </span> <span class="Delimiter">}</span> +<span id="L944" class="LineNr"> 944 </span> x <span class="Special"><-</span> increment +<span id="L945" class="LineNr"> 945 </span> <span class="PreProc">loop</span> +<span id="L946" class="LineNr"> 946 </span> <span class="Delimiter">}</span> +<span id="L947" class="LineNr"> 947 </span> y <span class="Special"><-</span> increment +<span id="L948" class="LineNr"> 948 </span> <span class="PreProc">loop</span> +<span id="L949" class="LineNr"> 949 </span> <span class="Delimiter">}</span> +<span id="L950" class="LineNr"> 950 </span> <a href='hest-life.mu.html#L837'>flush</a> self +<span id="L951" class="LineNr"> 951 </span><span class="Delimiter">}</span> +<span id="L952" class="LineNr"> 952 </span> +<span id="L953" class="LineNr"> 953 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L953'>num-live-neighbors</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), x: int, y: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L954" class="LineNr"> 954 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L955" class="LineNr"> 955 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L956" class="LineNr"> 956 </span> <span class="muComment"># row above: zig</span> +<span id="L957" class="LineNr"> 957 </span> decrement y +<span id="L958" class="LineNr"> 958 </span> decrement x +<span id="L959" class="LineNr"> 959 </span> <span class="PreProc">var</span> s/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L960" class="LineNr"> 960 </span> <span class="Delimiter">{</span> +<span id="L961" class="LineNr"> 961 </span> compare s, <span class="Constant">0</span>/false +<span id="L962" class="LineNr"> 962 </span> <span class="PreProc">break-if-=</span> +<span id="L963" class="LineNr"> 963 </span> result <span class="Special"><-</span> increment +<span id="L964" class="LineNr"> 964 </span> <span class="Delimiter">}</span> +<span id="L965" class="LineNr"> 965 </span> increment x +<span id="L966" class="LineNr"> 966 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L967" class="LineNr"> 967 </span> <span class="Delimiter">{</span> +<span id="L968" class="LineNr"> 968 </span> compare s, <span class="Constant">0</span>/false +<span id="L969" class="LineNr"> 969 </span> <span class="PreProc">break-if-=</span> +<span id="L970" class="LineNr"> 970 </span> result <span class="Special"><-</span> increment +<span id="L971" class="LineNr"> 971 </span> <span class="Delimiter">}</span> +<span id="L972" class="LineNr"> 972 </span> increment x +<span id="L973" class="LineNr"> 973 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L974" class="LineNr"> 974 </span> <span class="Delimiter">{</span> +<span id="L975" class="LineNr"> 975 </span> compare s, <span class="Constant">0</span>/false +<span id="L976" class="LineNr"> 976 </span> <span class="PreProc">break-if-=</span> +<span id="L977" class="LineNr"> 977 </span> result <span class="Special"><-</span> increment +<span id="L978" class="LineNr"> 978 </span> <span class="Delimiter">}</span> +<span id="L979" class="LineNr"> 979 </span> <span class="muComment"># curr row: zag</span> +<span id="L980" class="LineNr"> 980 </span> increment y +<span id="L981" class="LineNr"> 981 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L982" class="LineNr"> 982 </span> <span class="Delimiter">{</span> +<span id="L983" class="LineNr"> 983 </span> compare s, <span class="Constant">0</span>/false +<span id="L984" class="LineNr"> 984 </span> <span class="PreProc">break-if-=</span> +<span id="L985" class="LineNr"> 985 </span> result <span class="Special"><-</span> increment +<span id="L986" class="LineNr"> 986 </span> <span class="Delimiter">}</span> +<span id="L987" class="LineNr"> 987 </span> subtract-from x, <span class="Constant">2</span> +<span id="L988" class="LineNr"> 988 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L989" class="LineNr"> 989 </span> <span class="Delimiter">{</span> +<span id="L990" class="LineNr"> 990 </span> compare s, <span class="Constant">0</span>/false +<span id="L991" class="LineNr"> 991 </span> <span class="PreProc">break-if-=</span> +<span id="L992" class="LineNr"> 992 </span> result <span class="Special"><-</span> increment +<span id="L993" class="LineNr"> 993 </span> <span class="Delimiter">}</span> +<span id="L994" class="LineNr"> 994 </span> <span class="muComment"># row below: zig</span> +<span id="L995" class="LineNr"> 995 </span> increment y +<span id="L996" class="LineNr"> 996 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L997" class="LineNr"> 997 </span> <span class="Delimiter">{</span> +<span id="L998" class="LineNr"> 998 </span> compare s, <span class="Constant">0</span>/false +<span id="L999" class="LineNr"> 999 </span> <span class="PreProc">break-if-=</span> +<span id="L1000" class="LineNr">1000 </span> result <span class="Special"><-</span> increment +<span id="L1001" class="LineNr">1001 </span> <span class="Delimiter">}</span> +<span id="L1002" class="LineNr">1002 </span> increment x +<span id="L1003" class="LineNr">1003 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L1004" class="LineNr">1004 </span> <span class="Delimiter">{</span> +<span id="L1005" class="LineNr">1005 </span> compare s, <span class="Constant">0</span>/false +<span id="L1006" class="LineNr">1006 </span> <span class="PreProc">break-if-=</span> +<span id="L1007" class="LineNr">1007 </span> result <span class="Special"><-</span> increment +<span id="L1008" class="LineNr">1008 </span> <span class="Delimiter">}</span> +<span id="L1009" class="LineNr">1009 </span> increment x +<span id="L1010" class="LineNr">1010 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y +<span id="L1011" class="LineNr">1011 </span> <span class="Delimiter">{</span> +<span id="L1012" class="LineNr">1012 </span> compare s, <span class="Constant">0</span>/false +<span id="L1013" class="LineNr">1013 </span> <span class="PreProc">break-if-=</span> +<span id="L1014" class="LineNr">1014 </span> result <span class="Special"><-</span> increment +<span id="L1015" class="LineNr">1015 </span> <span class="Delimiter">}</span> +<span id="L1016" class="LineNr">1016 </span> <span class="PreProc">return</span> result +<span id="L1017" class="LineNr">1017 </span><span class="Delimiter">}</span> +<span id="L1018" class="LineNr">1018 </span> +<span id="L1019" class="LineNr">1019 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L1019'>linger</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> +<span id="L1020" class="LineNr">1020 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self +<span id="L1021" class="LineNr">1021 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L1022" class="LineNr">1022 </span> <span class="Delimiter">{</span> +<span id="L1023" class="LineNr">1023 </span> compare i, <span class="Constant">0x10000000</span> <span class="muComment"># Kartik's Linux with -enable-kvm</span> +<span id="L1024" class="LineNr">1024 </span><span class="CommentedCode">#? compare i, 0x8000000 # Kartik's Mac with -accel tcg</span> +<span id="L1025" class="LineNr">1025 </span> <span class="PreProc">break-if->=</span> +<span id="L1026" class="LineNr">1026 </span> i <span class="Special"><-</span> increment +<span id="L1027" class="LineNr">1027 </span> <span class="PreProc">loop</span> +<span id="L1028" class="LineNr">1028 </span> <span class="Delimiter">}</span> +<span id="L1029" class="LineNr">1029 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/img.mu.html b/html/apps/img.mu.html index 19bd7959..e3117aa2 100644 --- a/html/img.mu.html +++ b/html/apps/img.mu.html @@ -2,7 +2,7 @@ <html> <head> <meta charset="UTF-8"> -<title>Mu - img.mu</title> +<title>Mu - apps/img.mu</title> <meta name="Generator" content="Vim/8.2"> <meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> @@ -61,19 +61,19 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/img.mu'>https://github.com/akkartik/mu/blob/main/img.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/img.mu'>https://github.com/akkartik/mu/blob/main/apps/img.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># load an image from disk and display it on screen</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate shell/*.mu # generates code.img</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># Load a pbm, pgm or ppm image (no more than 255 levels)</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate apps/img.mu # generates code.img</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># Load a pbm, pgm or ppm image (no more than 255 levels) in the data disk</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ dd if=/dev/zero of=data.img count=20160</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ cat x.pbm |dd of=data.img conv=notrunc</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ dd if=x.pbm of=data.img conv=notrunc</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># or</span> -<span id="L9" class="LineNr"> 9 </span><span class="muComment"># $ cat t.pgm |dd of=data.img conv=notrunc</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># $ dd if=t.pgm of=data.img conv=notrunc</span> <span id="L10" class="LineNr"> 10 </span><span class="muComment"># or</span> -<span id="L11" class="LineNr"> 11 </span><span class="muComment"># $ cat snail.ppm |dd of=data.img conv=notrunc</span> +<span id="L11" class="LineNr"> 11 </span><span class="muComment"># $ dd if=snail.ppm of=data.img conv=notrunc</span> <span id="L12" class="LineNr"> 12 </span><span class="muComment"># To run:</span> <span id="L13" class="LineNr"> 13 </span><span class="muComment"># $ qemu-system-i386 -hda code.img -hdb data.img</span> <span id="L14" class="LineNr"> 14 </span> @@ -88,37 +88,37 @@ if ('onhashchange' in window) { <span id="L23" class="LineNr"> 23 </span> data: (handle array byte) <span id="L24" class="LineNr"> 24 </span><span class="Delimiter">}</span> <span id="L25" class="LineNr"> 25 </span> -<span id="L26" class="LineNr"> 26 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L26'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L26" class="LineNr"> 26 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L26'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> img-storage: <a href='img.mu.html#L15'>image</a> <span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> img/<span class="muRegEsi">esi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> address img-storage <span id="L29" class="LineNr"> 29 </span> <a href='img.mu.html#L33'>load-image</a> img, data-disk -<span id="L30" class="LineNr"> 30 </span> <a href='img.mu.html#L96'>render-image</a> <a href='500fake-screen.mu.html#L14'>screen</a>, img, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x300</span>/width, <span class="Constant">0x300</span>/height +<span id="L30" class="LineNr"> 30 </span> <a href='img.mu.html#L96'>render-image</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, img, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x300</span>/width, <span class="Constant">0x300</span>/height <span id="L31" class="LineNr"> 31 </span><span class="Delimiter">}</span> <span id="L32" class="LineNr"> 32 </span> <span id="L33" class="LineNr"> 33 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L33'>load-image</a></span> self: (addr <a href='img.mu.html#L15'>image</a>), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L34" class="LineNr"> 34 </span> <span class="muComment"># data-disk -> stream</span> <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> s-storage: (stream byte <span class="Constant">0x200000</span>) <span class="muComment"># 512* 0x1000 sectors</span> <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> s/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special"><-</span> address s-storage -<span id="L37" class="LineNr"> 37 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"loading sectors from data disk"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg -<span id="L38" class="LineNr"> 38 </span> <a href='501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen -<span id="L39" class="LineNr"> 39 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L40" class="LineNr"> 40 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0x100</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L41" class="LineNr"> 41 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0x200</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L42" class="LineNr"> 42 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0x300</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L43" class="LineNr"> 43 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0x400</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L44" class="LineNr"> 44 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0x500</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L45" class="LineNr"> 45 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0x600</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L46" class="LineNr"> 46 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0x700</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L47" class="LineNr"> 47 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0x800</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L48" class="LineNr"> 48 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0x900</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L49" class="LineNr"> 49 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0xa00</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L50" class="LineNr"> 50 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0xb00</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L51" class="LineNr"> 51 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0xc00</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L52" class="LineNr"> 52 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0xd00</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L53" class="LineNr"> 53 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0xe00</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L54" class="LineNr"> 54 </span> <a href='boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0xf00</span>/lba, <span class="Constant">0x100</span>/sectors, s -<span id="L55" class="LineNr"> 55 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"parsing"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg -<span id="L56" class="LineNr"> 56 </span> <a href='501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen +<span id="L37" class="LineNr"> 37 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"loading sectors from data disk"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg +<span id="L38" class="LineNr"> 38 </span> <a href='../501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen +<span id="L39" class="LineNr"> 39 </span> load-sectors data-disk, <span class="Constant">0</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L40" class="LineNr"> 40 </span> load-sectors data-disk, <span class="Constant">0x100</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L41" class="LineNr"> 41 </span> load-sectors data-disk, <span class="Constant">0x200</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L42" class="LineNr"> 42 </span> load-sectors data-disk, <span class="Constant">0x300</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L43" class="LineNr"> 43 </span> load-sectors data-disk, <span class="Constant">0x400</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L44" class="LineNr"> 44 </span> load-sectors data-disk, <span class="Constant">0x500</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L45" class="LineNr"> 45 </span> load-sectors data-disk, <span class="Constant">0x600</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L46" class="LineNr"> 46 </span> load-sectors data-disk, <span class="Constant">0x700</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L47" class="LineNr"> 47 </span> load-sectors data-disk, <span class="Constant">0x800</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L48" class="LineNr"> 48 </span> load-sectors data-disk, <span class="Constant">0x900</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L49" class="LineNr"> 49 </span> load-sectors data-disk, <span class="Constant">0xa00</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L50" class="LineNr"> 50 </span> load-sectors data-disk, <span class="Constant">0xb00</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L51" class="LineNr"> 51 </span> load-sectors data-disk, <span class="Constant">0xc00</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L52" class="LineNr"> 52 </span> load-sectors data-disk, <span class="Constant">0xd00</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L53" class="LineNr"> 53 </span> load-sectors data-disk, <span class="Constant">0xe00</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L54" class="LineNr"> 54 </span> load-sectors data-disk, <span class="Constant">0xf00</span>/lba, <span class="Constant">0x100</span>/sectors, s +<span id="L55" class="LineNr"> 55 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"parsing"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg +<span id="L56" class="LineNr"> 56 </span> <a href='../501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen <span id="L57" class="LineNr"> 57 </span> <a href='img.mu.html#L60'>initialize-image</a> self, s <span id="L58" class="LineNr"> 58 </span><span class="Delimiter">}</span> <span id="L59" class="LineNr"> 59 </span> @@ -126,9 +126,9 @@ if ('onhashchange' in window) { <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> copy _self <span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> mode-storage: slice <span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> mode/<span class="muRegEcx">ecx</span>: (addr slice) <span class="Special"><-</span> address mode-storage -<span id="L64" class="LineNr"> 64 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, mode +<span id="L64" class="LineNr"> 64 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, mode <span id="L65" class="LineNr"> 65 </span> <span class="Delimiter">{</span> -<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> P1?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> mode, <span class="Constant">"P1"</span> +<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> P1?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> mode, <span class="Constant">"P1"</span> <span id="L67" class="LineNr"> 67 </span> compare P1?, <span class="Constant">0</span>/false <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">break-if-=</span> <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> type-a/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> @@ -137,7 +137,7 @@ if ('onhashchange' in window) { <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">return</span> <span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">}</span> <span id="L74" class="LineNr"> 74 </span> <span class="Delimiter">{</span> -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> P2?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> mode, <span class="Constant">"P2"</span> +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> P2?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> mode, <span class="Constant">"P2"</span> <span id="L76" class="LineNr"> 76 </span> compare P2?, <span class="Constant">0</span>/false <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">break-if-=</span> <span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> type-a/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> @@ -146,7 +146,7 @@ if ('onhashchange' in window) { <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">return</span> <span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">}</span> <span id="L83" class="LineNr"> 83 </span> <span class="Delimiter">{</span> -<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> P3?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> mode, <span class="Constant">"P3"</span> +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> P3?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> mode, <span class="Constant">"P3"</span> <span id="L85" class="LineNr"> 85 </span> compare P3?, <span class="Constant">0</span>/false <span id="L86" class="LineNr"> 86 </span> <span class="PreProc">break-if-=</span> <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> type-a/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">type</span> @@ -154,17 +154,17 @@ if ('onhashchange' in window) { <span id="L89" class="LineNr"> 89 </span> <a href='img.mu.html#L727'>initialize-image-from-ppm</a> self, in <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">return</span> <span id="L91" class="LineNr"> 91 </span> <span class="Delimiter">}</span> -<span id="L92" class="LineNr"> 92 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"initialize-image: unrecognized <a href='img.mu.html#L15'>image</a> type"</span> +<span id="L92" class="LineNr"> 92 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"initialize-image: unrecognized <a href='img.mu.html#L15'>image</a> type"</span> <span id="L93" class="LineNr"> 93 </span><span class="Delimiter">}</span> <span id="L94" class="LineNr"> 94 </span> <span id="L95" class="LineNr"> 95 </span><span class="muComment"># dispatch to a few variants with mostly identical boilerplate</span> -<span id="L96" class="LineNr"> 96 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L96'>render-image</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _img: (addr <a href='img.mu.html#L15'>image</a>), xmin: int, ymin: int, width: int, height: int <span class="Delimiter">{</span> +<span id="L96" class="LineNr"> 96 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L96'>render-image</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _img: (addr <a href='img.mu.html#L15'>image</a>), xmin: int, ymin: int, width: int, height: int <span class="Delimiter">{</span> <span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> img/<span class="muRegEsi">esi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> copy _img <span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> type-a/eax: (addr int) <span class="Special"><-</span> get img, <span class="PreProc">type</span> <span id="L99" class="LineNr"> 99 </span> <span class="Delimiter">{</span> <span id="L100" class="LineNr"> 100 </span> compare *type-a, <span class="Constant">1</span>/pbm <span id="L101" class="LineNr"> 101 </span> <span class="PreProc">break-if-!=</span> -<span id="L102" class="LineNr"> 102 </span> <a href='img.mu.html#L168'>render-pbm-image</a> <a href='500fake-screen.mu.html#L14'>screen</a>, img, xmin, ymin, width, height +<span id="L102" class="LineNr"> 102 </span> <a href='img.mu.html#L168'>render-pbm-image</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, img, xmin, ymin, width, height <span id="L103" class="LineNr"> 103 </span> <span class="PreProc">return</span> <span id="L104" class="LineNr"> 104 </span> <span class="Delimiter">}</span> <span id="L105" class="LineNr"> 105 </span> <span class="Delimiter">{</span> @@ -173,7 +173,7 @@ if ('onhashchange' in window) { <span id="L108" class="LineNr"> 108 </span> <span class="PreProc">var</span> img2-storage: <a href='img.mu.html#L15'>image</a> <span id="L109" class="LineNr"> 109 </span> <span class="PreProc">var</span> img2/<span class="muRegEdi">edi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> address img2-storage <span id="L110" class="LineNr"> 110 </span> <a href='img.mu.html#L432'>dither-pgm-unordered</a> img, img2 -<span id="L111" class="LineNr"> 111 </span> <a href='img.mu.html#L1083'>render-raw-image</a> <a href='500fake-screen.mu.html#L14'>screen</a>, img2, xmin, ymin, width, height +<span id="L111" class="LineNr"> 111 </span> <a href='img.mu.html#L1083'>render-raw-image</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, img2, xmin, ymin, width, height <span id="L112" class="LineNr"> 112 </span> <span class="PreProc">return</span> <span id="L113" class="LineNr"> 113 </span> <span class="Delimiter">}</span> <span id="L114" class="LineNr"> 114 </span> <span class="Delimiter">{</span> @@ -182,10 +182,10 @@ if ('onhashchange' in window) { <span id="L117" class="LineNr"> 117 </span> <span class="PreProc">var</span> img2-storage: <a href='img.mu.html#L15'>image</a> <span id="L118" class="LineNr"> 118 </span> <span class="PreProc">var</span> img2/<span class="muRegEdi">edi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> address img2-storage <span id="L119" class="LineNr"> 119 </span> <a href='img.mu.html#L877'>dither-ppm-unordered</a> img, img2 -<span id="L120" class="LineNr"> 120 </span> <a href='img.mu.html#L1083'>render-raw-image</a> <a href='500fake-screen.mu.html#L14'>screen</a>, img2, xmin, ymin, width, height +<span id="L120" class="LineNr"> 120 </span> <a href='img.mu.html#L1083'>render-raw-image</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, img2, xmin, ymin, width, height <span id="L121" class="LineNr"> 121 </span> <span class="PreProc">return</span> <span id="L122" class="LineNr"> 122 </span> <span class="Delimiter">}</span> -<span id="L123" class="LineNr"> 123 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"render-image: unrecognized <a href='img.mu.html#L15'>image</a> type"</span> +<span id="L123" class="LineNr"> 123 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"render-image: unrecognized <a href='img.mu.html#L15'>image</a> type"</span> <span id="L124" class="LineNr"> 124 </span><span class="Delimiter">}</span> <span id="L125" class="LineNr"> 125 </span> <span id="L126" class="LineNr"> 126 </span><span class="muComment">## helpers</span> @@ -196,11 +196,11 @@ if ('onhashchange' in window) { <span id="L131" class="LineNr"> 131 </span> <span class="PreProc">var</span> curr-word-storage: slice <span id="L132" class="LineNr"> 132 </span> <span class="PreProc">var</span> curr-word/<span class="muRegEcx">ecx</span>: (addr slice) <span class="Special"><-</span> address curr-word-storage <span id="L133" class="LineNr"> 133 </span> <span class="muComment"># load width, height</span> -<span id="L134" class="LineNr"> 134 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word -<span id="L135" class="LineNr"> 135 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L134" class="LineNr"> 134 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L135" class="LineNr"> 135 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L136" class="LineNr"> 136 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy tmp -<span id="L137" class="LineNr"> 137 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word -<span id="L138" class="LineNr"> 138 </span> tmp <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L137" class="LineNr"> 137 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L138" class="LineNr"> 138 </span> tmp <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L139" class="LineNr"> 139 </span> <span class="PreProc">var</span> height/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy tmp <span id="L140" class="LineNr"> 140 </span> <span class="muComment"># save width, height</span> <span id="L141" class="LineNr"> 141 </span> <span class="PreProc">var</span> dest/eax: (addr int) <span class="Special"><-</span> get self, width @@ -212,14 +212,14 @@ if ('onhashchange' in window) { <span id="L147" class="LineNr"> 147 </span> capacity <span class="Special"><-</span> multiply height <span id="L148" class="LineNr"> 148 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array byte) <span class="Special"><-</span> get self, data <span id="L149" class="LineNr"> 149 </span> populate data-ah, capacity -<span id="L150" class="LineNr"> 150 </span> <span class="PreProc">var</span> _data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L150" class="LineNr"> 150 </span> <span class="PreProc">var</span> _data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L151" class="LineNr"> 151 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _data <span id="L152" class="LineNr"> 152 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L153" class="LineNr"> 153 </span> <span class="Delimiter">{</span> <span id="L154" class="LineNr"> 154 </span> compare i, capacity <span id="L155" class="LineNr"> 155 </span> <span class="PreProc">break-if->=</span> -<span id="L156" class="LineNr"> 156 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word -<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L156" class="LineNr"> 156 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L158" class="LineNr"> 158 </span> <span class="Delimiter">{</span> <span id="L159" class="LineNr"> 159 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr byte) <span class="Special"><-</span> index data, i <span id="L160" class="LineNr"> 160 </span> copy-byte-to *dest, src @@ -230,7 +230,7 @@ if ('onhashchange' in window) { <span id="L165" class="LineNr"> 165 </span><span class="Delimiter">}</span> <span id="L166" class="LineNr"> 166 </span> <span id="L167" class="LineNr"> 167 </span><span class="muComment"># render a black-and-white ascii bitmap (each pixel is 0 or 1)</span> -<span id="L168" class="LineNr"> 168 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L168'>render-pbm-image</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _img: (addr <a href='img.mu.html#L15'>image</a>), xmin: int, ymin: int, width: int, height: int <span class="Delimiter">{</span> +<span id="L168" class="LineNr"> 168 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L168'>render-pbm-image</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _img: (addr <a href='img.mu.html#L15'>image</a>), xmin: int, ymin: int, width: int, height: int <span class="Delimiter">{</span> <span id="L169" class="LineNr"> 169 </span> <span class="PreProc">var</span> img/<span class="muRegEsi">esi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> copy _img <span id="L170" class="LineNr"> 170 </span> <span class="muComment"># yratio = height/img->height</span> <span id="L171" class="LineNr"> 171 </span> <span class="PreProc">var</span> img-height-a/eax: (addr int) <span class="Special"><-</span> get img, height @@ -245,7 +245,7 @@ if ('onhashchange' in window) { <span id="L180" class="LineNr"> 180 </span> xratio <span class="Special"><-</span> divide img-width-f <span id="L181" class="LineNr"> 181 </span> <span class="muComment"># esi = img->data</span> <span id="L182" class="LineNr"> 182 </span> <span class="PreProc">var</span> img-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get img, data -<span id="L183" class="LineNr"> 183 </span> <span class="PreProc">var</span> _img-data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *img-data-ah +<span id="L183" class="LineNr"> 183 </span> <span class="PreProc">var</span> _img-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *img-data-ah <span id="L184" class="LineNr"> 184 </span> <span class="PreProc">var</span> img-data/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _img-data <span id="L185" class="LineNr"> 185 </span> <span class="PreProc">var</span> len/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> length img-data <span id="L186" class="LineNr"> 186 </span> <span class="muComment">#</span> @@ -276,10 +276,10 @@ if ('onhashchange' in window) { <span id="L211" class="LineNr"> 211 </span> compare idx, len <span id="L212" class="LineNr"> 212 </span> <span class="Delimiter">{</span> <span id="L213" class="LineNr"> 213 </span> <span class="PreProc">break-if-<</span> -<span id="L214" class="LineNr"> 214 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y -<span id="L215" class="LineNr"> 215 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg -<span id="L216" class="LineNr"> 216 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgy, <span class="Constant">4</span>/fg <span class="Constant">0</span>/bg -<span id="L217" class="LineNr"> 217 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, idx, <span class="Constant">5</span>/fg <span class="Constant">0</span>/bg +<span id="L214" class="LineNr"> 214 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y +<span id="L215" class="LineNr"> 215 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg +<span id="L216" class="LineNr"> 216 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgy, <span class="Constant">4</span>/fg <span class="Constant">0</span>/bg +<span id="L217" class="LineNr"> 217 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, idx, <span class="Constant">5</span>/fg <span class="Constant">0</span>/bg <span id="L218" class="LineNr"> 218 </span> <span class="Delimiter">}</span> <span id="L219" class="LineNr"> 219 </span> <span class="PreProc">var</span> src-a/eax: (addr byte) <span class="Special"><-</span> index img-data, idx <span id="L220" class="LineNr"> 220 </span> <span class="PreProc">var</span> src/eax: byte <span class="Special"><-</span> copy-byte *src-a @@ -293,7 +293,7 @@ if ('onhashchange' in window) { <span id="L228" class="LineNr"> 228 </span> screenx <span class="Special"><-</span> add xmin <span id="L229" class="LineNr"> 229 </span> <span class="PreProc">var</span> screeny/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert y <span id="L230" class="LineNr"> 230 </span> screeny <span class="Special"><-</span> add ymin -<span id="L231" class="LineNr"> 231 </span> <a href='500fake-screen.mu.html#L483'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int +<span id="L231" class="LineNr"> 231 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int <span id="L232" class="LineNr"> 232 </span> x <span class="Special"><-</span> add one-f <span id="L233" class="LineNr"> 233 </span> <span class="PreProc">loop</span> <span id="L234" class="LineNr"> 234 </span> <span class="Delimiter">}</span> @@ -308,19 +308,19 @@ if ('onhashchange' in window) { <span id="L243" class="LineNr"> 243 </span> <span class="PreProc">var</span> curr-word-storage: slice <span id="L244" class="LineNr"> 244 </span> <span class="PreProc">var</span> curr-word/<span class="muRegEcx">ecx</span>: (addr slice) <span class="Special"><-</span> address curr-word-storage <span id="L245" class="LineNr"> 245 </span> <span class="muComment"># load width, height</span> -<span id="L246" class="LineNr"> 246 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word -<span id="L247" class="LineNr"> 247 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L246" class="LineNr"> 246 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L247" class="LineNr"> 247 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L248" class="LineNr"> 248 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy tmp -<span id="L249" class="LineNr"> 249 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word -<span id="L250" class="LineNr"> 250 </span> tmp <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L249" class="LineNr"> 249 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L250" class="LineNr"> 250 </span> tmp <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L251" class="LineNr"> 251 </span> <span class="PreProc">var</span> height/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy tmp <span id="L252" class="LineNr"> 252 </span> <span class="muComment"># check and save color levels</span> -<span id="L253" class="LineNr"> 253 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L253" class="LineNr"> 253 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word <span id="L254" class="LineNr"> 254 </span> <span class="Delimiter">{</span> -<span id="L255" class="LineNr"> 255 </span> tmp <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L255" class="LineNr"> 255 </span> tmp <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L256" class="LineNr"> 256 </span> compare tmp, <span class="Constant">0xff</span> <span id="L257" class="LineNr"> 257 </span> <span class="PreProc">break-if-=</span> -<span id="L258" class="LineNr"> 258 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"levels of grey is not 255; continuing and hoping for the best"</span>, <span class="Constant">0x2b</span>/fg <span class="Constant">0</span>/bg +<span id="L258" class="LineNr"> 258 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"levels of grey is not 255; continuing and hoping for the best"</span>, <span class="Constant">0x2b</span>/fg <span class="Constant">0</span>/bg <span id="L259" class="LineNr"> 259 </span> <span class="Delimiter">}</span> <span id="L260" class="LineNr"> 260 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> get self, max <span id="L261" class="LineNr"> 261 </span> copy-to *dest, tmp @@ -334,14 +334,14 @@ if ('onhashchange' in window) { <span id="L269" class="LineNr"> 269 </span> capacity <span class="Special"><-</span> multiply height <span id="L270" class="LineNr"> 270 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array byte) <span class="Special"><-</span> get self, data <span id="L271" class="LineNr"> 271 </span> populate data-ah, capacity -<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> _data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> _data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L273" class="LineNr"> 273 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _data <span id="L274" class="LineNr"> 274 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L275" class="LineNr"> 275 </span> <span class="Delimiter">{</span> <span id="L276" class="LineNr"> 276 </span> compare i, capacity <span id="L277" class="LineNr"> 277 </span> <span class="PreProc">break-if->=</span> -<span id="L278" class="LineNr"> 278 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word -<span id="L279" class="LineNr"> 279 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L278" class="LineNr"> 278 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L279" class="LineNr"> 279 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L280" class="LineNr"> 280 </span> <span class="Delimiter">{</span> <span id="L281" class="LineNr"> 281 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr byte) <span class="Special"><-</span> index data, i <span id="L282" class="LineNr"> 282 </span> copy-byte-to *dest, src @@ -352,7 +352,7 @@ if ('onhashchange' in window) { <span id="L287" class="LineNr"> 287 </span><span class="Delimiter">}</span> <span id="L288" class="LineNr"> 288 </span> <span id="L289" class="LineNr"> 289 </span><span class="muComment"># render a greyscale ascii "greymap" (each pixel is a shade of grey from 0 to 255) by quantizing the shades</span> -<span id="L290" class="LineNr"> 290 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L290'>render-pgm-image</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _img: (addr <a href='img.mu.html#L15'>image</a>), xmin: int, ymin: int, width: int, height: int <span class="Delimiter">{</span> +<span id="L290" class="LineNr"> 290 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L290'>render-pgm-image</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _img: (addr <a href='img.mu.html#L15'>image</a>), xmin: int, ymin: int, width: int, height: int <span class="Delimiter">{</span> <span id="L291" class="LineNr"> 291 </span> <span class="PreProc">var</span> img/<span class="muRegEsi">esi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> copy _img <span id="L292" class="LineNr"> 292 </span> <span class="muComment"># yratio = height/img->height</span> <span id="L293" class="LineNr"> 293 </span> <span class="PreProc">var</span> img-height-a/eax: (addr int) <span class="Special"><-</span> get img, height @@ -367,7 +367,7 @@ if ('onhashchange' in window) { <span id="L302" class="LineNr"> 302 </span> xratio <span class="Special"><-</span> divide img-width-f <span id="L303" class="LineNr"> 303 </span> <span class="muComment"># esi = img->data</span> <span id="L304" class="LineNr"> 304 </span> <span class="PreProc">var</span> img-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get img, data -<span id="L305" class="LineNr"> 305 </span> <span class="PreProc">var</span> _img-data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *img-data-ah +<span id="L305" class="LineNr"> 305 </span> <span class="PreProc">var</span> _img-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *img-data-ah <span id="L306" class="LineNr"> 306 </span> <span class="PreProc">var</span> img-data/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _img-data <span id="L307" class="LineNr"> 307 </span> <span class="PreProc">var</span> len/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> length img-data <span id="L308" class="LineNr"> 308 </span> <span class="muComment">#</span> @@ -398,10 +398,10 @@ if ('onhashchange' in window) { <span id="L333" class="LineNr"> 333 </span> compare idx, len <span id="L334" class="LineNr"> 334 </span> <span class="Delimiter">{</span> <span id="L335" class="LineNr"> 335 </span> <span class="PreProc">break-if-<</span> -<span id="L336" class="LineNr"> 336 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y -<span id="L337" class="LineNr"> 337 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg -<span id="L338" class="LineNr"> 338 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgy, <span class="Constant">4</span>/fg <span class="Constant">0</span>/bg -<span id="L339" class="LineNr"> 339 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, idx, <span class="Constant">5</span>/fg <span class="Constant">0</span>/bg +<span id="L336" class="LineNr"> 336 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y +<span id="L337" class="LineNr"> 337 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg +<span id="L338" class="LineNr"> 338 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgy, <span class="Constant">4</span>/fg <span class="Constant">0</span>/bg +<span id="L339" class="LineNr"> 339 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, idx, <span class="Constant">5</span>/fg <span class="Constant">0</span>/bg <span id="L340" class="LineNr"> 340 </span> <span class="Delimiter">}</span> <span id="L341" class="LineNr"> 341 </span> <span class="PreProc">var</span> src-a/eax: (addr byte) <span class="Special"><-</span> index img-data, idx <span id="L342" class="LineNr"> 342 </span> <span class="PreProc">var</span> src/eax: byte <span class="Special"><-</span> copy-byte *src-a @@ -410,7 +410,7 @@ if ('onhashchange' in window) { <span id="L345" class="LineNr"> 345 </span> screenx <span class="Special"><-</span> add xmin <span id="L346" class="LineNr"> 346 </span> <span class="PreProc">var</span> screeny/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert y <span id="L347" class="LineNr"> 347 </span> screeny <span class="Special"><-</span> add ymin -<span id="L348" class="LineNr"> 348 </span> <a href='500fake-screen.mu.html#L483'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int +<span id="L348" class="LineNr"> 348 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int <span id="L349" class="LineNr"> 349 </span> x <span class="Special"><-</span> add one-f <span id="L350" class="LineNr"> 350 </span> <span class="PreProc">loop</span> <span id="L351" class="LineNr"> 351 </span> <span class="Delimiter">}</span> @@ -453,13 +453,13 @@ if ('onhashchange' in window) { <span id="L388" class="LineNr"> 388 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> copy _dest <span id="L389" class="LineNr"> 389 </span> <span class="PreProc">var</span> dest-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get dest, data <span id="L390" class="LineNr"> 390 </span> populate dest-data-ah, capacity -<span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> _dest-data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *dest-data-ah +<span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> _dest-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-data-ah <span id="L392" class="LineNr"> 392 </span> <span class="PreProc">var</span> dest-data/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _dest-data <span id="L393" class="LineNr"> 393 </span> <span class="muComment"># needs a buffer to temporarily hold more than 256 levels of precision</span> <span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> errors-storage: (array int <span class="Constant">0xc0000</span>) <span id="L395" class="LineNr"> 395 </span> <span class="PreProc">var</span> errors/<span class="muRegEbx">ebx</span>: (addr array int) <span class="Special"><-</span> address errors-storage <span id="L396" class="LineNr"> 396 </span> <span class="PreProc">var</span> src-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get src, data -<span id="L397" class="LineNr"> 397 </span> <span class="PreProc">var</span> _src-data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *src-data-ah +<span id="L397" class="LineNr"> 397 </span> <span class="PreProc">var</span> _src-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *src-data-ah <span id="L398" class="LineNr"> 398 </span> <span class="PreProc">var</span> src-data/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _src-data <span id="L399" class="LineNr"> 399 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L400" class="LineNr"> 400 </span> <span class="Delimiter">{</span> @@ -488,7 +488,7 @@ if ('onhashchange' in window) { <span id="L423" class="LineNr"> 423 </span> x <span class="Special"><-</span> increment <span id="L424" class="LineNr"> 424 </span> <span class="PreProc">loop</span> <span id="L425" class="LineNr"> 425 </span> <span class="Delimiter">}</span> -<span id="L426" class="LineNr"> 426 </span> <a href='501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen +<span id="L426" class="LineNr"> 426 </span> <a href='../501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen <span id="L427" class="LineNr"> 427 </span> y <span class="Special"><-</span> increment <span id="L428" class="LineNr"> 428 </span> <span class="PreProc">loop</span> <span id="L429" class="LineNr"> 429 </span> <span class="Delimiter">}</span> @@ -527,13 +527,13 @@ if ('onhashchange' in window) { <span id="L462" class="LineNr"> 462 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> copy _dest <span id="L463" class="LineNr"> 463 </span> <span class="PreProc">var</span> dest-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get dest, data <span id="L464" class="LineNr"> 464 </span> populate dest-data-ah, capacity -<span id="L465" class="LineNr"> 465 </span> <span class="PreProc">var</span> _dest-data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *dest-data-ah +<span id="L465" class="LineNr"> 465 </span> <span class="PreProc">var</span> _dest-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-data-ah <span id="L466" class="LineNr"> 466 </span> <span class="PreProc">var</span> dest-data/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _dest-data <span id="L467" class="LineNr"> 467 </span> <span class="muComment"># needs a buffer to temporarily hold more than 256 levels of precision</span> <span id="L468" class="LineNr"> 468 </span> <span class="PreProc">var</span> errors-storage: (array int <span class="Constant">0xc0000</span>) <span id="L469" class="LineNr"> 469 </span> <span class="PreProc">var</span> errors/<span class="muRegEbx">ebx</span>: (addr array int) <span class="Special"><-</span> address errors-storage <span id="L470" class="LineNr"> 470 </span> <span class="PreProc">var</span> src-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get src, data -<span id="L471" class="LineNr"> 471 </span> <span class="PreProc">var</span> _src-data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *src-data-ah +<span id="L471" class="LineNr"> 471 </span> <span class="PreProc">var</span> _src-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *src-data-ah <span id="L472" class="LineNr"> 472 </span> <span class="PreProc">var</span> src-data/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _src-data <span id="L473" class="LineNr"> 473 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L474" class="LineNr"> 474 </span> <span class="Delimiter">{</span> @@ -732,7 +732,7 @@ if ('onhashchange' in window) { <span id="L667" class="LineNr"> 667 </span> x <span class="Special"><-</span> increment <span id="L668" class="LineNr"> 668 </span> <span class="PreProc">loop</span> <span id="L669" class="LineNr"> 669 </span> <span class="Delimiter">}</span> -<span id="L670" class="LineNr"> 670 </span> <a href='501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen +<span id="L670" class="LineNr"> 670 </span> <a href='../501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen <span id="L671" class="LineNr"> 671 </span> y <span class="Special"><-</span> increment <span id="L672" class="LineNr"> 672 </span> <span class="PreProc">loop</span> <span id="L673" class="LineNr"> 673 </span> <span class="Delimiter">}</span> @@ -759,8 +759,8 @@ if ('onhashchange' in window) { <span id="L694" class="LineNr"> 694 </span><span class="CommentedCode">#? break-if-<=</span> <span id="L695" class="LineNr"> 695 </span><span class="CommentedCode">#? return</span> <span id="L696" class="LineNr"> 696 </span><span class="CommentedCode">#? }</span> -<span id="L697" class="LineNr"> 697 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, s, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg -<span id="L698" class="LineNr"> 698 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, d, fg <span class="Constant">0</span>/bg +<span id="L697" class="LineNr"> 697 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, s, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg +<span id="L698" class="LineNr"> 698 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, d, fg <span class="Constant">0</span>/bg <span id="L699" class="LineNr"> 699 </span><span class="Delimiter">}</span> <span id="L700" class="LineNr"> 700 </span> <span id="L701" class="LineNr"> 701 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L701'>psx</a></span> s: (addr array byte), d: int, fg: int, x: int, y: int <span class="Delimiter">{</span> @@ -784,8 +784,8 @@ if ('onhashchange' in window) { <span id="L719" class="LineNr"> 719 </span><span class="CommentedCode">#? break-if-<=</span> <span id="L720" class="LineNr"> 720 </span><span class="CommentedCode">#? return</span> <span id="L721" class="LineNr"> 721 </span><span class="CommentedCode">#? }</span> -<span id="L722" class="LineNr"> 722 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, s, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg -<span id="L723" class="LineNr"> 723 </span> <a href='501draw-text.mu.html#L333'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, d, fg <span class="Constant">0</span>/bg +<span id="L722" class="LineNr"> 722 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, s, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg +<span id="L723" class="LineNr"> 723 </span> <a href='../501draw-text.mu.html#L333'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, d, fg <span class="Constant">0</span>/bg <span id="L724" class="LineNr"> 724 </span><span class="Delimiter">}</span> <span id="L725" class="LineNr"> 725 </span> <span id="L726" class="LineNr"> 726 </span><span class="muComment"># import a color ascii "pixmap" (each pixel consists of 3 shades of r/g/b from 0 to 255)</span> @@ -794,19 +794,19 @@ if ('onhashchange' in window) { <span id="L729" class="LineNr"> 729 </span> <span class="PreProc">var</span> curr-word-storage: slice <span id="L730" class="LineNr"> 730 </span> <span class="PreProc">var</span> curr-word/<span class="muRegEcx">ecx</span>: (addr slice) <span class="Special"><-</span> address curr-word-storage <span id="L731" class="LineNr"> 731 </span> <span class="muComment"># load width, height</span> -<span id="L732" class="LineNr"> 732 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word -<span id="L733" class="LineNr"> 733 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L732" class="LineNr"> 732 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L733" class="LineNr"> 733 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L734" class="LineNr"> 734 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy tmp -<span id="L735" class="LineNr"> 735 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word -<span id="L736" class="LineNr"> 736 </span> tmp <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L735" class="LineNr"> 735 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L736" class="LineNr"> 736 </span> tmp <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L737" class="LineNr"> 737 </span> <span class="PreProc">var</span> height/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy tmp -<span id="L738" class="LineNr"> 738 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L738" class="LineNr"> 738 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word <span id="L739" class="LineNr"> 739 </span> <span class="muComment"># check color levels</span> <span id="L740" class="LineNr"> 740 </span> <span class="Delimiter">{</span> -<span id="L741" class="LineNr"> 741 </span> tmp <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L741" class="LineNr"> 741 </span> tmp <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L742" class="LineNr"> 742 </span> compare tmp, <span class="Constant">0xff</span> <span id="L743" class="LineNr"> 743 </span> <span class="PreProc">break-if-=</span> -<span id="L744" class="LineNr"> 744 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"initialize-image-from-ppm: supports exactly 255 levels per rgb channel"</span> +<span id="L744" class="LineNr"> 744 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"initialize-image-from-ppm: supports exactly 255 levels per rgb channel"</span> <span id="L745" class="LineNr"> 745 </span> <span class="Delimiter">}</span> <span id="L746" class="LineNr"> 746 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> get self, max <span id="L747" class="LineNr"> 747 </span> copy-to *dest, tmp @@ -825,14 +825,14 @@ if ('onhashchange' in window) { <span id="L760" class="LineNr"> 760 </span> <span class="muComment">#</span> <span id="L761" class="LineNr"> 761 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array byte) <span class="Special"><-</span> get self, data <span id="L762" class="LineNr"> 762 </span> populate data-ah, capacity -<span id="L763" class="LineNr"> 763 </span> <span class="PreProc">var</span> _data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L763" class="LineNr"> 763 </span> <span class="PreProc">var</span> _data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L764" class="LineNr"> 764 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _data <span id="L765" class="LineNr"> 765 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L766" class="LineNr"> 766 </span> <span class="Delimiter">{</span> <span id="L767" class="LineNr"> 767 </span> compare i, capacity <span id="L768" class="LineNr"> 768 </span> <span class="PreProc">break-if->=</span> -<span id="L769" class="LineNr"> 769 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, curr-word -<span id="L770" class="LineNr"> 770 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word +<span id="L769" class="LineNr"> 769 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, curr-word +<span id="L770" class="LineNr"> 770 </span> <span class="PreProc">var</span> src/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word <span id="L771" class="LineNr"> 771 </span> <span class="Delimiter">{</span> <span id="L772" class="LineNr"> 772 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr byte) <span class="Special"><-</span> index data, i <span id="L773" class="LineNr"> 773 </span> copy-byte-to *dest, src @@ -843,7 +843,7 @@ if ('onhashchange' in window) { <span id="L778" class="LineNr"> 778 </span><span class="Delimiter">}</span> <span id="L779" class="LineNr"> 779 </span> <span id="L780" class="LineNr"> 780 </span><span class="muComment"># import a color ascii "pixmap" (each pixel consists of 3 shades of r/g/b from 0 to 255)</span> -<span id="L781" class="LineNr"> 781 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L781'>render-ppm-image</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _img: (addr <a href='img.mu.html#L15'>image</a>), xmin: int, ymin: int, width: int, height: int <span class="Delimiter">{</span> +<span id="L781" class="LineNr"> 781 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L781'>render-ppm-image</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _img: (addr <a href='img.mu.html#L15'>image</a>), xmin: int, ymin: int, width: int, height: int <span class="Delimiter">{</span> <span id="L782" class="LineNr"> 782 </span> <span class="PreProc">var</span> img/<span class="muRegEsi">esi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> copy _img <span id="L783" class="LineNr"> 783 </span> <span class="muComment"># yratio = height/img->height</span> <span id="L784" class="LineNr"> 784 </span> <span class="PreProc">var</span> img-height-a/eax: (addr int) <span class="Special"><-</span> get img, height @@ -858,7 +858,7 @@ if ('onhashchange' in window) { <span id="L793" class="LineNr"> 793 </span> xratio <span class="Special"><-</span> divide img-width-f <span id="L794" class="LineNr"> 794 </span> <span class="muComment"># esi = img->data</span> <span id="L795" class="LineNr"> 795 </span> <span class="PreProc">var</span> img-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get img, data -<span id="L796" class="LineNr"> 796 </span> <span class="PreProc">var</span> _img-data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *img-data-ah +<span id="L796" class="LineNr"> 796 </span> <span class="PreProc">var</span> _img-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *img-data-ah <span id="L797" class="LineNr"> 797 </span> <span class="PreProc">var</span> img-data/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _img-data <span id="L798" class="LineNr"> 798 </span> <span class="PreProc">var</span> len/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> length img-data <span id="L799" class="LineNr"> 799 </span> <span class="muComment">#</span> @@ -895,10 +895,10 @@ if ('onhashchange' in window) { <span id="L830" class="LineNr"> 830 </span> compare idx, len <span id="L831" class="LineNr"> 831 </span> <span class="Delimiter">{</span> <span id="L832" class="LineNr"> 832 </span> <span class="PreProc">break-if-<</span> -<span id="L833" class="LineNr"> 833 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y -<span id="L834" class="LineNr"> 834 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg -<span id="L835" class="LineNr"> 835 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgy, <span class="Constant">4</span>/fg <span class="Constant">0</span>/bg -<span id="L836" class="LineNr"> 836 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, idx, <span class="Constant">5</span>/fg <span class="Constant">0</span>/bg +<span id="L833" class="LineNr"> 833 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y +<span id="L834" class="LineNr"> 834 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg +<span id="L835" class="LineNr"> 835 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgy, <span class="Constant">4</span>/fg <span class="Constant">0</span>/bg +<span id="L836" class="LineNr"> 836 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, idx, <span class="Constant">5</span>/fg <span class="Constant">0</span>/bg <span id="L837" class="LineNr"> 837 </span> <span class="Delimiter">}</span> <span id="L838" class="LineNr"> 838 </span> <span class="muComment"># r channel</span> <span id="L839" class="LineNr"> 839 </span> <span class="PreProc">var</span> r: int @@ -925,12 +925,12 @@ if ('onhashchange' in window) { <span id="L860" class="LineNr"> 860 </span> <span class="Delimiter">}</span> <span id="L861" class="LineNr"> 861 </span> idx <span class="Special"><-</span> increment <span id="L862" class="LineNr"> 862 </span> <span class="muComment"># plot nearest color</span> -<span id="L863" class="LineNr"> 863 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L1'>nearest-color-euclidean</a> r, g, b +<span id="L863" class="LineNr"> 863 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='../505colors.mu.html#L1'>nearest-color-euclidean</a> r, g, b <span id="L864" class="LineNr"> 864 </span> <span class="PreProc">var</span> screenx/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> convert x <span id="L865" class="LineNr"> 865 </span> screenx <span class="Special"><-</span> add xmin <span id="L866" class="LineNr"> 866 </span> <span class="PreProc">var</span> screeny/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert y <span id="L867" class="LineNr"> 867 </span> screeny <span class="Special"><-</span> add ymin -<span id="L868" class="LineNr"> 868 </span> <a href='500fake-screen.mu.html#L483'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color +<span id="L868" class="LineNr"> 868 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color <span id="L869" class="LineNr"> 869 </span> x <span class="Special"><-</span> add one-f <span id="L870" class="LineNr"> 870 </span> <span class="PreProc">loop</span> <span id="L871" class="LineNr"> 871 </span> <span class="Delimiter">}</span> @@ -972,7 +972,7 @@ if ('onhashchange' in window) { <span id="L907" class="LineNr"> 907 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> copy _dest <span id="L908" class="LineNr"> 908 </span> <span class="PreProc">var</span> dest-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get dest, data <span id="L909" class="LineNr"> 909 </span> populate dest-data-ah, capacity -<span id="L910" class="LineNr"> 910 </span> <span class="PreProc">var</span> _dest-data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *dest-data-ah +<span id="L910" class="LineNr"> 910 </span> <span class="PreProc">var</span> _dest-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-data-ah <span id="L911" class="LineNr"> 911 </span> <span class="PreProc">var</span> dest-data/<span class="muRegEdi">edi</span>: (addr array byte) <span class="Special"><-</span> copy _dest-data <span id="L912" class="LineNr"> 912 </span> <span class="muComment"># error buffers per r/g/b channel</span> <span id="L913" class="LineNr"> 913 </span> <span class="PreProc">var</span> red-errors-storage: (array int <span class="Constant">0xc0000</span>) @@ -989,7 +989,7 @@ if ('onhashchange' in window) { <span id="L924" class="LineNr"> 924 </span> copy-to blue-errors, tmp <span id="L925" class="LineNr"> 925 </span> <span class="muComment"># transform 'data'</span> <span id="L926" class="LineNr"> 926 </span> <span class="PreProc">var</span> src-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get src, data -<span id="L927" class="LineNr"> 927 </span> <span class="PreProc">var</span> _src-data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *src-data-ah +<span id="L927" class="LineNr"> 927 </span> <span class="PreProc">var</span> _src-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *src-data-ah <span id="L928" class="LineNr"> 928 </span> <span class="PreProc">var</span> src-data/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _src-data <span id="L929" class="LineNr"> 929 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L930" class="LineNr"> 930 </span> <span class="Delimiter">{</span> @@ -1056,7 +1056,7 @@ if ('onhashchange' in window) { <span id="L991" class="LineNr"> 991 </span><span class="CommentedCode">#? draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, green-level, 2/fg 0/bg</span> <span id="L992" class="LineNr"> 992 </span><span class="CommentedCode">#? draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, blue-level, 9/fg 0/bg</span> <span id="L993" class="LineNr"> 993 </span><span class="CommentedCode">#? }</span> -<span id="L994" class="LineNr"> 994 </span> <span class="PreProc">var</span> nearest-color-index/eax: int <span class="Special"><-</span> <a href='505colors.mu.html#L1'>nearest-color-euclidean</a> red-level, green-level, blue-level +<span id="L994" class="LineNr"> 994 </span> <span class="PreProc">var</span> nearest-color-index/eax: int <span class="Special"><-</span> <a href='../505colors.mu.html#L1'>nearest-color-euclidean</a> red-level, green-level, blue-level <span id="L995" class="LineNr"> 995 </span> <span class="Delimiter">{</span> <span id="L996" class="LineNr"> 996 </span> <span class="PreProc">var</span> nearest-color-index-byte/eax: byte <span class="Special"><-</span> copy-byte nearest-color-index <span id="L997" class="LineNr"> 997 </span> <a href='img.mu.html#L635'>_write-raw-buffer</a> dest-data, x, y, src-width, nearest-color-index-byte @@ -1069,7 +1069,7 @@ if ('onhashchange' in window) { <span id="L1004" class="LineNr">1004 </span> <span class="PreProc">var</span> tmp-red-level/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1005" class="LineNr">1005 </span> <span class="PreProc">var</span> tmp-green-level/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L1006" class="LineNr">1006 </span> <span class="PreProc">var</span> tmp-blue-level/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L1007" class="LineNr">1007 </span> tmp-red-level, tmp-green-level, tmp-blue-level <span class="Special"><-</span> <a href='316colors.subx.html#L7'>color-rgb</a> nearest-color-index +<span id="L1007" class="LineNr">1007 </span> tmp-red-level, tmp-green-level, tmp-blue-level <span class="Special"><-</span> <a href='../316colors.subx.html#L7'>color-rgb</a> nearest-color-index <span id="L1008" class="LineNr">1008 </span> copy-to red-level, tmp-red-level <span id="L1009" class="LineNr">1009 </span> copy-to green-level, tmp-green-level <span id="L1010" class="LineNr">1010 </span> copy-to blue-level, tmp-blue-level @@ -1145,7 +1145,7 @@ if ('onhashchange' in window) { <span id="L1080" class="LineNr">1080 </span><span class="Delimiter">}</span> <span id="L1081" class="LineNr">1081 </span> <span id="L1082" class="LineNr">1082 </span><span class="muComment"># each byte in the image data is a color of the current palette</span> -<span id="L1083" class="LineNr">1083 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L1083'>render-raw-image</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _img: (addr <a href='img.mu.html#L15'>image</a>), xmin: int, ymin: int, width: int, height: int <span class="Delimiter">{</span> +<span id="L1083" class="LineNr">1083 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='img.mu.html#L1083'>render-raw-image</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _img: (addr <a href='img.mu.html#L15'>image</a>), xmin: int, ymin: int, width: int, height: int <span class="Delimiter">{</span> <span id="L1084" class="LineNr">1084 </span> <span class="PreProc">var</span> img/<span class="muRegEsi">esi</span>: (addr <a href='img.mu.html#L15'>image</a>) <span class="Special"><-</span> copy _img <span id="L1085" class="LineNr">1085 </span> <span class="muComment"># yratio = height/img->height</span> <span id="L1086" class="LineNr">1086 </span> <span class="PreProc">var</span> img-height-a/eax: (addr int) <span class="Special"><-</span> get img, height @@ -1160,7 +1160,7 @@ if ('onhashchange' in window) { <span id="L1095" class="LineNr">1095 </span> xratio <span class="Special"><-</span> divide img-width-f <span id="L1096" class="LineNr">1096 </span> <span class="muComment"># esi = img->data</span> <span id="L1097" class="LineNr">1097 </span> <span class="PreProc">var</span> img-data-ah/eax: (addr handle array byte) <span class="Special"><-</span> get img, data -<span id="L1098" class="LineNr">1098 </span> <span class="PreProc">var</span> _img-data/eax: (addr array byte) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *img-data-ah +<span id="L1098" class="LineNr">1098 </span> <span class="PreProc">var</span> _img-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *img-data-ah <span id="L1099" class="LineNr">1099 </span> <span class="PreProc">var</span> img-data/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special"><-</span> copy _img-data <span id="L1100" class="LineNr">1100 </span> <span class="PreProc">var</span> len/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> length img-data <span id="L1101" class="LineNr">1101 </span> <span class="muComment">#</span> @@ -1191,10 +1191,10 @@ if ('onhashchange' in window) { <span id="L1126" class="LineNr">1126 </span> compare idx, len <span id="L1127" class="LineNr">1127 </span> <span class="Delimiter">{</span> <span id="L1128" class="LineNr">1128 </span> <span class="PreProc">break-if-<</span> -<span id="L1129" class="LineNr">1129 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y -<span id="L1130" class="LineNr">1130 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg -<span id="L1131" class="LineNr">1131 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgy, <span class="Constant">4</span>/fg <span class="Constant">0</span>/bg -<span id="L1132" class="LineNr">1132 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, idx, <span class="Constant">5</span>/fg <span class="Constant">0</span>/bg +<span id="L1129" class="LineNr">1129 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y +<span id="L1130" class="LineNr">1130 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg +<span id="L1131" class="LineNr">1131 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, imgy, <span class="Constant">4</span>/fg <span class="Constant">0</span>/bg +<span id="L1132" class="LineNr">1132 </span> <a href='../501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, idx, <span class="Constant">5</span>/fg <span class="Constant">0</span>/bg <span id="L1133" class="LineNr">1133 </span> <span class="Delimiter">}</span> <span id="L1134" class="LineNr">1134 </span> <span class="PreProc">var</span> color-a/eax: (addr byte) <span class="Special"><-</span> index img-data, idx <span id="L1135" class="LineNr">1135 </span> <span class="PreProc">var</span> color/eax: byte <span class="Special"><-</span> copy-byte *color-a @@ -1203,7 +1203,7 @@ if ('onhashchange' in window) { <span id="L1138" class="LineNr">1138 </span> screenx <span class="Special"><-</span> add xmin <span id="L1139" class="LineNr">1139 </span> <span class="PreProc">var</span> screeny/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert y <span id="L1140" class="LineNr">1140 </span> screeny <span class="Special"><-</span> add ymin -<span id="L1141" class="LineNr">1141 </span> <a href='500fake-screen.mu.html#L483'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int +<span id="L1141" class="LineNr">1141 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int <span id="L1142" class="LineNr">1142 </span> x <span class="Special"><-</span> add one-f <span id="L1143" class="LineNr">1143 </span> <span class="PreProc">loop</span> <span id="L1144" class="LineNr">1144 </span> <span class="Delimiter">}</span> diff --git a/html/apps/life.mu.html b/html/apps/life.mu.html new file mode 100644 index 00000000..cc262c2d --- /dev/null +++ b/html/apps/life.mu.html @@ -0,0 +1,320 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - apps/life.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.Special { color: #ff6060; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/apps/life.mu'>https://github.com/akkartik/mu/blob/main/apps/life.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Conway's Game of Life</span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build:</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate apps/life.mu</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ qemu-system-i386 code.img</span> +<span id="L7" class="LineNr"> 7 </span> +<span id="L8" class="LineNr"> 8 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L8'>state</a></span> _grid: (addr array boolean), x: int, y: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L9" class="LineNr"> 9 </span> <span class="muComment"># clip at the edge</span> +<span id="L10" class="LineNr"> 10 </span> compare x, <span class="Constant">0</span> +<span id="L11" class="LineNr"> 11 </span> <span class="Delimiter">{</span> +<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">break-if->=</span> +<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L14" class="LineNr"> 14 </span> <span class="Delimiter">}</span> +<span id="L15" class="LineNr"> 15 </span> compare y, <span class="Constant">0</span> +<span id="L16" class="LineNr"> 16 </span> <span class="Delimiter">{</span> +<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">break-if->=</span> +<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L19" class="LineNr"> 19 </span> <span class="Delimiter">}</span> +<span id="L20" class="LineNr"> 20 </span> compare x, <span class="Constant">0x100</span>/width +<span id="L21" class="LineNr"> 21 </span> <span class="Delimiter">{</span> +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">break-if-<</span> +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L24" class="LineNr"> 24 </span> <span class="Delimiter">}</span> +<span id="L25" class="LineNr"> 25 </span> compare y, <span class="Constant">0xc0</span>/height +<span id="L26" class="LineNr"> 26 </span> <span class="Delimiter">{</span> +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">break-if-<</span> +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">}</span> +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> idx/eax: int <span class="Special"><-</span> copy y +<span id="L31" class="LineNr"> 31 </span> idx <span class="Special"><-</span> shift-left <span class="Constant">8</span>/log2width +<span id="L32" class="LineNr"> 32 </span> idx <span class="Special"><-</span> add x +<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> grid/<span class="muRegEsi">esi</span>: (addr array boolean) <span class="Special"><-</span> copy _grid +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> result/eax: (addr boolean) <span class="Special"><-</span> index grid, idx +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">return</span> *result +<span id="L36" class="LineNr"> 36 </span><span class="Delimiter">}</span> +<span id="L37" class="LineNr"> 37 </span> +<span id="L38" class="LineNr"> 38 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L38'>set-state</a></span> _grid: (addr array boolean), x: int, y: int, val: boolean <span class="Delimiter">{</span> +<span id="L39" class="LineNr"> 39 </span> <span class="muComment"># don't bother checking bounds</span> +<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> idx/eax: int <span class="Special"><-</span> copy y +<span id="L41" class="LineNr"> 41 </span> idx <span class="Special"><-</span> shift-left <span class="Constant">8</span>/log2width +<span id="L42" class="LineNr"> 42 </span> idx <span class="Special"><-</span> add x +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> grid/<span class="muRegEsi">esi</span>: (addr array boolean) <span class="Special"><-</span> copy _grid +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> result/eax: (addr boolean) <span class="Special"><-</span> index grid, idx +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy val +<span id="L46" class="LineNr"> 46 </span> copy-to *result, src +<span id="L47" class="LineNr"> 47 </span><span class="Delimiter">}</span> +<span id="L48" class="LineNr"> 48 </span> +<span id="L49" class="LineNr"> 49 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L49'>num-live-neighbors</a></span> grid: (addr array boolean), x: int, y: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L50" class="LineNr"> 50 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L51" class="LineNr"> 51 </span> <span class="muComment"># row above: zig</span> +<span id="L52" class="LineNr"> 52 </span> decrement y +<span id="L53" class="LineNr"> 53 </span> decrement x +<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> s/eax: boolean <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L55" class="LineNr"> 55 </span> <span class="Delimiter">{</span> +<span id="L56" class="LineNr"> 56 </span> compare s, <span class="Constant">0</span>/false +<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">break-if-=</span> +<span id="L58" class="LineNr"> 58 </span> result <span class="Special"><-</span> increment +<span id="L59" class="LineNr"> 59 </span> <span class="Delimiter">}</span> +<span id="L60" class="LineNr"> 60 </span> increment x +<span id="L61" class="LineNr"> 61 </span> s <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L62" class="LineNr"> 62 </span> <span class="Delimiter">{</span> +<span id="L63" class="LineNr"> 63 </span> compare s, <span class="Constant">0</span>/false +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">break-if-=</span> +<span id="L65" class="LineNr"> 65 </span> result <span class="Special"><-</span> increment +<span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">}</span> +<span id="L67" class="LineNr"> 67 </span> increment x +<span id="L68" class="LineNr"> 68 </span> s <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L69" class="LineNr"> 69 </span> <span class="Delimiter">{</span> +<span id="L70" class="LineNr"> 70 </span> compare s, <span class="Constant">0</span>/false +<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">break-if-=</span> +<span id="L72" class="LineNr"> 72 </span> result <span class="Special"><-</span> increment +<span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">}</span> +<span id="L74" class="LineNr"> 74 </span> <span class="muComment"># curr row: zag</span> +<span id="L75" class="LineNr"> 75 </span> increment y +<span id="L76" class="LineNr"> 76 </span> s <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L77" class="LineNr"> 77 </span> <span class="Delimiter">{</span> +<span id="L78" class="LineNr"> 78 </span> compare s, <span class="Constant">0</span>/false +<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">break-if-=</span> +<span id="L80" class="LineNr"> 80 </span> result <span class="Special"><-</span> increment +<span id="L81" class="LineNr"> 81 </span> <span class="Delimiter">}</span> +<span id="L82" class="LineNr"> 82 </span> subtract-from x, <span class="Constant">2</span> +<span id="L83" class="LineNr"> 83 </span> s <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L84" class="LineNr"> 84 </span> <span class="Delimiter">{</span> +<span id="L85" class="LineNr"> 85 </span> compare s, <span class="Constant">0</span>/false +<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">break-if-=</span> +<span id="L87" class="LineNr"> 87 </span> result <span class="Special"><-</span> increment +<span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">}</span> +<span id="L89" class="LineNr"> 89 </span> <span class="muComment"># row below: zig</span> +<span id="L90" class="LineNr"> 90 </span> increment y +<span id="L91" class="LineNr"> 91 </span> s <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L92" class="LineNr"> 92 </span> <span class="Delimiter">{</span> +<span id="L93" class="LineNr"> 93 </span> compare s, <span class="Constant">0</span>/false +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">break-if-=</span> +<span id="L95" class="LineNr"> 95 </span> result <span class="Special"><-</span> increment +<span id="L96" class="LineNr"> 96 </span> <span class="Delimiter">}</span> +<span id="L97" class="LineNr"> 97 </span> increment x +<span id="L98" class="LineNr"> 98 </span> s <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L99" class="LineNr"> 99 </span> <span class="Delimiter">{</span> +<span id="L100" class="LineNr">100 </span> compare s, <span class="Constant">0</span>/false +<span id="L101" class="LineNr">101 </span> <span class="PreProc">break-if-=</span> +<span id="L102" class="LineNr">102 </span> result <span class="Special"><-</span> increment +<span id="L103" class="LineNr">103 </span> <span class="Delimiter">}</span> +<span id="L104" class="LineNr">104 </span> increment x +<span id="L105" class="LineNr">105 </span> s <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L106" class="LineNr">106 </span> <span class="Delimiter">{</span> +<span id="L107" class="LineNr">107 </span> compare s, <span class="Constant">0</span>/false +<span id="L108" class="LineNr">108 </span> <span class="PreProc">break-if-=</span> +<span id="L109" class="LineNr">109 </span> result <span class="Special"><-</span> increment +<span id="L110" class="LineNr">110 </span> <span class="Delimiter">}</span> +<span id="L111" class="LineNr">111 </span> <span class="PreProc">return</span> result +<span id="L112" class="LineNr">112 </span><span class="Delimiter">}</span> +<span id="L113" class="LineNr">113 </span> +<span id="L114" class="LineNr">114 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L114'>step</a></span> old-grid: (addr array boolean), new-grid: (addr array boolean) <span class="Delimiter">{</span> +<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L116" class="LineNr">116 </span> <span class="Delimiter">{</span> +<span id="L117" class="LineNr">117 </span> compare y, <span class="Constant">0xc0</span>/height +<span id="L118" class="LineNr">118 </span> <span class="PreProc">break-if->=</span> +<span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L120" class="LineNr">120 </span> <span class="Delimiter">{</span> +<span id="L121" class="LineNr">121 </span> compare x, <span class="Constant">0x100</span>/width +<span id="L122" class="LineNr">122 </span> <span class="PreProc">break-if->=</span> +<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='life.mu.html#L49'>num-live-neighbors</a> old-grid, x, y +<span id="L124" class="LineNr">124 </span> <span class="muComment"># if neighbors < 2, die of loneliness</span> +<span id="L125" class="LineNr">125 </span> <span class="Delimiter">{</span> +<span id="L126" class="LineNr">126 </span> compare n, <span class="Constant">2</span> +<span id="L127" class="LineNr">127 </span> <span class="PreProc">break-if->=</span> +<span id="L128" class="LineNr">128 </span> <a href='life.mu.html#L38'>set-state</a> new-grid, x, y, <span class="Constant">0</span>/dead +<span id="L129" class="LineNr">129 </span> <span class="Delimiter">}</span> +<span id="L130" class="LineNr">130 </span> <span class="muComment"># if neighbors > 3, die of overcrowding</span> +<span id="L131" class="LineNr">131 </span> <span class="Delimiter">{</span> +<span id="L132" class="LineNr">132 </span> compare n, <span class="Constant">3</span> +<span id="L133" class="LineNr">133 </span> <span class="PreProc">break-if-<=</span> +<span id="L134" class="LineNr">134 </span> <a href='life.mu.html#L38'>set-state</a> new-grid, x, y, <span class="Constant">0</span>/dead +<span id="L135" class="LineNr">135 </span> <span class="Delimiter">}</span> +<span id="L136" class="LineNr">136 </span> <span class="muComment"># if neighbors = 2, preserve state</span> +<span id="L137" class="LineNr">137 </span> <span class="Delimiter">{</span> +<span id="L138" class="LineNr">138 </span> compare n, <span class="Constant">2</span> +<span id="L139" class="LineNr">139 </span> <span class="PreProc">break-if-!=</span> +<span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> old-state/eax: boolean <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> old-grid, x, y +<span id="L141" class="LineNr">141 </span> <a href='life.mu.html#L38'>set-state</a> new-grid, x, y, old-state +<span id="L142" class="LineNr">142 </span> <span class="Delimiter">}</span> +<span id="L143" class="LineNr">143 </span> <span class="muComment"># if neighbors = 3, cell quickens to life</span> +<span id="L144" class="LineNr">144 </span> <span class="Delimiter">{</span> +<span id="L145" class="LineNr">145 </span> compare n, <span class="Constant">3</span> +<span id="L146" class="LineNr">146 </span> <span class="PreProc">break-if-!=</span> +<span id="L147" class="LineNr">147 </span> <a href='life.mu.html#L38'>set-state</a> new-grid, x, y, <span class="Constant">1</span>/live +<span id="L148" class="LineNr">148 </span> <span class="Delimiter">}</span> +<span id="L149" class="LineNr">149 </span> x <span class="Special"><-</span> increment +<span id="L150" class="LineNr">150 </span> <span class="PreProc">loop</span> +<span id="L151" class="LineNr">151 </span> <span class="Delimiter">}</span> +<span id="L152" class="LineNr">152 </span> y <span class="Special"><-</span> increment +<span id="L153" class="LineNr">153 </span> <span class="PreProc">loop</span> +<span id="L154" class="LineNr">154 </span> <span class="Delimiter">}</span> +<span id="L155" class="LineNr">155 </span><span class="Delimiter">}</span> +<span id="L156" class="LineNr">156 </span> +<span id="L157" class="LineNr">157 </span><span class="muComment"># color a square of size 'side' starting at x*side, y*side</span> +<span id="L158" class="LineNr">158 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L158'>render-square</a></span> _x: int, _y: int, color: int <span class="Delimiter">{</span> +<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _y +<span id="L160" class="LineNr">160 </span> y <span class="Special"><-</span> shift-left <span class="Constant">2</span>/log2side +<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> side/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L162" class="LineNr">162 </span> side <span class="Special"><-</span> shift-left <span class="Constant">2</span>/log2side +<span id="L163" class="LineNr">163 </span> <span class="PreProc">var</span> ymax/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy y +<span id="L164" class="LineNr">164 </span> ymax <span class="Special"><-</span> add side +<span id="L165" class="LineNr">165 </span> <span class="Delimiter">{</span> +<span id="L166" class="LineNr">166 </span> compare y, ymax +<span id="L167" class="LineNr">167 </span> <span class="PreProc">break-if->=</span> +<span id="L168" class="LineNr">168 </span> <span class="Delimiter">{</span> +<span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy _x +<span id="L170" class="LineNr">170 </span> x <span class="Special"><-</span> shift-left <span class="Constant">2</span>/log2side +<span id="L171" class="LineNr">171 </span> <span class="PreProc">var</span> xmax/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy x +<span id="L172" class="LineNr">172 </span> xmax <span class="Special"><-</span> add side +<span id="L173" class="LineNr">173 </span> <span class="Delimiter">{</span> +<span id="L174" class="LineNr">174 </span> compare x, xmax +<span id="L175" class="LineNr">175 </span> <span class="PreProc">break-if->=</span> +<span id="L176" class="LineNr">176 </span> <a href='../101screen.subx.html#L8'>pixel-on-real-screen</a> x, y, color +<span id="L177" class="LineNr">177 </span> x <span class="Special"><-</span> increment +<span id="L178" class="LineNr">178 </span> <span class="PreProc">loop</span> +<span id="L179" class="LineNr">179 </span> <span class="Delimiter">}</span> +<span id="L180" class="LineNr">180 </span> <span class="Delimiter">}</span> +<span id="L181" class="LineNr">181 </span> y <span class="Special"><-</span> increment +<span id="L182" class="LineNr">182 </span> <span class="PreProc">loop</span> +<span id="L183" class="LineNr">183 </span> <span class="Delimiter">}</span> +<span id="L184" class="LineNr">184 </span><span class="Delimiter">}</span> +<span id="L185" class="LineNr">185 </span> +<span id="L186" class="LineNr">186 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L186'>render</a></span> grid: (addr array boolean) <span class="Delimiter">{</span> +<span id="L187" class="LineNr">187 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L188" class="LineNr">188 </span> <span class="Delimiter">{</span> +<span id="L189" class="LineNr">189 </span> compare y, <span class="Constant">0xc0</span>/height +<span id="L190" class="LineNr">190 </span> <span class="PreProc">break-if->=</span> +<span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L192" class="LineNr">192 </span> <span class="Delimiter">{</span> +<span id="L193" class="LineNr">193 </span> compare x, <span class="Constant">0x100</span>/width +<span id="L194" class="LineNr">194 </span> <span class="PreProc">break-if->=</span> +<span id="L195" class="LineNr">195 </span> <span class="PreProc">var</span> <a href='life.mu.html#L8'>state</a>/eax: boolean <span class="Special"><-</span> <a href='life.mu.html#L8'>state</a> grid, x, y +<span id="L196" class="LineNr">196 </span> compare <a href='life.mu.html#L8'>state</a>, <span class="Constant">0</span>/false +<span id="L197" class="LineNr">197 </span> <span class="Delimiter">{</span> +<span id="L198" class="LineNr">198 </span> <span class="PreProc">break-if-=</span> +<span id="L199" class="LineNr">199 </span> <a href='life.mu.html#L158'>render-square</a> x, y, <span class="Constant">3</span>/cyan +<span id="L200" class="LineNr">200 </span> <span class="Delimiter">}</span> +<span id="L201" class="LineNr">201 </span> compare <a href='life.mu.html#L8'>state</a>, <span class="Constant">0</span>/false +<span id="L202" class="LineNr">202 </span> <span class="Delimiter">{</span> +<span id="L203" class="LineNr">203 </span> <span class="PreProc">break-if-!=</span> +<span id="L204" class="LineNr">204 </span> <a href='life.mu.html#L158'>render-square</a> x, y, <span class="Constant">0</span>/black +<span id="L205" class="LineNr">205 </span> <span class="Delimiter">}</span> +<span id="L206" class="LineNr">206 </span> x <span class="Special"><-</span> increment +<span id="L207" class="LineNr">207 </span> <span class="PreProc">loop</span> +<span id="L208" class="LineNr">208 </span> <span class="Delimiter">}</span> +<span id="L209" class="LineNr">209 </span> y <span class="Special"><-</span> increment +<span id="L210" class="LineNr">210 </span> <span class="PreProc">loop</span> +<span id="L211" class="LineNr">211 </span> <span class="Delimiter">}</span> +<span id="L212" class="LineNr">212 </span><span class="Delimiter">}</span> +<span id="L213" class="LineNr">213 </span> +<span id="L214" class="LineNr">214 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='life.mu.html#L214'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L215" class="LineNr">215 </span><span class="CommentedCode">#? # allocate on the stack</span> +<span id="L216" class="LineNr">216 </span><span class="CommentedCode">#? var grid1-storage: (array boolean 0xc000) # width * height</span> +<span id="L217" class="LineNr">217 </span><span class="CommentedCode">#? var grid1/esi: (addr array boolean) <- address grid1-storage</span> +<span id="L218" class="LineNr">218 </span><span class="CommentedCode">#? var grid2-storage: (array boolean 0xc000) # width * height</span> +<span id="L219" class="LineNr">219 </span><span class="CommentedCode">#? var grid2/edi: (addr array boolean) <- address grid2-storage</span> +<span id="L220" class="LineNr">220 </span> <span class="muComment"># allocate on the heap</span> +<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> grid1-storage: (handle array boolean) +<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> grid1-ah/eax: (addr handle array boolean) <span class="Special"><-</span> address grid1-storage +<span id="L223" class="LineNr">223 </span> populate grid1-ah, <span class="Constant">0xc000</span> <span class="muComment"># width * height</span> +<span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> _grid1/eax: (addr array boolean) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *grid1-ah +<span id="L225" class="LineNr">225 </span> <span class="PreProc">var</span> grid1/<span class="muRegEsi">esi</span>: (addr array boolean) <span class="Special"><-</span> copy _grid1 +<span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> grid2-storage: (handle array boolean) +<span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> grid2-ah/eax: (addr handle array boolean) <span class="Special"><-</span> address grid2-storage +<span id="L228" class="LineNr">228 </span> populate grid2-ah, <span class="Constant">0xc000</span> <span class="muComment"># width * height</span> +<span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> _grid2/eax: (addr array boolean) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *grid2-ah +<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> grid2/<span class="muRegEdi">edi</span>: (addr array boolean) <span class="Special"><-</span> copy _grid2 +<span id="L231" class="LineNr">231 </span> <span class="muComment"># initialize grid1</span> +<span id="L232" class="LineNr">232 </span> <a href='life.mu.html#L38'>set-state</a> grid1, <span class="Constant">0x80</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/live +<span id="L233" class="LineNr">233 </span> <a href='life.mu.html#L38'>set-state</a> grid1, <span class="Constant">0x81</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/live +<span id="L234" class="LineNr">234 </span> <a href='life.mu.html#L38'>set-state</a> grid1, <span class="Constant">0x7f</span>, <span class="Constant">0x60</span>, <span class="Constant">1</span>/live +<span id="L235" class="LineNr">235 </span> <a href='life.mu.html#L38'>set-state</a> grid1, <span class="Constant">0x80</span>, <span class="Constant">0x60</span>, <span class="Constant">1</span>/live +<span id="L236" class="LineNr">236 </span> <a href='life.mu.html#L38'>set-state</a> grid1, <span class="Constant">0x80</span>, <span class="Constant">0x61</span>, <span class="Constant">1</span>/live +<span id="L237" class="LineNr">237 </span> <span class="muComment"># render grid1</span> +<span id="L238" class="LineNr">238 </span> <a href='life.mu.html#L186'>render</a> grid1 +<span id="L239" class="LineNr">239 </span> <span class="Delimiter">{</span> +<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L241" class="LineNr">241 </span> compare key, <span class="Constant">0</span> +<span id="L242" class="LineNr">242 </span><span class="CommentedCode">#? loop-if-= # press key to step</span> +<span id="L243" class="LineNr">243 </span> <span class="PreProc">break-if-!=</span> <span class="muComment"># press key to quit # comment this out to run under bochs; I'm not sure why there's a newline in the keyboard buffer</span> +<span id="L244" class="LineNr">244 </span> <span class="muComment"># iter: grid1 -> grid2</span> +<span id="L245" class="LineNr">245 </span> <a href='life.mu.html#L114'>step</a> grid1, grid2 +<span id="L246" class="LineNr">246 </span> <a href='life.mu.html#L186'>render</a> grid2 +<span id="L247" class="LineNr">247 </span> <span class="muComment"># iter: grid2 -> grid1</span> +<span id="L248" class="LineNr">248 </span> <a href='life.mu.html#L114'>step</a> grid2, grid1 +<span id="L249" class="LineNr">249 </span> <a href='life.mu.html#L186'>render</a> grid1 +<span id="L250" class="LineNr">250 </span> <span class="PreProc">loop</span> +<span id="L251" class="LineNr">251 </span> <span class="Delimiter">}</span> +<span id="L252" class="LineNr">252 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/mandelbrot-fixed.mu.html b/html/apps/mandelbrot-fixed.mu.html index 8810395f..24f7ddc7 100644 --- a/html/mandelbrot-fixed.mu.html +++ b/html/apps/mandelbrot-fixed.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - mandelbrot-fixed.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/mandelbrot-fixed.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -60,7 +60,7 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/mandelbrot-fixed.mu'>https://github.com/akkartik/mu/blob/main/mandelbrot-fixed.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/mandelbrot-fixed.mu'>https://github.com/akkartik/mu/blob/main/apps/mandelbrot-fixed.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Mandelbrot set using fixed-point numbers.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> @@ -68,13 +68,13 @@ if ('onhashchange' in window) { <span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># Build on Linux:</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate mandelbrot-fixed.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate apps/mandelbrot-fixed.mu</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># Build on other platforms (slow):</span> -<span id="L9" class="LineNr"> 9 </span><span class="muComment"># $ ./translate_emulated mandelbrot-fixed.mu</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># $ ./translate_emulated apps/mandelbrot-fixed.mu</span> <span id="L10" class="LineNr"> 10 </span><span class="muComment"># Run:</span> <span id="L11" class="LineNr"> 11 </span><span class="muComment"># $ qemu-system-i386 code.img</span> <span id="L12" class="LineNr"> 12 </span> -<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L13'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L13'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L14" class="LineNr"> 14 </span> <span class="muComment"># Initially the viewport is centered at 0, 0 in the scene.</span> <span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> scene-cx-f: int <span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> scene-cy-f: int @@ -82,7 +82,7 @@ if ('onhashchange' in window) { <span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> scene-width-f: int <span id="L19" class="LineNr"> 19 </span> copy-to scene-width-f, <span class="Constant">0x400</span>/<span class="Constant">4</span> <span id="L20" class="LineNr"> 20 </span> <span class="Delimiter">{</span> -<span id="L21" class="LineNr"> 21 </span> <a href='mandelbrot-fixed.mu.html#L127'>mandelbrot</a> <a href='500fake-screen.mu.html#L14'>screen</a> scene-cx-f, scene-cy-f, scene-width-f +<span id="L21" class="LineNr"> 21 </span> <a href='mandelbrot-fixed.mu.html#L127'>mandelbrot</a> <a href='../500fake-screen.mu.html#L14'>screen</a> scene-cx-f, scene-cy-f, scene-width-f <span id="L22" class="LineNr"> 22 </span> <span class="muComment"># move at an angle slowly towards the edge</span> <span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> adj-f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L100'>multiply-fixed</a> scene-width-f, <span class="Constant">0x12</span>/<span class="Constant">0</span>.<span class="Constant">07</span> <span id="L24" class="LineNr"> 24 </span> subtract-from scene-cx-f, adj-f @@ -102,7 +102,7 @@ if ('onhashchange' in window) { <span id="L38" class="LineNr"> 38 </span> result-f <span class="Special"><-</span> shift-left <span class="Constant">8</span>/fixed-precision <span id="L39" class="LineNr"> 39 </span> <span class="Delimiter">{</span> <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">break-if-not-overflow</span> -<span id="L41" class="LineNr"> 41 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"int-to-fixed: overflow"</span> +<span id="L41" class="LineNr"> 41 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"int-to-fixed: overflow"</span> <span id="L42" class="LineNr"> 42 </span> <span class="Delimiter">}</span> <span id="L43" class="LineNr"> 43 </span> <span class="PreProc">return</span> result-f <span id="L44" class="LineNr"> 44 </span><span class="Delimiter">}</span> @@ -118,45 +118,45 @@ if ('onhashchange' in window) { <span id="L54" class="LineNr"> 54 </span> <span class="muComment"># 0</span> <span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">0</span> <span id="L56" class="LineNr"> 56 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f -<span id="L57" class="LineNr"> 57 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">0</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 0"</span> +<span id="L57" class="LineNr"> 57 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">0</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 0"</span> <span id="L58" class="LineNr"> 58 </span> <span class="muComment"># 1</span> <span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">1</span> <span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f -<span id="L61" class="LineNr"> 61 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 1"</span> +<span id="L61" class="LineNr"> 61 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 1"</span> <span id="L62" class="LineNr"> 62 </span> <span class="muComment"># -1</span> <span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-1</span> <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f -<span id="L65" class="LineNr"> 65 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -1"</span> +<span id="L65" class="LineNr"> 65 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -1"</span> <span id="L66" class="LineNr"> 66 </span> <span class="muComment"># 0.5 = 1/2</span> <span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">1</span> <span id="L68" class="LineNr"> 68 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">1</span> <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f -<span id="L70" class="LineNr"> 70 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">0</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 0.5"</span> +<span id="L70" class="LineNr"> 70 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">0</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 0.5"</span> <span id="L71" class="LineNr"> 71 </span> <span class="muComment"># -0.5 = -1/2</span> <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-1</span> <span id="L73" class="LineNr"> 73 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">1</span> <span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f -<span id="L75" class="LineNr"> 75 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -0.5"</span> +<span id="L75" class="LineNr"> 75 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -0.5"</span> <span id="L76" class="LineNr"> 76 </span> <span class="muComment"># 1.5 = 3/2</span> <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">3</span> <span id="L78" class="LineNr"> 78 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">1</span> <span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f -<span id="L80" class="LineNr"> 80 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 1.5"</span> +<span id="L80" class="LineNr"> 80 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 1.5"</span> <span id="L81" class="LineNr"> 81 </span> <span class="muComment"># -1.5 = -3/2</span> <span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-3</span> <span id="L83" class="LineNr"> 83 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">1</span> <span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f -<span id="L85" class="LineNr"> 85 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-2</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -1.5"</span> +<span id="L85" class="LineNr"> 85 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-2</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -1.5"</span> <span id="L86" class="LineNr"> 86 </span> <span class="muComment"># 1.25 = 5/4</span> <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">5</span> <span id="L88" class="LineNr"> 88 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">2</span> <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f -<span id="L90" class="LineNr"> 90 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 1.25"</span> +<span id="L90" class="LineNr"> 90 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - 1.25"</span> <span id="L91" class="LineNr"> 91 </span> <span class="muComment"># -1.25 = -5/4</span> <span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> f/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L36'>int-to-fixed</a> <span class="Constant">-5</span> <span id="L93" class="LineNr"> 93 </span> f <span class="Special"><-</span> shift-right-signed <span class="Constant">2</span> <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='mandelbrot-fixed.mu.html#L46'>fixed-to-int</a> f -<span id="L95" class="LineNr"> 95 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-2</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -1.25"</span> +<span id="L95" class="LineNr"> 95 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result, <span class="Constant">-2</span>, <span class="Constant">"F - <a href='mandelbrot-fixed.mu.html#L53'>test-fixed-conversion</a> - -1.25"</span> <span id="L96" class="LineNr"> 96 </span><span class="Delimiter">}</span> <span id="L97" class="LineNr"> 97 </span> <span id="L98" class="LineNr"> 98 </span><span class="muComment"># special routines for multiplying and dividing fixed-point numbers</span> @@ -166,7 +166,7 @@ if ('onhashchange' in window) { <span id="L102" class="LineNr">102 </span> result <span class="Special"><-</span> multiply b-f <span id="L103" class="LineNr">103 </span> <span class="Delimiter">{</span> <span id="L104" class="LineNr">104 </span> <span class="PreProc">break-if-not-overflow</span> -<span id="L105" class="LineNr">105 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"multiply-fixed: overflow"</span> +<span id="L105" class="LineNr">105 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"multiply-fixed: overflow"</span> <span id="L106" class="LineNr">106 </span> <span class="Delimiter">}</span> <span id="L107" class="LineNr">107 </span> result <span class="Special"><-</span> shift-right-signed <span class="Constant">8</span>/fixed-precision <span id="L108" class="LineNr">108 </span> <span class="PreProc">return</span> result @@ -177,10 +177,10 @@ if ('onhashchange' in window) { <span id="L113" class="LineNr">113 </span> result-f <span class="Special"><-</span> shift-left <span class="Constant">8</span>/fixed-precision <span id="L114" class="LineNr">114 </span> <span class="Delimiter">{</span> <span id="L115" class="LineNr">115 </span> <span class="PreProc">break-if-not-overflow</span> -<span id="L116" class="LineNr">116 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"divide-fixed: overflow"</span> +<span id="L116" class="LineNr">116 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"divide-fixed: overflow"</span> <span id="L117" class="LineNr">117 </span> <span class="Delimiter">}</span> <span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> dummy-remainder/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L119" class="LineNr">119 </span> result-f, dummy-remainder <span class="Special"><-</span> <a href='314divide.subx.html#L3'>integer-divide</a> result-f, b-f +<span id="L119" class="LineNr">119 </span> result-f, dummy-remainder <span class="Special"><-</span> <a href='../314divide.subx.html#L3'>integer-divide</a> result-f, b-f <span id="L120" class="LineNr">120 </span> <span class="PreProc">return</span> result-f <span id="L121" class="LineNr">121 </span><span class="Delimiter">}</span> <span id="L122" class="LineNr">122 </span> @@ -188,10 +188,10 @@ if ('onhashchange' in window) { <span id="L124" class="LineNr">124 </span> <span id="L125" class="LineNr">125 </span><span class="muComment"># adding and subtracting two fixed-point numbers can use existing instructions.</span> <span id="L126" class="LineNr">126 </span> -<span id="L127" class="LineNr">127 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L127'>mandelbrot</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), scene-cx-f: int, scene-cy-f: int, scene-width-f: int <span class="Delimiter">{</span> +<span id="L127" class="LineNr">127 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-fixed.mu.html#L127'>mandelbrot</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), scene-cx-f: int, scene-cy-f: int, scene-width-f: int <span class="Delimiter">{</span> <span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> b/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L130" class="LineNr">130 </span> a, b <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> +<span id="L130" class="LineNr">130 </span> a, b <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> width/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy a <span id="L132" class="LineNr">132 </span> width <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width <span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> height/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy b @@ -211,10 +211,10 @@ if ('onhashchange' in window) { <span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> color/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L148" class="LineNr">148 </span> <span class="Delimiter">{</span> <span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L150" class="LineNr">150 </span> dummy, color <span class="Special"><-</span> <a href='314divide.subx.html#L3'>integer-divide</a> iterations, <span class="Constant">0x18</span>/<span class="Constant">24</span>/size-of-cycle-0 +<span id="L150" class="LineNr">150 </span> dummy, color <span class="Special"><-</span> <a href='../314divide.subx.html#L3'>integer-divide</a> iterations, <span class="Constant">0x18</span>/<span class="Constant">24</span>/size-of-cycle-0 <span id="L151" class="LineNr">151 </span> color <span class="Special"><-</span> add <span class="Constant">0x20</span>/cycle-0 <span id="L152" class="LineNr">152 </span> <span class="Delimiter">}</span> -<span id="L153" class="LineNr">153 </span> <a href='500fake-screen.mu.html#L483'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, color +<span id="L153" class="LineNr">153 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color <span id="L154" class="LineNr">154 </span> x <span class="Special"><-</span> increment <span id="L155" class="LineNr">155 </span> <span class="PreProc">loop</span> <span id="L156" class="LineNr">156 </span> <span class="Delimiter">}</span> diff --git a/html/mandelbrot-silhouette.mu.html b/html/apps/mandelbrot-silhouette.mu.html index ca476867..867d96b7 100644 --- a/html/mandelbrot-silhouette.mu.html +++ b/html/apps/mandelbrot-silhouette.mu.html @@ -1,34 +1,34 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - mandelbrot-silhouette.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/mandelbrot-silhouette.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -58,7 +58,7 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/mandelbrot-silhouette.mu'>https://github.com/akkartik/mu/blob/main/mandelbrot-silhouette.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/mandelbrot-silhouette.mu'>https://github.com/akkartik/mu/blob/main/apps/mandelbrot-silhouette.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Mandelbrot set</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> @@ -66,20 +66,20 @@ if ('onhashchange' in window) { <span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># Build on Linux:</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate mandelbrot.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate apps/mandelbrot.mu</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># Build on other platforms (slow):</span> -<span id="L9" class="LineNr"> 9 </span><span class="muComment"># $ ./translate_emulated mandelbrot.mu</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># $ ./translate_emulated apps/mandelbrot.mu</span> <span id="L10" class="LineNr"> 10 </span><span class="muComment"># Run:</span> <span id="L11" class="LineNr"> 11 </span><span class="muComment"># $ qemu-system-i386 code.img</span> <span id="L12" class="LineNr"> 12 </span> -<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-silhouette.mu.html#L13'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L14" class="LineNr"> 14 </span> <a href='mandelbrot-silhouette.mu.html#L17'>mandelbrot</a> <a href='500fake-screen.mu.html#L14'>screen</a> +<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-silhouette.mu.html#L13'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L14" class="LineNr"> 14 </span> <a href='mandelbrot-silhouette.mu.html#L17'>mandelbrot</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L15" class="LineNr"> 15 </span><span class="Delimiter">}</span> <span id="L16" class="LineNr"> 16 </span> -<span id="L17" class="LineNr"> 17 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-silhouette.mu.html#L17'>mandelbrot</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> +<span id="L17" class="LineNr"> 17 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot-silhouette.mu.html#L17'>mandelbrot</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Delimiter">{</span> <span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> b/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L20" class="LineNr"> 20 </span> a, b <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> +<span id="L20" class="LineNr"> 20 </span> a, b <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> width/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy a <span id="L22" class="LineNr"> 22 </span> width <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width <span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> height/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy b @@ -98,12 +98,12 @@ if ('onhashchange' in window) { <span id="L36" class="LineNr"> 36 </span> compare iterations, <span class="Constant">0x400</span>/max <span id="L37" class="LineNr"> 37 </span> <span class="Delimiter">{</span> <span id="L38" class="LineNr"> 38 </span> <span class="PreProc">break-if->=</span> -<span id="L39" class="LineNr"> 39 </span> <a href='500fake-screen.mu.html#L483'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, <span class="Constant">0xf</span>/white +<span id="L39" class="LineNr"> 39 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, <span class="Constant">0xf</span>/white <span id="L40" class="LineNr"> 40 </span> <span class="Delimiter">}</span> <span id="L41" class="LineNr"> 41 </span> compare iterations, <span class="Constant">0x400</span>/max <span id="L42" class="LineNr"> 42 </span> <span class="Delimiter">{</span> <span id="L43" class="LineNr"> 43 </span> <span class="PreProc">break-if-<</span> -<span id="L44" class="LineNr"> 44 </span> <a href='500fake-screen.mu.html#L483'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, <span class="Constant">0</span>/black +<span id="L44" class="LineNr"> 44 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, <span class="Constant">0</span>/black <span id="L45" class="LineNr"> 45 </span> <span class="Delimiter">}</span> <span id="L46" class="LineNr"> 46 </span> x <span class="Special"><-</span> increment <span id="L47" class="LineNr"> 47 </span> <span class="PreProc">loop</span> diff --git a/html/mandelbrot.mu.html b/html/apps/mandelbrot.mu.html index 013dcab9..4f25d91b 100644 --- a/html/mandelbrot.mu.html +++ b/html/apps/mandelbrot.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - mandelbrot.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/mandelbrot.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -59,7 +59,7 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/mandelbrot.mu'>https://github.com/akkartik/mu/blob/main/mandelbrot.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/mandelbrot.mu'>https://github.com/akkartik/mu/blob/main/apps/mandelbrot.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Mandelbrot set</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> @@ -67,13 +67,13 @@ if ('onhashchange' in window) { <span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># Build on Linux:</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate mandelbrot.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate apps/mandelbrot.mu</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># Build on other platforms (slow):</span> -<span id="L9" class="LineNr"> 9 </span><span class="muComment"># $ ./translate_emulated mandelbrot.mu</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># $ ./translate_emulated apps/mandelbrot.mu</span> <span id="L10" class="LineNr"> 10 </span><span class="muComment"># Run:</span> <span id="L11" class="LineNr"> 11 </span><span class="muComment"># $ qemu-system-i386 code.img</span> <span id="L12" class="LineNr"> 12 </span> -<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L13'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L13'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L14" class="LineNr"> 14 </span> <span class="muComment"># Initially the viewport is centered at 0, 0 in the scene.</span> <span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> zero: float <span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> scene-cx/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy zero @@ -82,16 +82,16 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr"> 19 </span> <span class="muComment"># scene-width-scale = 0.5</span> <span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> scene-width-scale: float <span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> address scene-width-scale -<span id="L22" class="LineNr"> 22 </span> <a href='408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">1</span>, <span class="Constant">2</span> +<span id="L22" class="LineNr"> 22 </span> <a href='../408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">1</span>, <span class="Constant">2</span> <span id="L23" class="LineNr"> 23 </span> <span class="muComment"># scene-width = 4</span> <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> four: float <span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> address four -<span id="L26" class="LineNr"> 26 </span> <a href='408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">4</span>, <span class="Constant">1</span> +<span id="L26" class="LineNr"> 26 </span> <a href='../408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">4</span>, <span class="Constant">1</span> <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> scene-width/<span class="Constant">xmm3</span>: float <span class="Special"><-</span> copy four <span id="L28" class="LineNr"> 28 </span> <span class="Delimiter">{</span> -<span id="L29" class="LineNr"> 29 </span> <a href='mandelbrot.mu.html#L41'>mandelbrot</a> <a href='500fake-screen.mu.html#L14'>screen</a> scene-cx, scene-cy, scene-width +<span id="L29" class="LineNr"> 29 </span> <a href='mandelbrot.mu.html#L41'>mandelbrot</a> <a href='../500fake-screen.mu.html#L14'>screen</a> scene-cx, scene-cy, scene-width <span id="L30" class="LineNr"> 30 </span> <span class="muComment"># move the center some % of the current screen-width</span> -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> adj/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='408float.mu.html#L18'>rational</a> <span class="Constant">2</span>, <span class="Constant">0x1c</span>/<span class="Constant">28</span> +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> adj/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='../408float.mu.html#L18'>rational</a> <span class="Constant">2</span>, <span class="Constant">0x1c</span>/<span class="Constant">28</span> <span id="L32" class="LineNr"> 32 </span> adj <span class="Special"><-</span> multiply scene-width <span id="L33" class="LineNr"> 33 </span> scene-cx <span class="Special"><-</span> subtract adj <span id="L34" class="LineNr"> 34 </span> scene-cy <span class="Special"><-</span> add adj @@ -101,10 +101,10 @@ if ('onhashchange' in window) { <span id="L38" class="LineNr"> 38 </span> <span class="Delimiter">}</span> <span id="L39" class="LineNr"> 39 </span><span class="Delimiter">}</span> <span id="L40" class="LineNr"> 40 </span> -<span id="L41" class="LineNr"> 41 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L41'>mandelbrot</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), scene-cx: float, scene-cy: float, scene-width: float <span class="Delimiter">{</span> +<span id="L41" class="LineNr"> 41 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L41'>mandelbrot</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), scene-cx: float, scene-cy: float, scene-width: float <span class="Delimiter">{</span> <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> b/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L44" class="LineNr"> 44 </span> a, b <span class="Special"><-</span> <a href='500fake-screen.mu.html#L86'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> +<span id="L44" class="LineNr"> 44 </span> a, b <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> width/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy a <span id="L46" class="LineNr"> 46 </span> width <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width <span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> height/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy b @@ -122,9 +122,9 @@ if ('onhashchange' in window) { <span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> iterations/eax: int <span class="Special"><-</span> <a href='mandelbrot.mu.html#L73'>mandelbrot-iterations-for-point</a> real, imaginary, <span class="Constant">0x400</span>/max <span id="L60" class="LineNr"> 60 </span> iterations <span class="Special"><-</span> shift-right <span class="Constant">3</span> <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> color/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L62" class="LineNr"> 62 </span> iterations, color <span class="Special"><-</span> <a href='314divide.subx.html#L3'>integer-divide</a> iterations, <span class="Constant">0x18</span>/<span class="Constant">24</span>/size-of-cycle-0 +<span id="L62" class="LineNr"> 62 </span> iterations, color <span class="Special"><-</span> <a href='../314divide.subx.html#L3'>integer-divide</a> iterations, <span class="Constant">0x18</span>/<span class="Constant">24</span>/size-of-cycle-0 <span id="L63" class="LineNr"> 63 </span> color <span class="Special"><-</span> add <span class="Constant">0x20</span>/cycle-0 -<span id="L64" class="LineNr"> 64 </span> <a href='500fake-screen.mu.html#L483'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, color +<span id="L64" class="LineNr"> 64 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color <span id="L65" class="LineNr"> 65 </span> x <span class="Special"><-</span> increment <span id="L66" class="LineNr"> 66 </span> <span class="PreProc">loop</span> <span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">}</span> diff --git a/html/rpn.mu.html b/html/apps/rpn.mu.html index d2cf842c..a81eb74e 100644 --- a/html/rpn.mu.html +++ b/html/apps/rpn.mu.html @@ -1,34 +1,34 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - rpn.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - apps/rpn.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -58,7 +58,7 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/rpn.mu'>https://github.com/akkartik/mu/blob/main/rpn.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/apps/rpn.mu'>https://github.com/akkartik/mu/blob/main/apps/rpn.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Integer arithmetic using postfix notation</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> @@ -66,7 +66,7 @@ if ('onhashchange' in window) { <span id="L4" class="LineNr"> 4 </span><span class="muComment"># Division not implemented yet.</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment">#</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># To build:</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate rpn.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate apps/rpn.mu</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> <span id="L9" class="LineNr"> 9 </span><span class="muComment"># Example session:</span> <span id="L10" class="LineNr"> 10 </span><span class="muComment"># $ qemu-system-i386 code.img</span> @@ -77,7 +77,7 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr"> 15 </span><span class="muComment">#</span> <span id="L16" class="LineNr"> 16 </span><span class="muComment"># Error handling is non-existent. This is just a prototype.</span> <span id="L17" class="LineNr"> 17 </span> -<span id="L18" class="LineNr"> 18 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L18'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L18" class="LineNr"> 18 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L18'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> in-storage: (stream byte <span class="Constant">0x80</span>) <span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address in-storage <span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> @@ -85,30 +85,30 @@ if ('onhashchange' in window) { <span id="L23" class="LineNr"> 23 </span> <span class="muComment"># read-eval-print loop</span> <span id="L24" class="LineNr"> 24 </span> <span class="Delimiter">{</span> <span id="L25" class="LineNr"> 25 </span> <span class="muComment"># print prompt</span> -<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"> "</span>, <span class="Constant">0</span>/x, <span class="Constant">0x80</span>/xmax, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg +<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"> "</span>, <span class="Constant">0</span>/x, <span class="Constant">0x80</span>/xmax, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg <span id="L27" class="LineNr"> 27 </span> <span class="muComment"># read line from keyboard</span> -<span id="L28" class="LineNr"> 28 </span> <a href='106stream.subx.html#L20'>clear-stream</a> in +<span id="L28" class="LineNr"> 28 </span> <a href='../106stream.subx.html#L20'>clear-stream</a> in <span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">{</span> -<span id="L30" class="LineNr"> 30 </span> <a href='500fake-screen.mu.html#L237'>draw-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, space -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard +<span id="L30" class="LineNr"> 30 </span> <a href='../500fake-screen.mu.html#L237'>draw-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, space +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard <span id="L32" class="LineNr"> 32 </span> compare key, <span class="Constant">0xa</span>/newline <span id="L33" class="LineNr"> 33 </span> <span class="PreProc">break-if-=</span> <span id="L34" class="LineNr"> 34 </span> compare key, <span class="Constant">0</span> <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">loop-if-=</span> <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> key2/eax: int <span class="Special"><-</span> copy key -<span id="L37" class="LineNr"> 37 </span> <a href='115write-byte.subx.html#L12'>append-byte</a> in, key2 +<span id="L37" class="LineNr"> 37 </span> <a href='../115write-byte.subx.html#L12'>append-byte</a> in, key2 <span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy key2 -<span id="L39" class="LineNr"> 39 </span> <a href='501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg -<span id="L40" class="LineNr"> 40 </span> <a href='501draw-text.mu.html#L16'>move-cursor-right</a> <span class="Constant">0</span> +<span id="L39" class="LineNr"> 39 </span> <a href='../501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, g, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg +<span id="L40" class="LineNr"> 40 </span> <a href='../501draw-text.mu.html#L16'>move-cursor-right</a> <span class="Constant">0</span> <span id="L41" class="LineNr"> 41 </span> <span class="PreProc">loop</span> <span id="L42" class="LineNr"> 42 </span> <span class="Delimiter">}</span> <span id="L43" class="LineNr"> 43 </span> <span class="muComment"># clear cursor</span> -<span id="L44" class="LineNr"> 44 </span> <a href='501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, space, <span class="Constant">3</span>/fg/never-used, <span class="Constant">0</span>/bg +<span id="L44" class="LineNr"> 44 </span> <a href='../501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, space, <span class="Constant">3</span>/fg/never-used, <span class="Constant">0</span>/bg <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># parse and eval</span> <span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> out/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L62'>simplify</a> in <span id="L47" class="LineNr"> 47 </span> <span class="muComment"># print</span> <span id="L48" class="LineNr"> 48 </span> y <span class="Special"><-</span> increment -<span id="L49" class="LineNr"> 49 </span> out, y <span class="Special"><-</span> <a href='501draw-text.mu.html#L340'>draw-int32-decimal-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, out, <span class="Constant">0</span>/xmin, y, <span class="Constant">0x80</span>/xmax, <span class="Constant">0x30</span>/ymax, <span class="Constant">0</span>/x, y, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg +<span id="L49" class="LineNr"> 49 </span> out, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L340'>draw-int32-decimal-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, out, <span class="Constant">0</span>/xmin, y, <span class="Constant">0x80</span>/xmax, <span class="Constant">0x30</span>/ymax, <span class="Constant">0</span>/x, y, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg <span id="L50" class="LineNr"> 50 </span> <span class="muComment"># newline</span> <span id="L51" class="LineNr"> 51 </span> y <span class="Special"><-</span> increment <span id="L52" class="LineNr"> 52 </span> <span class="muComment">#</span> @@ -128,13 +128,13 @@ if ('onhashchange' in window) { <span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> stack/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L57'>int-stack</a>) <span class="Special"><-</span> address stack-storage <span id="L67" class="LineNr"> 67 </span> <a href='rpn.mu.html#L116'>initialize-int-stack</a> stack, <span class="Constant">0x10</span> <span id="L68" class="LineNr"> 68 </span> $simplify:word-loop: <span class="Delimiter">{</span> -<span id="L69" class="LineNr"> 69 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, word -<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L9'>slice-empty?</a> word +<span id="L69" class="LineNr"> 69 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, word +<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L9'>slice-empty?</a> word <span id="L71" class="LineNr"> 71 </span> compare done?, <span class="Constant">0</span> <span id="L72" class="LineNr"> 72 </span> <span class="PreProc">break-if-!=</span> <span id="L73" class="LineNr"> 73 </span> <span class="muComment"># if word is an operator, perform it</span> <span id="L74" class="LineNr"> 74 </span> <span class="Delimiter">{</span> -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> is-add?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"+"</span> +<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> is-add?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"+"</span> <span id="L76" class="LineNr"> 76 </span> compare is-add?, <span class="Constant">0</span> <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">break-if-=</span> <span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack @@ -145,7 +145,7 @@ if ('onhashchange' in window) { <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L84" class="LineNr"> 84 </span> <span class="Delimiter">}</span> <span id="L85" class="LineNr"> 85 </span> <span class="Delimiter">{</span> -<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> is-sub?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"-"</span> +<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> is-sub?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"-"</span> <span id="L87" class="LineNr"> 87 </span> compare is-sub?, <span class="Constant">0</span> <span id="L88" class="LineNr"> 88 </span> <span class="PreProc">break-if-=</span> <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack @@ -156,7 +156,7 @@ if ('onhashchange' in window) { <span id="L94" class="LineNr"> 94 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L95" class="LineNr"> 95 </span> <span class="Delimiter">}</span> <span id="L96" class="LineNr"> 96 </span> <span class="Delimiter">{</span> -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> is-mul?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"*"</span> +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> is-mul?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"*"</span> <span id="L98" class="LineNr"> 98 </span> compare is-mul?, <span class="Constant">0</span> <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">break-if-=</span> <span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L136'>pop-int-stack</a> stack @@ -167,7 +167,7 @@ if ('onhashchange' in window) { <span id="L105" class="LineNr">105 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L106" class="LineNr">106 </span> <span class="Delimiter">}</span> <span id="L107" class="LineNr">107 </span> <span class="muComment"># otherwise it's an int</span> -<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> word +<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> word <span id="L109" class="LineNr">109 </span> <a href='rpn.mu.html#L124'>push-int-stack</a> stack, n <span id="L110" class="LineNr">110 </span> <span class="PreProc">loop</span> <span id="L111" class="LineNr">111 </span> <span class="Delimiter">}</span> @@ -187,7 +187,7 @@ if ('onhashchange' in window) { <span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L57'>int-stack</a>) <span class="Special"><-</span> copy _self <span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> get self, data -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> top/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> index data, top <span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy _val @@ -205,7 +205,7 @@ if ('onhashchange' in window) { <span id="L143" class="LineNr">143 </span> <span class="Delimiter">}</span> <span id="L144" class="LineNr">144 </span> subtract-from *top-addr, <span class="Constant">1</span> <span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> get self, data -<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> top/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> result-addr/eax: (addr int) <span class="Special"><-</span> index data, top <span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy *result-addr diff --git a/html/boot.subx.html b/html/boot.subx.html index 5716fe64..2244181e 100644 --- a/html/boot.subx.html +++ b/html/boot.subx.html @@ -1,23 +1,23 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - boot.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxS1Comment { color: #0000af; } .LineNr { } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } .CommentedCode { color: #8a8a8a; } .SpecialChar { color: #d70000; } .Constant { color: #008787; } @@ -26,7 +26,7 @@ a { color:inherit; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -138,7 +138,7 @@ if ('onhashchange' in window) { <span id="L78" class="LineNr"> 78 </span> 8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es <span id="L79" class="LineNr"> 79 </span> bb/copy-to-bx 0x7e00/imm16 <span class="subxComment"># <====</span> <span id="L80" class="LineNr"> 80 </span> cd/syscall 0x13/imm8/bios-disk-services -<span id="L81" class="LineNr"> 81 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L189'>disk_error</a>/disp16 +<span id="L81" class="LineNr"> 81 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L203'>disk_error</a>/disp16 <span id="L82" class="LineNr"> 82 </span> <span id="L83" class="LineNr"> 83 </span> <span class="subxComment"># load two more tracks of disk into addresses [0x17800, 0x27400)</span> <span id="L84" class="LineNr"> 84 </span> b4/copy-to-ah 2/imm8/read-drive @@ -152,7 +152,7 @@ if ('onhashchange' in window) { <span id="L92" class="LineNr"> 92 </span> 8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es <span id="L93" class="LineNr"> 93 </span> bb/copy-to-bx 0/imm16 <span id="L94" class="LineNr"> 94 </span> cd/syscall 0x13/imm8/bios-disk-services -<span id="L95" class="LineNr"> 95 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L189'>disk_error</a>/disp16 +<span id="L95" class="LineNr"> 95 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L203'>disk_error</a>/disp16 <span id="L96" class="LineNr"> 96 </span> <span id="L97" class="LineNr"> 97 </span> <span class="subxComment"># load two more tracks of disk into addresses [0x27400, 0x37000)</span> <span id="L98" class="LineNr"> 98 </span> b4/copy-to-ah 2/imm8/read-drive @@ -166,7 +166,7 @@ if ('onhashchange' in window) { <span id="L106" class="LineNr"> 106 </span> 8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es <span id="L107" class="LineNr"> 107 </span> bb/copy-to-bx 0/imm16 <span id="L108" class="LineNr"> 108 </span> cd/syscall 0x13/imm8/bios-disk-services -<span id="L109" class="LineNr"> 109 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L189'>disk_error</a>/disp16 +<span id="L109" class="LineNr"> 109 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L203'>disk_error</a>/disp16 <span id="L110" class="LineNr"> 110 </span> <span id="L111" class="LineNr"> 111 </span> <span class="subxComment"># load two more tracks of disk into addresses [0x37000, 0x46c00)</span> <span id="L112" class="LineNr"> 112 </span> b4/copy-to-ah 2/imm8/read-drive @@ -180,7 +180,7 @@ if ('onhashchange' in window) { <span id="L120" class="LineNr"> 120 </span> 8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es <span id="L121" class="LineNr"> 121 </span> bb/copy-to-bx 0/imm16 <span id="L122" class="LineNr"> 122 </span> cd/syscall 0x13/imm8/bios-disk-services -<span id="L123" class="LineNr"> 123 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L189'>disk_error</a>/disp16 +<span id="L123" class="LineNr"> 123 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L203'>disk_error</a>/disp16 <span id="L124" class="LineNr"> 124 </span> <span id="L125" class="LineNr"> 125 </span> <span class="subxComment"># load two more tracks of disk into addresses [0x46c00, 0x56800)</span> <span id="L126" class="LineNr"> 126 </span> b4/copy-to-ah 2/imm8/read-drive @@ -194,7 +194,7 @@ if ('onhashchange' in window) { <span id="L134" class="LineNr"> 134 </span> 8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es <span id="L135" class="LineNr"> 135 </span> bb/copy-to-bx 0/imm16 <span id="L136" class="LineNr"> 136 </span> cd/syscall 0x13/imm8/bios-disk-services -<span id="L137" class="LineNr"> 137 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L189'>disk_error</a>/disp16 +<span id="L137" class="LineNr"> 137 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L203'>disk_error</a>/disp16 <span id="L138" class="LineNr"> 138 </span> <span id="L139" class="LineNr"> 139 </span> <span class="subxComment"># load two more tracks of disk into addresses [0x56800, 0x66400)</span> <span id="L140" class="LineNr"> 140 </span> b4/copy-to-ah 2/imm8/read-drive @@ -208,628 +208,636 @@ if ('onhashchange' in window) { <span id="L148" class="LineNr"> 148 </span> 8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es <span id="L149" class="LineNr"> 149 </span> bb/copy-to-bx 0/imm16 <span id="L150" class="LineNr"> 150 </span> cd/syscall 0x13/imm8/bios-disk-services -<span id="L151" class="LineNr"> 151 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L189'>disk_error</a>/disp16 +<span id="L151" class="LineNr"> 151 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L203'>disk_error</a>/disp16 <span id="L152" class="LineNr"> 152 </span> -<span id="L153" class="LineNr"> 153 </span> <span class="subxComment"># reset es</span> -<span id="L154" class="LineNr"> 154 </span> bb/copy-to-bx 0/imm16 -<span id="L155" class="LineNr"> 155 </span> 8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es -<span id="L156" class="LineNr"> 156 </span> -<span id="L157" class="LineNr"> 157 </span> <span class="subxComment"># adjust video mode</span> -<span id="L158" class="LineNr"> 158 </span> b4/copy-to-ah 0x4f/imm8 <span class="subxComment"># VBE commands</span> -<span id="L159" class="LineNr"> 159 </span> b0/copy-to-al 2/imm8 <span class="subxComment"># set video mode</span> -<span id="L160" class="LineNr"> 160 </span> bb/copy-to-bx 0x4105/imm16 <span class="subxComment"># 0x0105 | 0x4000</span> -<span id="L161" class="LineNr"> 161 </span> <span class="subxComment"># 0x0105 = graphics mode 1024x768x256</span> -<span id="L162" class="LineNr"> 162 </span> <span class="subxComment"># (alternative candidate: 0x0101 for 640x480x256)</span> -<span id="L163" class="LineNr"> 163 </span> <span class="subxComment"># 0x4000 bit = configure linear frame buffer in Bochs emulator; hopefully this doesn't hurt anything when running natively</span> -<span id="L164" class="LineNr"> 164 </span> cd/syscall 0x10/imm8/bios-video-services -<span id="L165" class="LineNr"> 165 </span> -<span id="L166" class="LineNr"> 166 </span> <span class="subxComment"># load information for the (hopefully) current video mode</span> -<span id="L167" class="LineNr"> 167 </span> <span class="subxComment"># mostly just for the address to the linear frame buffer</span> -<span id="L168" class="LineNr"> 168 </span> b4/copy-to-ah 0x4f/imm8 <span class="subxComment"># VBE commands</span> -<span id="L169" class="LineNr"> 169 </span> b0/copy-to-al 1/imm8 <span class="subxComment"># get video mode info</span> -<span id="L170" class="LineNr"> 170 </span> b9/copy-to-cx 0x0105/imm16 <span class="subxComment"># mode we requested</span> -<span id="L171" class="LineNr"> 171 </span> bf/copy-to-di <span class="SpecialChar"><a href='boot.subx.html#L616'>Video-mode-info</a></span>/imm16 -<span id="L172" class="LineNr"> 172 </span> cd/syscall 0x10/imm8/bios-video-services -<span id="L173" class="LineNr"> 173 </span> -<span id="L174" class="LineNr"> 174 </span> <span class="subxComment">## switch to 32-bit mode</span> -<span id="L175" class="LineNr"> 175 </span> <span class="subxComment"># load global descriptor table</span> -<span id="L176" class="LineNr"> 176 </span> <span class="subxComment"># We can't refer to the label directly because SubX doesn't do the right</span> -<span id="L177" class="LineNr"> 177 </span> <span class="subxComment"># thing for lgdt, so rather than make errors worse in most places we instead</span> -<span id="L178" class="LineNr"> 178 </span> <span class="subxComment"># pin gdt_descriptor below.</span> -<span id="L179" class="LineNr"> 179 </span> 0f 01 2/subop/lgdt 0/mod/indirect 6/rm32/use-disp16 0x7de0/disp16/gdt_descriptor -<span id="L180" class="LineNr"> 180 </span> <span class="subxComment"># enable paging</span> -<span id="L181" class="LineNr"> 181 </span> 0f 20/<-cr 3/mod/direct 0/rm32/eax 0/r32/cr0 -<span id="L182" class="LineNr"> 182 </span> 66 83 1/subop/or 3/mod/direct 0/rm32/eax 1/imm8 <span class="subxComment"># eax <- or 0x1</span> -<span id="L183" class="LineNr"> 183 </span> 0f 22/->cr 3/mod/direct 0/rm32/eax 0/r32/cr0 -<span id="L184" class="LineNr"> 184 </span> <span class="subxComment"># far jump to initialize_32bit_mode that sets cs to offset 8 in the gdt in the process</span> -<span id="L185" class="LineNr"> 185 </span> <span class="subxComment"># We can't refer to the label directly because SubX doesn't have syntax for</span> -<span id="L186" class="LineNr"> 186 </span> <span class="subxComment"># segment selectors. So we instead pin initialize_32bit_mode below.</span> -<span id="L187" class="LineNr"> 187 </span> ea/jump-far-absolute 0x00087e00/disp32 <span class="subxComment"># address 0x7e00 in offset 8 of the gdt</span> -<span id="L188" class="LineNr"> 188 </span> -<span id="L189" class="LineNr"> 189 </span><span class="subxFunction">disk_error</span>: -<span id="L190" class="LineNr"> 190 </span> <span class="subxComment"># print 'D' to top-left of screen to indicate disk error</span> -<span id="L191" class="LineNr"> 191 </span> <span class="subxComment"># *0xb8000 <- 0x0f44</span> -<span id="L192" class="LineNr"> 192 </span> bb/copy-to-bx 0xb800/imm16 -<span id="L193" class="LineNr"> 193 </span> 8e/->seg 3/mod/direct 3/rm32/bx 3/r32/ds -<span id="L194" class="LineNr"> 194 </span> b0/copy-to-al 0x44/imm8/D -<span id="L195" class="LineNr"> 195 </span> b4/copy-to-ah 0x0f/imm8/white-on-black -<span id="L196" class="LineNr"> 196 </span> bb/copy-to-bx 0/imm16 -<span id="L197" class="LineNr"> 197 </span> 89/<- 0/mod/indirect 7/rm32/bx 0/r32/ax <span class="subxComment"># *ds:bx <- ax</span> -<span id="L198" class="LineNr"> 198 </span> <span class="subxComment"># loop forever</span> -<span id="L199" class="LineNr"> 199 </span> { -<span id="L200" class="LineNr"> 200 </span> eb/jump <span class="Constant">loop</span>/disp8 -<span id="L201" class="LineNr"> 201 </span> } +<span id="L153" class="LineNr"> 153 </span> <span class="subxComment"># load two more tracks of disk into addresses [0x66400, 0x76000)</span> +<span id="L154" class="LineNr"> 154 </span> b4/copy-to-ah 2/imm8/read-drive +<span id="L155" class="LineNr"> 155 </span> <span class="subxComment"># dl comes conveniently initialized at boot time with the index of the device being booted</span> +<span id="L156" class="LineNr"> 156 </span> b5/copy-to-ch 0/imm8/cylinder +<span id="L157" class="LineNr"> 157 </span> b6/copy-to-dh 0xc/imm8/head <span class="subxComment"># <====</span> +<span id="L158" class="LineNr"> 158 </span> b1/copy-to-cl 1/imm8/sector <span class="subxComment"># 1-based</span> +<span id="L159" class="LineNr"> 159 </span> b0/copy-to-al 0x7e/imm8/num-sectors <span class="subxComment"># 2*63 = 126</span> +<span id="L160" class="LineNr"> 160 </span> <span class="subxComment"># address to write sectors to = es:bx = 0x56800, contiguous with boot segment</span> +<span id="L161" class="LineNr"> 161 </span> bb/copy-to-bx 0x6640/imm16 <span class="subxComment"># <====</span> +<span id="L162" class="LineNr"> 162 </span> 8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es +<span id="L163" class="LineNr"> 163 </span> bb/copy-to-bx 0/imm16 +<span id="L164" class="LineNr"> 164 </span> cd/syscall 0x13/imm8/bios-disk-services +<span id="L165" class="LineNr"> 165 </span> 0f 82/jump-if-carry <a href='boot.subx.html#L203'>disk_error</a>/disp16 +<span id="L166" class="LineNr"> 166 </span> +<span id="L167" class="LineNr"> 167 </span> <span class="subxComment"># reset es</span> +<span id="L168" class="LineNr"> 168 </span> bb/copy-to-bx 0/imm16 +<span id="L169" class="LineNr"> 169 </span> 8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es +<span id="L170" class="LineNr"> 170 </span> +<span id="L171" class="LineNr"> 171 </span> <span class="subxComment"># adjust video mode</span> +<span id="L172" class="LineNr"> 172 </span> b4/copy-to-ah 0x4f/imm8 <span class="subxComment"># VBE commands</span> +<span id="L173" class="LineNr"> 173 </span> b0/copy-to-al 2/imm8 <span class="subxComment"># set video mode</span> +<span id="L174" class="LineNr"> 174 </span> bb/copy-to-bx 0x4105/imm16 <span class="subxComment"># 0x0105 | 0x4000</span> +<span id="L175" class="LineNr"> 175 </span> <span class="subxComment"># 0x0105 = graphics mode 1024x768x256</span> +<span id="L176" class="LineNr"> 176 </span> <span class="subxComment"># (alternative candidate: 0x0101 for 640x480x256)</span> +<span id="L177" class="LineNr"> 177 </span> <span class="subxComment"># 0x4000 bit = configure linear frame buffer in Bochs emulator; hopefully this doesn't hurt anything when running natively</span> +<span id="L178" class="LineNr"> 178 </span> cd/syscall 0x10/imm8/bios-video-services +<span id="L179" class="LineNr"> 179 </span> +<span id="L180" class="LineNr"> 180 </span> <span class="subxComment"># load information for the (hopefully) current video mode</span> +<span id="L181" class="LineNr"> 181 </span> <span class="subxComment"># mostly just for the address to the linear frame buffer</span> +<span id="L182" class="LineNr"> 182 </span> b4/copy-to-ah 0x4f/imm8 <span class="subxComment"># VBE commands</span> +<span id="L183" class="LineNr"> 183 </span> b0/copy-to-al 1/imm8 <span class="subxComment"># get video mode info</span> +<span id="L184" class="LineNr"> 184 </span> b9/copy-to-cx 0x0105/imm16 <span class="subxComment"># mode we requested</span> +<span id="L185" class="LineNr"> 185 </span> bf/copy-to-di <span class="SpecialChar"><a href='boot.subx.html#L617'>Video-mode-info</a></span>/imm16 +<span id="L186" class="LineNr"> 186 </span> cd/syscall 0x10/imm8/bios-video-services +<span id="L187" class="LineNr"> 187 </span> +<span id="L188" class="LineNr"> 188 </span> <span class="subxComment">## switch to 32-bit mode</span> +<span id="L189" class="LineNr"> 189 </span> <span class="subxComment"># load global descriptor table</span> +<span id="L190" class="LineNr"> 190 </span> <span class="subxComment"># We can't refer to the label directly because SubX doesn't do the right</span> +<span id="L191" class="LineNr"> 191 </span> <span class="subxComment"># thing for lgdt, so rather than make errors worse in most places we instead</span> +<span id="L192" class="LineNr"> 192 </span> <span class="subxComment"># pin gdt_descriptor below.</span> +<span id="L193" class="LineNr"> 193 </span> 0f 01 2/subop/lgdt 0/mod/indirect 6/rm32/use-disp16 0x7de0/disp16/gdt_descriptor +<span id="L194" class="LineNr"> 194 </span> <span class="subxComment"># enable paging</span> +<span id="L195" class="LineNr"> 195 </span> 0f 20/<-cr 3/mod/direct 0/rm32/eax 0/r32/cr0 +<span id="L196" class="LineNr"> 196 </span> 66 83 1/subop/or 3/mod/direct 0/rm32/eax 1/imm8 <span class="subxComment"># eax <- or 0x1</span> +<span id="L197" class="LineNr"> 197 </span> 0f 22/->cr 3/mod/direct 0/rm32/eax 0/r32/cr0 +<span id="L198" class="LineNr"> 198 </span> <span class="subxComment"># far jump to initialize_32bit_mode that sets cs to offset 8 in the gdt in the process</span> +<span id="L199" class="LineNr"> 199 </span> <span class="subxComment"># We can't refer to the label directly because SubX doesn't have syntax for</span> +<span id="L200" class="LineNr"> 200 </span> <span class="subxComment"># segment selectors. So we instead pin initialize_32bit_mode below.</span> +<span id="L201" class="LineNr"> 201 </span> ea/jump-far-absolute 0x00087e00/disp32 <span class="subxComment"># address 0x7e00 in offset 8 of the gdt</span> <span id="L202" class="LineNr"> 202 </span> -<span id="L203" class="LineNr"> 203 </span><span class="subxComment">## GDT: 3 records of 8 bytes each</span> -<span id="L204" class="LineNr"> 204 </span>== data 0x7de0 -<span id="L205" class="LineNr"> 205 </span><span class="subxFunction">gdt_descriptor</span>: -<span id="L206" class="LineNr"> 206 </span> 0x17/imm16 <span class="subxComment"># final index of gdt = size of gdt - 1</span> -<span id="L207" class="LineNr"> 207 </span> <a href='boot.subx.html#L209'>gdt_start</a>/imm32/start -<span id="L208" class="LineNr"> 208 </span> -<span id="L209" class="LineNr"> 209 </span><span class="subxFunction">gdt_start</span>: -<span id="L210" class="LineNr"> 210 </span><span class="subxComment"># offset 0: gdt_null: mandatory null descriptor</span> -<span id="L211" class="LineNr"> 211 </span> 00 00 00 00 00 00 00 00 -<span id="L212" class="LineNr"> 212 </span><span class="subxComment"># offset 8: gdt_code</span> -<span id="L213" class="LineNr"> 213 </span> ff ff <span class="subxComment"># limit[0:16]</span> -<span id="L214" class="LineNr"> 214 </span> 00 00 00 <span class="subxComment"># base[0:24]</span> -<span id="L215" class="LineNr"> 215 </span> 9a <span class="subxComment"># 1/present 00/privilege 1/descriptor type = 1001b</span> -<span id="L216" class="LineNr"> 216 </span> <span class="subxComment"># 1/code 0/conforming 1/readable 0/accessed = 1010b</span> -<span id="L217" class="LineNr"> 217 </span> cf <span class="subxComment"># 1/granularity 1/32-bit 0/64-bit-segment 0/AVL = 1100b</span> -<span id="L218" class="LineNr"> 218 </span> <span class="subxComment"># limit[16:20] = 1111b</span> -<span id="L219" class="LineNr"> 219 </span> 00 <span class="subxComment"># base[24:32]</span> -<span id="L220" class="LineNr"> 220 </span><span class="subxComment"># offset 16: gdt_data</span> -<span id="L221" class="LineNr"> 221 </span> ff ff <span class="subxComment"># limit[0:16]</span> -<span id="L222" class="LineNr"> 222 </span> 00 00 00 <span class="subxComment"># base[0:24]</span> -<span id="L223" class="LineNr"> 223 </span> 92 <span class="subxComment"># 1/present 00/privilege 1/descriptor type = 1001b</span> -<span id="L224" class="LineNr"> 224 </span> <span class="subxComment"># 0/data 0/conforming 1/readable 0/accessed = 0010b</span> -<span id="L225" class="LineNr"> 225 </span> cf <span class="subxComment"># same as gdt_code</span> -<span id="L226" class="LineNr"> 226 </span> 00 <span class="subxComment"># base[24:32]</span> -<span id="L227" class="LineNr"> 227 </span><span class="subxComment"># gdt_end:</span> -<span id="L228" class="LineNr"> 228 </span> -<span id="L229" class="LineNr"> 229 </span>== boot-sector-marker 0x7dfe -<span id="L230" class="LineNr"> 230 </span><span class="subxComment"># final 2 bytes of boot sector</span> -<span id="L231" class="LineNr"> 231 </span>55 aa -<span id="L232" class="LineNr"> 232 </span> -<span id="L233" class="LineNr"> 233 </span><span class="subxComment">## sector 2 onwards loaded by load_disk, not automatically on boot</span> -<span id="L234" class="LineNr"> 234 </span> -<span id="L235" class="LineNr"> 235 </span><span class="subxComment">## 32-bit code from this point</span> -<span id="L236" class="LineNr"> 236 </span> -<span id="L237" class="LineNr"> 237 </span>== code 0x7e00 -<span id="L238" class="LineNr"> 238 </span><span class="subxFunction">initialize_32bit_mode</span>: -<span id="L239" class="LineNr"> 239 </span> 66 b8/copy-to-ax 0x10/imm16 <span class="subxComment"># offset 16 from gdt_start</span> -<span id="L240" class="LineNr"> 240 </span> 8e/->seg 3/mod/direct 0/rm32/ax 3/r32/ds -<span id="L241" class="LineNr"> 241 </span> 8e/->seg 3/mod/direct 0/rm32/ax 2/r32/ss -<span id="L242" class="LineNr"> 242 </span> 8e/->seg 3/mod/direct 0/rm32/ax 0/r32/es -<span id="L243" class="LineNr"> 243 </span> 8e/->seg 3/mod/direct 0/rm32/ax 4/r32/fs -<span id="L244" class="LineNr"> 244 </span> 8e/->seg 3/mod/direct 0/rm32/ax 5/r32/gs -<span id="L245" class="LineNr"> 245 </span> -<span id="L246" class="LineNr"> 246 </span> bc/copy-to-esp 0x02000000/imm32 -<span id="L247" class="LineNr"> 247 </span> -<span id="L248" class="LineNr"> 248 </span> <span class="subxComment">## load interrupt handlers</span> -<span id="L249" class="LineNr"> 249 </span> <span class="subxComment"># We can't refer to the label directly because SubX doesn't do the right</span> -<span id="L250" class="LineNr"> 250 </span> <span class="subxComment"># thing for lidt, so rather than make errors worse in most places we instead</span> -<span id="L251" class="LineNr"> 251 </span> <span class="subxComment"># pin idt_descriptor below.</span> -<span id="L252" class="LineNr"> 252 </span> 0f 01 3/subop/lidt 0/mod/indirect 5/rm32/use-disp32 0x7f00/disp32/idt_descriptor -<span id="L253" class="LineNr"> 253 </span> -<span id="L254" class="LineNr"> 254 </span> <span class="subxComment"># For now, not bothering reprogramming the IRQ to not conflict with software</span> -<span id="L255" class="LineNr"> 255 </span> <span class="subxComment"># exceptions.</span> -<span id="L256" class="LineNr"> 256 </span> <span class="subxComment"># <a href="https://wiki.osdev.org/index.php?title=8259_PIC&oldid=24650#Protected_Mode">https://wiki.osdev.org/index.php?title=8259_PIC&oldid=24650#Protected_Mode</a></span> -<span id="L257" class="LineNr"> 257 </span> <span class="subxComment">#</span> -<span id="L258" class="LineNr"> 258 </span> <span class="subxComment"># Interrupt 1 (keyboard) conflicts with debugger faults. We don't use a</span> -<span id="L259" class="LineNr"> 259 </span> <span class="subxComment"># debugger.</span> -<span id="L260" class="LineNr"> 260 </span> <span class="subxComment"># Reference:</span> -<span id="L261" class="LineNr"> 261 </span> <span class="subxComment"># <a href="https://wiki.osdev.org/Exceptions">https://wiki.osdev.org/Exceptions</a></span> -<span id="L262" class="LineNr"> 262 </span> -<span id="L263" class="LineNr"> 263 </span> <span class="subxComment"># enable timer IRQ0 and keyboard IRQ1</span> -<span id="L264" class="LineNr"> 264 </span> b0/copy-to-al 0xfc/imm8 <span class="subxComment"># disable mask for IRQ0 and IRQ1</span> -<span id="L265" class="LineNr"> 265 </span> e6/write-al-into-port 0x21/imm8 -<span id="L266" class="LineNr"> 266 </span> -<span id="L267" class="LineNr"> 267 </span> fb/enable-interrupts -<span id="L268" class="LineNr"> 268 </span> -<span id="L269" class="LineNr"> 269 </span> (<a href='boot.subx.html#L1520'>initialize-mouse</a>) -<span id="L270" class="LineNr"> 270 </span> -<span id="L271" class="LineNr"> 271 </span> <span class="subxComment">## enable floating point</span> -<span id="L272" class="LineNr"> 272 </span> db/floating-point-coprocessor e3/initialize -<span id="L273" class="LineNr"> 273 </span> <span class="subxComment"># eax <- cr4</span> -<span id="L274" class="LineNr"> 274 </span> 0f 20/<-cr 3/mod/direct 0/rm32/eax 4/r32/cr4 -<span id="L275" class="LineNr"> 275 </span> <span class="subxComment"># eax <- or bit 9</span> -<span id="L276" class="LineNr"> 276 </span> 0f ba/bit-test 5/subop/bit-test-and-set 3/mod/direct 0/rm32/eax 9/imm8 -<span id="L277" class="LineNr"> 277 </span> <span class="subxComment"># cr4 <- eax</span> -<span id="L278" class="LineNr"> 278 </span> 0f 22/->cr 3/mod/direct 0/rm32/eax 4/r32/cr4 -<span id="L279" class="LineNr"> 279 </span> -<span id="L280" class="LineNr"> 280 </span> e9/jump <span class="SpecialChar">Entry</span>/disp32 -<span id="L281" class="LineNr"> 281 </span> -<span id="L282" class="LineNr"> 282 </span>== data 0x7f00 -<span id="L283" class="LineNr"> 283 </span><span class="subxFunction">idt_descriptor</span>: -<span id="L284" class="LineNr"> 284 </span> ff 03 <span class="subxComment"># final index of idt = size of idt - 1</span> -<span id="L285" class="LineNr"> 285 </span> <a href='boot.subx.html#L289'>idt_start</a>/imm32/start -<span id="L286" class="LineNr"> 286 </span> -<span id="L287" class="Folded"> 287 </span><span class="Folded">+-- 55 lines: # interrupt descriptor table ----------------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L342" class="LineNr"> 342 </span> -<span id="L343" class="LineNr"> 343 </span>== code -<span id="L344" class="LineNr"> 344 </span> -<span id="L345" class="LineNr"> 345 </span><span class="subxFunction">null-interrupt-handler</span>: -<span id="L346" class="LineNr"> 346 </span> <span class="subxComment"># prologue</span> -<span id="L347" class="LineNr"> 347 </span> <span class="subxComment"># Don't disable interrupts; the timer has the highest priority anyway,</span> -<span id="L348" class="LineNr"> 348 </span> <span class="subxComment"># and this interrupt triggers extremely frequently.</span> -<span id="L349" class="LineNr"> 349 </span> fa/disable-interrupts -<span id="L350" class="LineNr"> 350 </span> 60/push-all-registers -<span id="L351" class="LineNr"> 351 </span> 9c/push-flags -<span id="L352" class="LineNr"> 352 </span> <span class="subxComment"># acknowledge interrupt</span> -<span id="L353" class="LineNr"> 353 </span> b0/copy-to-al 0x20/imm8 -<span id="L354" class="LineNr"> 354 </span> e6/write-al-into-port 0x20/imm8 -<span id="L355" class="LineNr"> 355 </span> 31/xor %eax 0/r32/eax -<span id="L356" class="LineNr"> 356 </span><span class="Constant">$null-interrupt-handler:epilogue</span>: -<span id="L357" class="LineNr"> 357 </span> <span class="subxComment"># epilogue</span> -<span id="L358" class="LineNr"> 358 </span> 9d/pop-flags -<span id="L359" class="LineNr"> 359 </span> 61/pop-all-registers -<span id="L360" class="LineNr"> 360 </span> fb/enable-interrupts -<span id="L361" class="LineNr"> 361 </span> cf/return-from-interrupt -<span id="L362" class="LineNr"> 362 </span> -<span id="L363" class="LineNr"> 363 </span><span class="subxFunction">timer-interrupt-handler</span>: -<span id="L364" class="LineNr"> 364 </span> <span class="subxComment"># prologue</span> -<span id="L365" class="LineNr"> 365 </span> <span class="subxComment"># Don't disable interrupts; the timer has the highest priority anyway,</span> -<span id="L366" class="LineNr"> 366 </span> <span class="subxComment"># and this interrupt triggers extremely frequently.</span> -<span id="L367" class="LineNr"> 367 </span> fa/disable-interrupts -<span id="L368" class="LineNr"> 368 </span> 60/push-all-registers -<span id="L369" class="LineNr"> 369 </span> 9c/push-flags -<span id="L370" class="LineNr"> 370 </span> <span class="subxComment"># acknowledge interrupt</span> -<span id="L371" class="LineNr"> 371 </span> b0/copy-to-al 0x20/imm8 -<span id="L372" class="LineNr"> 372 </span> e6/write-al-into-port 0x20/imm8 -<span id="L373" class="LineNr"> 373 </span> 31/xor %eax 0/r32/eax -<span id="L374" class="LineNr"> 374 </span><span class="Constant">$timer-interrupt-handler:epilogue</span>: -<span id="L375" class="LineNr"> 375 </span> <span class="subxComment"># epilogue</span> -<span id="L376" class="LineNr"> 376 </span> 9d/pop-flags -<span id="L377" class="LineNr"> 377 </span> 61/pop-all-registers -<span id="L378" class="LineNr"> 378 </span> fb/enable-interrupts -<span id="L379" class="LineNr"> 379 </span> cf/return-from-interrupt +<span id="L203" class="LineNr"> 203 </span><span class="subxFunction">disk_error</span>: +<span id="L204" class="LineNr"> 204 </span> <span class="subxComment"># print 'D' to top-left of screen to indicate disk error</span> +<span id="L205" class="LineNr"> 205 </span> <span class="subxComment"># *0xb8000 <- 0x0f44</span> +<span id="L206" class="LineNr"> 206 </span> bb/copy-to-bx 0xb800/imm16 +<span id="L207" class="LineNr"> 207 </span> 8e/->seg 3/mod/direct 3/rm32/bx 3/r32/ds +<span id="L208" class="LineNr"> 208 </span> b0/copy-to-al 0x44/imm8/D +<span id="L209" class="LineNr"> 209 </span> b4/copy-to-ah 0x0f/imm8/white-on-black +<span id="L210" class="LineNr"> 210 </span> bb/copy-to-bx 0/imm16 +<span id="L211" class="LineNr"> 211 </span> 89/<- 0/mod/indirect 7/rm32/bx 0/r32/ax <span class="subxComment"># *ds:bx <- ax</span> +<span id="L212" class="LineNr"> 212 </span> <span class="subxComment"># loop forever</span> +<span id="L213" class="LineNr"> 213 </span> { +<span id="L214" class="LineNr"> 214 </span> eb/jump <span class="Constant">loop</span>/disp8 +<span id="L215" class="LineNr"> 215 </span> } +<span id="L216" class="LineNr"> 216 </span> +<span id="L217" class="LineNr"> 217 </span><span class="subxComment">## GDT: 3 records of 8 bytes each</span> +<span id="L218" class="LineNr"> 218 </span>== data 0x7de0 +<span id="L219" class="LineNr"> 219 </span><span class="subxFunction">gdt_descriptor</span>: +<span id="L220" class="LineNr"> 220 </span> 0x17/imm16 <span class="subxComment"># final index of gdt = size of gdt - 1</span> +<span id="L221" class="LineNr"> 221 </span> <a href='boot.subx.html#L223'>gdt_start</a>/imm32/start +<span id="L222" class="LineNr"> 222 </span> +<span id="L223" class="LineNr"> 223 </span><span class="subxFunction">gdt_start</span>: +<span id="L224" class="LineNr"> 224 </span><span class="subxComment"># offset 0: gdt_null: mandatory null descriptor</span> +<span id="L225" class="LineNr"> 225 </span> 00 00 00 00 00 00 00 00 +<span id="L226" class="LineNr"> 226 </span><span class="subxComment"># offset 8: gdt_code</span> +<span id="L227" class="LineNr"> 227 </span> ff ff <span class="subxComment"># limit[0:16]</span> +<span id="L228" class="LineNr"> 228 </span> 00 00 00 <span class="subxComment"># base[0:24]</span> +<span id="L229" class="LineNr"> 229 </span> 9a <span class="subxComment"># 1/present 00/privilege 1/descriptor type = 1001b</span> +<span id="L230" class="LineNr"> 230 </span> <span class="subxComment"># 1/code 0/conforming 1/readable 0/accessed = 1010b</span> +<span id="L231" class="LineNr"> 231 </span> cf <span class="subxComment"># 1/granularity 1/32-bit 0/64-bit-segment 0/AVL = 1100b</span> +<span id="L232" class="LineNr"> 232 </span> <span class="subxComment"># limit[16:20] = 1111b</span> +<span id="L233" class="LineNr"> 233 </span> 00 <span class="subxComment"># base[24:32]</span> +<span id="L234" class="LineNr"> 234 </span><span class="subxComment"># offset 16: gdt_data</span> +<span id="L235" class="LineNr"> 235 </span> ff ff <span class="subxComment"># limit[0:16]</span> +<span id="L236" class="LineNr"> 236 </span> 00 00 00 <span class="subxComment"># base[0:24]</span> +<span id="L237" class="LineNr"> 237 </span> 92 <span class="subxComment"># 1/present 00/privilege 1/descriptor type = 1001b</span> +<span id="L238" class="LineNr"> 238 </span> <span class="subxComment"># 0/data 0/conforming 1/readable 0/accessed = 0010b</span> +<span id="L239" class="LineNr"> 239 </span> cf <span class="subxComment"># same as gdt_code</span> +<span id="L240" class="LineNr"> 240 </span> 00 <span class="subxComment"># base[24:32]</span> +<span id="L241" class="LineNr"> 241 </span><span class="subxComment"># gdt_end:</span> +<span id="L242" class="LineNr"> 242 </span> +<span id="L243" class="LineNr"> 243 </span>== boot-sector-marker 0x7dfe +<span id="L244" class="LineNr"> 244 </span><span class="subxComment"># final 2 bytes of boot sector</span> +<span id="L245" class="LineNr"> 245 </span>55 aa +<span id="L246" class="LineNr"> 246 </span> +<span id="L247" class="LineNr"> 247 </span><span class="subxComment">## sector 2 onwards loaded by load_disk, not automatically on boot</span> +<span id="L248" class="LineNr"> 248 </span> +<span id="L249" class="LineNr"> 249 </span><span class="subxComment">## 32-bit code from this point</span> +<span id="L250" class="LineNr"> 250 </span> +<span id="L251" class="LineNr"> 251 </span>== code 0x7e00 +<span id="L252" class="LineNr"> 252 </span><span class="subxFunction">initialize_32bit_mode</span>: +<span id="L253" class="LineNr"> 253 </span> 66 b8/copy-to-ax 0x10/imm16 <span class="subxComment"># offset 16 from gdt_start</span> +<span id="L254" class="LineNr"> 254 </span> 8e/->seg 3/mod/direct 0/rm32/ax 3/r32/ds +<span id="L255" class="LineNr"> 255 </span> 8e/->seg 3/mod/direct 0/rm32/ax 2/r32/ss +<span id="L256" class="LineNr"> 256 </span> 8e/->seg 3/mod/direct 0/rm32/ax 0/r32/es +<span id="L257" class="LineNr"> 257 </span> 8e/->seg 3/mod/direct 0/rm32/ax 4/r32/fs +<span id="L258" class="LineNr"> 258 </span> 8e/->seg 3/mod/direct 0/rm32/ax 5/r32/gs +<span id="L259" class="LineNr"> 259 </span> +<span id="L260" class="LineNr"> 260 </span> bc/copy-to-esp 0x02000000/imm32 +<span id="L261" class="LineNr"> 261 </span> +<span id="L262" class="LineNr"> 262 </span> <span class="subxComment">## load interrupt handlers</span> +<span id="L263" class="LineNr"> 263 </span> <span class="subxComment"># We can't refer to the label directly because SubX doesn't do the right</span> +<span id="L264" class="LineNr"> 264 </span> <span class="subxComment"># thing for lidt, so rather than make errors worse in most places we instead</span> +<span id="L265" class="LineNr"> 265 </span> <span class="subxComment"># pin idt_descriptor below.</span> +<span id="L266" class="LineNr"> 266 </span> 0f 01 3/subop/lidt 0/mod/indirect 5/rm32/use-disp32 0x7f00/disp32/idt_descriptor +<span id="L267" class="LineNr"> 267 </span> +<span id="L268" class="LineNr"> 268 </span> <span class="subxComment"># For now, not bothering reprogramming the IRQ to not conflict with software</span> +<span id="L269" class="LineNr"> 269 </span> <span class="subxComment"># exceptions.</span> +<span id="L270" class="LineNr"> 270 </span> <span class="subxComment"># <a href="https://wiki.osdev.org/index.php?title=8259_PIC&oldid=24650#Protected_Mode">https://wiki.osdev.org/index.php?title=8259_PIC&oldid=24650#Protected_Mode</a></span> +<span id="L271" class="LineNr"> 271 </span> <span class="subxComment">#</span> +<span id="L272" class="LineNr"> 272 </span> <span class="subxComment"># Interrupt 1 (keyboard) conflicts with debugger faults. We don't use a</span> +<span id="L273" class="LineNr"> 273 </span> <span class="subxComment"># debugger.</span> +<span id="L274" class="LineNr"> 274 </span> <span class="subxComment"># Reference:</span> +<span id="L275" class="LineNr"> 275 </span> <span class="subxComment"># <a href="https://wiki.osdev.org/Exceptions">https://wiki.osdev.org/Exceptions</a></span> +<span id="L276" class="LineNr"> 276 </span> +<span id="L277" class="LineNr"> 277 </span> <span class="subxComment"># enable timer IRQ0 and keyboard IRQ1</span> +<span id="L278" class="LineNr"> 278 </span> b0/copy-to-al 0xfc/imm8 <span class="subxComment"># disable mask for IRQ0 and IRQ1</span> +<span id="L279" class="LineNr"> 279 </span> e6/write-al-into-port 0x21/imm8 +<span id="L280" class="LineNr"> 280 </span> +<span id="L281" class="LineNr"> 281 </span> fb/enable-interrupts +<span id="L282" class="LineNr"> 282 </span> +<span id="L283" class="LineNr"> 283 </span> (<a href='boot.subx.html#L1528'>initialize-mouse</a>) +<span id="L284" class="LineNr"> 284 </span> +<span id="L285" class="LineNr"> 285 </span> <span class="subxComment">## enable floating point</span> +<span id="L286" class="LineNr"> 286 </span> db/floating-point-coprocessor e3/initialize +<span id="L287" class="LineNr"> 287 </span> <span class="subxComment"># eax <- cr4</span> +<span id="L288" class="LineNr"> 288 </span> 0f 20/<-cr 3/mod/direct 0/rm32/eax 4/r32/cr4 +<span id="L289" class="LineNr"> 289 </span> <span class="subxComment"># eax <- or bit 9</span> +<span id="L290" class="LineNr"> 290 </span> 0f ba/bit-test 5/subop/bit-test-and-set 3/mod/direct 0/rm32/eax 9/imm8 +<span id="L291" class="LineNr"> 291 </span> <span class="subxComment"># cr4 <- eax</span> +<span id="L292" class="LineNr"> 292 </span> 0f 22/->cr 3/mod/direct 0/rm32/eax 4/r32/cr4 +<span id="L293" class="LineNr"> 293 </span> +<span id="L294" class="LineNr"> 294 </span> e9/jump <span class="SpecialChar">Entry</span>/disp32 +<span id="L295" class="LineNr"> 295 </span> +<span id="L296" class="LineNr"> 296 </span>== data 0x7f00 +<span id="L297" class="LineNr"> 297 </span><span class="subxFunction">idt_descriptor</span>: +<span id="L298" class="LineNr"> 298 </span> ff 03 <span class="subxComment"># final index of idt = size of idt - 1</span> +<span id="L299" class="LineNr"> 299 </span> <a href='boot.subx.html#L303'>idt_start</a>/imm32/start +<span id="L300" class="LineNr"> 300 </span> +<span id="L301" class="Folded"> 301 </span><span class="Folded">+-- 55 lines: # interrupt descriptor table ---------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L356" class="LineNr"> 356 </span> +<span id="L357" class="LineNr"> 357 </span>== code +<span id="L358" class="LineNr"> 358 </span> +<span id="L359" class="LineNr"> 359 </span><span class="subxFunction">timer-interrupt-handler</span>: +<span id="L360" class="LineNr"> 360 </span> <span class="subxComment"># prologue</span> +<span id="L361" class="LineNr"> 361 </span> fa/disable-interrupts +<span id="L362" class="LineNr"> 362 </span> 60/push-all-registers +<span id="L363" class="LineNr"> 363 </span> 9c/push-flags +<span id="L364" class="LineNr"> 364 </span> <span class="subxComment"># acknowledge interrupt</span> +<span id="L365" class="LineNr"> 365 </span> b0/copy-to-al 0x20/imm8 +<span id="L366" class="LineNr"> 366 </span> e6/write-al-into-port 0x20/imm8 +<span id="L367" class="LineNr"> 367 </span> 31/xor %eax 0/r32/eax +<span id="L368" class="LineNr"> 368 </span> <span class="subxComment"># update *Timer-current-color</span> +<span id="L369" class="LineNr"> 369 </span> ff 0/subop/increment *<span class="SpecialChar"><a href='boot.subx.html#L378'>Timer-counter</a></span> +<span id="L370" class="LineNr"> 370 </span><span class="Constant">$timer-interrupt-handler:epilogue</span>: +<span id="L371" class="LineNr"> 371 </span> <span class="subxComment"># epilogue</span> +<span id="L372" class="LineNr"> 372 </span> 9d/pop-flags +<span id="L373" class="LineNr"> 373 </span> 61/pop-all-registers +<span id="L374" class="LineNr"> 374 </span> fb/enable-interrupts +<span id="L375" class="LineNr"> 375 </span> cf/return-from-interrupt +<span id="L376" class="LineNr"> 376 </span> +<span id="L377" class="LineNr"> 377 </span>== data +<span id="L378" class="LineNr"> 378 </span><span class="SpecialChar">Timer-counter</span>: +<span id="L379" class="LineNr"> 379 </span> 0/imm32 <span id="L380" class="LineNr"> 380 </span> -<span id="L381" class="LineNr"> 381 </span><span class="subxFunction">keyboard-interrupt-handler</span>: -<span id="L382" class="LineNr"> 382 </span> <span class="subxComment"># prologue</span> -<span id="L383" class="LineNr"> 383 </span> fa/disable-interrupts -<span id="L384" class="LineNr"> 384 </span> 60/push-all-registers -<span id="L385" class="LineNr"> 385 </span> 9c/push-flags -<span id="L386" class="LineNr"> 386 </span> <span class="subxComment"># acknowledge interrupt</span> -<span id="L387" class="LineNr"> 387 </span> b0/copy-to-al 0x20/imm8 -<span id="L388" class="LineNr"> 388 </span> e6/write-al-into-port 0x20/imm8 -<span id="L389" class="LineNr"> 389 </span> 31/xor %eax 0/r32/eax -<span id="L390" class="LineNr"> 390 </span> <span class="subxComment"># check output buffer of 8042 keyboard controller (<a href="https://web.archive.org/web/20040604041507/http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/keyboard/atkeyboard.html)">https://web.archive.org/web/20040604041507/http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/keyboard/atkeyboard.html)</a></span> -<span id="L391" class="LineNr"> 391 </span> e4/read-port-into-al 0x64/imm8 -<span id="L392" class="LineNr"> 392 </span> a8/test-bits-in-al 0x01/imm8 <span class="subxComment"># set zf if bit 0 (least significant) is not set</span> -<span id="L393" class="LineNr"> 393 </span> 0f 84/jump-if-not-set $keyboard-interrupt-handler:epilogue/disp32 -<span id="L394" class="LineNr"> 394 </span> <span class="subxH1Comment"># - if keyboard buffer is full, return</span> -<span id="L395" class="LineNr"> 395 </span> <span class="subxComment"># var dest-addr/ecx: (addr byte) = (keyboard-buffer + *keyboard-buffer:write)</span> -<span id="L396" class="LineNr"> 396 </span> 31/xor %ecx 1/r32/ecx -<span id="L397" class="LineNr"> 397 </span> 8a/byte-> *<span class="SpecialChar">Keyboard-buffer</span>:<a href='108write.subx.html#L11'>write</a> 1/r32/cl -<span id="L398" class="LineNr"> 398 </span> 81 0/subop/add %ecx <span class="SpecialChar">Keyboard-buffer</span>:data/imm32 -<span id="L399" class="LineNr"> 399 </span> <span class="subxComment"># al = *dest-addr</span> -<span id="L400" class="LineNr"> 400 </span> 8a/byte-> *ecx 0/r32/al -<span id="L401" class="LineNr"> 401 </span> <span class="subxComment"># if (al != 0) return</span> -<span id="L402" class="LineNr"> 402 </span> 3c/compare-al-and 0/imm8 -<span id="L403" class="LineNr"> 403 </span> 0f 85/jump-if-!= $keyboard-interrupt-handler:epilogue/disp32 -<span id="L404" class="LineNr"> 404 </span> <span class="subxH1Comment"># - read keycode</span> -<span id="L405" class="LineNr"> 405 </span> e4/read-port-into-al 0x60/imm8 -<span id="L406" class="LineNr"> 406 </span> <span class="subxH1Comment"># - key released</span> -<span id="L407" class="LineNr"> 407 </span> <span class="subxComment"># if (al == 0xaa) shift = false # left shift is being lifted</span> -<span id="L408" class="LineNr"> 408 </span> { -<span id="L409" class="LineNr"> 409 </span> 3c/compare-al-and 0xaa/imm8 -<span id="L410" class="LineNr"> 410 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 -<span id="L411" class="LineNr"> 411 </span> <span class="subxComment"># *shift = 0</span> -<span id="L412" class="LineNr"> 412 </span> c7 0/subop/copy *Keyboard-shift-pressed? 0/imm32 -<span id="L413" class="LineNr"> 413 </span> } -<span id="L414" class="LineNr"> 414 </span> <span class="subxComment"># if (al == 0xb6) shift = false # right shift is being lifted</span> -<span id="L415" class="LineNr"> 415 </span> { -<span id="L416" class="LineNr"> 416 </span> 3c/compare-al-and 0xb6/imm8 -<span id="L417" class="LineNr"> 417 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 -<span id="L418" class="LineNr"> 418 </span> <span class="subxComment"># *shift = 0</span> -<span id="L419" class="LineNr"> 419 </span> c7 0/subop/copy *Keyboard-shift-pressed? 0/imm32 -<span id="L420" class="LineNr"> 420 </span> } -<span id="L421" class="LineNr"> 421 </span> <span class="subxComment"># if (al == 0x9d) ctrl = false # ctrl is being lifted</span> -<span id="L422" class="LineNr"> 422 </span> { -<span id="L423" class="LineNr"> 423 </span> 3c/compare-al-and 0x9d/imm8 -<span id="L424" class="LineNr"> 424 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 -<span id="L425" class="LineNr"> 425 </span> <span class="subxComment"># *ctrl = 0</span> -<span id="L426" class="LineNr"> 426 </span> c7 0/subop/copy *Keyboard-ctrl-pressed? 0/imm32 -<span id="L427" class="LineNr"> 427 </span> } -<span id="L428" class="LineNr"> 428 </span> <span class="subxComment"># if (al & 0x80) a key is being lifted; return</span> -<span id="L429" class="LineNr"> 429 </span> 50/push-eax -<span id="L430" class="LineNr"> 430 </span> 24/and-al-with 0x80/imm8 -<span id="L431" class="LineNr"> 431 </span> 3c/compare-al-and 0/imm8 -<span id="L432" class="LineNr"> 432 </span> 58/pop-to-eax -<span id="L433" class="LineNr"> 433 </span> 75/jump-if-!= $keyboard-interrupt-handler:epilogue/disp8 -<span id="L434" class="LineNr"> 434 </span> <span class="subxH1Comment"># - key pressed</span> -<span id="L435" class="LineNr"> 435 </span> <span class="subxComment"># if (al == 0x2a) shift = true, return # left shift pressed</span> -<span id="L436" class="LineNr"> 436 </span> { -<span id="L437" class="LineNr"> 437 </span> 3c/compare-al-and 0x2a/imm8 -<span id="L438" class="LineNr"> 438 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 -<span id="L439" class="LineNr"> 439 </span> <span class="subxComment"># *shift = 1</span> -<span id="L440" class="LineNr"> 440 </span> c7 0/subop/copy *Keyboard-shift-pressed? 1/imm32 -<span id="L441" class="LineNr"> 441 </span> <span class="subxComment"># return</span> -<span id="L442" class="LineNr"> 442 </span> eb/jump $keyboard-interrupt-handler:epilogue/disp8 -<span id="L443" class="LineNr"> 443 </span> } -<span id="L444" class="LineNr"> 444 </span> <span class="subxComment"># if (al == 0x36) shift = true, return # right shift pressed</span> -<span id="L445" class="LineNr"> 445 </span> { -<span id="L446" class="LineNr"> 446 </span> 3c/compare-al-and 0x36/imm8 -<span id="L447" class="LineNr"> 447 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 -<span id="L448" class="LineNr"> 448 </span> <span class="subxComment"># *shift = 1</span> -<span id="L449" class="LineNr"> 449 </span> c7 0/subop/copy *Keyboard-shift-pressed? 1/imm32 -<span id="L450" class="LineNr"> 450 </span> <span class="subxComment"># return</span> -<span id="L451" class="LineNr"> 451 </span> eb/jump $keyboard-interrupt-handler:epilogue/disp8 -<span id="L452" class="LineNr"> 452 </span> } -<span id="L453" class="LineNr"> 453 </span> <span class="subxComment"># if (al == 0x1d) ctrl = true, return</span> -<span id="L454" class="LineNr"> 454 </span> { -<span id="L455" class="LineNr"> 455 </span> 3c/compare-al-and 0x1d/imm8 -<span id="L456" class="LineNr"> 456 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 -<span id="L457" class="LineNr"> 457 </span> <span class="subxComment"># *ctrl = 1</span> -<span id="L458" class="LineNr"> 458 </span> c7 0/subop/copy *Keyboard-ctrl-pressed? 1/imm32 -<span id="L459" class="LineNr"> 459 </span> <span class="subxComment"># return</span> -<span id="L460" class="LineNr"> 460 </span> eb/jump $keyboard-interrupt-handler:epilogue/disp8 -<span id="L461" class="LineNr"> 461 </span> } -<span id="L462" class="LineNr"> 462 </span> <span class="subxH1Comment"># - convert key to character</span> -<span id="L463" class="LineNr"> 463 </span> <span class="subxComment"># if (shift) use keyboard shift map</span> -<span id="L464" class="LineNr"> 464 </span> { -<span id="L465" class="LineNr"> 465 </span> 81 7/subop/compare *Keyboard-shift-pressed? 0/imm32 -<span id="L466" class="LineNr"> 466 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 -<span id="L467" class="LineNr"> 467 </span> <span class="subxComment"># sigils don't currently support labels inside *(eax+label)</span> -<span id="L468" class="LineNr"> 468 </span> 05/add-to-eax <span class="SpecialChar"><a href='boot.subx.html#L555'>Keyboard-shift-map</a></span>/imm32 -<span id="L469" class="LineNr"> 469 </span> 8a/byte-> *eax 0/r32/al -<span id="L470" class="LineNr"> 470 </span> eb/jump $keyboard-interrupt-handler:select-map-done/disp8 -<span id="L471" class="LineNr"> 471 </span> } -<span id="L472" class="LineNr"> 472 </span> <span class="subxComment"># if (ctrl) al = *(ctrl map + al)</span> -<span id="L473" class="LineNr"> 473 </span> { -<span id="L474" class="LineNr"> 474 </span> 81 7/subop/compare *Keyboard-ctrl-pressed? 0/imm32 -<span id="L475" class="LineNr"> 475 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 -<span id="L476" class="LineNr"> 476 </span> 05/add-to-eax <span class="SpecialChar"><a href='boot.subx.html#L587'>Keyboard-ctrl-map</a></span>/imm32 -<span id="L477" class="LineNr"> 477 </span> 8a/byte-> *eax 0/r32/al -<span id="L478" class="LineNr"> 478 </span> eb/jump $keyboard-interrupt-handler:select-map-done/disp8 -<span id="L479" class="LineNr"> 479 </span> } -<span id="L480" class="LineNr"> 480 </span> <span class="subxComment"># otherwise al = *(normal map + al)</span> -<span id="L481" class="LineNr"> 481 </span> 05/add-to-eax <span class="SpecialChar"><a href='boot.subx.html#L521'>Keyboard-normal-map</a></span>/imm32 -<span id="L482" class="LineNr"> 482 </span> 8a/byte-> *eax 0/r32/al -<span id="L483" class="LineNr"> 483 </span><span class="Constant">$keyboard-interrupt-handler:select-map-done</span>: -<span id="L484" class="LineNr"> 484 </span> <span class="subxH1Comment"># - if there's no character mapping, return</span> -<span id="L485" class="LineNr"> 485 </span> { -<span id="L486" class="LineNr"> 486 </span> 3c/compare-al-and 0/imm8 -<span id="L487" class="LineNr"> 487 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 -<span id="L488" class="LineNr"> 488 </span> <span class="subxH1Comment"># - store al in keyboard buffer</span> -<span id="L489" class="LineNr"> 489 </span> 88/<- *ecx 0/r32/al -<span id="L490" class="LineNr"> 490 </span> <span class="subxComment"># increment index</span> -<span id="L491" class="LineNr"> 491 </span> fe/increment-byte *<span class="SpecialChar">Keyboard-buffer</span>:<a href='108write.subx.html#L11'>write</a> -<span id="L492" class="LineNr"> 492 </span> <span class="subxComment"># clear top nibble of index (keyboard buffer is circular)</span> -<span id="L493" class="LineNr"> 493 </span> 80 4/subop/and-byte *<span class="SpecialChar">Keyboard-buffer</span>:<a href='108write.subx.html#L11'>write</a> 0x0f/imm8 -<span id="L494" class="LineNr"> 494 </span> } -<span id="L495" class="LineNr"> 495 </span><span class="Constant">$keyboard-interrupt-handler:epilogue</span>: -<span id="L496" class="LineNr"> 496 </span> <span class="subxComment"># epilogue</span> -<span id="L497" class="LineNr"> 497 </span> 9d/pop-flags -<span id="L498" class="LineNr"> 498 </span> 61/pop-all-registers -<span id="L499" class="LineNr"> 499 </span> fb/enable-interrupts -<span id="L500" class="LineNr"> 500 </span> cf/return-from-interrupt -<span id="L501" class="LineNr"> 501 </span> -<span id="L502" class="LineNr"> 502 </span>== data -<span id="L503" class="LineNr"> 503 </span>Keyboard-shift-pressed?: <span class="subxComment"># boolean</span> -<span id="L504" class="LineNr"> 504 </span> 0/imm32 -<span id="L505" class="LineNr"> 505 </span> -<span id="L506" class="LineNr"> 506 </span>Keyboard-ctrl-pressed?: <span class="subxComment"># boolean</span> -<span id="L507" class="LineNr"> 507 </span> 0/imm32 -<span id="L508" class="LineNr"> 508 </span> -<span id="L509" class="LineNr"> 509 </span><span class="subxComment"># var keyboard circular buffer</span> -<span id="L510" class="LineNr"> 510 </span><span class="SpecialChar">Keyboard-buffer</span>:<a href='108write.subx.html#L11'>write</a>: <span class="subxComment"># nibble</span> -<span id="L511" class="LineNr"> 511 </span> 0/imm32 -<span id="L512" class="LineNr"> 512 </span><span class="SpecialChar">Keyboard-buffer</span>:read: <span class="subxComment"># nibble</span> -<span id="L513" class="LineNr"> 513 </span> 0/imm32 -<span id="L514" class="LineNr"> 514 </span><span class="SpecialChar">Keyboard-buffer</span>:data: <span class="subxComment"># byte[16]</span> -<span id="L515" class="LineNr"> 515 </span> 00 00 00 00 +<span id="L381" class="LineNr"> 381 </span>== code +<span id="L382" class="LineNr"> 382 </span><span class="subxFunction">keyboard-interrupt-handler</span>: +<span id="L383" class="LineNr"> 383 </span> <span class="subxComment"># prologue</span> +<span id="L384" class="LineNr"> 384 </span> fa/disable-interrupts +<span id="L385" class="LineNr"> 385 </span> 60/push-all-registers +<span id="L386" class="LineNr"> 386 </span> 9c/push-flags +<span id="L387" class="LineNr"> 387 </span> <span class="subxComment"># acknowledge interrupt</span> +<span id="L388" class="LineNr"> 388 </span> b0/copy-to-al 0x20/imm8 +<span id="L389" class="LineNr"> 389 </span> e6/write-al-into-port 0x20/imm8 +<span id="L390" class="LineNr"> 390 </span> 31/xor %eax 0/r32/eax +<span id="L391" class="LineNr"> 391 </span> <span class="subxComment"># check output buffer of 8042 keyboard controller (<a href="https://web.archive.org/web/20040604041507/http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/keyboard/atkeyboard.html)">https://web.archive.org/web/20040604041507/http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/keyboard/atkeyboard.html)</a></span> +<span id="L392" class="LineNr"> 392 </span> e4/read-port-into-al 0x64/imm8 +<span id="L393" class="LineNr"> 393 </span> a8/test-bits-in-al 0x01/imm8 <span class="subxComment"># set zf if bit 0 (least significant) is not set</span> +<span id="L394" class="LineNr"> 394 </span> 0f 84/jump-if-not-set $keyboard-interrupt-handler:end/disp32 +<span id="L395" class="LineNr"> 395 </span> <span class="subxH1Comment"># - if keyboard buffer is full, return</span> +<span id="L396" class="LineNr"> 396 </span> <span class="subxComment"># var dest-addr/ecx: (addr byte) = (keyboard-buffer + *keyboard-buffer:write)</span> +<span id="L397" class="LineNr"> 397 </span> 31/xor %ecx 1/r32/ecx +<span id="L398" class="LineNr"> 398 </span> 8a/byte-> *<span class="SpecialChar">Keyboard-buffer</span>:<a href='108write.subx.html#L11'>write</a> 1/r32/cl +<span id="L399" class="LineNr"> 399 </span> 81 0/subop/add %ecx <span class="SpecialChar">Keyboard-buffer</span>:data/imm32 +<span id="L400" class="LineNr"> 400 </span> <span class="subxComment"># al = *dest-addr</span> +<span id="L401" class="LineNr"> 401 </span> 8a/byte-> *ecx 0/r32/al +<span id="L402" class="LineNr"> 402 </span> <span class="subxComment"># if (al != 0) return</span> +<span id="L403" class="LineNr"> 403 </span> 3c/compare-al-and 0/imm8 +<span id="L404" class="LineNr"> 404 </span> 0f 85/jump-if-!= $keyboard-interrupt-handler:end/disp32 +<span id="L405" class="LineNr"> 405 </span> <span class="subxH1Comment"># - read keycode</span> +<span id="L406" class="LineNr"> 406 </span> e4/read-port-into-al 0x60/imm8 +<span id="L407" class="LineNr"> 407 </span> <span class="subxH1Comment"># - key released</span> +<span id="L408" class="LineNr"> 408 </span> <span class="subxComment"># if (al == 0xaa) shift = false # left shift is being lifted</span> +<span id="L409" class="LineNr"> 409 </span> { +<span id="L410" class="LineNr"> 410 </span> 3c/compare-al-and 0xaa/imm8 +<span id="L411" class="LineNr"> 411 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 +<span id="L412" class="LineNr"> 412 </span> <span class="subxComment"># *shift = 0</span> +<span id="L413" class="LineNr"> 413 </span> c7 0/subop/copy *Keyboard-shift-pressed? 0/imm32 +<span id="L414" class="LineNr"> 414 </span> } +<span id="L415" class="LineNr"> 415 </span> <span class="subxComment"># if (al == 0xb6) shift = false # right shift is being lifted</span> +<span id="L416" class="LineNr"> 416 </span> { +<span id="L417" class="LineNr"> 417 </span> 3c/compare-al-and 0xb6/imm8 +<span id="L418" class="LineNr"> 418 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 +<span id="L419" class="LineNr"> 419 </span> <span class="subxComment"># *shift = 0</span> +<span id="L420" class="LineNr"> 420 </span> c7 0/subop/copy *Keyboard-shift-pressed? 0/imm32 +<span id="L421" class="LineNr"> 421 </span> } +<span id="L422" class="LineNr"> 422 </span> <span class="subxComment"># if (al == 0x9d) ctrl = false # ctrl is being lifted</span> +<span id="L423" class="LineNr"> 423 </span> { +<span id="L424" class="LineNr"> 424 </span> 3c/compare-al-and 0x9d/imm8 +<span id="L425" class="LineNr"> 425 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 +<span id="L426" class="LineNr"> 426 </span> <span class="subxComment"># *ctrl = 0</span> +<span id="L427" class="LineNr"> 427 </span> c7 0/subop/copy *Keyboard-ctrl-pressed? 0/imm32 +<span id="L428" class="LineNr"> 428 </span> } +<span id="L429" class="LineNr"> 429 </span> <span class="subxComment"># if (al & 0x80) a key is being lifted; return</span> +<span id="L430" class="LineNr"> 430 </span> 50/push-eax +<span id="L431" class="LineNr"> 431 </span> 24/and-al-with 0x80/imm8 +<span id="L432" class="LineNr"> 432 </span> 3c/compare-al-and 0/imm8 +<span id="L433" class="LineNr"> 433 </span> 58/pop-to-eax +<span id="L434" class="LineNr"> 434 </span> 75/jump-if-!= $keyboard-interrupt-handler:end/disp8 +<span id="L435" class="LineNr"> 435 </span> <span class="subxH1Comment"># - key pressed</span> +<span id="L436" class="LineNr"> 436 </span> <span class="subxComment"># if (al == 0x2a) shift = true, return # left shift pressed</span> +<span id="L437" class="LineNr"> 437 </span> { +<span id="L438" class="LineNr"> 438 </span> 3c/compare-al-and 0x2a/imm8 +<span id="L439" class="LineNr"> 439 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 +<span id="L440" class="LineNr"> 440 </span> <span class="subxComment"># *shift = 1</span> +<span id="L441" class="LineNr"> 441 </span> c7 0/subop/copy *Keyboard-shift-pressed? 1/imm32 +<span id="L442" class="LineNr"> 442 </span> <span class="subxComment"># return</span> +<span id="L443" class="LineNr"> 443 </span> eb/jump $keyboard-interrupt-handler:end/disp8 +<span id="L444" class="LineNr"> 444 </span> } +<span id="L445" class="LineNr"> 445 </span> <span class="subxComment"># if (al == 0x36) shift = true, return # right shift pressed</span> +<span id="L446" class="LineNr"> 446 </span> { +<span id="L447" class="LineNr"> 447 </span> 3c/compare-al-and 0x36/imm8 +<span id="L448" class="LineNr"> 448 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 +<span id="L449" class="LineNr"> 449 </span> <span class="subxComment"># *shift = 1</span> +<span id="L450" class="LineNr"> 450 </span> c7 0/subop/copy *Keyboard-shift-pressed? 1/imm32 +<span id="L451" class="LineNr"> 451 </span> <span class="subxComment"># return</span> +<span id="L452" class="LineNr"> 452 </span> eb/jump $keyboard-interrupt-handler:end/disp8 +<span id="L453" class="LineNr"> 453 </span> } +<span id="L454" class="LineNr"> 454 </span> <span class="subxComment"># if (al == 0x1d) ctrl = true, return</span> +<span id="L455" class="LineNr"> 455 </span> { +<span id="L456" class="LineNr"> 456 </span> 3c/compare-al-and 0x1d/imm8 +<span id="L457" class="LineNr"> 457 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 +<span id="L458" class="LineNr"> 458 </span> <span class="subxComment"># *ctrl = 1</span> +<span id="L459" class="LineNr"> 459 </span> c7 0/subop/copy *Keyboard-ctrl-pressed? 1/imm32 +<span id="L460" class="LineNr"> 460 </span> <span class="subxComment"># return</span> +<span id="L461" class="LineNr"> 461 </span> eb/jump $keyboard-interrupt-handler:end/disp8 +<span id="L462" class="LineNr"> 462 </span> } +<span id="L463" class="LineNr"> 463 </span> <span class="subxH1Comment"># - convert key to character</span> +<span id="L464" class="LineNr"> 464 </span> <span class="subxComment"># if (shift) use keyboard shift map</span> +<span id="L465" class="LineNr"> 465 </span> { +<span id="L466" class="LineNr"> 466 </span> 81 7/subop/compare *Keyboard-shift-pressed? 0/imm32 +<span id="L467" class="LineNr"> 467 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 +<span id="L468" class="LineNr"> 468 </span> <span class="subxComment"># sigils don't currently support labels inside *(eax+label)</span> +<span id="L469" class="LineNr"> 469 </span> 05/add-to-eax <span class="SpecialChar"><a href='boot.subx.html#L556'>Keyboard-shift-map</a></span>/imm32 +<span id="L470" class="LineNr"> 470 </span> 8a/byte-> *eax 0/r32/al +<span id="L471" class="LineNr"> 471 </span> eb/jump $keyboard-interrupt-handler:select-map-done/disp8 +<span id="L472" class="LineNr"> 472 </span> } +<span id="L473" class="LineNr"> 473 </span> <span class="subxComment"># if (ctrl) al = *(ctrl map + al)</span> +<span id="L474" class="LineNr"> 474 </span> { +<span id="L475" class="LineNr"> 475 </span> 81 7/subop/compare *Keyboard-ctrl-pressed? 0/imm32 +<span id="L476" class="LineNr"> 476 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 +<span id="L477" class="LineNr"> 477 </span> 05/add-to-eax <span class="SpecialChar"><a href='boot.subx.html#L588'>Keyboard-ctrl-map</a></span>/imm32 +<span id="L478" class="LineNr"> 478 </span> 8a/byte-> *eax 0/r32/al +<span id="L479" class="LineNr"> 479 </span> eb/jump $keyboard-interrupt-handler:select-map-done/disp8 +<span id="L480" class="LineNr"> 480 </span> } +<span id="L481" class="LineNr"> 481 </span> <span class="subxComment"># otherwise al = *(normal map + al)</span> +<span id="L482" class="LineNr"> 482 </span> 05/add-to-eax <span class="SpecialChar"><a href='boot.subx.html#L522'>Keyboard-normal-map</a></span>/imm32 +<span id="L483" class="LineNr"> 483 </span> 8a/byte-> *eax 0/r32/al +<span id="L484" class="LineNr"> 484 </span><span class="Constant">$keyboard-interrupt-handler:select-map-done</span>: +<span id="L485" class="LineNr"> 485 </span> <span class="subxH1Comment"># - if there's no character mapping, return</span> +<span id="L486" class="LineNr"> 486 </span> { +<span id="L487" class="LineNr"> 487 </span> 3c/compare-al-and 0/imm8 +<span id="L488" class="LineNr"> 488 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 +<span id="L489" class="LineNr"> 489 </span> <span class="subxH1Comment"># - store al in keyboard buffer</span> +<span id="L490" class="LineNr"> 490 </span> 88/<- *ecx 0/r32/al +<span id="L491" class="LineNr"> 491 </span> <span class="subxComment"># increment index</span> +<span id="L492" class="LineNr"> 492 </span> fe/increment-byte *<span class="SpecialChar">Keyboard-buffer</span>:<a href='108write.subx.html#L11'>write</a> +<span id="L493" class="LineNr"> 493 </span> <span class="subxComment"># clear top nibble of index (keyboard buffer is circular)</span> +<span id="L494" class="LineNr"> 494 </span> 80 4/subop/and-byte *<span class="SpecialChar">Keyboard-buffer</span>:<a href='108write.subx.html#L11'>write</a> 0x0f/imm8 +<span id="L495" class="LineNr"> 495 </span> } +<span id="L496" class="LineNr"> 496 </span><span class="Constant">$keyboard-interrupt-handler:end</span>: +<span id="L497" class="LineNr"> 497 </span> <span class="subxComment"># epilogue</span> +<span id="L498" class="LineNr"> 498 </span> 9d/pop-flags +<span id="L499" class="LineNr"> 499 </span> 61/pop-all-registers +<span id="L500" class="LineNr"> 500 </span> fb/enable-interrupts +<span id="L501" class="LineNr"> 501 </span> cf/return-from-interrupt +<span id="L502" class="LineNr"> 502 </span> +<span id="L503" class="LineNr"> 503 </span>== data +<span id="L504" class="LineNr"> 504 </span>Keyboard-shift-pressed?: <span class="subxComment"># boolean</span> +<span id="L505" class="LineNr"> 505 </span> 0/imm32 +<span id="L506" class="LineNr"> 506 </span> +<span id="L507" class="LineNr"> 507 </span>Keyboard-ctrl-pressed?: <span class="subxComment"># boolean</span> +<span id="L508" class="LineNr"> 508 </span> 0/imm32 +<span id="L509" class="LineNr"> 509 </span> +<span id="L510" class="LineNr"> 510 </span><span class="subxComment"># var keyboard circular buffer</span> +<span id="L511" class="LineNr"> 511 </span><span class="SpecialChar">Keyboard-buffer</span>:<a href='108write.subx.html#L11'>write</a>: <span class="subxComment"># nibble</span> +<span id="L512" class="LineNr"> 512 </span> 0/imm32 +<span id="L513" class="LineNr"> 513 </span><span class="SpecialChar">Keyboard-buffer</span>:read: <span class="subxComment"># nibble</span> +<span id="L514" class="LineNr"> 514 </span> 0/imm32 +<span id="L515" class="LineNr"> 515 </span><span class="SpecialChar">Keyboard-buffer</span>:data: <span class="subxComment"># byte[16]</span> <span id="L516" class="LineNr"> 516 </span> 00 00 00 00 <span id="L517" class="LineNr"> 517 </span> 00 00 00 00 <span id="L518" class="LineNr"> 518 </span> 00 00 00 00 -<span id="L519" class="LineNr"> 519 </span> -<span id="L520" class="Folded"> 520 </span><span class="Folded">+-- 95 lines: # Keyboard maps for translating keys to ASCII -----------------------------------------------------------------------------------------------------------------------------</span> -<span id="L615" class="LineNr"> 615 </span> -<span id="L616" class="LineNr"> 616 </span><span class="SpecialChar">Video-mode-info</span>: -<span id="L617" class="Folded"> 617 </span><span class="Folded">+-- 53 lines: # video mode info ---------------------------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L670" class="LineNr"> 670 </span> -<span id="L671" class="LineNr"> 671 </span><span class="SpecialChar">Font</span>: -<span id="L672" class="Folded"> 672 </span><span class="Folded">+--236 lines: # Bitmaps for some ASCII characters (soon Unicode) ------------------------------------------------------------------------------------------------------------------------</span> -<span id="L908" class="LineNr"> 908 </span> -<span id="L909" class="LineNr"> 909 </span><span class="subxComment">## Controlling IDE (ATA) hard disks</span> -<span id="L910" class="LineNr"> 910 </span><span class="subxComment"># Uses 28-bit PIO mode.</span> -<span id="L911" class="LineNr"> 911 </span><span class="subxComment"># Inspired by <a href="https://colorforth.github.io/ide.html">https://colorforth.github.io/ide.html</a></span> -<span id="L912" class="LineNr"> 912 </span><span class="subxComment">#</span> -<span id="L913" class="LineNr"> 913 </span><span class="subxComment"># Resources:</span> -<span id="L914" class="LineNr"> 914 </span><span class="subxComment"># <a href="https://wiki.osdev.org/ATA_PIO_Mode">https://wiki.osdev.org/ATA_PIO_Mode</a></span> -<span id="L915" class="LineNr"> 915 </span><span class="subxComment"># <a href="https://forum.osdev.org/viewtopic.php?f=1&p=167798">https://forum.osdev.org/viewtopic.php?f=1&p=167798</a></span> -<span id="L916" class="LineNr"> 916 </span><span class="subxComment"># read-sector, according to <a href="https://www.scs.stanford.edu/11wi-cs140/pintos/specs/ata-3-std.pdf">https://www.scs.stanford.edu/11wi-cs140/pintos/specs/ata-3-std.pdf</a></span> -<span id="L917" class="LineNr"> 917 </span> -<span id="L918" class="LineNr"> 918 </span>== data -<span id="L919" class="LineNr"> 919 </span> -<span id="L920" class="LineNr"> 920 </span><span class="subxComment"># code disk</span> -<span id="L921" class="LineNr"> 921 </span><span class="subxComment"># All ports are 8-bit except data-port, which is 16-bit.</span> -<span id="L922" class="LineNr"> 922 </span><span class="SpecialChar">Primary-bus-primary-drive</span>: -<span id="L923" class="LineNr"> 923 </span> <span class="subxComment"># command-port: int (write)</span> -<span id="L924" class="LineNr"> 924 </span> 0x1f7/imm32 -<span id="L925" class="LineNr"> 925 </span> <span class="subxComment"># status-port: int (read)</span> -<span id="L926" class="LineNr"> 926 </span> 0x1f7/imm32 -<span id="L927" class="LineNr"> 927 </span> <span class="subxComment"># alternative-status-port: int (read)</span> -<span id="L928" class="LineNr"> 928 </span> 0x3f6/imm32 -<span id="L929" class="LineNr"> 929 </span> <span class="subxComment"># error-port: int (read)</span> -<span id="L930" class="LineNr"> 930 </span> 0x1f1/imm32 -<span id="L931" class="LineNr"> 931 </span> <span class="subxComment"># drive-and-head-port: int</span> -<span id="L932" class="LineNr"> 932 </span> 0x1f6/imm32 -<span id="L933" class="LineNr"> 933 </span> <span class="subxComment"># sector-count-port: int</span> -<span id="L934" class="LineNr"> 934 </span> 0x1f2/imm32 -<span id="L935" class="LineNr"> 935 </span> <span class="subxComment"># lba-low-port: int</span> -<span id="L936" class="LineNr"> 936 </span> 0x1f3/imm32 -<span id="L937" class="LineNr"> 937 </span> <span class="subxComment"># lba-mid-port: int</span> -<span id="L938" class="LineNr"> 938 </span> 0x1f4/imm32 -<span id="L939" class="LineNr"> 939 </span> <span class="subxComment"># lba-high-port: int</span> -<span id="L940" class="LineNr"> 940 </span> 0x1f5/imm32 -<span id="L941" class="LineNr"> 941 </span> <span class="subxComment"># data-port: int</span> -<span id="L942" class="LineNr"> 942 </span> 0x1f0/imm32 -<span id="L943" class="LineNr"> 943 </span> <span class="subxComment"># drive-code: byte # only drive-specific field</span> -<span id="L944" class="LineNr"> 944 </span> 0xe0/imm32 <span class="subxComment"># LBA mode also enabled</span> -<span id="L945" class="LineNr"> 945 </span> -<span id="L946" class="LineNr"> 946 </span><span class="subxComment"># data disk</span> -<span id="L947" class="LineNr"> 947 </span><span class="subxComment"># All ports are 8-bit except data-port, which is 16-bit.</span> -<span id="L948" class="LineNr"> 948 </span><span class="SpecialChar">Primary-bus-secondary-drive</span>: -<span id="L949" class="LineNr"> 949 </span> <span class="subxComment"># command-port: int (write)</span> -<span id="L950" class="LineNr"> 950 </span> 0x1f7/imm32 -<span id="L951" class="LineNr"> 951 </span> <span class="subxComment"># status-port: int (read)</span> -<span id="L952" class="LineNr"> 952 </span> 0x1f7/imm32 -<span id="L953" class="LineNr"> 953 </span> <span class="subxComment"># alternative-status-port: int (read)</span> -<span id="L954" class="LineNr"> 954 </span> 0x3f6/imm32 -<span id="L955" class="LineNr"> 955 </span> <span class="subxComment"># error-port: int (read)</span> -<span id="L956" class="LineNr"> 956 </span> 0x1f1/imm32 -<span id="L957" class="LineNr"> 957 </span> <span class="subxComment"># drive-and-head-port: int</span> -<span id="L958" class="LineNr"> 958 </span> 0x1f6/imm32 -<span id="L959" class="LineNr"> 959 </span> <span class="subxComment"># sector-count-port: int</span> -<span id="L960" class="LineNr"> 960 </span> 0x1f2/imm32 -<span id="L961" class="LineNr"> 961 </span> <span class="subxComment"># lba-low-port: int</span> -<span id="L962" class="LineNr"> 962 </span> 0x1f3/imm32 -<span id="L963" class="LineNr"> 963 </span> <span class="subxComment"># lba-mid-port: int</span> -<span id="L964" class="LineNr"> 964 </span> 0x1f4/imm32 -<span id="L965" class="LineNr"> 965 </span> <span class="subxComment"># lba-high-port: int</span> -<span id="L966" class="LineNr"> 966 </span> 0x1f5/imm32 -<span id="L967" class="LineNr"> 967 </span> <span class="subxComment"># data-port: int</span> -<span id="L968" class="LineNr"> 968 </span> 0x1f0/imm32 -<span id="L969" class="LineNr"> 969 </span> <span class="subxComment"># drive-code: byte # only drive-specific field</span> -<span id="L970" class="LineNr"> 970 </span> 0xf0/imm32 <span class="subxComment"># LBA mode also enabled</span> -<span id="L971" class="LineNr"> 971 </span> -<span id="L972" class="LineNr"> 972 </span>== code -<span id="L973" class="LineNr"> 973 </span> -<span id="L974" class="LineNr"> 974 </span><span class="subxFunction">load-sectors</span>: <span class="subxComment"># disk: (addr disk), lba: int, n: int, out: (addr stream byte)</span> -<span id="L975" class="LineNr"> 975 </span> <span class="subxS1Comment"># . prologue</span> -<span id="L976" class="LineNr"> 976 </span> 55/push-ebp -<span id="L977" class="LineNr"> 977 </span> 89/<- %ebp 4/r32/esp -<span id="L978" class="LineNr"> 978 </span> <span class="subxS1Comment"># . save registers</span> -<span id="L979" class="LineNr"> 979 </span> 50/push-eax -<span id="L980" class="LineNr"> 980 </span> 51/push-ecx -<span id="L981" class="LineNr"> 981 </span> 52/push-edx -<span id="L982" class="LineNr"> 982 </span> <span class="subxComment"># check for drive</span> -<span id="L983" class="LineNr"> 983 </span> (<a href='boot.subx.html#L1146'>drive-exists?</a> *(ebp+8)) <span class="subxComment"># => eax</span> -<span id="L984" class="LineNr"> 984 </span> 3d/compare-eax-and 0/imm32/false -<span id="L985" class="LineNr"> 985 </span> 0f 84/jump-if-= $load-sectors:end/disp32 -<span id="L986" class="LineNr"> 986 </span> <span class="subxComment"># kick off read</span> -<span id="L987" class="LineNr"> 987 </span> (<a href='boot.subx.html#L1210'>ata-drive-select</a> *(ebp+8) *(ebp+0xc)) -<span id="L988" class="LineNr"> 988 </span> (<a href='boot.subx.html#L1239'>clear-ata-error</a> *(ebp+8)) -<span id="L989" class="LineNr"> 989 </span> (<a href='boot.subx.html#L1261'>ata-sector-count</a> *(ebp+8) *(ebp+0x10)) -<span id="L990" class="LineNr"> 990 </span> (<a href='boot.subx.html#L1283'>ata-lba</a> *(ebp+8) *(ebp+0xc)) -<span id="L991" class="LineNr"> 991 </span> (<a href='boot.subx.html#L1314'>ata-command</a> *(ebp+8) 0x20) <span class="subxComment"># read sectors with retries</span> -<span id="L992" class="LineNr"> 992 </span> <span class="subxComment"># for each sector</span> -<span id="L993" class="LineNr"> 993 </span> { -<span id="L994" class="LineNr"> 994 </span> <span class="subxComment"># poll for results</span> -<span id="L995" class="LineNr"> 995 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "waiting for sector.." 7 0)</span> -<span id="L996" class="LineNr"> 996 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "." 7 0)</span> -<span id="L997" class="LineNr"> 997 </span> (<a href='boot.subx.html#L1336'>while-ata-busy</a> *(ebp+8)) -<span id="L998" class="LineNr"> 998 </span> (<a href='boot.subx.html#L1355'>until-ata-data-available</a> *(ebp+8)) -<span id="L999" class="LineNr"> 999 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "reading\n" 7 0)</span> -<span id="L1000" class="LineNr">1000 </span> <span class="subxComment"># var data-port/edx = disk->data-port</span> -<span id="L1001" class="LineNr">1001 </span> 8b/-> *(ebp+8) 0/r32/eax -<span id="L1002" class="LineNr">1002 </span> 8b/-> *(eax+0x24) 2/r32/edx -<span id="L1003" class="LineNr">1003 </span> <span class="subxComment"># emit results</span> -<span id="L1004" class="LineNr">1004 </span> 31/xor %eax 0/r32/eax -<span id="L1005" class="LineNr">1005 </span> b9/copy-to-ecx 0x200/imm32 <span class="subxComment"># 512 bytes per sector</span> -<span id="L1006" class="LineNr">1006 </span> { -<span id="L1007" class="LineNr">1007 </span> 81 7/subop/compare %ecx 0/imm32 -<span id="L1008" class="LineNr">1008 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 -<span id="L1009" class="LineNr">1009 </span> 66 ed/read-port-dx-into-ax -<span id="L1010" class="LineNr">1010 </span> <span class="subxComment"># write 2 bytes to stream one at a time</span> -<span id="L1011" class="LineNr">1011 </span> (<a href='115write-byte.subx.html#L12'>append-byte</a> *(ebp+0x14) %eax) -<span id="L1012" class="LineNr">1012 </span> 49/decrement-ecx -<span id="L1013" class="LineNr">1013 </span> c1/shift 5/subop/right-padding-zeroes %eax 8/imm8 -<span id="L1014" class="LineNr">1014 </span> (<a href='115write-byte.subx.html#L12'>append-byte</a> *(ebp+0x14) %eax) -<span id="L1015" class="LineNr">1015 </span> 49/decrement-ecx -<span id="L1016" class="LineNr">1016 </span> eb/jump <span class="Constant">loop</span>/disp8 -<span id="L1017" class="LineNr">1017 </span> } -<span id="L1018" class="LineNr">1018 </span> <span class="subxComment"># next sector</span> -<span id="L1019" class="LineNr">1019 </span> ff 1/subop/decrement *(ebp+0x10) -<span id="L1020" class="LineNr">1020 </span><span class="CommentedCode">#? (draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0 *(ebp+0x10) 0xc 0)</span> -<span id="L1021" class="LineNr">1021 </span> 81 7/subop/compare *(ebp+0x10) 0/imm32 -<span id="L1022" class="LineNr">1022 </span> 7e/jump-if-<= <span class="Constant">break</span>/disp8 -<span id="L1023" class="LineNr">1023 </span> (<a href='boot.subx.html#L1379'>wait-400ns</a> *(ebp+8)) -<span id="L1024" class="LineNr">1024 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "next sector\n" 7 0)</span> -<span id="L1025" class="LineNr">1025 </span> e9/jump <span class="Constant">loop</span>/disp32 -<span id="L1026" class="LineNr">1026 </span> } -<span id="L1027" class="LineNr">1027 </span><span class="Constant">$load-sectors:end</span>: -<span id="L1028" class="LineNr">1028 </span> <span class="subxS1Comment"># . restore registers</span> -<span id="L1029" class="LineNr">1029 </span> 5a/pop-to-edx -<span id="L1030" class="LineNr">1030 </span> 59/pop-to-ecx -<span id="L1031" class="LineNr">1031 </span> 58/pop-to-eax -<span id="L1032" class="LineNr">1032 </span> <span class="subxS1Comment"># . epilogue</span> -<span id="L1033" class="LineNr">1033 </span> 89/<- %esp 5/r32/ebp -<span id="L1034" class="LineNr">1034 </span> 5d/pop-to-ebp -<span id="L1035" class="LineNr">1035 </span> c3/return -<span id="L1036" class="LineNr">1036 </span> -<span id="L1037" class="LineNr">1037 </span><span class="subxFunction">store-sectors</span>: <span class="subxComment"># disk: (addr disk), lba: int, n: int, in: (addr stream byte)</span> -<span id="L1038" class="LineNr">1038 </span> <span class="subxS1Comment"># . prologue</span> -<span id="L1039" class="LineNr">1039 </span> 55/push-ebp -<span id="L1040" class="LineNr">1040 </span> 89/<- %ebp 4/r32/esp -<span id="L1041" class="LineNr">1041 </span> <span class="subxS1Comment"># . save registers</span> -<span id="L1042" class="LineNr">1042 </span> 50/push-eax -<span id="L1043" class="LineNr">1043 </span> 51/push-ecx -<span id="L1044" class="LineNr">1044 </span> 52/push-edx -<span id="L1045" class="LineNr">1045 </span> 53/push-ebx -<span id="L1046" class="LineNr">1046 </span> <span class="subxComment"># check for drive</span> -<span id="L1047" class="LineNr">1047 </span> (<a href='boot.subx.html#L1146'>drive-exists?</a> *(ebp+8)) <span class="subxComment"># => eax</span> -<span id="L1048" class="LineNr">1048 </span> 3d/compare-eax-and 0/imm32/false -<span id="L1049" class="LineNr">1049 </span> 0f 84/jump-if-= $store-sectors:end/disp32 -<span id="L1050" class="LineNr">1050 </span> <span class="subxComment"># kick off write</span> -<span id="L1051" class="LineNr">1051 </span> (<a href='boot.subx.html#L1210'>ata-drive-select</a> *(ebp+8) *(ebp+0xc)) -<span id="L1052" class="LineNr">1052 </span> (<a href='boot.subx.html#L1239'>clear-ata-error</a> *(ebp+8)) -<span id="L1053" class="LineNr">1053 </span> (<a href='boot.subx.html#L1261'>ata-sector-count</a> *(ebp+8) *(ebp+0x10)) -<span id="L1054" class="LineNr">1054 </span> (<a href='boot.subx.html#L1283'>ata-lba</a> *(ebp+8) *(ebp+0xc)) -<span id="L1055" class="LineNr">1055 </span> (<a href='boot.subx.html#L1314'>ata-command</a> *(ebp+8) 0x30) <span class="subxComment"># write sectors with retries</span> -<span id="L1056" class="LineNr">1056 </span> <span class="subxComment"># for each sector</span> -<span id="L1057" class="LineNr">1057 </span><span class="CommentedCode">#? (set-cursor-position 0 0 0)</span> -<span id="L1058" class="LineNr">1058 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "0" 7 0)</span> -<span id="L1059" class="LineNr">1059 </span> { -<span id="L1060" class="LineNr">1060 </span> <span class="subxComment"># wait</span> -<span id="L1061" class="LineNr">1061 </span> (<a href='boot.subx.html#L1336'>while-ata-busy</a> *(ebp+8)) -<span id="L1062" class="LineNr">1062 </span> (<a href='boot.subx.html#L1374'>until-ata-ready-for-data</a> *(ebp+8)) -<span id="L1063" class="LineNr">1063 </span> <span class="subxComment"># var data-port/edx = disk->data-port</span> -<span id="L1064" class="LineNr">1064 </span> 8b/-> *(ebp+8) 0/r32/eax -<span id="L1065" class="LineNr">1065 </span> 8b/-> *(eax+0x24) 2/r32/edx -<span id="L1066" class="LineNr">1066 </span> <span class="subxComment"># send data</span> -<span id="L1067" class="LineNr">1067 </span> b9/copy-to-ecx 0x200/imm32 <span class="subxComment"># 512 bytes per sector</span> -<span id="L1068" class="LineNr">1068 </span> <span class="subxS1Comment"># . var first-byte/ebx: byte</span> -<span id="L1069" class="LineNr">1069 </span> <span class="subxS1Comment"># . when it's more than 0xff, we're at an even-numbered byte</span> -<span id="L1070" class="LineNr">1070 </span> bb/copy-to-ebx 0xffff/imm32 -<span id="L1071" class="LineNr">1071 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "D" 7 0)</span> -<span id="L1072" class="LineNr">1072 </span><span class="Constant">$store-sectors:store-sector</span>: -<span id="L1073" class="LineNr">1073 </span> { -<span id="L1074" class="LineNr">1074 </span> 81 7/subop/compare %ecx 0/imm32 -<span id="L1075" class="LineNr">1075 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 -<span id="L1076" class="LineNr">1076 </span> <span class="subxComment"># this loop is slow, but the ATA spec also requires a small delay</span> -<span id="L1077" class="LineNr">1077 </span> (<a href='309stream.subx.html#L6'>stream-empty?</a> *(ebp+0x14)) <span class="subxComment"># => eax</span> -<span id="L1078" class="LineNr">1078 </span> 3d/compare-eax-and 0/imm32/false -<span id="L1079" class="LineNr">1079 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 -<span id="L1080" class="LineNr">1080 </span> <span class="subxComment"># read byte from stream</span> -<span id="L1081" class="LineNr">1081 </span> (<a href='112read-byte.subx.html#L13'>read-byte</a> *(ebp+0x14)) <span class="subxComment"># => eax</span> -<span id="L1082" class="LineNr">1082 </span> <span class="subxComment"># if we're at an odd-numbered byte, save it to first-byte</span> -<span id="L1083" class="LineNr">1083 </span> 81 7/subop/compare %ebx 0xff/imm32 -<span id="L1084" class="LineNr">1084 </span> { -<span id="L1085" class="LineNr">1085 </span> 7e/jump-if-<= <span class="Constant">break</span>/disp8 -<span id="L1086" class="LineNr">1086 </span> 89/<- %ebx 0/r32/eax -<span id="L1087" class="LineNr">1087 </span> eb/jump $store-sectors:store-sector/disp8 -<span id="L1088" class="LineNr">1088 </span> } -<span id="L1089" class="LineNr">1089 </span> <span class="subxComment"># otherwise OR it with first-byte and write it out</span> -<span id="L1090" class="LineNr">1090 </span> c1/shift 4/subop/left %eax 8/imm8 -<span id="L1091" class="LineNr">1091 </span> 09/or %eax 3/r32/ebx -<span id="L1092" class="LineNr">1092 </span> 66 ef/write-ax-into-port-dx -<span id="L1093" class="LineNr">1093 </span> 49/decrement-ecx -<span id="L1094" class="LineNr">1094 </span> 49/decrement-ecx -<span id="L1095" class="LineNr">1095 </span> <span class="subxComment"># reset first-byte</span> -<span id="L1096" class="LineNr">1096 </span> bb/copy-to-ebx 0xffff/imm32 -<span id="L1097" class="LineNr">1097 </span> eb/jump <span class="Constant">loop</span>/disp8 -<span id="L1098" class="LineNr">1098 </span> } -<span id="L1099" class="LineNr">1099 </span> <span class="subxComment"># write out final first-byte if necessary</span> -<span id="L1100" class="LineNr">1100 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "I" 7 0)</span> -<span id="L1101" class="LineNr">1101 </span> 81 7/subop/compare %ebx 0xff/imm32 -<span id="L1102" class="LineNr">1102 </span> { -<span id="L1103" class="LineNr">1103 </span> 7f/jump-if-> <span class="Constant">break</span>/disp8 -<span id="L1104" class="LineNr">1104 </span> 89/<- %eax 3/r32/ebx -<span id="L1105" class="LineNr">1105 </span> 66 ef/write-ax-into-port-dx -<span id="L1106" class="LineNr">1106 </span> 49/decrement-ecx -<span id="L1107" class="LineNr">1107 </span> 49/decrement-ecx -<span id="L1108" class="LineNr">1108 </span> } -<span id="L1109" class="LineNr">1109 </span> <span class="subxComment"># pad zeroes</span> -<span id="L1110" class="LineNr">1110 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "P" 7 0)</span> -<span id="L1111" class="LineNr">1111 </span> 31/xor %eax 0/r32/eax -<span id="L1112" class="LineNr">1112 </span> { -<span id="L1113" class="LineNr">1113 </span> 81 7/subop/compare %ecx 0/imm32 -<span id="L1114" class="LineNr">1114 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 -<span id="L1115" class="LineNr">1115 </span> 66 ef/write-ax-into-port-dx -<span id="L1116" class="LineNr">1116 </span> 49/decrement-ecx -<span id="L1117" class="LineNr">1117 </span> 49/decrement-ecx -<span id="L1118" class="LineNr">1118 </span> eb/jump <span class="Constant">loop</span>/disp8 -<span id="L1119" class="LineNr">1119 </span> } -<span id="L1120" class="LineNr">1120 </span> <span class="subxComment"># next sector</span> -<span id="L1121" class="LineNr">1121 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "N" 7 0)</span> -<span id="L1122" class="LineNr">1122 </span> ff 1/subop/decrement *(ebp+0x10) -<span id="L1123" class="LineNr">1123 </span> 81 7/subop/compare *(ebp+0x10) 0/imm32 -<span id="L1124" class="LineNr">1124 </span> 7e/jump-if-<= <span class="Constant">break</span>/disp8 -<span id="L1125" class="LineNr">1125 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "W" 7 0)</span> -<span id="L1126" class="LineNr">1126 </span> (<a href='boot.subx.html#L1379'>wait-400ns</a> *(ebp+8)) -<span id="L1127" class="LineNr">1127 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "L" 7 0)</span> -<span id="L1128" class="LineNr">1128 </span> e9/jump <span class="Constant">loop</span>/disp32 -<span id="L1129" class="LineNr">1129 </span> } -<span id="L1130" class="LineNr">1130 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "F" 7 0)</span> -<span id="L1131" class="LineNr">1131 </span> (<a href='boot.subx.html#L1413'>flush-ata-cache</a> *(ebp+8)) -<span id="L1132" class="LineNr">1132 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "Y" 7 0)</span> -<span id="L1133" class="LineNr">1133 </span><span class="Constant">$store-sectors:end</span>: -<span id="L1134" class="LineNr">1134 </span> <span class="subxS1Comment"># . restore registers</span> -<span id="L1135" class="LineNr">1135 </span> 5b/pop-to-ebx -<span id="L1136" class="LineNr">1136 </span> 5a/pop-to-edx -<span id="L1137" class="LineNr">1137 </span> 59/pop-to-ecx -<span id="L1138" class="LineNr">1138 </span> 58/pop-to-eax -<span id="L1139" class="LineNr">1139 </span> <span class="subxS1Comment"># . epilogue</span> -<span id="L1140" class="LineNr">1140 </span> 89/<- %esp 5/r32/ebp -<span id="L1141" class="LineNr">1141 </span> 5d/pop-to-ebp -<span id="L1142" class="LineNr">1142 </span> c3/return -<span id="L1143" class="LineNr">1143 </span> -<span id="L1144" class="Folded">1144 </span><span class="Folded">+--289 lines: # disk helpers ------------------------------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L1433" class="LineNr">1433 </span> -<span id="L1434" class="LineNr">1434 </span><span class="subxComment">## Controlling a PS/2 mouse</span> -<span id="L1435" class="LineNr">1435 </span><span class="subxComment"># Uses no IRQs, just polling.</span> -<span id="L1436" class="LineNr">1436 </span><span class="subxComment"># Thanks Dave Long: <a href="https://github.com/jtauber/cleese/blob/master/necco/kernel/bochs/py8042.py">https://github.com/jtauber/cleese/blob/master/necco/kernel/bochs/py8042.py</a></span> -<span id="L1437" class="LineNr">1437 </span><span class="subxComment">#</span> -<span id="L1438" class="LineNr">1438 </span><span class="subxComment"># Resources:</span> -<span id="L1439" class="LineNr">1439 </span><span class="subxComment"># <a href="https://wiki.osdev.org/Mouse_Input">https://wiki.osdev.org/Mouse_Input</a></span> -<span id="L1440" class="LineNr">1440 </span> -<span id="L1441" class="LineNr">1441 </span><span class="subxComment"># results x/eax, y/ecx range from -256 to +255</span> -<span id="L1442" class="LineNr">1442 </span><span class="subxComment"># See <a href="https://wiki.osdev.org/index.php?title=Mouse_Input&oldid=25663#Format_of_First_3_Packet_Bytes">https://wiki.osdev.org/index.php?title=Mouse_Input&oldid=25663#Format_of_First_3_Packet_Bytes</a></span> -<span id="L1443" class="LineNr">1443 </span><span class="subxFunction">read-mouse-event</span>: <span class="subxComment"># -> _/eax: int, _/ecx: int</span> -<span id="L1444" class="LineNr">1444 </span> <span class="subxS1Comment"># . prologue</span> -<span id="L1445" class="LineNr">1445 </span> 55/push-ebp -<span id="L1446" class="LineNr">1446 </span> 89/<- %ebp 4/r32/esp -<span id="L1447" class="LineNr">1447 </span> <span class="subxS1Comment"># . save registers</span> -<span id="L1448" class="LineNr">1448 </span> 52/push-edx -<span id="L1449" class="LineNr">1449 </span> 53/push-ebx -<span id="L1450" class="LineNr">1450 </span> <span class="subxComment"># if no event, return 0, 0</span> -<span id="L1451" class="LineNr">1451 </span> b8/copy-to-eax 0/imm32 -<span id="L1452" class="LineNr">1452 </span> b9/copy-to-ecx 0/imm32 -<span id="L1453" class="LineNr">1453 </span> (<a href='boot.subx.html#L1510'>any-mouse-event?</a>) <span class="subxComment"># => eax</span> -<span id="L1454" class="LineNr">1454 </span> 3d/compare-eax-and 0/imm32/false -<span id="L1455" class="LineNr">1455 </span> 74/jump-if-= $read-mouse-event:end/disp8 -<span id="L1456" class="LineNr">1456 </span> <span class="subxComment"># var f1/edx: byte = inb(0x60)</span> -<span id="L1457" class="LineNr">1457 </span> 31/xor %eax 0/r32/eax -<span id="L1458" class="LineNr">1458 </span> e4/read-port-into-al 0x60/imm8 -<span id="L1459" class="LineNr">1459 </span> 89/<- %edx 0/r32/eax -<span id="L1460" class="LineNr">1460 </span> (<a href='boot.subx.html#L1495'>wait-for-mouse-event</a>) -<span id="L1461" class="LineNr">1461 </span> <span class="subxComment"># var dx/ebx: byte = inb(0x60)</span> -<span id="L1462" class="LineNr">1462 </span> 31/xor %eax 0/r32/eax -<span id="L1463" class="LineNr">1463 </span> e4/read-port-into-al 0x60/imm8 -<span id="L1464" class="LineNr">1464 </span> 89/<- %ebx 0/r32/eax -<span id="L1465" class="LineNr">1465 </span> (<a href='boot.subx.html#L1495'>wait-for-mouse-event</a>) -<span id="L1466" class="LineNr">1466 </span> <span class="subxComment"># var dy/ecx: byte = inb(0x60)</span> -<span id="L1467" class="LineNr">1467 </span> 31/xor %eax 0/r32/eax -<span id="L1468" class="LineNr">1468 </span> e4/read-port-into-al 0x60/imm8 -<span id="L1469" class="LineNr">1469 </span> 89/<- %ecx 0/r32/eax -<span id="L1470" class="LineNr">1470 </span> <span class="subxComment"># eax = dx</span> -<span id="L1471" class="LineNr">1471 </span> 89/<- %eax 3/r32/ebx -<span id="L1472" class="LineNr">1472 </span> <span class="subxComment"># if (f1 & 0x10) dx = -dx</span> -<span id="L1473" class="LineNr">1473 </span> { -<span id="L1474" class="LineNr">1474 </span> f6 0/subop/test-bits %dl 0x10/imm8 -<span id="L1475" class="LineNr">1475 </span> 74/jump-if-zero <span class="Constant">break</span>/disp8 -<span id="L1476" class="LineNr">1476 </span> 0d/or-eax-with 0xffffff00/imm32 -<span id="L1477" class="LineNr">1477 </span> } -<span id="L1478" class="LineNr">1478 </span> <span class="subxComment"># if (f1 & 0x20) dy = -dy</span> -<span id="L1479" class="LineNr">1479 </span> { -<span id="L1480" class="LineNr">1480 </span> f6 0/subop/test-bits %dl 0x20/imm8 -<span id="L1481" class="LineNr">1481 </span> 74/jump-if-zero <span class="Constant">break</span>/disp8 -<span id="L1482" class="LineNr">1482 </span> 81 1/subop/or %ecx 0xffffff00/imm32 -<span id="L1483" class="LineNr">1483 </span> } -<span id="L1484" class="LineNr">1484 </span><span class="Constant">$read-mouse-event:end</span>: -<span id="L1485" class="LineNr">1485 </span> <span class="subxS1Comment"># . restore registers</span> -<span id="L1486" class="LineNr">1486 </span> 5b/pop-to-ebx -<span id="L1487" class="LineNr">1487 </span> 5a/pop-to-edx -<span id="L1488" class="LineNr">1488 </span> <span class="subxS1Comment"># . epilogue</span> -<span id="L1489" class="LineNr">1489 </span> 89/<- %esp 5/r32/ebp -<span id="L1490" class="LineNr">1490 </span> 5d/pop-to-ebp -<span id="L1491" class="LineNr">1491 </span> c3/return -<span id="L1492" class="LineNr">1492 </span> -<span id="L1493" class="Folded">1493 </span><span class="Folded">+--147 lines: # mouse helpers -----------------------------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L1640" class="LineNr">1640 </span> -<span id="L1641" class="LineNr">1641 </span><span class="subxComment"># vim:ft=subx</span> +<span id="L519" class="LineNr"> 519 </span> 00 00 00 00 +<span id="L520" class="LineNr"> 520 </span> +<span id="L521" class="Folded"> 521 </span><span class="Folded">+-- 95 lines: # Keyboard maps for translating keys to ASCII ----------------------------------------------------------------------------------------------------------------</span> +<span id="L616" class="LineNr"> 616 </span> +<span id="L617" class="LineNr"> 617 </span><span class="SpecialChar">Video-mode-info</span>: +<span id="L618" class="Folded"> 618 </span><span class="Folded">+-- 53 lines: # video mode info --------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L671" class="LineNr"> 671 </span> +<span id="L672" class="LineNr"> 672 </span><span class="SpecialChar">Font</span>: +<span id="L673" class="Folded"> 673 </span><span class="Folded">+--236 lines: # Bitmaps for some ASCII characters (soon Unicode) -----------------------------------------------------------------------------------------------------------</span> +<span id="L909" class="LineNr"> 909 </span> +<span id="L910" class="LineNr"> 910 </span><span class="subxComment">## Controlling IDE (ATA) hard disks</span> +<span id="L911" class="LineNr"> 911 </span><span class="subxComment"># Uses 28-bit PIO mode.</span> +<span id="L912" class="LineNr"> 912 </span><span class="subxComment"># Inspired by <a href="https://colorforth.github.io/ide.html">https://colorforth.github.io/ide.html</a></span> +<span id="L913" class="LineNr"> 913 </span><span class="subxComment">#</span> +<span id="L914" class="LineNr"> 914 </span><span class="subxComment"># Resources:</span> +<span id="L915" class="LineNr"> 915 </span><span class="subxComment"># <a href="https://wiki.osdev.org/ATA_PIO_Mode">https://wiki.osdev.org/ATA_PIO_Mode</a></span> +<span id="L916" class="LineNr"> 916 </span><span class="subxComment"># <a href="https://forum.osdev.org/viewtopic.php?f=1&p=167798">https://forum.osdev.org/viewtopic.php?f=1&p=167798</a></span> +<span id="L917" class="LineNr"> 917 </span><span class="subxComment"># read-sector, according to <a href="https://www.scs.stanford.edu/11wi-cs140/pintos/specs/ata-3-std.pdf">https://www.scs.stanford.edu/11wi-cs140/pintos/specs/ata-3-std.pdf</a></span> +<span id="L918" class="LineNr"> 918 </span> +<span id="L919" class="LineNr"> 919 </span>== data +<span id="L920" class="LineNr"> 920 </span> +<span id="L921" class="LineNr"> 921 </span><span class="subxComment"># code disk</span> +<span id="L922" class="LineNr"> 922 </span><span class="subxComment"># All ports are 8-bit except data-port, which is 16-bit.</span> +<span id="L923" class="LineNr"> 923 </span><span class="SpecialChar">Primary-bus-primary-drive</span>: +<span id="L924" class="LineNr"> 924 </span> <span class="subxComment"># command-port: int (write)</span> +<span id="L925" class="LineNr"> 925 </span> 0x1f7/imm32 +<span id="L926" class="LineNr"> 926 </span> <span class="subxComment"># status-port: int (read)</span> +<span id="L927" class="LineNr"> 927 </span> 0x1f7/imm32 +<span id="L928" class="LineNr"> 928 </span> <span class="subxComment"># alternative-status-port: int (read)</span> +<span id="L929" class="LineNr"> 929 </span> 0x3f6/imm32 +<span id="L930" class="LineNr"> 930 </span> <span class="subxComment"># error-port: int (read)</span> +<span id="L931" class="LineNr"> 931 </span> 0x1f1/imm32 +<span id="L932" class="LineNr"> 932 </span> <span class="subxComment"># drive-and-head-port: int</span> +<span id="L933" class="LineNr"> 933 </span> 0x1f6/imm32 +<span id="L934" class="LineNr"> 934 </span> <span class="subxComment"># sector-count-port: int</span> +<span id="L935" class="LineNr"> 935 </span> 0x1f2/imm32 +<span id="L936" class="LineNr"> 936 </span> <span class="subxComment"># lba-low-port: int</span> +<span id="L937" class="LineNr"> 937 </span> 0x1f3/imm32 +<span id="L938" class="LineNr"> 938 </span> <span class="subxComment"># lba-mid-port: int</span> +<span id="L939" class="LineNr"> 939 </span> 0x1f4/imm32 +<span id="L940" class="LineNr"> 940 </span> <span class="subxComment"># lba-high-port: int</span> +<span id="L941" class="LineNr"> 941 </span> 0x1f5/imm32 +<span id="L942" class="LineNr"> 942 </span> <span class="subxComment"># data-port: int</span> +<span id="L943" class="LineNr"> 943 </span> 0x1f0/imm32 +<span id="L944" class="LineNr"> 944 </span> <span class="subxComment"># drive-code: byte # only drive-specific field</span> +<span id="L945" class="LineNr"> 945 </span> 0xe0/imm32 <span class="subxComment"># LBA mode also enabled</span> +<span id="L946" class="LineNr"> 946 </span> +<span id="L947" class="LineNr"> 947 </span><span class="subxComment"># data disk</span> +<span id="L948" class="LineNr"> 948 </span><span class="subxComment"># All ports are 8-bit except data-port, which is 16-bit.</span> +<span id="L949" class="LineNr"> 949 </span><span class="SpecialChar">Primary-bus-secondary-drive</span>: +<span id="L950" class="LineNr"> 950 </span> <span class="subxComment"># command-port: int (write)</span> +<span id="L951" class="LineNr"> 951 </span> 0x1f7/imm32 +<span id="L952" class="LineNr"> 952 </span> <span class="subxComment"># status-port: int (read)</span> +<span id="L953" class="LineNr"> 953 </span> 0x1f7/imm32 +<span id="L954" class="LineNr"> 954 </span> <span class="subxComment"># alternative-status-port: int (read)</span> +<span id="L955" class="LineNr"> 955 </span> 0x3f6/imm32 +<span id="L956" class="LineNr"> 956 </span> <span class="subxComment"># error-port: int (read)</span> +<span id="L957" class="LineNr"> 957 </span> 0x1f1/imm32 +<span id="L958" class="LineNr"> 958 </span> <span class="subxComment"># drive-and-head-port: int</span> +<span id="L959" class="LineNr"> 959 </span> 0x1f6/imm32 +<span id="L960" class="LineNr"> 960 </span> <span class="subxComment"># sector-count-port: int</span> +<span id="L961" class="LineNr"> 961 </span> 0x1f2/imm32 +<span id="L962" class="LineNr"> 962 </span> <span class="subxComment"># lba-low-port: int</span> +<span id="L963" class="LineNr"> 963 </span> 0x1f3/imm32 +<span id="L964" class="LineNr"> 964 </span> <span class="subxComment"># lba-mid-port: int</span> +<span id="L965" class="LineNr"> 965 </span> 0x1f4/imm32 +<span id="L966" class="LineNr"> 966 </span> <span class="subxComment"># lba-high-port: int</span> +<span id="L967" class="LineNr"> 967 </span> 0x1f5/imm32 +<span id="L968" class="LineNr"> 968 </span> <span class="subxComment"># data-port: int</span> +<span id="L969" class="LineNr"> 969 </span> 0x1f0/imm32 +<span id="L970" class="LineNr"> 970 </span> <span class="subxComment"># drive-code: byte # only drive-specific field</span> +<span id="L971" class="LineNr"> 971 </span> 0xf0/imm32 <span class="subxComment"># LBA mode also enabled</span> +<span id="L972" class="LineNr"> 972 </span> +<span id="L973" class="LineNr"> 973 </span>== code +<span id="L974" class="LineNr"> 974 </span> +<span id="L975" class="LineNr"> 975 </span><span class="subxComment"># No more than 0x100 sectors</span> +<span id="L976" class="LineNr"> 976 </span><span class="subxFunction">load-sectors</span>: <span class="subxComment"># disk: (addr disk), lba: int, n: int, out: (addr stream byte)</span> +<span id="L977" class="LineNr"> 977 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L978" class="LineNr"> 978 </span> 55/push-ebp +<span id="L979" class="LineNr"> 979 </span> 89/<- %ebp 4/r32/esp +<span id="L980" class="LineNr"> 980 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L981" class="LineNr"> 981 </span> 50/push-eax +<span id="L982" class="LineNr"> 982 </span> 51/push-ecx +<span id="L983" class="LineNr"> 983 </span> 52/push-edx +<span id="L984" class="LineNr"> 984 </span> <span class="subxComment"># check precondition</span> +<span id="L985" class="LineNr"> 985 </span> 81 7/subop/compare *(ebp+0x10) 0x100/imm32 +<span id="L986" class="LineNr"> 986 </span> { +<span id="L987" class="LineNr"> 987 </span> 7e/jump-if-<= <span class="Constant">break</span>/disp8 +<span id="L988" class="LineNr"> 988 </span> (<a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"load-sectors: no more than 0x100 sectors"</span>) +<span id="L989" class="LineNr"> 989 </span> } +<span id="L990" class="LineNr"> 990 </span> <span class="subxComment"># check for drive</span> +<span id="L991" class="LineNr"> 991 </span> (<a href='boot.subx.html#L1154'>drive-exists?</a> *(ebp+8)) <span class="subxComment"># => eax</span> +<span id="L992" class="LineNr"> 992 </span> 3d/compare-eax-and 0/imm32/false +<span id="L993" class="LineNr"> 993 </span> 0f 84/jump-if-= $load-sectors:end/disp32 +<span id="L994" class="LineNr"> 994 </span> <span class="subxComment"># kick off read</span> +<span id="L995" class="LineNr"> 995 </span> (<a href='boot.subx.html#L1218'>ata-drive-select</a> *(ebp+8) *(ebp+0xc)) +<span id="L996" class="LineNr"> 996 </span> (<a href='boot.subx.html#L1247'>clear-ata-error</a> *(ebp+8)) +<span id="L997" class="LineNr"> 997 </span> (<a href='boot.subx.html#L1269'>ata-sector-count</a> *(ebp+8) *(ebp+0x10)) +<span id="L998" class="LineNr"> 998 </span> (<a href='boot.subx.html#L1291'>ata-lba</a> *(ebp+8) *(ebp+0xc)) +<span id="L999" class="LineNr"> 999 </span> (<a href='boot.subx.html#L1322'>ata-command</a> *(ebp+8) 0x20) <span class="subxComment"># read sectors with retries</span> +<span id="L1000" class="LineNr">1000 </span> <span class="subxComment"># for each sector</span> +<span id="L1001" class="LineNr">1001 </span> { +<span id="L1002" class="LineNr">1002 </span> <span class="subxComment"># poll for results</span> +<span id="L1003" class="LineNr">1003 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "waiting for sector.." 7 0)</span> +<span id="L1004" class="LineNr">1004 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "." 7 0)</span> +<span id="L1005" class="LineNr">1005 </span> (<a href='boot.subx.html#L1344'>while-ata-busy</a> *(ebp+8)) +<span id="L1006" class="LineNr">1006 </span> (<a href='boot.subx.html#L1363'>until-ata-data-available</a> *(ebp+8)) +<span id="L1007" class="LineNr">1007 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "reading\n" 7 0)</span> +<span id="L1008" class="LineNr">1008 </span> <span class="subxComment"># var data-port/edx = disk->data-port</span> +<span id="L1009" class="LineNr">1009 </span> 8b/-> *(ebp+8) 0/r32/eax +<span id="L1010" class="LineNr">1010 </span> 8b/-> *(eax+0x24) 2/r32/edx +<span id="L1011" class="LineNr">1011 </span> <span class="subxComment"># emit results</span> +<span id="L1012" class="LineNr">1012 </span> 31/xor %eax 0/r32/eax +<span id="L1013" class="LineNr">1013 </span> b9/copy-to-ecx 0x200/imm32 <span class="subxComment"># 512 bytes per sector</span> +<span id="L1014" class="LineNr">1014 </span> { +<span id="L1015" class="LineNr">1015 </span> 81 7/subop/compare %ecx 0/imm32 +<span id="L1016" class="LineNr">1016 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 +<span id="L1017" class="LineNr">1017 </span> 66 ed/read-port-dx-into-ax +<span id="L1018" class="LineNr">1018 </span> <span class="subxComment"># write 2 bytes to stream one at a time</span> +<span id="L1019" class="LineNr">1019 </span> (<a href='115write-byte.subx.html#L12'>append-byte</a> *(ebp+0x14) %eax) +<span id="L1020" class="LineNr">1020 </span> 49/decrement-ecx +<span id="L1021" class="LineNr">1021 </span> c1/shift 5/subop/right-padding-zeroes %eax 8/imm8 +<span id="L1022" class="LineNr">1022 </span> (<a href='115write-byte.subx.html#L12'>append-byte</a> *(ebp+0x14) %eax) +<span id="L1023" class="LineNr">1023 </span> 49/decrement-ecx +<span id="L1024" class="LineNr">1024 </span> eb/jump <span class="Constant">loop</span>/disp8 +<span id="L1025" class="LineNr">1025 </span> } +<span id="L1026" class="LineNr">1026 </span> <span class="subxComment"># next sector</span> +<span id="L1027" class="LineNr">1027 </span> ff 1/subop/decrement *(ebp+0x10) +<span id="L1028" class="LineNr">1028 </span><span class="CommentedCode">#? (draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0 *(ebp+0x10) 0xc 0)</span> +<span id="L1029" class="LineNr">1029 </span> 81 7/subop/compare *(ebp+0x10) 0/imm32 +<span id="L1030" class="LineNr">1030 </span> 7e/jump-if-<= <span class="Constant">break</span>/disp8 +<span id="L1031" class="LineNr">1031 </span> (<a href='boot.subx.html#L1387'>wait-400ns</a> *(ebp+8)) +<span id="L1032" class="LineNr">1032 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "next sector\n" 7 0)</span> +<span id="L1033" class="LineNr">1033 </span> e9/jump <span class="Constant">loop</span>/disp32 +<span id="L1034" class="LineNr">1034 </span> } +<span id="L1035" class="LineNr">1035 </span><span class="Constant">$load-sectors:end</span>: +<span id="L1036" class="LineNr">1036 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L1037" class="LineNr">1037 </span> 5a/pop-to-edx +<span id="L1038" class="LineNr">1038 </span> 59/pop-to-ecx +<span id="L1039" class="LineNr">1039 </span> 58/pop-to-eax +<span id="L1040" class="LineNr">1040 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L1041" class="LineNr">1041 </span> 89/<- %esp 5/r32/ebp +<span id="L1042" class="LineNr">1042 </span> 5d/pop-to-ebp +<span id="L1043" class="LineNr">1043 </span> c3/return +<span id="L1044" class="LineNr">1044 </span> +<span id="L1045" class="LineNr">1045 </span><span class="subxFunction">store-sectors</span>: <span class="subxComment"># disk: (addr disk), lba: int, n: int, in: (addr stream byte)</span> +<span id="L1046" class="LineNr">1046 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L1047" class="LineNr">1047 </span> 55/push-ebp +<span id="L1048" class="LineNr">1048 </span> 89/<- %ebp 4/r32/esp +<span id="L1049" class="LineNr">1049 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L1050" class="LineNr">1050 </span> 50/push-eax +<span id="L1051" class="LineNr">1051 </span> 51/push-ecx +<span id="L1052" class="LineNr">1052 </span> 52/push-edx +<span id="L1053" class="LineNr">1053 </span> 53/push-ebx +<span id="L1054" class="LineNr">1054 </span> <span class="subxComment"># check for drive</span> +<span id="L1055" class="LineNr">1055 </span> (<a href='boot.subx.html#L1154'>drive-exists?</a> *(ebp+8)) <span class="subxComment"># => eax</span> +<span id="L1056" class="LineNr">1056 </span> 3d/compare-eax-and 0/imm32/false +<span id="L1057" class="LineNr">1057 </span> 0f 84/jump-if-= $store-sectors:end/disp32 +<span id="L1058" class="LineNr">1058 </span> <span class="subxComment"># kick off write</span> +<span id="L1059" class="LineNr">1059 </span> (<a href='boot.subx.html#L1218'>ata-drive-select</a> *(ebp+8) *(ebp+0xc)) +<span id="L1060" class="LineNr">1060 </span> (<a href='boot.subx.html#L1247'>clear-ata-error</a> *(ebp+8)) +<span id="L1061" class="LineNr">1061 </span> (<a href='boot.subx.html#L1269'>ata-sector-count</a> *(ebp+8) *(ebp+0x10)) +<span id="L1062" class="LineNr">1062 </span> (<a href='boot.subx.html#L1291'>ata-lba</a> *(ebp+8) *(ebp+0xc)) +<span id="L1063" class="LineNr">1063 </span> (<a href='boot.subx.html#L1322'>ata-command</a> *(ebp+8) 0x30) <span class="subxComment"># write sectors with retries</span> +<span id="L1064" class="LineNr">1064 </span> <span class="subxComment"># for each sector</span> +<span id="L1065" class="LineNr">1065 </span><span class="CommentedCode">#? (set-cursor-position 0 0 0)</span> +<span id="L1066" class="LineNr">1066 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "0" 7 0)</span> +<span id="L1067" class="LineNr">1067 </span> { +<span id="L1068" class="LineNr">1068 </span> <span class="subxComment"># wait</span> +<span id="L1069" class="LineNr">1069 </span> (<a href='boot.subx.html#L1344'>while-ata-busy</a> *(ebp+8)) +<span id="L1070" class="LineNr">1070 </span> (<a href='boot.subx.html#L1382'>until-ata-ready-for-data</a> *(ebp+8)) +<span id="L1071" class="LineNr">1071 </span> <span class="subxComment"># var data-port/edx = disk->data-port</span> +<span id="L1072" class="LineNr">1072 </span> 8b/-> *(ebp+8) 0/r32/eax +<span id="L1073" class="LineNr">1073 </span> 8b/-> *(eax+0x24) 2/r32/edx +<span id="L1074" class="LineNr">1074 </span> <span class="subxComment"># send data</span> +<span id="L1075" class="LineNr">1075 </span> b9/copy-to-ecx 0x200/imm32 <span class="subxComment"># 512 bytes per sector</span> +<span id="L1076" class="LineNr">1076 </span> <span class="subxS1Comment"># . var first-byte/ebx: byte</span> +<span id="L1077" class="LineNr">1077 </span> <span class="subxS1Comment"># . when it's more than 0xff, we're at an even-numbered byte</span> +<span id="L1078" class="LineNr">1078 </span> bb/copy-to-ebx 0xffff/imm32 +<span id="L1079" class="LineNr">1079 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "D" 7 0)</span> +<span id="L1080" class="LineNr">1080 </span><span class="Constant">$store-sectors:store-sector</span>: +<span id="L1081" class="LineNr">1081 </span> { +<span id="L1082" class="LineNr">1082 </span> 81 7/subop/compare %ecx 0/imm32 +<span id="L1083" class="LineNr">1083 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 +<span id="L1084" class="LineNr">1084 </span> <span class="subxComment"># this loop is slow, but the ATA spec also requires a small delay</span> +<span id="L1085" class="LineNr">1085 </span> (<a href='309stream.subx.html#L6'>stream-empty?</a> *(ebp+0x14)) <span class="subxComment"># => eax</span> +<span id="L1086" class="LineNr">1086 </span> 3d/compare-eax-and 0/imm32/false +<span id="L1087" class="LineNr">1087 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 +<span id="L1088" class="LineNr">1088 </span> <span class="subxComment"># read byte from stream</span> +<span id="L1089" class="LineNr">1089 </span> (<a href='112read-byte.subx.html#L13'>read-byte</a> *(ebp+0x14)) <span class="subxComment"># => eax</span> +<span id="L1090" class="LineNr">1090 </span> <span class="subxComment"># if we're at an odd-numbered byte, save it to first-byte</span> +<span id="L1091" class="LineNr">1091 </span> 81 7/subop/compare %ebx 0xff/imm32 +<span id="L1092" class="LineNr">1092 </span> { +<span id="L1093" class="LineNr">1093 </span> 7e/jump-if-<= <span class="Constant">break</span>/disp8 +<span id="L1094" class="LineNr">1094 </span> 89/<- %ebx 0/r32/eax +<span id="L1095" class="LineNr">1095 </span> eb/jump $store-sectors:store-sector/disp8 +<span id="L1096" class="LineNr">1096 </span> } +<span id="L1097" class="LineNr">1097 </span> <span class="subxComment"># otherwise OR it with first-byte and write it out</span> +<span id="L1098" class="LineNr">1098 </span> c1/shift 4/subop/left %eax 8/imm8 +<span id="L1099" class="LineNr">1099 </span> 09/or %eax 3/r32/ebx +<span id="L1100" class="LineNr">1100 </span> 66 ef/write-ax-into-port-dx +<span id="L1101" class="LineNr">1101 </span> 49/decrement-ecx +<span id="L1102" class="LineNr">1102 </span> 49/decrement-ecx +<span id="L1103" class="LineNr">1103 </span> <span class="subxComment"># reset first-byte</span> +<span id="L1104" class="LineNr">1104 </span> bb/copy-to-ebx 0xffff/imm32 +<span id="L1105" class="LineNr">1105 </span> eb/jump <span class="Constant">loop</span>/disp8 +<span id="L1106" class="LineNr">1106 </span> } +<span id="L1107" class="LineNr">1107 </span> <span class="subxComment"># write out final first-byte if necessary</span> +<span id="L1108" class="LineNr">1108 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "I" 7 0)</span> +<span id="L1109" class="LineNr">1109 </span> 81 7/subop/compare %ebx 0xff/imm32 +<span id="L1110" class="LineNr">1110 </span> { +<span id="L1111" class="LineNr">1111 </span> 7f/jump-if-> <span class="Constant">break</span>/disp8 +<span id="L1112" class="LineNr">1112 </span> 89/<- %eax 3/r32/ebx +<span id="L1113" class="LineNr">1113 </span> 66 ef/write-ax-into-port-dx +<span id="L1114" class="LineNr">1114 </span> 49/decrement-ecx +<span id="L1115" class="LineNr">1115 </span> 49/decrement-ecx +<span id="L1116" class="LineNr">1116 </span> } +<span id="L1117" class="LineNr">1117 </span> <span class="subxComment"># pad zeroes</span> +<span id="L1118" class="LineNr">1118 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "P" 7 0)</span> +<span id="L1119" class="LineNr">1119 </span> 31/xor %eax 0/r32/eax +<span id="L1120" class="LineNr">1120 </span> { +<span id="L1121" class="LineNr">1121 </span> 81 7/subop/compare %ecx 0/imm32 +<span id="L1122" class="LineNr">1122 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 +<span id="L1123" class="LineNr">1123 </span> 66 ef/write-ax-into-port-dx +<span id="L1124" class="LineNr">1124 </span> 49/decrement-ecx +<span id="L1125" class="LineNr">1125 </span> 49/decrement-ecx +<span id="L1126" class="LineNr">1126 </span> eb/jump <span class="Constant">loop</span>/disp8 +<span id="L1127" class="LineNr">1127 </span> } +<span id="L1128" class="LineNr">1128 </span> <span class="subxComment"># next sector</span> +<span id="L1129" class="LineNr">1129 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "N" 7 0)</span> +<span id="L1130" class="LineNr">1130 </span> ff 1/subop/decrement *(ebp+0x10) +<span id="L1131" class="LineNr">1131 </span> 81 7/subop/compare *(ebp+0x10) 0/imm32 +<span id="L1132" class="LineNr">1132 </span> 7e/jump-if-<= <span class="Constant">break</span>/disp8 +<span id="L1133" class="LineNr">1133 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "W" 7 0)</span> +<span id="L1134" class="LineNr">1134 </span> (<a href='boot.subx.html#L1387'>wait-400ns</a> *(ebp+8)) +<span id="L1135" class="LineNr">1135 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "L" 7 0)</span> +<span id="L1136" class="LineNr">1136 </span> e9/jump <span class="Constant">loop</span>/disp32 +<span id="L1137" class="LineNr">1137 </span> } +<span id="L1138" class="LineNr">1138 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "F" 7 0)</span> +<span id="L1139" class="LineNr">1139 </span> (<a href='boot.subx.html#L1421'>flush-ata-cache</a> *(ebp+8)) +<span id="L1140" class="LineNr">1140 </span><span class="CommentedCode">#? (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "Y" 7 0)</span> +<span id="L1141" class="LineNr">1141 </span><span class="Constant">$store-sectors:end</span>: +<span id="L1142" class="LineNr">1142 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L1143" class="LineNr">1143 </span> 5b/pop-to-ebx +<span id="L1144" class="LineNr">1144 </span> 5a/pop-to-edx +<span id="L1145" class="LineNr">1145 </span> 59/pop-to-ecx +<span id="L1146" class="LineNr">1146 </span> 58/pop-to-eax +<span id="L1147" class="LineNr">1147 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L1148" class="LineNr">1148 </span> 89/<- %esp 5/r32/ebp +<span id="L1149" class="LineNr">1149 </span> 5d/pop-to-ebp +<span id="L1150" class="LineNr">1150 </span> c3/return +<span id="L1151" class="LineNr">1151 </span> +<span id="L1152" class="Folded">1152 </span><span class="Folded">+--289 lines: # disk helpers -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1441" class="LineNr">1441 </span> +<span id="L1442" class="LineNr">1442 </span><span class="subxComment">## Controlling a PS/2 mouse</span> +<span id="L1443" class="LineNr">1443 </span><span class="subxComment"># Uses no IRQs, just polling.</span> +<span id="L1444" class="LineNr">1444 </span><span class="subxComment"># Thanks Dave Long: <a href="https://github.com/jtauber/cleese/blob/master/necco/kernel/bochs/py8042.py">https://github.com/jtauber/cleese/blob/master/necco/kernel/bochs/py8042.py</a></span> +<span id="L1445" class="LineNr">1445 </span><span class="subxComment">#</span> +<span id="L1446" class="LineNr">1446 </span><span class="subxComment"># Resources:</span> +<span id="L1447" class="LineNr">1447 </span><span class="subxComment"># <a href="https://wiki.osdev.org/Mouse_Input">https://wiki.osdev.org/Mouse_Input</a></span> +<span id="L1448" class="LineNr">1448 </span> +<span id="L1449" class="LineNr">1449 </span><span class="subxComment"># results x/eax, y/ecx range from -256 to +255</span> +<span id="L1450" class="LineNr">1450 </span><span class="subxComment"># See <a href="https://wiki.osdev.org/index.php?title=Mouse_Input&oldid=25663#Format_of_First_3_Packet_Bytes">https://wiki.osdev.org/index.php?title=Mouse_Input&oldid=25663#Format_of_First_3_Packet_Bytes</a></span> +<span id="L1451" class="LineNr">1451 </span><span class="subxFunction">read-mouse-event</span>: <span class="subxComment"># -> _/eax: int, _/ecx: int</span> +<span id="L1452" class="LineNr">1452 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L1453" class="LineNr">1453 </span> 55/push-ebp +<span id="L1454" class="LineNr">1454 </span> 89/<- %ebp 4/r32/esp +<span id="L1455" class="LineNr">1455 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L1456" class="LineNr">1456 </span> 52/push-edx +<span id="L1457" class="LineNr">1457 </span> 53/push-ebx +<span id="L1458" class="LineNr">1458 </span> <span class="subxComment"># if no event, return 0, 0</span> +<span id="L1459" class="LineNr">1459 </span> b8/copy-to-eax 0/imm32 +<span id="L1460" class="LineNr">1460 </span> b9/copy-to-ecx 0/imm32 +<span id="L1461" class="LineNr">1461 </span> (<a href='boot.subx.html#L1518'>any-mouse-event?</a>) <span class="subxComment"># => eax</span> +<span id="L1462" class="LineNr">1462 </span> 3d/compare-eax-and 0/imm32/false +<span id="L1463" class="LineNr">1463 </span> 74/jump-if-= $read-mouse-event:end/disp8 +<span id="L1464" class="LineNr">1464 </span> <span class="subxComment"># var f1/edx: byte = inb(0x60)</span> +<span id="L1465" class="LineNr">1465 </span> 31/xor %eax 0/r32/eax +<span id="L1466" class="LineNr">1466 </span> e4/read-port-into-al 0x60/imm8 +<span id="L1467" class="LineNr">1467 </span> 89/<- %edx 0/r32/eax +<span id="L1468" class="LineNr">1468 </span> (<a href='boot.subx.html#L1503'>wait-for-mouse-event</a>) +<span id="L1469" class="LineNr">1469 </span> <span class="subxComment"># var dx/ebx: byte = inb(0x60)</span> +<span id="L1470" class="LineNr">1470 </span> 31/xor %eax 0/r32/eax +<span id="L1471" class="LineNr">1471 </span> e4/read-port-into-al 0x60/imm8 +<span id="L1472" class="LineNr">1472 </span> 89/<- %ebx 0/r32/eax +<span id="L1473" class="LineNr">1473 </span> (<a href='boot.subx.html#L1503'>wait-for-mouse-event</a>) +<span id="L1474" class="LineNr">1474 </span> <span class="subxComment"># var dy/ecx: byte = inb(0x60)</span> +<span id="L1475" class="LineNr">1475 </span> 31/xor %eax 0/r32/eax +<span id="L1476" class="LineNr">1476 </span> e4/read-port-into-al 0x60/imm8 +<span id="L1477" class="LineNr">1477 </span> 89/<- %ecx 0/r32/eax +<span id="L1478" class="LineNr">1478 </span> <span class="subxComment"># eax = dx</span> +<span id="L1479" class="LineNr">1479 </span> 89/<- %eax 3/r32/ebx +<span id="L1480" class="LineNr">1480 </span> <span class="subxComment"># if (f1 & 0x10) dx = -dx</span> +<span id="L1481" class="LineNr">1481 </span> { +<span id="L1482" class="LineNr">1482 </span> f6 0/subop/test-bits %dl 0x10/imm8 +<span id="L1483" class="LineNr">1483 </span> 74/jump-if-zero <span class="Constant">break</span>/disp8 +<span id="L1484" class="LineNr">1484 </span> 0d/or-eax-with 0xffffff00/imm32 +<span id="L1485" class="LineNr">1485 </span> } +<span id="L1486" class="LineNr">1486 </span> <span class="subxComment"># if (f1 & 0x20) dy = -dy</span> +<span id="L1487" class="LineNr">1487 </span> { +<span id="L1488" class="LineNr">1488 </span> f6 0/subop/test-bits %dl 0x20/imm8 +<span id="L1489" class="LineNr">1489 </span> 74/jump-if-zero <span class="Constant">break</span>/disp8 +<span id="L1490" class="LineNr">1490 </span> 81 1/subop/or %ecx 0xffffff00/imm32 +<span id="L1491" class="LineNr">1491 </span> } +<span id="L1492" class="LineNr">1492 </span><span class="Constant">$read-mouse-event:end</span>: +<span id="L1493" class="LineNr">1493 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L1494" class="LineNr">1494 </span> 5b/pop-to-ebx +<span id="L1495" class="LineNr">1495 </span> 5a/pop-to-edx +<span id="L1496" class="LineNr">1496 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L1497" class="LineNr">1497 </span> 89/<- %esp 5/r32/ebp +<span id="L1498" class="LineNr">1498 </span> 5d/pop-to-ebp +<span id="L1499" class="LineNr">1499 </span> c3/return +<span id="L1500" class="LineNr">1500 </span> +<span id="L1501" class="Folded">1501 </span><span class="Folded">+--147 lines: # mouse helpers ----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1648" class="LineNr">1648 </span> +<span id="L1649" class="LineNr">1649 </span><span class="subxComment"># vim:ft=subx</span> </pre> </body> </html> diff --git a/html/colors.mu.html b/html/colors.mu.html deleted file mode 100644 index 16f6f87c..00000000 --- a/html/colors.mu.html +++ /dev/null @@ -1,302 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -<html> -<head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - colors.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> -<meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> -<meta name="colorscheme" content="minimal-light"> -<style type="text/css"> -<!-- -pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } -body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } -a { color:inherit; } -* { font-size:12pt; font-size: 1em; } -.PreProc { color: #c000c0; } -.muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } -.LineNr { } -.muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } -.CommentedCode { color: #8a8a8a; } -.muComment { color: #005faf; } ---> -</style> - -<script type='text/javascript'> -<!-- - -/* function to open any folds containing a jumped-to line before jumping to it */ -function JumpToLine() -{ - var lineNum; - lineNum = window.location.hash; - lineNum = lineNum.substr(1); /* strip off '#' */ - - if (lineNum.indexOf('L') == -1) { - lineNum = 'L'+lineNum; - } - var lineElem = document.getElementById(lineNum); - /* Always jump to new location even if the line was hidden inside a fold, or - * we corrected the raw number to a line ID. - */ - if (lineElem) { - lineElem.scrollIntoView(true); - } - return true; -} -if ('onhashchange' in window) { - window.onhashchange = JumpToLine; -} - ---> -</script> -</head> -<body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/colors.mu'>https://github.com/akkartik/mu/blob/main/colors.mu</a> -<pre id='vimCodeElement'> -<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Return colors 'near' a given r/g/b value (expressed in hex)</span> -<span id="L2" class="LineNr"> 2 </span><span class="muComment"># If we did this rigorously we'd need to implement cosines. So we won't.</span> -<span id="L3" class="LineNr"> 3 </span><span class="muComment">#</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># To build:</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./translate colors.mu</span> -<span id="L6" class="LineNr"> 6 </span><span class="muComment">#</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># Example session:</span> -<span id="L8" class="LineNr"> 8 </span><span class="muComment"># $ qemu-system-i386 code.img</span> -<span id="L9" class="LineNr"> 9 </span><span class="muComment"># Enter 3 hex bytes for r, g, b (lowercase; no 0x prefix) separated by a single space> aa 0 aa</span> -<span id="L10" class="LineNr"> 10 </span><span class="muComment"># 5</span> -<span id="L11" class="LineNr"> 11 </span><span class="muComment"># This means only color 5 in the default palette is similar to #aa00aa.</span> -<span id="L12" class="LineNr"> 12 </span> -<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L13'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> in-storage: (stream byte <span class="Constant">0x10</span>) -<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address in-storage -<span id="L16" class="LineNr"> 16 </span> <span class="Delimiter">{</span> -<span id="L17" class="LineNr"> 17 </span> <span class="muComment"># print prompt</span> -<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"Enter 3 hex bytes for r, g, b (lowercase; no 0x prefix) separated by a single space> "</span>, <span class="Constant">0x10</span>/x, <span class="Constant">0x80</span>/xmax, <span class="Constant">0x28</span>/y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg -<span id="L19" class="LineNr"> 19 </span> <span class="muComment"># read line from keyboard</span> -<span id="L20" class="LineNr"> 20 </span> <a href='106stream.subx.html#L20'>clear-stream</a> in -<span id="L21" class="LineNr"> 21 </span> <span class="Delimiter">{</span> -<span id="L22" class="LineNr"> 22 </span> <a href='500fake-screen.mu.html#L237'>draw-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x20</span>/space -<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard -<span id="L24" class="LineNr"> 24 </span> compare key, <span class="Constant">0xa</span>/newline -<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">break-if-=</span> -<span id="L26" class="LineNr"> 26 </span> compare key, <span class="Constant">0</span> -<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">loop-if-=</span> -<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> key2/eax: int <span class="Special"><-</span> copy key -<span id="L29" class="LineNr"> 29 </span> <a href='115write-byte.subx.html#L12'>append-byte</a> in, key2 -<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy key2 -<span id="L31" class="LineNr"> 31 </span> <a href='501draw-text.mu.html#L84'>draw-grapheme-at-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, g, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg -<span id="L32" class="LineNr"> 32 </span> <a href='501draw-text.mu.html#L16'>move-cursor-right</a> <span class="Constant">0</span> -<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">loop</span> -<span id="L34" class="LineNr"> 34 </span> <span class="Delimiter">}</span> -<span id="L35" class="LineNr"> 35 </span> <a href='500fake-screen.mu.html#L251'>clear-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a> -<span id="L36" class="LineNr"> 36 </span> <span class="muComment"># parse</span> -<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> a/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> c/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L40" class="LineNr"> 40 </span> <span class="muComment"># a, b, c = r, g, b</span> -<span id="L41" class="LineNr"> 41 </span> a, b, c <span class="Special"><-</span> <a href='colors.mu.html#L58'>parse</a> in -<span id="L42" class="LineNr"> 42 </span><span class="CommentedCode">#? set-cursor-position screen, 0x10/x, 0x1a/y</span> -<span id="L43" class="LineNr"> 43 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, a, 7/fg, 0/bg</span> -<span id="L44" class="LineNr"> 44 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> -<span id="L45" class="LineNr"> 45 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, b, 7/fg, 0/bg</span> -<span id="L46" class="LineNr"> 46 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> -<span id="L47" class="LineNr"> 47 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, c, 7/fg, 0/bg</span> -<span id="L48" class="LineNr"> 48 </span> a, b, c <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> a, b, c -<span id="L49" class="LineNr"> 49 </span> <span class="muComment"># return all colors in the same quadrant in h, s and l</span> -<span id="L50" class="LineNr"> 50 </span> <a href='colors.mu.html#L182'>print-nearby-colors</a> <a href='500fake-screen.mu.html#L14'>screen</a>, a, b, c -<span id="L51" class="LineNr"> 51 </span> <span class="muComment">#</span> -<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">loop</span> -<span id="L53" class="LineNr"> 53 </span> <span class="Delimiter">}</span> -<span id="L54" class="LineNr"> 54 </span><span class="Delimiter">}</span> -<span id="L55" class="LineNr"> 55 </span> -<span id="L56" class="LineNr"> 56 </span><span class="muComment"># read exactly 3 words in a single line</span> -<span id="L57" class="LineNr"> 57 </span><span class="muComment"># Each word consists of exactly 1 or 2 hex bytes. No hex prefix.</span> -<span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L58'>parse</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/<span class="muRegEcx">ecx</span>: int, _/<span class="muRegEdx">edx</span>: int, _/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L59" class="LineNr"> 59 </span> <span class="muComment"># read first byte of r</span> -<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in -<span id="L61" class="LineNr"> 61 </span> <span class="Delimiter">{</span> -<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp -<span id="L63" class="LineNr"> 63 </span> compare valid?, <span class="Constant">0</span>/false -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">break-if-!=</span> -<span id="L65" class="LineNr"> 65 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"invalid byte 0 of r"</span> -<span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">}</span> -<span id="L67" class="LineNr"> 67 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L169'>fast-hex-digit-value</a> tmp -<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> r/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy tmp -<span id="L69" class="LineNr"> 69 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x10/y</span> -<span id="L70" class="LineNr"> 70 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, r, 7/fg, 0/bg</span> -<span id="L71" class="LineNr"> 71 </span> <span class="muComment"># read second byte of r</span> -<span id="L72" class="LineNr"> 72 </span> tmp <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in -<span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">{</span> -<span id="L74" class="LineNr"> 74 </span> <span class="Delimiter">{</span> -<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp -<span id="L76" class="LineNr"> 76 </span> compare valid?, <span class="Constant">0</span>/false -<span id="L77" class="LineNr"> 77 </span> <span class="Delimiter">}</span> -<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">break-if-=</span> -<span id="L79" class="LineNr"> 79 </span> r <span class="Special"><-</span> shift-left <span class="Constant">4</span> -<span id="L80" class="LineNr"> 80 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L169'>fast-hex-digit-value</a> tmp -<span id="L81" class="LineNr"> 81 </span><span class="CommentedCode">#? {</span> -<span id="L82" class="LineNr"> 82 </span><span class="CommentedCode">#? var foo/eax: int <- copy tmp</span> -<span id="L83" class="LineNr"> 83 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x11/y</span> -<span id="L84" class="LineNr"> 84 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, foo, 7/fg, 0/bg</span> -<span id="L85" class="LineNr"> 85 </span><span class="CommentedCode">#? }</span> -<span id="L86" class="LineNr"> 86 </span> r <span class="Special"><-</span> add tmp -<span id="L87" class="LineNr"> 87 </span><span class="CommentedCode">#? {</span> -<span id="L88" class="LineNr"> 88 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x12/y</span> -<span id="L89" class="LineNr"> 89 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, r, 7/fg, 0/bg</span> -<span id="L90" class="LineNr"> 90 </span><span class="CommentedCode">#? }</span> -<span id="L91" class="LineNr"> 91 </span> tmp <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span class="muComment"># skip space</span> -<span id="L92" class="LineNr"> 92 </span> <span class="Delimiter">}</span> -<span id="L93" class="LineNr"> 93 </span> <span class="muComment"># read first byte of g</span> -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in -<span id="L95" class="LineNr"> 95 </span> <span class="Delimiter">{</span> -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp -<span id="L97" class="LineNr"> 97 </span> compare valid?, <span class="Constant">0</span>/false -<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">break-if-!=</span> -<span id="L99" class="LineNr"> 99 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"invalid byte 0 of g"</span> -<span id="L100" class="LineNr">100 </span> <span class="Delimiter">}</span> -<span id="L101" class="LineNr">101 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L169'>fast-hex-digit-value</a> tmp -<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> g/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy tmp -<span id="L103" class="LineNr">103 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x13/y</span> -<span id="L104" class="LineNr">104 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, g, 7/fg, 0/bg</span> -<span id="L105" class="LineNr">105 </span> <span class="muComment"># read second byte of g</span> -<span id="L106" class="LineNr">106 </span> tmp <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in -<span id="L107" class="LineNr">107 </span> <span class="Delimiter">{</span> -<span id="L108" class="LineNr">108 </span> <span class="Delimiter">{</span> -<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp -<span id="L110" class="LineNr">110 </span> compare valid?, <span class="Constant">0</span>/false -<span id="L111" class="LineNr">111 </span> <span class="Delimiter">}</span> -<span id="L112" class="LineNr">112 </span> <span class="PreProc">break-if-=</span> -<span id="L113" class="LineNr">113 </span> g <span class="Special"><-</span> shift-left <span class="Constant">4</span> -<span id="L114" class="LineNr">114 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L169'>fast-hex-digit-value</a> tmp -<span id="L115" class="LineNr">115 </span><span class="CommentedCode">#? {</span> -<span id="L116" class="LineNr">116 </span><span class="CommentedCode">#? var foo/eax: int <- copy tmp</span> -<span id="L117" class="LineNr">117 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x14/y</span> -<span id="L118" class="LineNr">118 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, foo, 7/fg, 0/bg</span> -<span id="L119" class="LineNr">119 </span><span class="CommentedCode">#? }</span> -<span id="L120" class="LineNr">120 </span> g <span class="Special"><-</span> add tmp -<span id="L121" class="LineNr">121 </span><span class="CommentedCode">#? {</span> -<span id="L122" class="LineNr">122 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x15/y</span> -<span id="L123" class="LineNr">123 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, g, 7/fg, 0/bg</span> -<span id="L124" class="LineNr">124 </span><span class="CommentedCode">#? }</span> -<span id="L125" class="LineNr">125 </span> tmp <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in <span class="muComment"># skip space</span> -<span id="L126" class="LineNr">126 </span> <span class="Delimiter">}</span> -<span id="L127" class="LineNr">127 </span> <span class="muComment"># read first byte of b</span> -<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> tmp/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in -<span id="L129" class="LineNr">129 </span> <span class="Delimiter">{</span> -<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp -<span id="L131" class="LineNr">131 </span> compare valid?, <span class="Constant">0</span>/false -<span id="L132" class="LineNr">132 </span> <span class="PreProc">break-if-!=</span> -<span id="L133" class="LineNr">133 </span> <a href='317abort.subx.html#L5'>abort</a> <span class="Constant">"invalid byte 0 of b"</span> -<span id="L134" class="LineNr">134 </span> <span class="Delimiter">}</span> -<span id="L135" class="LineNr">135 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L169'>fast-hex-digit-value</a> tmp -<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> b/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy tmp -<span id="L137" class="LineNr">137 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x16/y</span> -<span id="L138" class="LineNr">138 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, b, 7/fg, 0/bg</span> -<span id="L139" class="LineNr">139 </span> <span class="muComment"># read second byte of b</span> -<span id="L140" class="LineNr">140 </span> <span class="Delimiter">{</span> -<span id="L141" class="LineNr">141 </span> <span class="Delimiter">{</span> -<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in -<span id="L143" class="LineNr">143 </span> compare done?, <span class="Constant">0</span>/false -<span id="L144" class="LineNr">144 </span> <span class="Delimiter">}</span> -<span id="L145" class="LineNr">145 </span> <span class="PreProc">break-if-!=</span> -<span id="L146" class="LineNr">146 </span> tmp <span class="Special"><-</span> <a href='112read-byte.subx.html#L13'>read-byte</a> in -<span id="L147" class="LineNr">147 </span> <span class="Delimiter">{</span> -<span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='118parse-hex-int.subx.html#L701'>hex-digit?</a> tmp -<span id="L149" class="LineNr">149 </span> compare valid?, <span class="Constant">0</span>/false -<span id="L150" class="LineNr">150 </span> <span class="Delimiter">}</span> -<span id="L151" class="LineNr">151 </span> <span class="PreProc">break-if-=</span> -<span id="L152" class="LineNr">152 </span> b <span class="Special"><-</span> shift-left <span class="Constant">4</span> -<span id="L153" class="LineNr">153 </span> tmp <span class="Special"><-</span> <a href='colors.mu.html#L169'>fast-hex-digit-value</a> tmp -<span id="L154" class="LineNr">154 </span><span class="CommentedCode">#? {</span> -<span id="L155" class="LineNr">155 </span><span class="CommentedCode">#? var foo/eax: int <- copy tmp</span> -<span id="L156" class="LineNr">156 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x17/y</span> -<span id="L157" class="LineNr">157 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, foo, 7/fg, 0/bg</span> -<span id="L158" class="LineNr">158 </span><span class="CommentedCode">#? }</span> -<span id="L159" class="LineNr">159 </span> b <span class="Special"><-</span> add tmp -<span id="L160" class="LineNr">160 </span><span class="CommentedCode">#? {</span> -<span id="L161" class="LineNr">161 </span><span class="CommentedCode">#? set-cursor-position 0/screen, 0x10/x, 0x18/y</span> -<span id="L162" class="LineNr">162 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, b, 7/fg, 0/bg</span> -<span id="L163" class="LineNr">163 </span><span class="CommentedCode">#? }</span> -<span id="L164" class="LineNr">164 </span> <span class="Delimiter">}</span> -<span id="L165" class="LineNr">165 </span> <span class="PreProc">return</span> r, g, b -<span id="L166" class="LineNr">166 </span><span class="Delimiter">}</span> -<span id="L167" class="LineNr">167 </span> -<span id="L168" class="LineNr">168 </span><span class="muComment"># no error checking</span> -<span id="L169" class="LineNr">169 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L169'>fast-hex-digit-value</a></span> in: byte<span class="PreProc"> -> </span>_/eax: byte <span class="Delimiter">{</span> -<span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> result/eax: byte <span class="Special"><-</span> copy in -<span id="L171" class="LineNr">171 </span> compare result, <span class="Constant">0x39</span> -<span id="L172" class="LineNr">172 </span> <span class="Delimiter">{</span> -<span id="L173" class="LineNr">173 </span> <span class="PreProc">break-if-></span> -<span id="L174" class="LineNr">174 </span> result <span class="Special"><-</span> subtract <span class="Constant">0x30</span>/<span class="Constant">0</span> -<span id="L175" class="LineNr">175 </span> <span class="PreProc">return</span> result -<span id="L176" class="LineNr">176 </span> <span class="Delimiter">}</span> -<span id="L177" class="LineNr">177 </span> result <span class="Special"><-</span> subtract <span class="Constant">0x61</span>/a -<span id="L178" class="LineNr">178 </span> result <span class="Special"><-</span> add <span class="Constant">0xa</span>/<span class="Constant">10</span> -<span id="L179" class="LineNr">179 </span> <span class="PreProc">return</span> result -<span id="L180" class="LineNr">180 </span><span class="Delimiter">}</span> -<span id="L181" class="LineNr">181 </span> -<span id="L182" class="LineNr">182 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='colors.mu.html#L182'>print-nearby-colors</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), h: int, s: int, l: int <span class="Delimiter">{</span> -<span id="L183" class="LineNr">183 </span><span class="CommentedCode">#? set-cursor-position screen, 0x10/x, 0x1c/y</span> -<span id="L184" class="LineNr">184 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, h, 7/fg, 0/bg</span> -<span id="L185" class="LineNr">185 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> -<span id="L186" class="LineNr">186 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, s, 7/fg, 0/bg</span> -<span id="L187" class="LineNr">187 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> -<span id="L188" class="LineNr">188 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, l, 7/fg, 0/bg</span> -<span id="L189" class="LineNr">189 </span> <span class="muComment"># save just top 2 bits of each, so that we narrow down to 1/64th of the volume</span> -<span id="L190" class="LineNr">190 </span> shift-right h, <span class="Constant">6</span> -<span id="L191" class="LineNr">191 </span> shift-right s, <span class="Constant">6</span> -<span id="L192" class="LineNr">192 </span> shift-right l, <span class="Constant">6</span> -<span id="L193" class="LineNr">193 </span><span class="CommentedCode">#? set-cursor-position screen, 0x10/x, 0x1/y</span> -<span id="L194" class="LineNr">194 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, h, 7/fg, 0/bg</span> -<span id="L195" class="LineNr">195 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> -<span id="L196" class="LineNr">196 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, s, 7/fg, 0/bg</span> -<span id="L197" class="LineNr">197 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> -<span id="L198" class="LineNr">198 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, l, 7/fg, 0/bg</span> -<span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> a/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L200" class="LineNr">200 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L201" class="LineNr">201 </span> <span class="PreProc">var</span> c/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L202" class="LineNr">202 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> y/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy <span class="Constant">2</span> -<span id="L204" class="LineNr">204 </span> <span class="Delimiter">{</span> -<span id="L205" class="LineNr">205 </span> compare color, <span class="Constant">0x100</span> -<span id="L206" class="LineNr">206 </span> <span class="PreProc">break-if->=</span> -<span id="L207" class="LineNr">207 </span> a, b, c <span class="Special"><-</span> <a href='316colors.subx.html#L7'>color-rgb</a> color -<span id="L208" class="LineNr">208 </span> a, b, c <span class="Special"><-</span> <a href='505colors.mu.html#L5'>hsl</a> a, b, c -<span id="L209" class="LineNr">209 </span> a <span class="Special"><-</span> shift-right <span class="Constant">6</span> -<span id="L210" class="LineNr">210 </span> b <span class="Special"><-</span> shift-right <span class="Constant">6</span> -<span id="L211" class="LineNr">211 </span> c <span class="Special"><-</span> shift-right <span class="Constant">6</span> -<span id="L212" class="LineNr">212 </span> <span class="Delimiter">{</span> -<span id="L213" class="LineNr">213 </span> compare a, h -<span id="L214" class="LineNr">214 </span> <span class="PreProc">break-if-!=</span> -<span id="L215" class="LineNr">215 </span> compare b, s -<span id="L216" class="LineNr">216 </span> <span class="PreProc">break-if-!=</span> -<span id="L217" class="LineNr">217 </span> compare c, l -<span id="L218" class="LineNr">218 </span> <span class="PreProc">break-if-!=</span> -<span id="L219" class="LineNr">219 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x10</span>/x, y -<span id="L220" class="LineNr">220 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, color, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg -<span id="L221" class="LineNr">221 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x14</span>/x, y -<span id="L222" class="LineNr">222 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" "</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg -<span id="L223" class="LineNr">223 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" "</span>, <span class="Constant">0</span>/fg, color -<span id="L224" class="LineNr">224 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> -<span id="L225" class="LineNr">225 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, a, 7/fg, 0/bg</span> -<span id="L226" class="LineNr">226 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> -<span id="L227" class="LineNr">227 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, b, 7/fg, 0/bg</span> -<span id="L228" class="LineNr">228 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " ", 7/fg, 0/bg</span> -<span id="L229" class="LineNr">229 </span><span class="CommentedCode">#? draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen screen, c, 7/fg, 0/bg</span> -<span id="L230" class="LineNr">230 </span> y <span class="Special"><-</span> increment -<span id="L231" class="LineNr">231 </span> <span class="Delimiter">}</span> -<span id="L232" class="LineNr">232 </span> color <span class="Special"><-</span> increment -<span id="L233" class="LineNr">233 </span> <span class="PreProc">loop</span> -<span id="L234" class="LineNr">234 </span> <span class="Delimiter">}</span> -<span id="L235" class="LineNr">235 </span><span class="Delimiter">}</span> -</pre> -</body> -</html> -<!-- vim: set foldmethod=manual : --> diff --git a/html/ex6.mu.html b/html/ex6.mu.html deleted file mode 100644 index df64aa9f..00000000 --- a/html/ex6.mu.html +++ /dev/null @@ -1,95 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -<html> -<head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - ex6.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> -<meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> -<meta name="colorscheme" content="minimal-light"> -<style type="text/css"> -<!-- -pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } -body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } -a { color:inherit; } -* { font-size:12pt; font-size: 1em; } -.PreProc { color: #c000c0; } -.Special { color: #ff6060; } -.LineNr { } -.Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } -.muComment { color: #005faf; } ---> -</style> - -<script type='text/javascript'> -<!-- - -/* function to open any folds containing a jumped-to line before jumping to it */ -function JumpToLine() -{ - var lineNum; - lineNum = window.location.hash; - lineNum = lineNum.substr(1); /* strip off '#' */ - - if (lineNum.indexOf('L') == -1) { - lineNum = 'L'+lineNum; - } - var lineElem = document.getElementById(lineNum); - /* Always jump to new location even if the line was hidden inside a fold, or - * we corrected the raw number to a line ID. - */ - if (lineElem) { - lineElem.scrollIntoView(true); - } - return true; -} -if ('onhashchange' in window) { - window.onhashchange = JumpToLine; -} - ---> -</script> -</head> -<body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/ex6.mu'>https://github.com/akkartik/mu/blob/main/ex6.mu</a> -<pre id='vimCodeElement'> -<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Drawing ASCII text incrementally.</span> -<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> -<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To build a disk image:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># ./translate ex6.mu # emits code.img</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># To run:</span> -<span id="L6" class="LineNr"> 6 </span><span class="muComment"># qemu-system-i386 code.img</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># Or:</span> -<span id="L8" class="LineNr"> 8 </span><span class="muComment"># bochs -f bochsrc # bochsrc loads code.img</span> -<span id="L9" class="LineNr"> 9 </span><span class="muComment">#</span> -<span id="L10" class="LineNr">10 </span><span class="muComment"># Expected output: a box and text that doesn't overflow it</span> -<span id="L11" class="LineNr">11 </span> -<span id="L12" class="LineNr">12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex6.mu.html#L12'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L13" class="LineNr">13 </span> <span class="muComment"># drawing text within a bounding box</span> -<span id="L14" class="LineNr">14 </span> <a href='503manhattan-line.mu.html#L1'>draw-box-on-real-screen</a> <span class="Constant">0xf</span>, <span class="Constant">0x1f</span>, <span class="Constant">0x79</span>, <span class="Constant">0x51</span>, <span class="Constant">0x4</span> -<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> copy <span class="Constant">0x20</span> -<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x20</span> -<span id="L17" class="LineNr">17 </span> x, y <span class="Special"><-</span> <a href='501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"hello "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L18" class="LineNr">18 </span> x, y <span class="Special"><-</span> <a href='501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"from "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L19" class="LineNr">19 </span> x, y <span class="Special"><-</span> <a href='501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"baremetal "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L20" class="LineNr">20 </span> x, y <span class="Special"><-</span> <a href='501draw-text.mu.html#L174'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"Mu!"</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L21" class="LineNr">21 </span> -<span id="L22" class="LineNr">22 </span> <span class="muComment"># drawing at the cursor in multiple directions</span> -<span id="L23" class="LineNr">23 </span> <a href='501draw-text.mu.html#L493'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"abc"</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L24" class="LineNr">24 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"def"</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L25" class="LineNr">25 </span> -<span id="L26" class="LineNr">26 </span> <span class="muComment"># test drawing near the edge</span> -<span id="L27" class="LineNr">27 </span> x <span class="Special"><-</span> <a href='501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"R"</span>, <span class="Constant">0x7f</span>/x, <span class="Constant">0x80</span>/xmax=screen-width, <span class="Constant">0x18</span>/y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L28" class="LineNr">28 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"wrapped from R"</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L29" class="LineNr">29 </span> -<span id="L30" class="LineNr">30 </span> x <span class="Special"><-</span> <a href='501draw-text.mu.html#L399'>draw-text-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"D"</span>, <span class="Constant">0x20</span>/x, <span class="Constant">0x2f</span>/y, <span class="Constant">0x30</span>/ymax=screen-height, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L31" class="LineNr">31 </span> <a href='501draw-text.mu.html#L493'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"wrapped from D"</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg -<span id="L32" class="LineNr">32 </span><span class="Delimiter">}</span> -</pre> -</body> -</html> -<!-- vim: set foldmethod=manual : --> diff --git a/html/hest-life.mu.html b/html/hest-life.mu.html deleted file mode 100644 index 41cd98f5..00000000 --- a/html/hest-life.mu.html +++ /dev/null @@ -1,1097 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -<html> -<head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - hest-life.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> -<meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> -<meta name="colorscheme" content="minimal-light"> -<style type="text/css"> -<!-- -pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } -body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } -a { color:inherit; } -* { font-size:12pt; font-size: 1em; } -.PreProc { color: #c000c0; } -.muRegEbx { color: #5f00ff; } -.muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } -.LineNr { } -.Constant { color: #008787; } -.CommentedCode { color: #8a8a8a; } -.muRegEsi { color: #005faf; } -.muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } -.muComment { color: #005faf; } ---> -</style> - -<script type='text/javascript'> -<!-- - -/* function to open any folds containing a jumped-to line before jumping to it */ -function JumpToLine() -{ - var lineNum; - lineNum = window.location.hash; - lineNum = lineNum.substr(1); /* strip off '#' */ - - if (lineNum.indexOf('L') == -1) { - lineNum = 'L'+lineNum; - } - var lineElem = document.getElementById(lineNum); - /* Always jump to new location even if the line was hidden inside a fold, or - * we corrected the raw number to a line ID. - */ - if (lineElem) { - lineElem.scrollIntoView(true); - } - return true; -} -if ('onhashchange' in window) { - window.onhashchange = JumpToLine; -} - ---> -</script> -</head> -<body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/hest-life.mu'>https://github.com/akkartik/mu/blob/main/hest-life.mu</a> -<pre id='vimCodeElement'> -<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Conway's Game of Life in a Hestified way</span> -<span id="L2" class="LineNr"> 2 </span><span class="muComment"># <a href="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life</a></span> -<span id="L3" class="LineNr"> 3 </span><span class="muComment"># <a href="https://ivanish.ca/hest-podcast">https://ivanish.ca/hest-podcast</a></span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment">#</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># To build:</span> -<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate hest-life.mu</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># I run it on my 2.5GHz Linux laptop like this:</span> -<span id="L8" class="LineNr"> 8 </span><span class="muComment"># $ qemu-system-i386 -enable-kvm code.img</span> -<span id="L9" class="LineNr"> 9 </span><span class="muComment">#</span> -<span id="L10" class="LineNr"> 10 </span><span class="muComment"># If things seem too fast or too slow on your computer, adjust the loop bounds</span> -<span id="L11" class="LineNr"> 11 </span><span class="muComment"># in the function `linger` at the bottom. Its value will depend on how you</span> -<span id="L12" class="LineNr"> 12 </span><span class="muComment"># accelerate Qemu. Mu will eventually get a clock to obviate the need for this</span> -<span id="L13" class="LineNr"> 13 </span><span class="muComment"># tuning.</span> -<span id="L14" class="LineNr"> 14 </span><span class="muComment">#</span> -<span id="L15" class="LineNr"> 15 </span><span class="muComment"># Keyboard shortcuts:</span> -<span id="L16" class="LineNr"> 16 </span><span class="muComment"># space: pause/resume</span> -<span id="L17" class="LineNr"> 17 </span><span class="muComment"># 0: restart time</span> -<span id="L18" class="LineNr"> 18 </span><span class="muComment"># l: start looping from 0 to curren time</span> -<span id="L19" class="LineNr"> 19 </span><span class="muComment"># L: stop looping</span> -<span id="L20" class="LineNr"> 20 </span><span class="muComment"># +: zoom in</span> -<span id="L21" class="LineNr"> 21 </span><span class="muComment"># -: zoom out</span> -<span id="L22" class="LineNr"> 22 </span> -<span id="L23" class="LineNr"> 23 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L23'>main</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> -<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> env-storage: <a href='hest-life.mu.html#L50'>environment</a> -<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> address env-storage -<span id="L26" class="LineNr"> 26 </span> <a href='hest-life.mu.html#L718'>initialize-environment</a> env -<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> second-buffer: <a href='500fake-screen.mu.html#L14'>screen</a> -<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> second-screen/<span class="muRegEdi">edi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address second-buffer -<span id="L29" class="LineNr"> 29 </span> <a href='500fake-screen.mu.html#L33'>initialize-screen</a> second-screen, <span class="Constant">0x80</span>, <span class="Constant">0x30</span>, <span class="Constant">1</span>/include-pixels -<span id="L30" class="LineNr"> 30 </span> <a href='hest-life.mu.html#L63'>render</a> second-screen, env -<span id="L31" class="LineNr"> 31 </span> <a href='500fake-screen.mu.html#L588'>convert-graphemes-to-pixels</a> second-screen -<span id="L32" class="LineNr"> 32 </span> <a href='500fake-screen.mu.html#L548'>copy-pixels</a> second-screen, <a href='500fake-screen.mu.html#L14'>screen</a> -<span id="L33" class="LineNr"> 33 </span> <span class="Delimiter">{</span> -<span id="L34" class="LineNr"> 34 </span> <a href='hest-life.mu.html#L595'>edit</a> keyboard, env -<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> play?/eax: (addr boolean) <span class="Special"><-</span> get env, play? -<span id="L36" class="LineNr"> 36 </span> compare *play?, <span class="Constant">0</span>/false -<span id="L37" class="LineNr"> 37 </span> <span class="Delimiter">{</span> -<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">break-if-=</span> -<span id="L39" class="LineNr"> 39 </span> <a href='hest-life.mu.html#L679'>step</a> env -<span id="L40" class="LineNr"> 40 </span> <a href='500fake-screen.mu.html#L251'>clear-screen</a> second-screen -<span id="L41" class="LineNr"> 41 </span> <a href='hest-life.mu.html#L63'>render</a> second-screen, env -<span id="L42" class="LineNr"> 42 </span> <a href='500fake-screen.mu.html#L588'>convert-graphemes-to-pixels</a> second-screen -<span id="L43" class="LineNr"> 43 </span> <a href='500fake-screen.mu.html#L548'>copy-pixels</a> second-screen, <a href='500fake-screen.mu.html#L14'>screen</a> -<span id="L44" class="LineNr"> 44 </span> <span class="Delimiter">}</span> -<span id="L45" class="LineNr"> 45 </span> <a href='hest-life.mu.html#L1019'>linger</a> env -<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">loop</span> -<span id="L47" class="LineNr"> 47 </span> <span class="Delimiter">}</span> -<span id="L48" class="LineNr"> 48 </span><span class="Delimiter">}</span> -<span id="L49" class="LineNr"> 49 </span> -<span id="L50" class="LineNr"> 50 </span><span class="PreProc">type</span> <a href='hest-life.mu.html#L50'>environment</a> <span class="Delimiter">{</span> -<span id="L51" class="LineNr"> 51 </span> data: (handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) -<span id="L52" class="LineNr"> 52 </span> zoom: int <span class="muComment"># 0 = 1024 px per cell; 5 = 4px per cell; each step adjusts by a factor of 4</span> -<span id="L53" class="LineNr"> 53 </span> tick: int -<span id="L54" class="LineNr"> 54 </span> play?: boolean -<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">loop</span>: int <span class="muComment"># if non-zero, return tick to 0 after this point</span> -<span id="L56" class="LineNr"> 56 </span><span class="Delimiter">}</span> -<span id="L57" class="LineNr"> 57 </span> -<span id="L58" class="LineNr"> 58 </span><span class="PreProc">type</span> <a href='hest-life.mu.html#L58'>cell</a> <span class="Delimiter">{</span> -<span id="L59" class="LineNr"> 59 </span> curr: boolean -<span id="L60" class="LineNr"> 60 </span> next: boolean -<span id="L61" class="LineNr"> 61 </span><span class="Delimiter">}</span> -<span id="L62" class="LineNr"> 62 </span> -<span id="L63" class="LineNr"> 63 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L63'>render</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom -<span id="L66" class="LineNr"> 66 </span> compare *zoom, <span class="Constant">0</span> -<span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">{</span> -<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">break-if-!=</span> -<span id="L69" class="LineNr"> 69 </span> <a href='500fake-screen.mu.html#L251'>clear-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a> -<span id="L70" class="LineNr"> 70 </span> <a href='hest-life.mu.html#L92'>render0</a> <a href='500fake-screen.mu.html#L14'>screen</a>, self -<span id="L71" class="LineNr"> 71 </span> <span class="Delimiter">}</span> -<span id="L72" class="LineNr"> 72 </span> compare *zoom, <span class="Constant">1</span> -<span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">{</span> -<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">break-if-!=</span> -<span id="L75" class="LineNr"> 75 </span> <a href='500fake-screen.mu.html#L251'>clear-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a> -<span id="L76" class="LineNr"> 76 </span> <a href='hest-life.mu.html#L212'>render1</a> <a href='500fake-screen.mu.html#L14'>screen</a>, self -<span id="L77" class="LineNr"> 77 </span> <span class="Delimiter">}</span> -<span id="L78" class="LineNr"> 78 </span> compare *zoom, <span class="Constant">4</span> -<span id="L79" class="LineNr"> 79 </span> <span class="Delimiter">{</span> -<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">break-if-!=</span> -<span id="L81" class="LineNr"> 81 </span> <a href='hest-life.mu.html#L867'>render4</a> <a href='500fake-screen.mu.html#L14'>screen</a>, self -<span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">}</span> -<span id="L83" class="LineNr"> 83 </span> <span class="muComment"># clock</span> -<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick -<span id="L85" class="LineNr"> 85 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x78</span>/x, <span class="Constant">0</span>/y -<span id="L86" class="LineNr"> 86 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, *tick-a, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg -<span id="L87" class="LineNr"> 87 </span><span class="Delimiter">}</span> -<span id="L88" class="LineNr"> 88 </span> -<span id="L89" class="LineNr"> 89 </span><span class="muComment"># Lots of hardcoded constants for now.</span> -<span id="L90" class="LineNr"> 90 </span><span class="muComment"># TODO: split this up into a primitive to render a single cell and its</span> -<span id="L91" class="LineNr"> 91 </span><span class="muComment"># incoming edges (but not the neighboring nodes they emanate from)</span> -<span id="L92" class="LineNr"> 92 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L92'>render0</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L94" class="LineNr"> 94 </span> <span class="muComment"># cell border</span> -<span id="L95" class="LineNr"> 95 </span> <a href='507line.mu.html#L75'>draw-vertical-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x, <span class="Constant">0</span>/ymin, <span class="Constant">0x300</span>/ymax, <span class="Constant">0x16</span>/color=dark-grey -<span id="L96" class="LineNr"> 96 </span> <a href='507line.mu.html#L75'>draw-vertical-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x, <span class="Constant">0</span>/ymin, <span class="Constant">0x300</span>/ymax, <span class="Constant">0x16</span>/color=dark-grey -<span id="L97" class="LineNr"> 97 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x40</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey -<span id="L98" class="LineNr"> 98 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2c0</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey -<span id="L99" class="LineNr"> 99 </span> <span class="muComment"># neighboring inputs, corners</span> -<span id="L100" class="LineNr"> 100 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/cur-topleftx, <span class="Constant">0x5f</span>/cur-toplefty -<span id="L101" class="LineNr"> 101 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x90</span>/xmin <span class="Constant">0x10</span>/ymin, <span class="Constant">0xb0</span>/xmax <span class="Constant">0x30</span>/ymax, color -<span id="L102" class="LineNr"> 102 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/cur-toprightx, <span class="Constant">0x5f</span>/cur-toprighty -<span id="L103" class="LineNr"> 103 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x350</span>/xmin <span class="Constant">0x10</span>/ymin, <span class="Constant">0x370</span>/xmax <span class="Constant">0x30</span>/ymax, color -<span id="L104" class="LineNr"> 104 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/cur-botleftx, <span class="Constant">0x61</span>/cur-botlefty -<span id="L105" class="LineNr"> 105 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x90</span>/xmin <span class="Constant">0x2d0</span>/ymin, <span class="Constant">0xb0</span>/xmax <span class="Constant">0x2f0</span>/ymax, color -<span id="L106" class="LineNr"> 106 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/cur-botrightx, <span class="Constant">0x61</span>/cur-botrighty -<span id="L107" class="LineNr"> 107 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x350</span>/xmin <span class="Constant">0x2d0</span>/ymin, <span class="Constant">0x370</span>/xmax <span class="Constant">0x2f0</span>/ymax, color -<span id="L108" class="LineNr"> 108 </span> <span class="muComment"># neighboring inputs, edges</span> -<span id="L109" class="LineNr"> 109 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/cur-topx, <span class="Constant">0x5f</span>/cur-topy -<span id="L110" class="LineNr"> 110 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1f0</span>/xmin <span class="Constant">0x10</span>/ymin, <span class="Constant">0x210</span>/xmax <span class="Constant">0x30</span>/ymax, color -<span id="L111" class="LineNr"> 111 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/cur-leftx, <span class="Constant">0x60</span>/cur-lefty -<span id="L112" class="LineNr"> 112 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x90</span>/xmin <span class="Constant">0x170</span>/ymin, <span class="Constant">0xb0</span>/xmax <span class="Constant">0x190</span>/ymax, color -<span id="L113" class="LineNr"> 113 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/cur-botx, <span class="Constant">0x61</span>/cur-boty -<span id="L114" class="LineNr"> 114 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1f0</span>/xmin <span class="Constant">0x2d0</span>/ymin, <span class="Constant">0x210</span>/xmax <span class="Constant">0x2f0</span>/ymax, color -<span id="L115" class="LineNr"> 115 </span> color <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/cur-rightx, <span class="Constant">0x60</span>/cur-righty -<span id="L116" class="LineNr"> 116 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x350</span>/xmin <span class="Constant">0x170</span>/ymin, <span class="Constant">0x370</span>/xmax <span class="Constant">0x190</span>/ymax, color -<span id="L117" class="LineNr"> 117 </span> <span class="muComment"># sum node</span> -<span id="L118" class="LineNr"> 118 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/xsmin <span class="Constant">0x140</span>/ysmin, <span class="Constant">0x190</span>/xsmax <span class="Constant">0x160</span>/ysmax, <span class="Constant">0x40</span>/color -<span id="L119" class="LineNr"> 119 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>/scol, <span class="Constant">0x13</span>/srow -<span id="L120" class="LineNr"> 120 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"+"</span>, <span class="Constant">0xf</span>/color, <span class="Constant">0</span>/bg -<span id="L121" class="LineNr"> 121 </span> <span class="muComment"># conveyors from neighboring inputs to sum node</span> -<span id="L122" class="LineNr"> 122 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color -<span id="L123" class="LineNr"> 123 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x180</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color -<span id="L124" class="LineNr"> 124 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color -<span id="L125" class="LineNr"> 125 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x200</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x90</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color -<span id="L126" class="LineNr"> 126 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x200</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x200</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color -<span id="L127" class="LineNr"> 127 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x360</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0xc0</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color -<span id="L128" class="LineNr"> 128 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x360</span>/x0 <span class="Constant">0x180</span>/y0, <span class="Constant">0x35c</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color -<span id="L129" class="LineNr"> 129 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x360</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x200</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">4</span>/color -<span id="L130" class="LineNr"> 130 </span> <span class="muComment"># filter node</span> -<span id="L131" class="LineNr"> 131 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x200</span>/xfmin <span class="Constant">0x1c0</span>/yfmin, <span class="Constant">0x220</span>/xfmax <span class="Constant">0x1e0</span>/yfmax, <span class="Constant">0x31</span>/color -<span id="L132" class="LineNr"> 132 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x40</span>/fcol, <span class="Constant">0x1b</span>/frow -<span id="L133" class="LineNr"> 133 </span> <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"?"</span>, <span class="Constant">0xf</span>/color, <span class="Constant">0</span>/bg -<span id="L134" class="LineNr"> 134 </span> <span class="muComment"># conveyor from sum node to filter node</span> -<span id="L135" class="LineNr"> 135 </span> <a href='507line.mu.html#L1'>draw-line</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="Constant">0x180</span>/xs, <span class="Constant">0x150</span>/ys, <span class="Constant">0x210</span>/xf, <span class="Constant">0x1d0</span>/yf, <span class="Constant">0xa2</span>/color -<span id="L136" class="LineNr"> 136 </span> <span class="muComment"># cell outputs at corners</span> -<span id="L137" class="LineNr"> 137 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury -<span id="L138" class="LineNr"> 138 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xd0</span>/xmin <span class="Constant">0x50</span>/ymin, <span class="Constant">0xf0</span>/xmax <span class="Constant">0x70</span>/ymax, color -<span id="L139" class="LineNr"> 139 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x310</span>/xmin <span class="Constant">0x50</span>/ymin, <span class="Constant">0x330</span>/xmax <span class="Constant">0x70</span>/ymax, color -<span id="L140" class="LineNr"> 140 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xd0</span>/xmin <span class="Constant">0x290</span>/ymin, <span class="Constant">0xf0</span>/xmax <span class="Constant">0x2b0</span>/ymax, color -<span id="L141" class="LineNr"> 141 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x310</span>/xmin <span class="Constant">0x290</span>/ymin, <span class="Constant">0x330</span>/xmax <span class="Constant">0x2b0</span>/ymax, color -<span id="L142" class="LineNr"> 142 </span> <span class="muComment"># cell outputs at edges</span> -<span id="L143" class="LineNr"> 143 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1f0</span>/xmin <span class="Constant">0x50</span>/ymin, <span class="Constant">0x210</span>/xmax <span class="Constant">0x70</span>/ymax, color -<span id="L144" class="LineNr"> 144 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xd0</span>/xmin <span class="Constant">0x170</span>/ymin, <span class="Constant">0xf0</span>/xmax <span class="Constant">0x190</span>/ymax, color -<span id="L145" class="LineNr"> 145 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1f0</span>/xmin <span class="Constant">0x290</span>/ymin, <span class="Constant">0x210</span>/xmax <span class="Constant">0x2b0</span>/ymax, color -<span id="L146" class="LineNr"> 146 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x310</span>/xmin <span class="Constant">0x170</span>/ymin, <span class="Constant">0x330</span>/xmax <span class="Constant">0x190</span>/ymax, color -<span id="L147" class="LineNr"> 147 </span> <span class="muComment"># conveyors from filter to outputs</span> -<span id="L148" class="LineNr"> 148 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x1c0</span>/x1 <span class="Constant">0x60</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L149" class="LineNr"> 149 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0xe0</span>/x1 <span class="Constant">0x1c0</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x180</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L150" class="LineNr"> 150 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x1c0</span>/x1 <span class="Constant">0x2a0</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L151" class="LineNr"> 151 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x210</span>/x1 <span class="Constant">0x60</span>/y1, <span class="Constant">0x200</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L152" class="LineNr"> 152 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x210</span>/x1 <span class="Constant">0x230</span>/y1, <span class="Constant">0x200</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L153" class="LineNr"> 153 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x120</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L154" class="LineNr"> 154 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x1c0</span>/y1 <span class="Constant">0x320</span>/x2 <span class="Constant">0x180</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L155" class="LineNr"> 155 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x230</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L156" class="LineNr"> 156 </span> <span class="muComment"># time-variant portion: 16 repeating steps</span> -<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick -<span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a -<span id="L159" class="LineNr"> 159 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> -<span id="L160" class="LineNr"> 160 </span> <span class="muComment"># 7 time steps for getting inputs to sum</span> -<span id="L161" class="LineNr"> 161 </span> <span class="Delimiter">{</span> -<span id="L162" class="LineNr"> 162 </span> compare progress, <span class="Constant">7</span> -<span id="L163" class="LineNr"> 163 </span> <span class="PreProc">break-if->=</span> -<span id="L164" class="LineNr"> 164 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L165" class="LineNr"> 165 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L166" class="LineNr"> 166 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six -<span id="L167" class="LineNr"> 167 </span> u <span class="Special"><-</span> divide six-f -<span id="L168" class="LineNr"> 168 </span> <span class="muComment"># points on conveyors from neighboring cells</span> -<span id="L169" class="LineNr"> 169 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L170" class="LineNr"> 170 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x180</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L171" class="LineNr"> 171 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xa0</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L172" class="LineNr"> 172 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x200</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x90</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L173" class="LineNr"> 173 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x200</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x200</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L174" class="LineNr"> 174 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x360</span>/x0 <span class="Constant">0x20</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0xc0</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L175" class="LineNr"> 175 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x360</span>/x0 <span class="Constant">0x180</span>/y0, <span class="Constant">0x35c</span>/x1 <span class="Constant">0x150</span>/ys, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L176" class="LineNr"> 176 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x360</span>/x0 <span class="Constant">0x2e0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x200</span>/y1, <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L177" class="LineNr"> 177 </span> <span class="PreProc">return</span> -<span id="L178" class="LineNr"> 178 </span> <span class="Delimiter">}</span> -<span id="L179" class="LineNr"> 179 </span> <span class="muComment"># two time steps for getting count to filter</span> -<span id="L180" class="LineNr"> 180 </span> progress <span class="Special"><-</span> subtract <span class="Constant">7</span> -<span id="L181" class="LineNr"> 181 </span> <span class="Delimiter">{</span> -<span id="L182" class="LineNr"> 182 </span> compare progress, <span class="Constant">2</span> -<span id="L183" class="LineNr"> 183 </span> <span class="PreProc">break-if->=</span> -<span id="L184" class="LineNr"> 184 </span> progress <span class="Special"><-</span> increment <span class="muComment"># (0, 1) => (1, 2)</span> -<span id="L185" class="LineNr"> 185 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L186" class="LineNr"> 186 </span> <span class="PreProc">var</span> three/eax: int <span class="Special"><-</span> copy <span class="Constant">3</span> -<span id="L187" class="LineNr"> 187 </span> <span class="PreProc">var</span> three-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert three -<span id="L188" class="LineNr"> 188 </span> u <span class="Special"><-</span> divide three-f -<span id="L189" class="LineNr"> 189 </span> <a href='hest-life.mu.html#L588'>draw-linear-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x180</span>/xs, <span class="Constant">0x150</span>/ys, <span class="Constant">0x210</span>/xf, <span class="Constant">0x1d0</span>/yf, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L190" class="LineNr"> 190 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x3a</span>/scol, <span class="Constant">0x18</span>/srow -<span id="L191" class="LineNr"> 191 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury -<span id="L192" class="LineNr"> 192 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg -<span id="L193" class="LineNr"> 193 </span> <span class="PreProc">return</span> -<span id="L194" class="LineNr"> 194 </span> <span class="Delimiter">}</span> -<span id="L195" class="LineNr"> 195 </span> <span class="muComment"># final 7 time steps for updating output</span> -<span id="L196" class="LineNr"> 196 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> -<span id="L197" class="LineNr"> 197 </span> <span class="muComment"># points on conveyors to outputs</span> -<span id="L198" class="LineNr"> 198 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L199" class="LineNr"> 199 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L200" class="LineNr"> 200 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six -<span id="L201" class="LineNr"> 201 </span> u <span class="Special"><-</span> divide six-f -<span id="L202" class="LineNr"> 202 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x1c0</span>/x1 <span class="Constant">0x60</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L203" class="LineNr"> 203 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0xe0</span>/x1 <span class="Constant">0x1c0</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x180</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L204" class="LineNr"> 204 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x1c0</span>/x1 <span class="Constant">0x2a0</span>/y1, <span class="Constant">0xe0</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L205" class="LineNr"> 205 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x210</span>/xf <span class="Constant">0x60</span>/y1, <span class="Constant">0x200</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L206" class="LineNr"> 206 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x210</span>/xf <span class="Constant">0x230</span>/y1, <span class="Constant">0x200</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L207" class="LineNr"> 207 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x120</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x60</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L208" class="LineNr"> 208 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x1c0</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x180</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L209" class="LineNr"> 209 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x210</span>/xf <span class="Constant">0x1d0</span>/yf, <span class="Constant">0x320</span>/x1 <span class="Constant">0x230</span>/y1, <span class="Constant">0x320</span>/x2 <span class="Constant">0x2a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L210" class="LineNr"> 210 </span><span class="Delimiter">}</span> -<span id="L211" class="LineNr"> 211 </span> -<span id="L212" class="LineNr"> 212 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L212'>render1</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L213" class="LineNr"> 213 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L214" class="LineNr"> 214 </span> <span class="muComment"># cell borders</span> -<span id="L215" class="LineNr"> 215 </span> <a href='507line.mu.html#L75'>draw-vertical-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe0</span>/x, <span class="Constant">0</span>/ymin, <span class="Constant">0x300</span>/ymax, <span class="Constant">0x16</span>/color=dark-grey -<span id="L216" class="LineNr"> 216 </span> <a href='507line.mu.html#L75'>draw-vertical-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x200</span>/x, <span class="Constant">0</span>/ymin, <span class="Constant">0x300</span>/ymax, <span class="Constant">0x16</span>/color=dark-grey -<span id="L217" class="LineNr"> 217 </span> <a href='507line.mu.html#L75'>draw-vertical-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x320</span>/x, <span class="Constant">0</span>/ymin, <span class="Constant">0x300</span>/ymax, <span class="Constant">0x16</span>/color=dark-grey -<span id="L218" class="LineNr"> 218 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x60</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey -<span id="L219" class="LineNr"> 219 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x180</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey -<span id="L220" class="LineNr"> 220 </span> <a href='507line.mu.html#L64'>draw-horizontal-line</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a0</span>/y, <span class="Constant">0</span>/xmin, <span class="Constant">0x400</span>/xmax, <span class="Constant">0x16</span>/color=dark-grey -<span id="L221" class="LineNr"> 221 </span> <span class="muComment"># cell 0: outputs</span> -<span id="L222" class="LineNr"> 222 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury -<span id="L223" class="LineNr"> 223 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x98</span>/ymax, color -<span id="L224" class="LineNr"> 224 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x100</span>/ymax, color -<span id="L225" class="LineNr"> 225 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x178</span>/ymax, color -<span id="L226" class="LineNr"> 226 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x98</span>/ymax, color -<span id="L227" class="LineNr"> 227 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x178</span>/ymax, color -<span id="L228" class="LineNr"> 228 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x98</span>/ymax, color -<span id="L229" class="LineNr"> 229 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x100</span>/ymax, color -<span id="L230" class="LineNr"> 230 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x178</span>/ymax, color -<span id="L231" class="LineNr"> 231 </span> <span class="muComment"># cell 1: outputs</span> -<span id="L232" class="LineNr"> 232 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x60</span>/cury -<span id="L233" class="LineNr"> 233 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x98</span>/ymax, color -<span id="L234" class="LineNr"> 234 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x100</span>/ymax, color -<span id="L235" class="LineNr"> 235 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x178</span>/ymax, color -<span id="L236" class="LineNr"> 236 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x98</span>/ymax, color -<span id="L237" class="LineNr"> 237 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x178</span>/ymax, color -<span id="L238" class="LineNr"> 238 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x68</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x98</span>/ymax, color -<span id="L239" class="LineNr"> 239 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x100</span>/ymax, color -<span id="L240" class="LineNr"> 240 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x178</span>/ymax, color -<span id="L241" class="LineNr"> 241 </span> <span class="muComment"># cell 2: outputs</span> -<span id="L242" class="LineNr"> 242 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x61</span>/cury -<span id="L243" class="LineNr"> 243 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x1b8</span>/ymax, color -<span id="L244" class="LineNr"> 244 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x220</span>/ymax, color -<span id="L245" class="LineNr"> 245 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe8</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x118</span>/xmax <span class="Constant">0x298</span>/ymax, color -<span id="L246" class="LineNr"> 246 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x1b8</span>/ymax, color -<span id="L247" class="LineNr"> 247 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x298</span>/ymax, color -<span id="L248" class="LineNr"> 248 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x1b8</span>/ymax, color -<span id="L249" class="LineNr"> 249 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x220</span>/ymax, color -<span id="L250" class="LineNr"> 250 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x298</span>/ymax, color -<span id="L251" class="LineNr"> 251 </span> <span class="muComment"># cell 3: outputs</span> -<span id="L252" class="LineNr"> 252 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x61</span>/cury -<span id="L253" class="LineNr"> 253 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x1b8</span>/ymax, color -<span id="L254" class="LineNr"> 254 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x220</span>/ymax, color -<span id="L255" class="LineNr"> 255 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x298</span>/ymax, color -<span id="L256" class="LineNr"> 256 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x1b8</span>/ymax, color -<span id="L257" class="LineNr"> 257 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x298</span>/ymax, color -<span id="L258" class="LineNr"> 258 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x1b8</span>/ymax, color -<span id="L259" class="LineNr"> 259 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x220</span>/ymax, color -<span id="L260" class="LineNr"> 260 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2e8</span>/xmin <span class="Constant">0x268</span>/ymin, <span class="Constant">0x318</span>/xmax <span class="Constant">0x298</span>/ymax, color -<span id="L261" class="LineNr"> 261 </span> <span class="muComment"># neighboring nodes</span> -<span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x5f</span>/cury -<span id="L263" class="LineNr"> 263 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x58</span>/ymax, color -<span id="L264" class="LineNr"> 264 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x5f</span>/cury -<span id="L265" class="LineNr"> 265 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x58</span>/ymax, color -<span id="L266" class="LineNr"> 266 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x58</span>/ymax, color -<span id="L267" class="LineNr"> 267 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x5f</span>/cury -<span id="L268" class="LineNr"> 268 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x58</span>/ymax, color -<span id="L269" class="LineNr"> 269 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x58</span>/ymax, color -<span id="L270" class="LineNr"> 270 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x5f</span>/cury -<span id="L271" class="LineNr"> 271 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x28</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x58</span>/ymax, color -<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x60</span>/cury -<span id="L273" class="LineNr"> 273 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x100</span>/ymax, color -<span id="L274" class="LineNr"> 274 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x178</span>/ymax, color -<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x60</span>/cury -<span id="L276" class="LineNr"> 276 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0xd0</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x100</span>/ymax, color -<span id="L277" class="LineNr"> 277 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x148</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x178</span>/ymax, color -<span id="L278" class="LineNr"> 278 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x61</span>/cury -<span id="L279" class="LineNr"> 279 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x1b8</span>/ymax, color -<span id="L280" class="LineNr"> 280 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x220</span>/ymax, color -<span id="L281" class="LineNr"> 281 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x61</span>/cury -<span id="L282" class="LineNr"> 282 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x188</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x1b8</span>/ymax, color -<span id="L283" class="LineNr"> 283 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x1f0</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x220</span>/ymax, color -<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x7f</span>/curx, <span class="Constant">0x62</span>/cury -<span id="L285" class="LineNr"> 285 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa8</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0xd8</span>/xmax <span class="Constant">0x2d8</span>/ymax, color -<span id="L286" class="LineNr"> 286 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x62</span>/cury -<span id="L287" class="LineNr"> 287 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x158</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x188</span>/xmax <span class="Constant">0x2d8</span>/ymax, color -<span id="L288" class="LineNr"> 288 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1c8</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x1f8</span>/xmax <span class="Constant">0x2d8</span>/ymax, color -<span id="L289" class="LineNr"> 289 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x62</span>/cury -<span id="L290" class="LineNr"> 290 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x208</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x238</span>/xmax <span class="Constant">0x2d8</span>/ymax, color -<span id="L291" class="LineNr"> 291 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x278</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x2a8</span>/xmax <span class="Constant">0x2d8</span>/ymax, color -<span id="L292" class="LineNr"> 292 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L825'>state-color</a> self, <span class="Constant">0x82</span>/curx, <span class="Constant">0x62</span>/cury -<span id="L293" class="LineNr"> 293 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x328</span>/xmin <span class="Constant">0x2a8</span>/ymin, <span class="Constant">0x358</span>/xmax <span class="Constant">0x2d8</span>/ymax, color -<span id="L294" class="LineNr"> 294 </span> <span class="muComment"># cell 0: sum and filter nodes</span> -<span id="L295" class="LineNr"> 295 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x148</span>/xsmin <span class="Constant">0xc8</span>/ysmin, <span class="Constant">0x158</span>/xsmax <span class="Constant">0xd8</span>/ysmax, <span class="Constant">0x40</span>/color -<span id="L296" class="LineNr"> 296 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x180</span>/xfmin <span class="Constant">0xf8</span>/yfmin, <span class="Constant">0x190</span>/xfmax <span class="Constant">0x108</span>/yfmax, <span class="Constant">0x31</span>/color -<span id="L297" class="LineNr"> 297 </span> <span class="muComment"># cell 1: sum and filter nodes</span> -<span id="L298" class="LineNr"> 298 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x268</span>/xsmin <span class="Constant">0xc8</span>/ysmin, <span class="Constant">0x278</span>/xsmax <span class="Constant">0xd8</span>/ysmax, <span class="Constant">0x40</span>/color -<span id="L299" class="LineNr"> 299 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a0</span>/xfmin <span class="Constant">0xf8</span>/yfmin, <span class="Constant">0x2b0</span>/xfmax <span class="Constant">0x108</span>/yfmax, <span class="Constant">0x31</span>/color -<span id="L300" class="LineNr"> 300 </span> <span class="muComment"># cell 2: sum and filter nodes</span> -<span id="L301" class="LineNr"> 301 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x148</span>/xsmin <span class="Constant">0x1e8</span>/ysmin, <span class="Constant">0x158</span>/xsmax <span class="Constant">0x1f8</span>/ysmax, <span class="Constant">0x40</span>/color -<span id="L302" class="LineNr"> 302 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x180</span>/xfmin <span class="Constant">0x218</span>/yfmin, <span class="Constant">0x190</span>/xfmax <span class="Constant">0x228</span>/yfmax, <span class="Constant">0x31</span>/color -<span id="L303" class="LineNr"> 303 </span> <span class="muComment"># cell 3: sum and filter nodes</span> -<span id="L304" class="LineNr"> 304 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x268</span>/xsmin <span class="Constant">0x1e8</span>/ysmin, <span class="Constant">0x278</span>/xsmax <span class="Constant">0x1f8</span>/ysmax, <span class="Constant">0x40</span>/color -<span id="L305" class="LineNr"> 305 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a0</span>/xfmin <span class="Constant">0x218</span>/yfmin, <span class="Constant">0x2b0</span>/xfmax <span class="Constant">0x228</span>/yfmax, <span class="Constant">0x31</span>/color -<span id="L306" class="LineNr"> 306 </span> <span class="muComment"># neighbor counts</span> -<span id="L307" class="LineNr"> 307 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury -<span id="L308" class="LineNr"> 308 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>, <span class="Constant">0xe</span> -<span id="L309" class="LineNr"> 309 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg -<span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x60</span>/cury -<span id="L311" class="LineNr"> 311 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x52</span>, <span class="Constant">0xe</span> -<span id="L312" class="LineNr"> 312 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg -<span id="L313" class="LineNr"> 313 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x61</span>/cury -<span id="L314" class="LineNr"> 314 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>, <span class="Constant">0x20</span> -<span id="L315" class="LineNr"> 315 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg -<span id="L316" class="LineNr"> 316 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x61</span>/cury -<span id="L317" class="LineNr"> 317 </span> <a href='500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x52</span>, <span class="Constant">0x20</span> -<span id="L318" class="LineNr"> 318 </span> <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg -<span id="L319" class="LineNr"> 319 </span> <span class="muComment"># cell 0: conveyors from neighboring inputs to sum node</span> -<span id="L320" class="LineNr"> 320 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L321" class="LineNr"> 321 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L322" class="LineNr"> 322 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0xe0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L323" class="LineNr"> 323 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L324" class="LineNr"> 324 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L325" class="LineNr"> 325 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L326" class="LineNr"> 326 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0xd0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L327" class="LineNr"> 327 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L328" class="LineNr"> 328 </span> <span class="muComment"># cell 0: conveyors from filter to outputs</span> -<span id="L329" class="LineNr"> 329 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x160</span>/x1 <span class="Constant">0x8c</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L330" class="LineNr"> 330 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L331" class="LineNr"> 331 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L332" class="LineNr"> 332 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x188</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L333" class="LineNr"> 333 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x188</span>/x1 <span class="Constant">0x160</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L334" class="LineNr"> 334 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L335" class="LineNr"> 335 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1 <span class="Constant">0x1e0</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L336" class="LineNr"> 336 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L337" class="LineNr"> 337 </span> <span class="muComment"># cell 0: time-variant portion: 16 repeating steps</span> -<span id="L338" class="LineNr"> 338 </span> $render1:cell0: <span class="Delimiter">{</span> -<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick -<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a -<span id="L341" class="LineNr"> 341 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> -<span id="L342" class="LineNr"> 342 </span> <span class="muComment"># cell 0: 7 time steps for getting inputs to sum</span> -<span id="L343" class="LineNr"> 343 </span> <span class="Delimiter">{</span> -<span id="L344" class="LineNr"> 344 </span> compare progress, <span class="Constant">7</span> -<span id="L345" class="LineNr"> 345 </span> <span class="PreProc">break-if->=</span> -<span id="L346" class="LineNr"> 346 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L347" class="LineNr"> 347 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L348" class="LineNr"> 348 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six -<span id="L349" class="LineNr"> 349 </span> u <span class="Special"><-</span> divide six-f -<span id="L350" class="LineNr"> 350 </span> <span class="muComment"># points on conveyors from neighboring cells</span> -<span id="L351" class="LineNr"> 351 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L352" class="LineNr"> 352 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L353" class="LineNr"> 353 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0xe0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L354" class="LineNr"> 354 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x170</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L355" class="LineNr"> 355 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x170</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L356" class="LineNr"> 356 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L357" class="LineNr"> 357 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0xd0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L358" class="LineNr"> 358 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L359" class="LineNr"> 359 </span> <span class="PreProc">break</span> $render1:cell0 -<span id="L360" class="LineNr"> 360 </span> <span class="Delimiter">}</span> -<span id="L361" class="LineNr"> 361 </span> <span class="muComment"># cell 0: two time steps for getting count to filter</span> -<span id="L362" class="LineNr"> 362 </span> progress <span class="Special"><-</span> subtract <span class="Constant">7</span> -<span id="L363" class="LineNr"> 363 </span> <span class="Delimiter">{</span> -<span id="L364" class="LineNr"> 364 </span> compare progress, <span class="Constant">2</span> -<span id="L365" class="LineNr"> 365 </span> <span class="PreProc">break-if->=</span> -<span id="L366" class="LineNr"> 366 </span> <span class="PreProc">break</span> $render1:cell0 -<span id="L367" class="LineNr"> 367 </span> <span class="Delimiter">}</span> -<span id="L368" class="LineNr"> 368 </span> <span class="muComment"># cell 0: final 7 time steps for updating output</span> -<span id="L369" class="LineNr"> 369 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> -<span id="L370" class="LineNr"> 370 </span> <span class="muComment"># cell 0: points on conveyors to outputs</span> -<span id="L371" class="LineNr"> 371 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L372" class="LineNr"> 372 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six -<span id="L374" class="LineNr"> 374 </span> u <span class="Special"><-</span> divide six-f -<span id="L375" class="LineNr"> 375 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x160</span>/x1 <span class="Constant">0x8c</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L376" class="LineNr"> 376 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L377" class="LineNr"> 377 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L378" class="LineNr"> 378 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x188</span>/xf <span class="Constant">0x80</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L379" class="LineNr"> 379 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x188</span>/xf <span class="Constant">0x160</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L380" class="LineNr"> 380 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L381" class="LineNr"> 381 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L382" class="LineNr"> 382 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L383" class="LineNr"> 383 </span> <span class="Delimiter">}</span> -<span id="L384" class="LineNr"> 384 </span> <span class="muComment"># cell 1: conveyors from neighboring inputs to sum node</span> -<span id="L385" class="LineNr"> 385 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L386" class="LineNr"> 386 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L387" class="LineNr"> 387 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x200</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L388" class="LineNr"> 388 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x290</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L389" class="LineNr"> 389 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x290</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L390" class="LineNr"> 390 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L391" class="LineNr"> 391 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x340</span>/x1 <span class="Constant">0xd0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L392" class="LineNr"> 392 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x2a0</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">4</span>/color -<span id="L393" class="LineNr"> 393 </span> <span class="muComment"># cell 1: conveyors from filter to outputs</span> -<span id="L394" class="LineNr"> 394 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x280</span>/x1 <span class="Constant">0x8c</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L395" class="LineNr"> 395 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L396" class="LineNr"> 396 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L397" class="LineNr"> 397 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x2a8</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L398" class="LineNr"> 398 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x2a8</span>/x1 <span class="Constant">0x160</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L399" class="LineNr"> 399 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L400" class="LineNr"> 400 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1 <span class="Constant">0x300</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L401" class="LineNr"> 401 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L402" class="LineNr"> 402 </span> <span class="muComment"># cell 1: time-variant portion: 16 repeating steps</span> -<span id="L403" class="LineNr"> 403 </span> $render1:cell1: <span class="Delimiter">{</span> -<span id="L404" class="LineNr"> 404 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick -<span id="L405" class="LineNr"> 405 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a -<span id="L406" class="LineNr"> 406 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> -<span id="L407" class="LineNr"> 407 </span> <span class="muComment"># cell 1: 7 time steps for getting inputs to sum</span> -<span id="L408" class="LineNr"> 408 </span> <span class="Delimiter">{</span> -<span id="L409" class="LineNr"> 409 </span> compare progress, <span class="Constant">7</span> -<span id="L410" class="LineNr"> 410 </span> <span class="PreProc">break-if->=</span> -<span id="L411" class="LineNr"> 411 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L413" class="LineNr"> 413 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six -<span id="L414" class="LineNr"> 414 </span> u <span class="Special"><-</span> divide six-f -<span id="L415" class="LineNr"> 415 </span> <span class="muComment"># points on conveyors from neighboring cells</span> -<span id="L416" class="LineNr"> 416 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L417" class="LineNr"> 417 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L418" class="LineNr"> 418 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x200</span>/x1 <span class="Constant">0xd0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L419" class="LineNr"> 419 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x290</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L420" class="LineNr"> 420 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x290</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L421" class="LineNr"> 421 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0x40</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x80</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L422" class="LineNr"> 422 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0xe8</span>/y0, <span class="Constant">0x340</span>/x1 <span class="Constant">0xd0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L423" class="LineNr"> 423 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0x1a0</span>/y0, <span class="Constant">0x2a0</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0xd0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L424" class="LineNr"> 424 </span> <span class="PreProc">break</span> $render1:cell1 -<span id="L425" class="LineNr"> 425 </span> <span class="Delimiter">}</span> -<span id="L426" class="LineNr"> 426 </span> <span class="muComment"># cell 1: two time steps for getting count to filter</span> -<span id="L427" class="LineNr"> 427 </span> progress <span class="Special"><-</span> subtract <span class="Constant">7</span> -<span id="L428" class="LineNr"> 428 </span> <span class="Delimiter">{</span> -<span id="L429" class="LineNr"> 429 </span> compare progress, <span class="Constant">2</span> -<span id="L430" class="LineNr"> 430 </span> <span class="PreProc">break-if->=</span> -<span id="L431" class="LineNr"> 431 </span> <span class="PreProc">break</span> $render1:cell1 -<span id="L432" class="LineNr"> 432 </span> <span class="Delimiter">}</span> -<span id="L433" class="LineNr"> 433 </span> <span class="muComment"># cell 1: final 7 time steps for updating output</span> -<span id="L434" class="LineNr"> 434 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> -<span id="L435" class="LineNr"> 435 </span> <span class="muComment"># cell 1: points on conveyors to outputs</span> -<span id="L436" class="LineNr"> 436 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L437" class="LineNr"> 437 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L438" class="LineNr"> 438 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six -<span id="L439" class="LineNr"> 439 </span> u <span class="Special"><-</span> divide six-f -<span id="L440" class="LineNr"> 440 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x280</span>/x1 <span class="Constant">0x8c</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L441" class="LineNr"> 441 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L442" class="LineNr"> 442 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L443" class="LineNr"> 443 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x80</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L444" class="LineNr"> 444 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x160</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L445" class="LineNr"> 445 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x80</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L446" class="LineNr"> 446 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0xe8</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L447" class="LineNr"> 447 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x100</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x100</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x160</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L448" class="LineNr"> 448 </span> <span class="Delimiter">}</span> -<span id="L449" class="LineNr"> 449 </span> <span class="muComment"># cell 2: conveyors from neighboring inputs to sum node</span> -<span id="L450" class="LineNr"> 450 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L451" class="LineNr"> 451 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L452" class="LineNr"> 452 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0xe0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L453" class="LineNr"> 453 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L454" class="LineNr"> 454 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L455" class="LineNr"> 455 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L456" class="LineNr"> 456 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0x1f0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L457" class="LineNr"> 457 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x220</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L458" class="LineNr"> 458 </span> <span class="muComment"># cell 2: conveyors from filter to outputs</span> -<span id="L459" class="LineNr"> 459 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x160</span>/x1 <span class="Constant">0x1ac</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L460" class="LineNr"> 460 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L461" class="LineNr"> 461 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L462" class="LineNr"> 462 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x188</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L463" class="LineNr"> 463 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x188</span>/x1 <span class="Constant">0x280</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L464" class="LineNr"> 464 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L465" class="LineNr"> 465 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1 <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L466" class="LineNr"> 466 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L467" class="LineNr"> 467 </span> <span class="muComment"># cell 2: time-variant portion: 16 repeating steps</span> -<span id="L468" class="LineNr"> 468 </span> $render1:cell2: <span class="Delimiter">{</span> -<span id="L469" class="LineNr"> 469 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick -<span id="L470" class="LineNr"> 470 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a -<span id="L471" class="LineNr"> 471 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> -<span id="L472" class="LineNr"> 472 </span> <span class="muComment"># cell 2: 7 time steps for getting inputs to sum</span> -<span id="L473" class="LineNr"> 473 </span> <span class="Delimiter">{</span> -<span id="L474" class="LineNr"> 474 </span> compare progress, <span class="Constant">7</span> -<span id="L475" class="LineNr"> 475 </span> <span class="PreProc">break-if->=</span> -<span id="L476" class="LineNr"> 476 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L478" class="LineNr"> 478 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six -<span id="L479" class="LineNr"> 479 </span> u <span class="Special"><-</span> divide six-f -<span id="L480" class="LineNr"> 480 </span> <span class="muComment"># points on conveyors from neighboring cells</span> -<span id="L481" class="LineNr"> 481 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x100</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L482" class="LineNr"> 482 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0xc0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L483" class="LineNr"> 483 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0xc0</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0xe0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L484" class="LineNr"> 484 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x170</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L485" class="LineNr"> 485 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x170</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L486" class="LineNr"> 486 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x150</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L487" class="LineNr"> 487 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0x1f0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L488" class="LineNr"> 488 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x220</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x180</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x150</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">break</span> $render1:cell2 -<span id="L490" class="LineNr"> 490 </span> <span class="Delimiter">}</span> -<span id="L491" class="LineNr"> 491 </span> <span class="muComment"># cell 2: two time steps for getting count to filter</span> -<span id="L492" class="LineNr"> 492 </span> progress <span class="Special"><-</span> subtract <span class="Constant">7</span> -<span id="L493" class="LineNr"> 493 </span> <span class="Delimiter">{</span> -<span id="L494" class="LineNr"> 494 </span> compare progress, <span class="Constant">2</span> -<span id="L495" class="LineNr"> 495 </span> <span class="PreProc">break-if->=</span> -<span id="L496" class="LineNr"> 496 </span> <span class="PreProc">break</span> $render1:cell2 -<span id="L497" class="LineNr"> 497 </span> <span class="Delimiter">}</span> -<span id="L498" class="LineNr"> 498 </span> <span class="muComment"># cell 2: final 7 time steps for updating output</span> -<span id="L499" class="LineNr"> 499 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> -<span id="L500" class="LineNr"> 500 </span> <span class="muComment"># cell 2: points on conveyors to outputs</span> -<span id="L501" class="LineNr"> 501 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L502" class="LineNr"> 502 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L503" class="LineNr"> 503 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six -<span id="L504" class="LineNr"> 504 </span> u <span class="Special"><-</span> divide six-f -<span id="L505" class="LineNr"> 505 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x160</span>/x1 <span class="Constant">0x1ac</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L506" class="LineNr"> 506 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L507" class="LineNr"> 507 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x100</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x100</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L508" class="LineNr"> 508 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x188</span>/xf <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L509" class="LineNr"> 509 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x188</span>/xf <span class="Constant">0x280</span>/y1, <span class="Constant">0x170</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L510" class="LineNr"> 510 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L511" class="LineNr"> 511 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L512" class="LineNr"> 512 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x188</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x1e0</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L513" class="LineNr"> 513 </span> <span class="Delimiter">}</span> -<span id="L514" class="LineNr"> 514 </span> <span class="muComment"># cell 3: conveyors from neighboring inputs to sum node</span> -<span id="L515" class="LineNr"> 515 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L516" class="LineNr"> 516 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L517" class="LineNr"> 517 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x200</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L518" class="LineNr"> 518 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x290</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L519" class="LineNr"> 519 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x290</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L520" class="LineNr"> 520 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L521" class="LineNr"> 521 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x340</span>/x1 <span class="Constant">0x1f0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L522" class="LineNr"> 522 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x340</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x2a0</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">4</span>/color -<span id="L523" class="LineNr"> 523 </span> <span class="muComment"># cell 3: conveyors from filter to outputs</span> -<span id="L524" class="LineNr"> 524 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x280</span>/x1 <span class="Constant">0x1ac</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L525" class="LineNr"> 525 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L526" class="LineNr"> 526 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L527" class="LineNr"> 527 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x2a8</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L528" class="LineNr"> 528 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x2a8</span>/x1 <span class="Constant">0x280</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L529" class="LineNr"> 529 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L530" class="LineNr"> 530 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1 <span class="Constant">0x300</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L531" class="LineNr"> 531 </span> <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">0x2a</span>/color -<span id="L532" class="LineNr"> 532 </span> <span class="muComment"># cell 3: time-variant portion: 16 repeating steps</span> -<span id="L533" class="LineNr"> 533 </span> $render1:cell3: <span class="Delimiter">{</span> -<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick -<span id="L535" class="LineNr"> 535 </span> <span class="PreProc">var</span> progress/eax: int <span class="Special"><-</span> copy *tick-a -<span id="L536" class="LineNr"> 536 </span> progress <span class="Special"><-</span> and <span class="Constant">0xf</span> -<span id="L537" class="LineNr"> 537 </span> <span class="muComment"># cell 3: 7 time steps for getting inputs to sum</span> -<span id="L538" class="LineNr"> 538 </span> <span class="Delimiter">{</span> -<span id="L539" class="LineNr"> 539 </span> compare progress, <span class="Constant">7</span> -<span id="L540" class="LineNr"> 540 </span> <span class="PreProc">break-if->=</span> -<span id="L541" class="LineNr"> 541 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L542" class="LineNr"> 542 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L543" class="LineNr"> 543 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six -<span id="L544" class="LineNr"> 544 </span> u <span class="Special"><-</span> divide six-f -<span id="L545" class="LineNr"> 545 </span> <span class="muComment"># points on conveyors from neighboring cells</span> -<span id="L546" class="LineNr"> 546 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x220</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L547" class="LineNr"> 547 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x1e0</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L548" class="LineNr"> 548 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x1e0</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x200</span>/x1 <span class="Constant">0x1f0</span>/ys, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L549" class="LineNr"> 549 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x290</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L550" class="LineNr"> 550 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x290</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L551" class="LineNr"> 551 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0x160</span>/y0, <span class="Constant">0x270</span>/x1 <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L552" class="LineNr"> 552 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0x208</span>/y0, <span class="Constant">0x340</span>/x1 <span class="Constant">0x1f0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L553" class="LineNr"> 553 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x340</span>/x0 <span class="Constant">0x2c0</span>/y0, <span class="Constant">0x2a0</span>/x1 <span class="Constant">0x2c0</span>/y1, <span class="Constant">0x270</span>/xs <span class="Constant">0x1f0</span>/ys, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L554" class="LineNr"> 554 </span> <span class="PreProc">break</span> $render1:cell3 -<span id="L555" class="LineNr"> 555 </span> <span class="Delimiter">}</span> -<span id="L556" class="LineNr"> 556 </span> <span class="muComment"># cell 3: two time steps for getting count to filter</span> -<span id="L557" class="LineNr"> 557 </span> progress <span class="Special"><-</span> subtract <span class="Constant">7</span> -<span id="L558" class="LineNr"> 558 </span> <span class="Delimiter">{</span> -<span id="L559" class="LineNr"> 559 </span> compare progress, <span class="Constant">2</span> -<span id="L560" class="LineNr"> 560 </span> <span class="PreProc">break-if->=</span> -<span id="L561" class="LineNr"> 561 </span> <span class="PreProc">break</span> $render1:cell3 -<span id="L562" class="LineNr"> 562 </span> <span class="Delimiter">}</span> -<span id="L563" class="LineNr"> 563 </span> <span class="muComment"># cell 3: final 7 time steps for updating output</span> -<span id="L564" class="LineNr"> 564 </span> progress <span class="Special"><-</span> subtract <span class="Constant">2</span> -<span id="L565" class="LineNr"> 565 </span> <span class="muComment"># cell 3: points on conveyors to outputs</span> -<span id="L566" class="LineNr"> 566 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert progress -<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> six/eax: int <span class="Special"><-</span> copy <span class="Constant">6</span> -<span id="L568" class="LineNr"> 568 </span> <span class="PreProc">var</span> six-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert six -<span id="L569" class="LineNr"> 569 </span> u <span class="Special"><-</span> divide six-f -<span id="L570" class="LineNr"> 570 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x280</span>/x1 <span class="Constant">0x1ac</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L571" class="LineNr"> 571 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L572" class="LineNr"> 572 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x220</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x220</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L573" class="LineNr"> 573 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x1a0</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L574" class="LineNr"> 574 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x280</span>/y1, <span class="Constant">0x290</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L575" class="LineNr"> 575 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x1a0</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L576" class="LineNr"> 576 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x208</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L577" class="LineNr"> 577 </span> <a href='hest-life.mu.html#L581'>draw-bezier-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x2a8</span>/xf <span class="Constant">0x220</span>/yf, <span class="Constant">0x300</span>/x1 <span class="Constant">0x220</span>/y1, <span class="Constant">0x300</span>/x2 <span class="Constant">0x280</span>/y2, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius -<span id="L578" class="LineNr"> 578 </span> <span class="Delimiter">}</span> -<span id="L579" class="LineNr"> 579 </span><span class="Delimiter">}</span> -<span id="L580" class="LineNr"> 580 </span> -<span id="L581" class="LineNr"> 581 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L581'>draw-bezier-point</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), u: float, x0: int, y0: int, x1: int, y1: int, x2: int, y2: int, color: int, radius: int <span class="Delimiter">{</span> -<span id="L582" class="LineNr"> 582 </span> <span class="PreProc">var</span> _cy/eax: int <span class="Special"><-</span> <a href='509bezier.mu.html#L298'>bezier-point</a> u, y0, y1, y2 -<span id="L583" class="LineNr"> 583 </span> <span class="PreProc">var</span> cy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _cy -<span id="L584" class="LineNr"> 584 </span> <span class="PreProc">var</span> cx/eax: int <span class="Special"><-</span> <a href='509bezier.mu.html#L298'>bezier-point</a> u, x0, x1, x2 -<span id="L585" class="LineNr"> 585 </span> <a href='508circle.mu.html#L80'>draw-disc</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cx, cy, radius, color, <span class="Constant">0xf</span>/border-color=white -<span id="L586" class="LineNr"> 586 </span><span class="Delimiter">}</span> -<span id="L587" class="LineNr"> 587 </span> -<span id="L588" class="LineNr"> 588 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L588'>draw-linear-point</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), u: float, x0: int, y0: int, x1: int, y1: int, color: int, radius: int <span class="Delimiter">{</span> -<span id="L589" class="LineNr"> 589 </span> <span class="PreProc">var</span> _cy/eax: int <span class="Special"><-</span> <a href='507line.mu.html#L98'>line-point</a> u, y0, y1 -<span id="L590" class="LineNr"> 590 </span> <span class="PreProc">var</span> cy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _cy -<span id="L591" class="LineNr"> 591 </span> <span class="PreProc">var</span> cx/eax: int <span class="Special"><-</span> <a href='507line.mu.html#L98'>line-point</a> u, x0, x1 -<span id="L592" class="LineNr"> 592 </span> <a href='508circle.mu.html#L80'>draw-disc</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cx, cy, radius, color, <span class="Constant">0xf</span>/border-color=white -<span id="L593" class="LineNr"> 593 </span><span class="Delimiter">}</span> -<span id="L594" class="LineNr"> 594 </span> -<span id="L595" class="LineNr"> 595 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L595'>edit</a></span> keyboard: (addr keyboard), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L596" class="LineNr"> 596 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L597" class="LineNr"> 597 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard -<span id="L598" class="LineNr"> 598 </span> <span class="muComment"># space: play/pause</span> -<span id="L599" class="LineNr"> 599 </span> <span class="Delimiter">{</span> -<span id="L600" class="LineNr"> 600 </span> compare key, <span class="Constant">0x20</span>/space -<span id="L601" class="LineNr"> 601 </span> <span class="PreProc">break-if-!=</span> -<span id="L602" class="LineNr"> 602 </span> <span class="PreProc">var</span> play?/eax: (addr boolean) <span class="Special"><-</span> get self, play? -<span id="L603" class="LineNr"> 603 </span> compare *play?, <span class="Constant">0</span>/false -<span id="L604" class="LineNr"> 604 </span> <span class="Delimiter">{</span> -<span id="L605" class="LineNr"> 605 </span> <span class="PreProc">break-if-=</span> -<span id="L606" class="LineNr"> 606 </span> copy-to *play?, <span class="Constant">0</span>/false -<span id="L607" class="LineNr"> 607 </span> <span class="PreProc">return</span> -<span id="L608" class="LineNr"> 608 </span> <span class="Delimiter">}</span> -<span id="L609" class="LineNr"> 609 </span> copy-to *play?, <span class="Constant">1</span>/true -<span id="L610" class="LineNr"> 610 </span> <span class="PreProc">return</span> -<span id="L611" class="LineNr"> 611 </span> <span class="Delimiter">}</span> -<span id="L612" class="LineNr"> 612 </span> <span class="muComment"># 0: back to start</span> -<span id="L613" class="LineNr"> 613 </span> <span class="Delimiter">{</span> -<span id="L614" class="LineNr"> 614 </span> compare key, <span class="Constant">0x30</span>/<span class="Constant">0</span> -<span id="L615" class="LineNr"> 615 </span> <span class="PreProc">break-if-!=</span> -<span id="L616" class="LineNr"> 616 </span> <a href='hest-life.mu.html#L744'>clear-environment</a> self -<span id="L617" class="LineNr"> 617 </span> <span class="PreProc">return</span> -<span id="L618" class="LineNr"> 618 </span> <span class="Delimiter">}</span> -<span id="L619" class="LineNr"> 619 </span> <span class="muComment"># l: loop from here to start</span> -<span id="L620" class="LineNr"> 620 </span> <span class="Delimiter">{</span> -<span id="L621" class="LineNr"> 621 </span> compare key, <span class="Constant">0x6c</span>/l -<span id="L622" class="LineNr"> 622 </span> <span class="PreProc">break-if-!=</span> -<span id="L623" class="LineNr"> 623 </span> <span class="PreProc">var</span> tick-a/eax: (addr int) <span class="Special"><-</span> get self, tick -<span id="L624" class="LineNr"> 624 </span> <span class="PreProc">var</span> tick/eax: int <span class="Special"><-</span> copy *tick-a -<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> -<span id="L626" class="LineNr"> 626 </span> copy-to *<span class="PreProc">loop</span>, tick -<span id="L627" class="LineNr"> 627 </span> <span class="PreProc">return</span> -<span id="L628" class="LineNr"> 628 </span> <span class="Delimiter">}</span> -<span id="L629" class="LineNr"> 629 </span> <span class="muComment"># L: reset loop</span> -<span id="L630" class="LineNr"> 630 </span> <span class="Delimiter">{</span> -<span id="L631" class="LineNr"> 631 </span> compare key, <span class="Constant">0x4c</span>/L -<span id="L632" class="LineNr"> 632 </span> <span class="PreProc">break-if-!=</span> -<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> -<span id="L634" class="LineNr"> 634 </span> copy-to *<span class="PreProc">loop</span>, <span class="Constant">0</span> -<span id="L635" class="LineNr"> 635 </span> <span class="PreProc">return</span> -<span id="L636" class="LineNr"> 636 </span> <span class="Delimiter">}</span> -<span id="L637" class="LineNr"> 637 </span> <span class="muComment"># -: zoom out</span> -<span id="L638" class="LineNr"> 638 </span> <span class="Delimiter">{</span> -<span id="L639" class="LineNr"> 639 </span> compare key, <span class="Constant">0x2d</span>/- -<span id="L640" class="LineNr"> 640 </span> <span class="PreProc">break-if-!=</span> -<span id="L641" class="LineNr"> 641 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom -<span id="L642" class="LineNr"> 642 </span> compare *zoom, <span class="Constant">1</span> -<span id="L643" class="LineNr"> 643 </span> <span class="Delimiter">{</span> -<span id="L644" class="LineNr"> 644 </span> <span class="PreProc">break-if-!=</span> -<span id="L645" class="LineNr"> 645 </span> copy-to *zoom, <span class="Constant">4</span> -<span id="L646" class="LineNr"> 646 </span> <span class="Delimiter">}</span> -<span id="L647" class="LineNr"> 647 </span> compare *zoom, <span class="Constant">0</span> -<span id="L648" class="LineNr"> 648 </span> <span class="Delimiter">{</span> -<span id="L649" class="LineNr"> 649 </span> <span class="PreProc">break-if-!=</span> -<span id="L650" class="LineNr"> 650 </span> copy-to *zoom, <span class="Constant">1</span> -<span id="L651" class="LineNr"> 651 </span> <span class="Delimiter">}</span> -<span id="L652" class="LineNr"> 652 </span> <span class="muComment"># set tick to a multiple of zoom</span> -<span id="L653" class="LineNr"> 653 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, tick -<span id="L654" class="LineNr"> 654 </span> <a href='506math.mu.html#L47'>clear-lowest-bits</a> tick-a, *zoom -<span id="L655" class="LineNr"> 655 </span> <span class="PreProc">return</span> -<span id="L656" class="LineNr"> 656 </span> <span class="Delimiter">}</span> -<span id="L657" class="LineNr"> 657 </span> <span class="muComment"># +: zoom in</span> -<span id="L658" class="LineNr"> 658 </span> <span class="Delimiter">{</span> -<span id="L659" class="LineNr"> 659 </span> compare key, <span class="Constant">0x2b</span>/+ -<span id="L660" class="LineNr"> 660 </span> <span class="PreProc">break-if-!=</span> -<span id="L661" class="LineNr"> 661 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom -<span id="L662" class="LineNr"> 662 </span> compare *zoom, <span class="Constant">1</span> -<span id="L663" class="LineNr"> 663 </span> <span class="Delimiter">{</span> -<span id="L664" class="LineNr"> 664 </span> <span class="PreProc">break-if-!=</span> -<span id="L665" class="LineNr"> 665 </span> copy-to *zoom, <span class="Constant">0</span> -<span id="L666" class="LineNr"> 666 </span> <span class="Delimiter">}</span> -<span id="L667" class="LineNr"> 667 </span> compare *zoom, <span class="Constant">4</span> -<span id="L668" class="LineNr"> 668 </span> <span class="Delimiter">{</span> -<span id="L669" class="LineNr"> 669 </span> <span class="PreProc">break-if-!=</span> -<span id="L670" class="LineNr"> 670 </span> copy-to *zoom, <span class="Constant">1</span> -<span id="L671" class="LineNr"> 671 </span> <span class="Delimiter">}</span> -<span id="L672" class="LineNr"> 672 </span> <span class="muComment"># set tick to a multiple of zoom</span> -<span id="L673" class="LineNr"> 673 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, tick -<span id="L674" class="LineNr"> 674 </span> <a href='506math.mu.html#L47'>clear-lowest-bits</a> tick-a, *zoom -<span id="L675" class="LineNr"> 675 </span> <span class="PreProc">return</span> -<span id="L676" class="LineNr"> 676 </span> <span class="Delimiter">}</span> -<span id="L677" class="LineNr"> 677 </span><span class="Delimiter">}</span> -<span id="L678" class="LineNr"> 678 </span> -<span id="L679" class="LineNr"> 679 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L679'>step</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L680" class="LineNr"> 680 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L681" class="LineNr"> 681 </span> <span class="PreProc">var</span> tick-a/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, tick -<span id="L682" class="LineNr"> 682 </span> <span class="PreProc">var</span> zoom/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, zoom -<span id="L683" class="LineNr"> 683 </span> compare *zoom, <span class="Constant">0</span> -<span id="L684" class="LineNr"> 684 </span> <span class="Delimiter">{</span> -<span id="L685" class="LineNr"> 685 </span> <span class="PreProc">break-if-!=</span> -<span id="L686" class="LineNr"> 686 </span> increment *tick-a -<span id="L687" class="LineNr"> 687 </span> <span class="Delimiter">}</span> -<span id="L688" class="LineNr"> 688 </span> compare *zoom, <span class="Constant">1</span> -<span id="L689" class="LineNr"> 689 </span> <span class="Delimiter">{</span> -<span id="L690" class="LineNr"> 690 </span> <span class="PreProc">break-if-!=</span> -<span id="L691" class="LineNr"> 691 </span> <span class="muComment"># I wanted to speed up time, but that doesn't seem very usable.</span> -<span id="L692" class="LineNr"> 692 </span><span class="CommentedCode">#? add-to *tick-a, 2</span> -<span id="L693" class="LineNr"> 693 </span> increment *tick-a -<span id="L694" class="LineNr"> 694 </span> <span class="Delimiter">}</span> -<span id="L695" class="LineNr"> 695 </span> compare *zoom, <span class="Constant">4</span> -<span id="L696" class="LineNr"> 696 </span> <span class="Delimiter">{</span> -<span id="L697" class="LineNr"> 697 </span> <span class="PreProc">break-if-!=</span> -<span id="L698" class="LineNr"> 698 </span> add-to *tick-a, <span class="Constant">0x10</span> -<span id="L699" class="LineNr"> 699 </span> <span class="Delimiter">}</span> -<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> tick/eax: int <span class="Special"><-</span> copy *tick-a -<span id="L701" class="LineNr"> 701 </span> tick <span class="Special"><-</span> and <span class="Constant">0xf</span> -<span id="L702" class="LineNr"> 702 </span> compare tick, <span class="Constant">0</span> -<span id="L703" class="LineNr"> 703 </span> <span class="Delimiter">{</span> -<span id="L704" class="LineNr"> 704 </span> <span class="PreProc">break-if-!=</span> -<span id="L705" class="LineNr"> 705 </span> <a href='hest-life.mu.html#L908'>step4</a> self -<span id="L706" class="LineNr"> 706 </span> <span class="Delimiter">}</span> -<span id="L707" class="LineNr"> 707 </span> <span class="PreProc">var</span> loop-a/eax: (addr int) <span class="Special"><-</span> get self, <span class="PreProc">loop</span> -<span id="L708" class="LineNr"> 708 </span> compare *loop-a, <span class="Constant">0</span> -<span id="L709" class="LineNr"> 709 </span> <span class="Delimiter">{</span> -<span id="L710" class="LineNr"> 710 </span> <span class="PreProc">break-if-=</span> -<span id="L711" class="LineNr"> 711 </span> <span class="PreProc">var</span> <span class="PreProc">loop</span>/eax: int <span class="Special"><-</span> copy *loop-a -<span id="L712" class="LineNr"> 712 </span> compare *tick-a, <span class="PreProc">loop</span> -<span id="L713" class="LineNr"> 713 </span> <span class="PreProc">break-if-<</span> -<span id="L714" class="LineNr"> 714 </span> <a href='hest-life.mu.html#L744'>clear-environment</a> self -<span id="L715" class="LineNr"> 715 </span> <span class="Delimiter">}</span> -<span id="L716" class="LineNr"> 716 </span><span class="Delimiter">}</span> -<span id="L717" class="LineNr"> 717 </span> -<span id="L718" class="LineNr"> 718 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L718'>initialize-environment</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L719" class="LineNr"> 719 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">var</span> zoom/eax: (addr int) <span class="Special"><-</span> get self, zoom -<span id="L721" class="LineNr"> 721 </span> copy-to *zoom, <span class="Constant">0</span> -<span id="L722" class="LineNr"> 722 </span> <span class="PreProc">var</span> play?/eax: (addr boolean) <span class="Special"><-</span> get self, play? -<span id="L723" class="LineNr"> 723 </span> copy-to *play?, <span class="Constant">1</span>/true -<span id="L724" class="LineNr"> 724 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data -<span id="L725" class="LineNr"> 725 </span> populate data-ah, <span class="Constant">0x100</span> -<span id="L726" class="LineNr"> 726 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L727" class="LineNr"> 727 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L728" class="LineNr"> 728 </span> <span class="Delimiter">{</span> -<span id="L729" class="LineNr"> 729 </span> compare y, <span class="Constant">0xc0</span> -<span id="L730" class="LineNr"> 730 </span> <span class="PreProc">break-if->=</span> -<span id="L731" class="LineNr"> 731 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y -<span id="L732" class="LineNr"> 732 </span> populate dest-ah, <span class="Constant">0x100</span> -<span id="L733" class="LineNr"> 733 </span> y <span class="Special"><-</span> increment -<span id="L734" class="LineNr"> 734 </span> <span class="PreProc">loop</span> -<span id="L735" class="LineNr"> 735 </span> <span class="Delimiter">}</span> -<span id="L736" class="LineNr"> 736 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/alive -<span id="L737" class="LineNr"> 737 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x81</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/alive -<span id="L738" class="LineNr"> 738 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x7f</span>, <span class="Constant">0x60</span>, <span class="Constant">1</span>/alive -<span id="L739" class="LineNr"> 739 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x60</span>, <span class="Constant">1</span>/alive -<span id="L740" class="LineNr"> 740 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x61</span>, <span class="Constant">1</span>/alive -<span id="L741" class="LineNr"> 741 </span> <a href='hest-life.mu.html#L837'>flush</a> self -<span id="L742" class="LineNr"> 742 </span><span class="Delimiter">}</span> -<span id="L743" class="LineNr"> 743 </span> -<span id="L744" class="LineNr"> 744 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L744'>clear-environment</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L745" class="LineNr"> 745 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L746" class="LineNr"> 746 </span> <span class="PreProc">var</span> tick/eax: (addr int) <span class="Special"><-</span> get self, tick -<span id="L747" class="LineNr"> 747 </span> copy-to *tick, <span class="Constant">0</span> -<span id="L748" class="LineNr"> 748 </span> <span class="muComment"># don't touch zoom or play settings</span> -<span id="L749" class="LineNr"> 749 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data -<span id="L750" class="LineNr"> 750 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L751" class="LineNr"> 751 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L752" class="LineNr"> 752 </span> <span class="Delimiter">{</span> -<span id="L753" class="LineNr"> 753 </span> compare y, <span class="Constant">0xc0</span> -<span id="L754" class="LineNr"> 754 </span> <span class="PreProc">break-if->=</span> -<span id="L755" class="LineNr"> 755 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y -<span id="L756" class="LineNr"> 756 </span> <span class="PreProc">var</span> row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah -<span id="L757" class="LineNr"> 757 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L758" class="LineNr"> 758 </span> <span class="Delimiter">{</span> -<span id="L759" class="LineNr"> 759 </span> compare x, <span class="Constant">0x100</span> -<span id="L760" class="LineNr"> 760 </span> <span class="PreProc">break-if->=</span> -<span id="L761" class="LineNr"> 761 </span> <span class="PreProc">var</span> dest/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x -<span id="L762" class="LineNr"> 762 </span> clear-object dest -<span id="L763" class="LineNr"> 763 </span> x <span class="Special"><-</span> increment -<span id="L764" class="LineNr"> 764 </span> <span class="PreProc">loop</span> -<span id="L765" class="LineNr"> 765 </span> <span class="Delimiter">}</span> -<span id="L766" class="LineNr"> 766 </span> y <span class="Special"><-</span> increment -<span id="L767" class="LineNr"> 767 </span> <span class="PreProc">loop</span> -<span id="L768" class="LineNr"> 768 </span> <span class="Delimiter">}</span> -<span id="L769" class="LineNr"> 769 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/alive -<span id="L770" class="LineNr"> 770 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x81</span>, <span class="Constant">0x5f</span>, <span class="Constant">1</span>/alive -<span id="L771" class="LineNr"> 771 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x7f</span>, <span class="Constant">0x60</span>, <span class="Constant">1</span>/alive -<span id="L772" class="LineNr"> 772 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x60</span>, <span class="Constant">1</span>/alive -<span id="L773" class="LineNr"> 773 </span> <a href='hest-life.mu.html#L777'>set</a> self, <span class="Constant">0x80</span>, <span class="Constant">0x61</span>, <span class="Constant">1</span>/alive -<span id="L774" class="LineNr"> 774 </span> <a href='hest-life.mu.html#L837'>flush</a> self -<span id="L775" class="LineNr"> 775 </span><span class="Delimiter">}</span> -<span id="L776" class="LineNr"> 776 </span> -<span id="L777" class="LineNr"> 777 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L777'>set</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), _x: int, _y: int, _val: boolean <span class="Delimiter">{</span> -<span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L779" class="LineNr"> 779 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data -<span id="L780" class="LineNr"> 780 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L781" class="LineNr"> 781 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _y -<span id="L782" class="LineNr"> 782 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y -<span id="L783" class="LineNr"> 783 </span> <span class="PreProc">var</span> row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah -<span id="L784" class="LineNr"> 784 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _x -<span id="L785" class="LineNr"> 785 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L58'>cell</a>/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x -<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> dest/eax: (addr boolean) <span class="Special"><-</span> get <a href='hest-life.mu.html#L58'>cell</a>, next -<span id="L787" class="LineNr"> 787 </span> <span class="PreProc">var</span> val/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy _val -<span id="L788" class="LineNr"> 788 </span> copy-to *dest, val -<span id="L789" class="LineNr"> 789 </span><span class="Delimiter">}</span> -<span id="L790" class="LineNr"> 790 </span> -<span id="L791" class="LineNr"> 791 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L791'>state</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), _x: int, _y: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L792" class="LineNr"> 792 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L793" class="LineNr"> 793 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _x -<span id="L794" class="LineNr"> 794 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy _y -<span id="L795" class="LineNr"> 795 </span> <span class="muComment"># clip at the edge</span> -<span id="L796" class="LineNr"> 796 </span> compare x, <span class="Constant">0</span> -<span id="L797" class="LineNr"> 797 </span> <span class="Delimiter">{</span> -<span id="L798" class="LineNr"> 798 </span> <span class="PreProc">break-if->=</span> -<span id="L799" class="LineNr"> 799 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L800" class="LineNr"> 800 </span> <span class="Delimiter">}</span> -<span id="L801" class="LineNr"> 801 </span> compare y, <span class="Constant">0</span> -<span id="L802" class="LineNr"> 802 </span> <span class="Delimiter">{</span> -<span id="L803" class="LineNr"> 803 </span> <span class="PreProc">break-if->=</span> -<span id="L804" class="LineNr"> 804 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L805" class="LineNr"> 805 </span> <span class="Delimiter">}</span> -<span id="L806" class="LineNr"> 806 </span> compare x, <span class="Constant">0x100</span>/width -<span id="L807" class="LineNr"> 807 </span> <span class="Delimiter">{</span> -<span id="L808" class="LineNr"> 808 </span> <span class="PreProc">break-if-<</span> -<span id="L809" class="LineNr"> 809 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L810" class="LineNr"> 810 </span> <span class="Delimiter">}</span> -<span id="L811" class="LineNr"> 811 </span> compare y, <span class="Constant">0xc0</span>/height -<span id="L812" class="LineNr"> 812 </span> <span class="Delimiter">{</span> -<span id="L813" class="LineNr"> 813 </span> <span class="PreProc">break-if-<</span> -<span id="L814" class="LineNr"> 814 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L815" class="LineNr"> 815 </span> <span class="Delimiter">}</span> -<span id="L816" class="LineNr"> 816 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data -<span id="L817" class="LineNr"> 817 </span> <span class="PreProc">var</span> data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L818" class="LineNr"> 818 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y -<span id="L819" class="LineNr"> 819 </span> <span class="PreProc">var</span> row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah -<span id="L820" class="LineNr"> 820 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L58'>cell</a>/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x -<span id="L821" class="LineNr"> 821 </span> <span class="PreProc">var</span> src/eax: (addr boolean) <span class="Special"><-</span> get <a href='hest-life.mu.html#L58'>cell</a>, curr -<span id="L822" class="LineNr"> 822 </span> <span class="PreProc">return</span> *src -<span id="L823" class="LineNr"> 823 </span><span class="Delimiter">}</span> -<span id="L824" class="LineNr"> 824 </span> -<span id="L825" class="LineNr"> 825 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L825'>state-color</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), x: int, y: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> -<span id="L826" class="LineNr"> 826 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L827" class="LineNr"> 827 </span> <span class="PreProc">var</span> color/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x1a</span>/dead -<span id="L828" class="LineNr"> 828 </span> <span class="Delimiter">{</span> -<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L791'>state</a>/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L830" class="LineNr"> 830 </span> compare <a href='hest-life.mu.html#L791'>state</a>, <span class="Constant">0</span>/dead -<span id="L831" class="LineNr"> 831 </span> <span class="PreProc">break-if-=</span> -<span id="L832" class="LineNr"> 832 </span> color <span class="Special"><-</span> copy <span class="Constant">0xf</span>/alive -<span id="L833" class="LineNr"> 833 </span> <span class="Delimiter">}</span> -<span id="L834" class="LineNr"> 834 </span> <span class="PreProc">return</span> color -<span id="L835" class="LineNr"> 835 </span><span class="Delimiter">}</span> -<span id="L836" class="LineNr"> 836 </span> -<span id="L837" class="LineNr"> 837 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L837'>flush</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L838" class="LineNr"> 838 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L839" class="LineNr"> 839 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> get self, data -<span id="L840" class="LineNr"> 840 </span> <span class="PreProc">var</span> _data/eax: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L841" class="LineNr"> 841 </span> <span class="PreProc">var</span> data/<span class="muRegEsi">esi</span>: (addr array handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> copy _data -<span id="L842" class="LineNr"> 842 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L843" class="LineNr"> 843 </span> <span class="Delimiter">{</span> -<span id="L844" class="LineNr"> 844 </span> compare y, <span class="Constant">0xc0</span>/height -<span id="L845" class="LineNr"> 845 </span> <span class="PreProc">break-if->=</span> -<span id="L846" class="LineNr"> 846 </span> <span class="PreProc">var</span> row-ah/eax: (addr handle array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index data, y -<span id="L847" class="LineNr"> 847 </span> <span class="PreProc">var</span> _row/eax: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L223'>lookup</a> *row-ah -<span id="L848" class="LineNr"> 848 </span> <span class="PreProc">var</span> row/<span class="muRegEbx">ebx</span>: (addr array <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> copy _row -<span id="L849" class="LineNr"> 849 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L850" class="LineNr"> 850 </span> <span class="Delimiter">{</span> -<span id="L851" class="LineNr"> 851 </span> compare x, <span class="Constant">0x100</span>/width -<span id="L852" class="LineNr"> 852 </span> <span class="PreProc">break-if->=</span> -<span id="L853" class="LineNr"> 853 </span> <span class="PreProc">var</span> cell-a/eax: (addr <a href='hest-life.mu.html#L58'>cell</a>) <span class="Special"><-</span> index row, x -<span id="L854" class="LineNr"> 854 </span> <span class="PreProc">var</span> curr-a/<span class="muRegEdi">edi</span>: (addr boolean) <span class="Special"><-</span> get cell-a, curr -<span id="L855" class="LineNr"> 855 </span> <span class="PreProc">var</span> next-a/<span class="muRegEsi">esi</span>: (addr boolean) <span class="Special"><-</span> get cell-a, next -<span id="L856" class="LineNr"> 856 </span> <span class="PreProc">var</span> val/eax: boolean <span class="Special"><-</span> copy *next-a -<span id="L857" class="LineNr"> 857 </span> copy-to *curr-a, val -<span id="L858" class="LineNr"> 858 </span> copy-to *next-a, <span class="Constant">0</span>/dead -<span id="L859" class="LineNr"> 859 </span> x <span class="Special"><-</span> increment -<span id="L860" class="LineNr"> 860 </span> <span class="PreProc">loop</span> -<span id="L861" class="LineNr"> 861 </span> <span class="Delimiter">}</span> -<span id="L862" class="LineNr"> 862 </span> y <span class="Special"><-</span> increment -<span id="L863" class="LineNr"> 863 </span> <span class="PreProc">loop</span> -<span id="L864" class="LineNr"> 864 </span> <span class="Delimiter">}</span> -<span id="L865" class="LineNr"> 865 </span><span class="Delimiter">}</span> -<span id="L866" class="LineNr"> 866 </span> -<span id="L867" class="LineNr"> 867 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L867'>render4</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L868" class="LineNr"> 868 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L869" class="LineNr"> 869 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L870" class="LineNr"> 870 </span> <span class="Delimiter">{</span> -<span id="L871" class="LineNr"> 871 </span> compare y, <span class="Constant">0xc0</span>/height -<span id="L872" class="LineNr"> 872 </span> <span class="PreProc">break-if->=</span> -<span id="L873" class="LineNr"> 873 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L874" class="LineNr"> 874 </span> <span class="Delimiter">{</span> -<span id="L875" class="LineNr"> 875 </span> compare x, <span class="Constant">0x100</span>/width -<span id="L876" class="LineNr"> 876 </span> <span class="PreProc">break-if->=</span> -<span id="L877" class="LineNr"> 877 </span> <span class="PreProc">var</span> <a href='hest-life.mu.html#L791'>state</a>/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L878" class="LineNr"> 878 </span> compare <a href='hest-life.mu.html#L791'>state</a>, <span class="Constant">0</span>/false -<span id="L879" class="LineNr"> 879 </span> <span class="Delimiter">{</span> -<span id="L880" class="LineNr"> 880 </span> <span class="PreProc">break-if-=</span> -<span id="L881" class="LineNr"> 881 </span> <a href='hest-life.mu.html#L896'>render4-cell</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, <span class="Constant">0xf</span>/alive -<span id="L882" class="LineNr"> 882 </span> <span class="Delimiter">}</span> -<span id="L883" class="LineNr"> 883 </span> compare <a href='hest-life.mu.html#L791'>state</a>, <span class="Constant">0</span>/false -<span id="L884" class="LineNr"> 884 </span> <span class="Delimiter">{</span> -<span id="L885" class="LineNr"> 885 </span> <span class="PreProc">break-if-!=</span> -<span id="L886" class="LineNr"> 886 </span> <a href='hest-life.mu.html#L896'>render4-cell</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, <span class="Constant">0x1a</span>/dead -<span id="L887" class="LineNr"> 887 </span> <span class="Delimiter">}</span> -<span id="L888" class="LineNr"> 888 </span> x <span class="Special"><-</span> increment -<span id="L889" class="LineNr"> 889 </span> <span class="PreProc">loop</span> -<span id="L890" class="LineNr"> 890 </span> <span class="Delimiter">}</span> -<span id="L891" class="LineNr"> 891 </span> y <span class="Special"><-</span> increment -<span id="L892" class="LineNr"> 892 </span> <span class="PreProc">loop</span> -<span id="L893" class="LineNr"> 893 </span> <span class="Delimiter">}</span> -<span id="L894" class="LineNr"> 894 </span><span class="Delimiter">}</span> -<span id="L895" class="LineNr"> 895 </span> -<span id="L896" class="LineNr"> 896 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L896'>render4-cell</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), x: int, y: int, color: int <span class="Delimiter">{</span> -<span id="L897" class="LineNr"> 897 </span> <span class="PreProc">var</span> xmin/eax: int <span class="Special"><-</span> copy x -<span id="L898" class="LineNr"> 898 </span> xmin <span class="Special"><-</span> shift-left <span class="Constant">2</span> -<span id="L899" class="LineNr"> 899 </span> <span class="PreProc">var</span> xmax/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy xmin -<span id="L900" class="LineNr"> 900 </span> xmax <span class="Special"><-</span> add <span class="Constant">4</span> -<span id="L901" class="LineNr"> 901 </span> <span class="PreProc">var</span> ymin/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy y -<span id="L902" class="LineNr"> 902 </span> ymin <span class="Special"><-</span> shift-left <span class="Constant">2</span> -<span id="L903" class="LineNr"> 903 </span> <span class="PreProc">var</span> ymax/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy ymin -<span id="L904" class="LineNr"> 904 </span> ymax <span class="Special"><-</span> add <span class="Constant">4</span> -<span id="L905" class="LineNr"> 905 </span> <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xmin ymin, xmax ymax, color -<span id="L906" class="LineNr"> 906 </span><span class="Delimiter">}</span> -<span id="L907" class="LineNr"> 907 </span> -<span id="L908" class="LineNr"> 908 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L908'>step4</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L909" class="LineNr"> 909 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L910" class="LineNr"> 910 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L911" class="LineNr"> 911 </span> <span class="Delimiter">{</span> -<span id="L912" class="LineNr"> 912 </span> compare y, <span class="Constant">0xc0</span>/height -<span id="L913" class="LineNr"> 913 </span> <span class="PreProc">break-if->=</span> -<span id="L914" class="LineNr"> 914 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L915" class="LineNr"> 915 </span> <span class="Delimiter">{</span> -<span id="L916" class="LineNr"> 916 </span> compare x, <span class="Constant">0x100</span>/width -<span id="L917" class="LineNr"> 917 </span> <span class="PreProc">break-if->=</span> -<span id="L918" class="LineNr"> 918 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='hest-life.mu.html#L953'>num-live-neighbors</a> self, x, y -<span id="L919" class="LineNr"> 919 </span> <span class="muComment"># if neighbors < 2, die of loneliness</span> -<span id="L920" class="LineNr"> 920 </span> <span class="Delimiter">{</span> -<span id="L921" class="LineNr"> 921 </span> compare n, <span class="Constant">2</span> -<span id="L922" class="LineNr"> 922 </span> <span class="PreProc">break-if->=</span> -<span id="L923" class="LineNr"> 923 </span> <a href='hest-life.mu.html#L777'>set</a> self, x, y, <span class="Constant">0</span>/dead -<span id="L924" class="LineNr"> 924 </span> <span class="Delimiter">}</span> -<span id="L925" class="LineNr"> 925 </span> <span class="muComment"># if neighbors > 3, die of overcrowding</span> -<span id="L926" class="LineNr"> 926 </span> <span class="Delimiter">{</span> -<span id="L927" class="LineNr"> 927 </span> compare n, <span class="Constant">3</span> -<span id="L928" class="LineNr"> 928 </span> <span class="PreProc">break-if-<=</span> -<span id="L929" class="LineNr"> 929 </span> <a href='hest-life.mu.html#L777'>set</a> self, x, y, <span class="Constant">0</span>/dead -<span id="L930" class="LineNr"> 930 </span> <span class="Delimiter">}</span> -<span id="L931" class="LineNr"> 931 </span> <span class="muComment"># if neighbors = 2, preserve state</span> -<span id="L932" class="LineNr"> 932 </span> <span class="Delimiter">{</span> -<span id="L933" class="LineNr"> 933 </span> compare n, <span class="Constant">2</span> -<span id="L934" class="LineNr"> 934 </span> <span class="PreProc">break-if-!=</span> -<span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> old-state/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L936" class="LineNr"> 936 </span> <a href='hest-life.mu.html#L777'>set</a> self, x, y, old-state -<span id="L937" class="LineNr"> 937 </span> <span class="Delimiter">}</span> -<span id="L938" class="LineNr"> 938 </span> <span class="muComment"># if neighbors = 3, cell quickens to life</span> -<span id="L939" class="LineNr"> 939 </span> <span class="Delimiter">{</span> -<span id="L940" class="LineNr"> 940 </span> compare n, <span class="Constant">3</span> -<span id="L941" class="LineNr"> 941 </span> <span class="PreProc">break-if-!=</span> -<span id="L942" class="LineNr"> 942 </span> <a href='hest-life.mu.html#L777'>set</a> self, x, y, <span class="Constant">1</span>/live -<span id="L943" class="LineNr"> 943 </span> <span class="Delimiter">}</span> -<span id="L944" class="LineNr"> 944 </span> x <span class="Special"><-</span> increment -<span id="L945" class="LineNr"> 945 </span> <span class="PreProc">loop</span> -<span id="L946" class="LineNr"> 946 </span> <span class="Delimiter">}</span> -<span id="L947" class="LineNr"> 947 </span> y <span class="Special"><-</span> increment -<span id="L948" class="LineNr"> 948 </span> <span class="PreProc">loop</span> -<span id="L949" class="LineNr"> 949 </span> <span class="Delimiter">}</span> -<span id="L950" class="LineNr"> 950 </span> <a href='hest-life.mu.html#L837'>flush</a> self -<span id="L951" class="LineNr"> 951 </span><span class="Delimiter">}</span> -<span id="L952" class="LineNr"> 952 </span> -<span id="L953" class="LineNr"> 953 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L953'>num-live-neighbors</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>), x: int, y: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> -<span id="L954" class="LineNr"> 954 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L955" class="LineNr"> 955 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L956" class="LineNr"> 956 </span> <span class="muComment"># row above: zig</span> -<span id="L957" class="LineNr"> 957 </span> decrement y -<span id="L958" class="LineNr"> 958 </span> decrement x -<span id="L959" class="LineNr"> 959 </span> <span class="PreProc">var</span> s/eax: boolean <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L960" class="LineNr"> 960 </span> <span class="Delimiter">{</span> -<span id="L961" class="LineNr"> 961 </span> compare s, <span class="Constant">0</span>/false -<span id="L962" class="LineNr"> 962 </span> <span class="PreProc">break-if-=</span> -<span id="L963" class="LineNr"> 963 </span> result <span class="Special"><-</span> increment -<span id="L964" class="LineNr"> 964 </span> <span class="Delimiter">}</span> -<span id="L965" class="LineNr"> 965 </span> increment x -<span id="L966" class="LineNr"> 966 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L967" class="LineNr"> 967 </span> <span class="Delimiter">{</span> -<span id="L968" class="LineNr"> 968 </span> compare s, <span class="Constant">0</span>/false -<span id="L969" class="LineNr"> 969 </span> <span class="PreProc">break-if-=</span> -<span id="L970" class="LineNr"> 970 </span> result <span class="Special"><-</span> increment -<span id="L971" class="LineNr"> 971 </span> <span class="Delimiter">}</span> -<span id="L972" class="LineNr"> 972 </span> increment x -<span id="L973" class="LineNr"> 973 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L974" class="LineNr"> 974 </span> <span class="Delimiter">{</span> -<span id="L975" class="LineNr"> 975 </span> compare s, <span class="Constant">0</span>/false -<span id="L976" class="LineNr"> 976 </span> <span class="PreProc">break-if-=</span> -<span id="L977" class="LineNr"> 977 </span> result <span class="Special"><-</span> increment -<span id="L978" class="LineNr"> 978 </span> <span class="Delimiter">}</span> -<span id="L979" class="LineNr"> 979 </span> <span class="muComment"># curr row: zag</span> -<span id="L980" class="LineNr"> 980 </span> increment y -<span id="L981" class="LineNr"> 981 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L982" class="LineNr"> 982 </span> <span class="Delimiter">{</span> -<span id="L983" class="LineNr"> 983 </span> compare s, <span class="Constant">0</span>/false -<span id="L984" class="LineNr"> 984 </span> <span class="PreProc">break-if-=</span> -<span id="L985" class="LineNr"> 985 </span> result <span class="Special"><-</span> increment -<span id="L986" class="LineNr"> 986 </span> <span class="Delimiter">}</span> -<span id="L987" class="LineNr"> 987 </span> subtract-from x, <span class="Constant">2</span> -<span id="L988" class="LineNr"> 988 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L989" class="LineNr"> 989 </span> <span class="Delimiter">{</span> -<span id="L990" class="LineNr"> 990 </span> compare s, <span class="Constant">0</span>/false -<span id="L991" class="LineNr"> 991 </span> <span class="PreProc">break-if-=</span> -<span id="L992" class="LineNr"> 992 </span> result <span class="Special"><-</span> increment -<span id="L993" class="LineNr"> 993 </span> <span class="Delimiter">}</span> -<span id="L994" class="LineNr"> 994 </span> <span class="muComment"># row below: zig</span> -<span id="L995" class="LineNr"> 995 </span> increment y -<span id="L996" class="LineNr"> 996 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L997" class="LineNr"> 997 </span> <span class="Delimiter">{</span> -<span id="L998" class="LineNr"> 998 </span> compare s, <span class="Constant">0</span>/false -<span id="L999" class="LineNr"> 999 </span> <span class="PreProc">break-if-=</span> -<span id="L1000" class="LineNr">1000 </span> result <span class="Special"><-</span> increment -<span id="L1001" class="LineNr">1001 </span> <span class="Delimiter">}</span> -<span id="L1002" class="LineNr">1002 </span> increment x -<span id="L1003" class="LineNr">1003 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L1004" class="LineNr">1004 </span> <span class="Delimiter">{</span> -<span id="L1005" class="LineNr">1005 </span> compare s, <span class="Constant">0</span>/false -<span id="L1006" class="LineNr">1006 </span> <span class="PreProc">break-if-=</span> -<span id="L1007" class="LineNr">1007 </span> result <span class="Special"><-</span> increment -<span id="L1008" class="LineNr">1008 </span> <span class="Delimiter">}</span> -<span id="L1009" class="LineNr">1009 </span> increment x -<span id="L1010" class="LineNr">1010 </span> s <span class="Special"><-</span> <a href='hest-life.mu.html#L791'>state</a> self, x, y -<span id="L1011" class="LineNr">1011 </span> <span class="Delimiter">{</span> -<span id="L1012" class="LineNr">1012 </span> compare s, <span class="Constant">0</span>/false -<span id="L1013" class="LineNr">1013 </span> <span class="PreProc">break-if-=</span> -<span id="L1014" class="LineNr">1014 </span> result <span class="Special"><-</span> increment -<span id="L1015" class="LineNr">1015 </span> <span class="Delimiter">}</span> -<span id="L1016" class="LineNr">1016 </span> <span class="PreProc">return</span> result -<span id="L1017" class="LineNr">1017 </span><span class="Delimiter">}</span> -<span id="L1018" class="LineNr">1018 </span> -<span id="L1019" class="LineNr">1019 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hest-life.mu.html#L1019'>linger</a></span> _self: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Delimiter">{</span> -<span id="L1020" class="LineNr">1020 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='hest-life.mu.html#L50'>environment</a>) <span class="Special"><-</span> copy _self -<span id="L1021" class="LineNr">1021 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L1022" class="LineNr">1022 </span> <span class="Delimiter">{</span> -<span id="L1023" class="LineNr">1023 </span> compare i, <span class="Constant">0x10000000</span> <span class="muComment"># Kartik's Linux with -enable-kvm</span> -<span id="L1024" class="LineNr">1024 </span><span class="CommentedCode">#? compare i, 0x8000000 # Kartik's Mac with -accel tcg</span> -<span id="L1025" class="LineNr">1025 </span> <span class="PreProc">break-if->=</span> -<span id="L1026" class="LineNr">1026 </span> i <span class="Special"><-</span> increment -<span id="L1027" class="LineNr">1027 </span> <span class="PreProc">loop</span> -<span id="L1028" class="LineNr">1028 </span> <span class="Delimiter">}</span> -<span id="L1029" class="LineNr">1029 </span><span class="Delimiter">}</span> -</pre> -</body> -</html> -<!-- vim: set foldmethod=manual : --> diff --git a/html/life.mu.html b/html/life.mu.html index e08e9f9f..31281d9f 100644 --- a/html/life.mu.html +++ b/html/life.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - life.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .CommentedCode { color: #8a8a8a; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/000init.subx.html b/html/linux/000init.subx.html index 1914303f..ffe9dee0 100644 --- a/html/linux/000init.subx.html +++ b/html/linux/000init.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/000init.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -20,7 +20,7 @@ a { color:inherit; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/101_write.subx.html b/html/linux/101_write.subx.html index a9cfa5bf..c9e0afe4 100644 --- a/html/linux/101_write.subx.html +++ b/html/linux/101_write.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/101_write.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -20,12 +20,12 @@ a { color:inherit; } .subxS1Comment { color: #0000af; } .Constant { color: #008787; } .SpecialChar { color: #d70000; } -.subxMinorFunction { color: #875f5f; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxMinorFunction { color: #875f5f; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/102test.subx.html b/html/linux/102test.subx.html index 238c1a47..274a90c2 100644 --- a/html/linux/102test.subx.html +++ b/html/linux/102test.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/102test.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,16 +16,16 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .SpecialChar { color: #d70000; } .Constant { color: #008787; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/103kernel-string-equal.subx.html b/html/linux/103kernel-string-equal.subx.html index 6f83f627..1ad95420 100644 --- a/html/linux/103kernel-string-equal.subx.html +++ b/html/linux/103kernel-string-equal.subx.html @@ -1,34 +1,34 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/103kernel-string-equal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } -.subxMinorFunction { color: #875f5f; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.Constant { color: #008787; } -.subxS2Comment { color: #8a8a8a; } +.subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/104new-segment.subx.html b/html/linux/104new-segment.subx.html index fa4bb47d..d0080976 100644 --- a/html/linux/104new-segment.subx.html +++ b/html/linux/104new-segment.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/104new-segment.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,17 +16,17 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.Constant { color: #008787; } .subxMinorFunction { color: #875f5f; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/105string-equal.subx.html b/html/linux/105string-equal.subx.html index 11a8824f..1213f8b4 100644 --- a/html/linux/105string-equal.subx.html +++ b/html/linux/105string-equal.subx.html @@ -1,34 +1,34 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/105string-equal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.Constant { color: #008787; } -.subxS2Comment { color: #8a8a8a; } .subxH1Comment { color: #005faf; text-decoration: underline; } +.subxTest { color: #5f8700; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/106stream.subx.html b/html/linux/106stream.subx.html index 684f56cd..7b45bc20 100644 --- a/html/linux/106stream.subx.html +++ b/html/linux/106stream.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/106stream.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/107trace.subx.html b/html/linux/107trace.subx.html index ff09e81f..6d689eb0 100644 --- a/html/linux/107trace.subx.html +++ b/html/linux/107trace.subx.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/107trace.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxFunction { color: #af5f00; text-decoration: underline; } -.Constant { color: #008787; } +.subxS2Comment { color: #8a8a8a; } +.subxH1Comment { color: #005faf; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } -.subxMinorFunction { color: #875f5f; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.subxS2Comment { color: #8a8a8a; } -.subxH1Comment { color: #005faf; text-decoration: underline; } +.subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/108write.subx.html b/html/linux/108write.subx.html index 65d9ec59..8c16dd28 100644 --- a/html/linux/108write.subx.html +++ b/html/linux/108write.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/108write.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/109stream-equal.subx.html b/html/linux/109stream-equal.subx.html index a1fdd250..eaa851f0 100644 --- a/html/linux/109stream-equal.subx.html +++ b/html/linux/109stream-equal.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/109stream-equal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/110stop.subx.html b/html/linux/110stop.subx.html index a11ef53e..1819310f 100644 --- a/html/linux/110stop.subx.html +++ b/html/linux/110stop.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/110stop.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,17 +17,17 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/111read.subx.html b/html/linux/111read.subx.html index b1c44c0c..994dd8db 100644 --- a/html/linux/111read.subx.html +++ b/html/linux/111read.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/111read.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,17 +17,17 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } -.subxMinorFunction { color: #875f5f; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/112read-byte.subx.html b/html/linux/112read-byte.subx.html index d921873c..d6d8b054 100644 --- a/html/linux/112read-byte.subx.html +++ b/html/linux/112read-byte.subx.html @@ -1,34 +1,34 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/112read-byte.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } -.subxMinorFunction { color: #875f5f; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .SpecialChar { color: #d70000; } .Constant { color: #008787; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.subxS2Comment { color: #8a8a8a; } +.subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/113write-stream.subx.html b/html/linux/113write-stream.subx.html index ceab699b..4fc8a14b 100644 --- a/html/linux/113write-stream.subx.html +++ b/html/linux/113write-stream.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/113write-stream.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,17 +17,17 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/114error.subx.html b/html/linux/114error.subx.html index 1714964e..bc6b11af 100644 --- a/html/linux/114error.subx.html +++ b/html/linux/114error.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/114error.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/115write-byte.subx.html b/html/linux/115write-byte.subx.html index bae606e4..75309be4 100644 --- a/html/linux/115write-byte.subx.html +++ b/html/linux/115write-byte.subx.html @@ -1,34 +1,34 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/115write-byte.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } -.subxMinorFunction { color: #875f5f; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .SpecialChar { color: #d70000; } .Constant { color: #008787; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.subxS2Comment { color: #8a8a8a; } +.subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/116write-buffered.subx.html b/html/linux/116write-buffered.subx.html index 553ae862..bed5decb 100644 --- a/html/linux/116write-buffered.subx.html +++ b/html/linux/116write-buffered.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/116write-buffered.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,18 +16,18 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.SpecialChar { color: #d70000; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/117write-int-hex.subx.html b/html/linux/117write-int-hex.subx.html index 8ba689d0..c41cfcb3 100644 --- a/html/linux/117write-int-hex.subx.html +++ b/html/linux/117write-int-hex.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/117write-int-hex.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,17 +17,17 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Constant { color: #008787; } .Folded { color: #080808; background-color: #949494; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -458,7 +458,7 @@ if ('onhashchange' in window) { <span id="L397" class="LineNr">397 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L398" class="LineNr">398 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L399" class="LineNr">399 </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="L400" class="Folded">400 </span><span class="Folded">+-- 18 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L400" class="Folded">400 </span><span class="Folded">+-- 18 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L418" class="LineNr">418 </span> <span class="subxComment"># check-stream-equal(_test-stream, "0x008899aa", msg)</span> <span id="L419" class="LineNr">419 </span> <span class="subxS2Comment"># . . push args</span> <span id="L420" class="LineNr">420 </span> 68/push <span class="Constant">"F - test-write-int32-hex-buffered"</span>/imm32 diff --git a/html/linux/118parse-hex-int.subx.html b/html/linux/118parse-hex-int.subx.html index 1335b1d1..cf13cc06 100644 --- a/html/linux/118parse-hex-int.subx.html +++ b/html/linux/118parse-hex-int.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/118parse-hex-int.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,17 +16,17 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.SpecialChar { color: #d70000; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/119error-byte.subx.html b/html/linux/119error-byte.subx.html index 2fe18240..2ada3377 100644 --- a/html/linux/119error-byte.subx.html +++ b/html/linux/119error-byte.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/119error-byte.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/120allocate.subx.html b/html/linux/120allocate.subx.html index 321537ba..df51d7ce 100644 --- a/html/linux/120allocate.subx.html +++ b/html/linux/120allocate.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/120allocate.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,18 +16,18 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.Constant { color: #008787; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/121new-stream.subx.html b/html/linux/121new-stream.subx.html index 38d6d1a7..e8cbddee 100644 --- a/html/linux/121new-stream.subx.html +++ b/html/linux/121new-stream.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/121new-stream.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/122read-line.subx.html b/html/linux/122read-line.subx.html index 43ac2bf3..03034fad 100644 --- a/html/linux/122read-line.subx.html +++ b/html/linux/122read-line.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/122read-line.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/123slice.subx.html b/html/linux/123slice.subx.html index 70f7f2f3..9c970b2b 100644 --- a/html/linux/123slice.subx.html +++ b/html/linux/123slice.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/123slice.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,17 +17,17 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -1228,7 +1228,7 @@ if ('onhashchange' in window) { <span id="L1167" class="LineNr">1167 </span> 8b/copy 1/mod/*+disp8 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebx+4) to eax</span> <span id="L1168" class="LineNr">1168 </span> <span class="subxComment"># skip payload->allocid</span> <span id="L1169" class="LineNr">1169 </span> 05/add-to-eax 4/imm32 -<span id="L1170" class="Folded">1170 </span><span class="Folded">+-- 26 lines: #? # dump eax ---------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1170" class="Folded">1170 </span><span class="Folded">+-- 26 lines: #? # dump eax --------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1196" class="LineNr">1196 </span> <span class="subxComment"># eax = string-equal?(eax, "Abc")</span> <span id="L1197" class="LineNr">1197 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1198" class="LineNr">1198 </span> 68/push <span class="Constant">"Abc"</span>/imm32 diff --git a/html/linux/124next-token.subx.html b/html/linux/124next-token.subx.html index 75b990ab..5d7f1d73 100644 --- a/html/linux/124next-token.subx.html +++ b/html/linux/124next-token.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/124next-token.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/125write-stream-data.subx.html b/html/linux/125write-stream-data.subx.html index 7e5b1335..c3a948d0 100644 --- a/html/linux/125write-stream-data.subx.html +++ b/html/linux/125write-stream-data.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/125write-stream-data.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/126write-int-decimal.subx.html b/html/linux/126write-int-decimal.subx.html index 930b2ccb..a10cea6b 100644 --- a/html/linux/126write-int-decimal.subx.html +++ b/html/linux/126write-int-decimal.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/126write-int-decimal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,20 +16,20 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.SpecialChar { color: #d70000; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .CommentedCode { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -298,7 +298,7 @@ if ('onhashchange' in window) { <span id="L235" class="LineNr">235 </span> e8/call <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a>/disp32 <span id="L236" class="LineNr">236 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L237" class="LineNr">237 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L238" class="Folded">238 </span><span class="Folded">+-- 26 lines: #? # dump _test-stream ------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L238" class="Folded">238 </span><span class="Folded">+-- 26 lines: #? # dump _test-stream -----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L264" class="LineNr">264 </span> <span class="subxComment"># check-stream-equal(_test-stream, "-9", msg)</span> <span id="L265" class="LineNr">265 </span> <span class="subxS2Comment"># . . push args</span> <span id="L266" class="LineNr">266 </span> 68/push <span class="Constant">"F - test-write-int32-decimal-negative"</span>/imm32 diff --git a/html/linux/127next-word.subx.html b/html/linux/127next-word.subx.html index 6ed6fec2..11f02010 100644 --- a/html/linux/127next-word.subx.html +++ b/html/linux/127next-word.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/127next-word.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/128subx-words.subx.html b/html/linux/128subx-words.subx.html index 288565f0..3c4d3714 100644 --- a/html/linux/128subx-words.subx.html +++ b/html/linux/128subx-words.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/128subx-words.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/129emit-hex.subx.html b/html/linux/129emit-hex.subx.html index 6a2a5fba..994ca176 100644 --- a/html/linux/129emit-hex.subx.html +++ b/html/linux/129emit-hex.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/129emit-hex.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/130emit.subx.html b/html/linux/130emit.subx.html index 7f5108ca..74fab591 100644 --- a/html/linux/130emit.subx.html +++ b/html/linux/130emit.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/130emit.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,17 +17,17 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } +.SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } .subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -493,7 +493,7 @@ if ('onhashchange' in window) { <span id="L432" class="LineNr">432 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L433" class="LineNr">433 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L434" class="LineNr">434 </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="L435" class="Folded">435 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L435" class="Folded">435 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L461" class="LineNr">461 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "abcd/xyz")</span> <span id="L462" class="LineNr">462 </span> <span class="subxS2Comment"># . . push args</span> <span id="L463" class="LineNr">463 </span> 68/push <span class="Constant">"F - test-emit-non-number-with-all-hex-digits"</span>/imm32 diff --git a/html/linux/131table.subx.html b/html/linux/131table.subx.html index 43761835..dcbdc563 100644 --- a/html/linux/131table.subx.html +++ b/html/linux/131table.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/131table.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,17 +17,17 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.subxH1Comment { color: #005faf; text-decoration: underline; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .subxTest { color: #5f8700; } +.subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/132slurp.subx.html b/html/linux/132slurp.subx.html index d94a680c..d70a0126 100644 --- a/html/linux/132slurp.subx.html +++ b/html/linux/132slurp.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/132slurp.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/133subx-widths.subx.html b/html/linux/133subx-widths.subx.html index 03d4dc33..2d687001 100644 --- a/html/linux/133subx-widths.subx.html +++ b/html/linux/133subx-widths.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/133subx-widths.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/134emit-hex-array.subx.html b/html/linux/134emit-hex-array.subx.html index ec0e1cd3..80b15734 100644 --- a/html/linux/134emit-hex-array.subx.html +++ b/html/linux/134emit-hex-array.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/134emit-hex-array.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -150,7 +150,7 @@ if ('onhashchange' in window) { <span id="L90" class="LineNr"> 90 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L91" class="LineNr"> 91 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L92" class="LineNr"> 92 </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="L93" class="Folded"> 93 </span><span class="Folded">+-- 33 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L93" class="Folded"> 93 </span><span class="Folded">+-- 33 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L126" class="LineNr">126 </span> <span class="subxComment"># check-next-stream-line-equal(_test-output-stream, "01 02 03 ", msg)</span> <span id="L127" class="LineNr">127 </span> <span class="subxS2Comment"># . . push args</span> <span id="L128" class="LineNr">128 </span> 68/push <span class="Constant">"F - test-emit-hex-array"</span>/imm32 diff --git a/html/linux/135next-word-or-string.subx.html b/html/linux/135next-word-or-string.subx.html index 7dd45046..e48edd68 100644 --- a/html/linux/135next-word-or-string.subx.html +++ b/html/linux/135next-word-or-string.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/135next-word-or-string.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/201register-names.subx.html b/html/linux/201register-names.subx.html index dc8bca6e..7a50e971 100644 --- a/html/linux/201register-names.subx.html +++ b/html/linux/201register-names.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/201register-names.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -21,7 +21,7 @@ a { color:inherit; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/202write-int.subx.html b/html/linux/202write-int.subx.html index 2d367b41..90ab6487 100644 --- a/html/linux/202write-int.subx.html +++ b/html/linux/202write-int.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/202write-int.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/203stack.subx.html b/html/linux/203stack.subx.html index 9db9967f..233fa99b 100644 --- a/html/linux/203stack.subx.html +++ b/html/linux/203stack.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/203stack.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,17 +16,17 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.SpecialChar { color: #d70000; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/301array-equal.subx.html b/html/linux/301array-equal.subx.html index ca4ba623..e8efde5b 100644 --- a/html/linux/301array-equal.subx.html +++ b/html/linux/301array-equal.subx.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/301array-equal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.SpecialChar { color: #d70000; } .LineNr { } -.subxTest { color: #5f8700; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/302stack_allocate.subx.html b/html/linux/302stack_allocate.subx.html index 6c3c169c..f3eac06d 100644 --- a/html/linux/302stack_allocate.subx.html +++ b/html/linux/302stack_allocate.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/302stack_allocate.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,14 +16,14 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.CommentedCode { color: #8a8a8a; } .subxFunction { color: #af5f00; text-decoration: underline; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/303kernel-string.subx.html b/html/linux/303kernel-string.subx.html index 1e92e772..3992f3f2 100644 --- a/html/linux/303kernel-string.subx.html +++ b/html/linux/303kernel-string.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/303kernel-string.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,13 +16,13 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/304screen.subx.html b/html/linux/304screen.subx.html index dbfd3785..0197f9a3 100644 --- a/html/linux/304screen.subx.html +++ b/html/linux/304screen.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/304screen.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,16 +16,16 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .subxMinorFunction { color: #875f5f; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/305keyboard.subx.html b/html/linux/305keyboard.subx.html index bae55a42..14a2263f 100644 --- a/html/linux/305keyboard.subx.html +++ b/html/linux/305keyboard.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/305keyboard.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,16 +16,16 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .subxH1Comment { color: #005faf; text-decoration: underline; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/306files.subx.html b/html/linux/306files.subx.html index ff0fd281..1e2caf0f 100644 --- a/html/linux/306files.subx.html +++ b/html/linux/306files.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/306files.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,14 +16,14 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/307size.subx.html b/html/linux/307size.subx.html index c918fc66..a99ae5d3 100644 --- a/html/linux/307size.subx.html +++ b/html/linux/307size.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/307size.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,13 +16,13 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/308allocate-array.subx.html b/html/linux/308allocate-array.subx.html index d4840004..c668473d 100644 --- a/html/linux/308allocate-array.subx.html +++ b/html/linux/308allocate-array.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/308allocate-array.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,13 +16,13 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/309stream.subx.html b/html/linux/309stream.subx.html index ac4e78e5..908b531f 100644 --- a/html/linux/309stream.subx.html +++ b/html/linux/309stream.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/309stream.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,14 +16,14 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/310copy-bytes.subx.html b/html/linux/310copy-bytes.subx.html index 2a37f9e8..0957f1ee 100644 --- a/html/linux/310copy-bytes.subx.html +++ b/html/linux/310copy-bytes.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/310copy-bytes.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,15 +16,15 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.SpecialChar { color: #d70000; } -.subxS1Comment { color: #0000af; } .subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/311decimal-int.subx.html b/html/linux/311decimal-int.subx.html index fe5a249a..8909e772 100644 --- a/html/linux/311decimal-int.subx.html +++ b/html/linux/311decimal-int.subx.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/311decimal-int.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.SpecialChar { color: #d70000; } +.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } .subxS1Comment { color: #0000af; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } .subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/312copy.subx.html b/html/linux/312copy.subx.html index 29e18ac2..f5f755c4 100644 --- a/html/linux/312copy.subx.html +++ b/html/linux/312copy.subx.html @@ -1,29 +1,29 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/312copy.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } -.subxComment { color: #005faf; } -.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } .SpecialChar { color: #d70000; } +.LineNr { } .subxS1Comment { color: #0000af; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.subxComment { color: #005faf; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/313index-bounds-check.subx.html b/html/linux/313index-bounds-check.subx.html index f8501d9f..a08a70cd 100644 --- a/html/linux/313index-bounds-check.subx.html +++ b/html/linux/313index-bounds-check.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/313index-bounds-check.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,14 +17,14 @@ a { color:inherit; } .subxComment { color: #005faf; } .LineNr { } .subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } .SpecialChar { color: #d70000; } -.subxMinorFunction { color: #875f5f; } .Constant { color: #008787; } +.subxMinorFunction { color: #875f5f; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/314divide.subx.html b/html/linux/314divide.subx.html index 2f9ae71a..82a54a46 100644 --- a/html/linux/314divide.subx.html +++ b/html/linux/314divide.subx.html @@ -1,28 +1,28 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/314divide.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } -.subxComment { color: #005faf; } +.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } .subxS1Comment { color: #0000af; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.subxComment { color: #005faf; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/315slice.subx.html b/html/linux/315slice.subx.html index deeea804..9fd1021a 100644 --- a/html/linux/315slice.subx.html +++ b/html/linux/315slice.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/315slice.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -22,7 +22,7 @@ a { color:inherit; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/400.mu.html b/html/linux/400.mu.html index f0749979..dd179b98 100644 --- a/html/linux/400.mu.html +++ b/html/linux/400.mu.html @@ -1,28 +1,28 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/400.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.LineNr { } .muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } +.LineNr { } .muComment { color: #005faf; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/401test.mu.html b/html/linux/401test.mu.html index 62ffa5e5..52506b22 100644 --- a/html/linux/401test.mu.html +++ b/html/linux/401test.mu.html @@ -1,30 +1,30 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/401test.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/402time.mu.html b/html/linux/402time.mu.html index e3610037..e632e953 100644 --- a/html/linux/402time.mu.html +++ b/html/linux/402time.mu.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/402time.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .Special { color: #ff6060; } .LineNr { } -.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/403unicode.mu.html b/html/linux/403unicode.mu.html index b9b7d012..07ba68b5 100644 --- a/html/linux/403unicode.mu.html +++ b/html/linux/403unicode.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/403unicode.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/404stream.mu.html b/html/linux/404stream.mu.html index 8680d735..7948dacf 100644 --- a/html/linux/404stream.mu.html +++ b/html/linux/404stream.mu.html @@ -1,33 +1,33 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/404stream.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } -.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } -.Special { color: #ff6060; } +.muRegEbx { color: #5f00ff; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/405screen.mu.html b/html/linux/405screen.mu.html index 3a38e8bd..4c88b295 100644 --- a/html/linux/405screen.mu.html +++ b/html/linux/405screen.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/405screen.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,7 +16,8 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } @@ -26,12 +27,11 @@ a { color:inherit; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/406int32.mu.html b/html/linux/406int32.mu.html index a41c662c..7796bd65 100644 --- a/html/linux/406int32.mu.html +++ b/html/linux/406int32.mu.html @@ -1,30 +1,30 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/406int32.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/407right-justify.mu.html b/html/linux/407right-justify.mu.html index 9406eb62..4c54f084 100644 --- a/html/linux/407right-justify.mu.html +++ b/html/linux/407right-justify.mu.html @@ -1,31 +1,31 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/407right-justify.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } +.muRegEcx { color: #870000; } .LineNr { } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/408float.mu.html b/html/linux/408float.mu.html index 4903dc93..52216101 100644 --- a/html/linux/408float.mu.html +++ b/html/linux/408float.mu.html @@ -1,31 +1,31 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/408float.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/409print-float-hex.mu.html b/html/linux/409print-float-hex.mu.html index 48eb4339..2eb7a43d 100644 --- a/html/linux/409print-float-hex.mu.html +++ b/html/linux/409print-float-hex.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/409print-float-hex.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } -.Constant { color: #008787; } -.CommentedCode { color: #8a8a8a; } -.muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } +.CommentedCode { color: #8a8a8a; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } -.Special { color: #ff6060; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/410file.mu.html b/html/linux/410file.mu.html index faa24ef4..7a3c9e83 100644 --- a/html/linux/410file.mu.html +++ b/html/linux/410file.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/410file.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,16 +17,16 @@ a { color:inherit; } .PreProc { color: #c000c0; } .LineNr { } .muRegEsi { color: #005faf; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.CommentedCode { color: #8a8a8a; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/411string.mu.html b/html/linux/411string.mu.html index 35bbd19f..8062479e 100644 --- a/html/linux/411string.mu.html +++ b/html/linux/411string.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/411string.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } .muRegEcx { color: #870000; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.CommentedCode { color: #8a8a8a; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/412print-float-decimal.mu.html b/html/linux/412print-float-decimal.mu.html index fbac235a..e094ff22 100644 --- a/html/linux/412print-float-decimal.mu.html +++ b/html/linux/412print-float-decimal.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/412print-float-decimal.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } -.muRegEdi { color: #00af00; } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } +.muRegEdi { color: #00af00; } .Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } -.Special { color: #ff6060; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/apps/advent2017/1a.mu.html b/html/linux/apps/advent2017/1a.mu.html new file mode 100644 index 00000000..88f60dbc --- /dev/null +++ b/html/linux/apps/advent2017/1a.mu.html @@ -0,0 +1,131 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2017/1a.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.Special { color: #ff6060; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2017/1a.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2017/1a.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Advent of code 2017, problem 1a</span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment"># <a href="https://adventofcode.com/2017/day/1">https://adventofcode.com/2017/day/1</a></span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment">#</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># Mu solution by Sumeet Agarwal and Kartik Agaram</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># <a href="https://archive.org/details/2021-06-02-akkartik-sumeet">https://archive.org/details/2021-06-02-akkartik-sumeet</a></span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment">#</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># To build on Linux:</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># $ cd mu/linux</span> +<span id="L10" class="LineNr">10 </span><span class="muComment"># $ ./translate apps/advent2017/1a.mu # emits a.elf</span> +<span id="L11" class="LineNr">11 </span><span class="muComment"># To run on Linux:</span> +<span id="L12" class="LineNr">12 </span><span class="muComment"># Download <a href="https://adventofcode.com/2017/day/1/input">https://adventofcode.com/2017/day/1/input</a></span> +<span id="L13" class="LineNr">13 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L14" class="LineNr">14 </span><span class="muComment"># Type in the number returned at <a href="https://adventofcode.com/2017/day/1">https://adventofcode.com/2017/day/1</a></span> +<span id="L15" class="LineNr">15 </span> +<span id="L16" class="LineNr">16 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1a.mu.html#L16'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L17" class="LineNr">17 </span> <span class="PreProc">var</span> input_stream: (stream byte <span class="Constant">0x8000</span>) +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> input_stream_addr/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address input_stream +<span id="L19" class="LineNr">19 </span> +<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> sum/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L21" class="LineNr">21 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> input_stream_addr +<span id="L22" class="LineNr">22 </span> +<span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> temp/eax: int <span class="Special"><-</span> <a href='1a.mu.html#L60'>read_digit</a> input_stream_addr +<span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> first_digit/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy temp +<span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> this_digit/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy temp +<span id="L26" class="LineNr">26 </span> +<span id="L27" class="LineNr">27 </span> <span class="Delimiter">{</span> +<span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> input_stream_addr +<span id="L29" class="LineNr">29 </span> compare done?, <span class="Constant">1</span> +<span id="L30" class="LineNr">30 </span> <span class="PreProc">break-if-=</span> +<span id="L31" class="LineNr">31 </span> +<span id="L32" class="LineNr">32 </span> <span class="PreProc">var</span> next_digit/eax: int <span class="Special"><-</span> <a href='1a.mu.html#L60'>read_digit</a> input_stream_addr +<span id="L33" class="LineNr">33 </span> <span class="muComment"># hacky newline check</span> +<span id="L34" class="LineNr">34 </span> compare next_digit, <span class="Constant">0</span> +<span id="L35" class="LineNr">35 </span> <span class="PreProc">break-if-<</span> +<span id="L36" class="LineNr">36 </span> +<span id="L37" class="LineNr">37 </span> <span class="Delimiter">{</span> +<span id="L38" class="LineNr">38 </span> compare this_digit, next_digit +<span id="L39" class="LineNr">39 </span> <span class="PreProc">break-if-!=</span> +<span id="L40" class="LineNr">40 </span> sum <span class="Special"><-</span> add this_digit +<span id="L41" class="LineNr">41 </span> <span class="Delimiter">}</span> +<span id="L42" class="LineNr">42 </span> +<span id="L43" class="LineNr">43 </span> this_digit <span class="Special"><-</span> copy next_digit +<span id="L44" class="LineNr">44 </span> +<span id="L45" class="LineNr">45 </span> <span class="PreProc">loop</span> +<span id="L46" class="LineNr">46 </span> <span class="Delimiter">}</span> +<span id="L47" class="LineNr">47 </span> +<span id="L48" class="LineNr">48 </span> <span class="muComment"># the last iteration will need to compare the last number to the first</span> +<span id="L49" class="LineNr">49 </span> <span class="Delimiter">{</span> +<span id="L50" class="LineNr">50 </span> compare this_digit, first_digit +<span id="L51" class="LineNr">51 </span> <span class="PreProc">break-if-!=</span> +<span id="L52" class="LineNr">52 </span> sum <span class="Special"><-</span> add this_digit +<span id="L53" class="LineNr">53 </span> <span class="Delimiter">}</span> +<span id="L54" class="LineNr">54 </span> +<span id="L55" class="LineNr">55 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, sum +<span id="L56" class="LineNr">56 </span> +<span id="L57" class="LineNr">57 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/ok +<span id="L58" class="LineNr">58 </span><span class="Delimiter">}</span> +<span id="L59" class="LineNr">59 </span> +<span id="L60" class="LineNr">60 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1a.mu.html#L60'>read_digit</a></span> input_stream_addr: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L61" class="LineNr">61 </span> <span class="PreProc">var</span> next_digit/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> input_stream_addr +<span id="L62" class="LineNr">62 </span> next_digit <span class="Special"><-</span> subtract <span class="Constant">0x30</span> +<span id="L63" class="LineNr">63 </span> <span class="PreProc">var</span> next_digit/eax: int <span class="Special"><-</span> copy next_digit +<span id="L64" class="LineNr">64 </span> <span class="PreProc">return</span> next_digit +<span id="L65" class="LineNr">65 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/advent2020/1a.mu.html b/html/linux/apps/advent2020/1a.mu.html new file mode 100644 index 00000000..e75fe8fc --- /dev/null +++ b/html/linux/apps/advent2020/1a.mu.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2020/1a.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/1a.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/1a.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># <a href="https://adventofcode.com/2020/day/1">https://adventofcode.com/2020/day/1</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/advent2020/1a.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># found</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># 1353 667</span> +<span id="L10" class="LineNr">10 </span><span class="muComment"># 902451</span> +<span id="L11" class="LineNr">11 </span><span class="muComment">#</span> +<span id="L12" class="LineNr">12 </span><span class="muComment"># You'll need to register to download the 'input' file for yourself.</span> +<span id="L13" class="LineNr">13 </span> +<span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1a.mu.html#L14'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L15" class="LineNr">15 </span> <span class="muComment"># data structure</span> +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> numbers-storage: (array int <span class="Constant">0x100</span>) <span class="muComment"># 256 ints</span> +<span id="L17" class="LineNr">17 </span> <span class="PreProc">var</span> numbers/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> address numbers-storage +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> numbers-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L19" class="LineNr">19 </span> <span class="muComment"># phase 1: parse each line from stdin and add it to numbers</span> +<span id="L20" class="LineNr">20 </span> <span class="Delimiter">{</span> +<span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> line-storage: (stream byte <span class="Constant">0x100</span>) <span class="muComment"># 256 bytes</span> +<span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> line/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage +<span id="L23" class="LineNr">23 </span> <span class="Delimiter">{</span> +<span id="L24" class="LineNr">24 </span><span class="CommentedCode">#? print-string 0, "== iter\n"</span> +<span id="L25" class="LineNr">25 </span> <span class="muComment"># read line from stdin</span> +<span id="L26" class="LineNr">26 </span> <a href='../../106stream.subx.html#L17'>clear-stream</a> line +<span id="L27" class="LineNr">27 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line +<span id="L28" class="LineNr">28 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> +<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L30" class="LineNr">30 </span> compare done?, <span class="Constant">0</span>/false +<span id="L31" class="LineNr">31 </span> <span class="PreProc">break-if-!=</span> +<span id="L32" class="LineNr">32 </span><span class="CommentedCode">#? print-stream-to-real-screen line</span> +<span id="L33" class="LineNr">33 </span> <span class="muComment"># convert line to int and append it to numbers</span> +<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> line +<span id="L35" class="LineNr">35 </span><span class="CommentedCode">#? print-int32-decimal 0, n</span> +<span id="L36" class="LineNr">36 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> dest/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> index numbers, numbers-index +<span id="L38" class="LineNr">38 </span> copy-to *dest, n +<span id="L39" class="LineNr">39 </span> numbers-index <span class="Special"><-</span> increment +<span id="L40" class="LineNr">40 </span><span class="CommentedCode">#? print-string 0, "== "</span> +<span id="L41" class="LineNr">41 </span><span class="CommentedCode">#? print-int32-decimal 0, numbers-index</span> +<span id="L42" class="LineNr">42 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L43" class="LineNr">43 </span> <span class="PreProc">loop</span> +<span id="L44" class="LineNr">44 </span> <span class="Delimiter">}</span> +<span id="L45" class="LineNr">45 </span> <span class="Delimiter">}</span> +<span id="L46" class="LineNr">46 </span> <span class="muComment"># phase 2: for each number in the array, check if 2020-it is in the rest of</span> +<span id="L47" class="LineNr">47 </span> <span class="muComment"># the array</span> +<span id="L48" class="LineNr">48 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L49" class="LineNr">49 </span> <span class="Delimiter">{</span> +<span id="L50" class="LineNr">50 </span> compare i, numbers-index +<span id="L51" class="LineNr">51 </span> <span class="PreProc">break-if->=</span> +<span id="L52" class="LineNr">52 </span> <span class="PreProc">var</span> src/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> index numbers, i +<span id="L53" class="LineNr">53 </span><span class="CommentedCode">#? print-int32-decimal 0, *src</span> +<span id="L54" class="LineNr">54 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L55" class="LineNr">55 </span> <span class="PreProc">var</span> target/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x7e4</span> <span class="muComment"># 2020</span> +<span id="L56" class="LineNr">56 </span> target <span class="Special"><-</span> subtract *src +<span id="L57" class="LineNr">57 </span> <span class="Delimiter">{</span> +<span id="L58" class="LineNr">58 </span> <span class="PreProc">var</span> found?/eax: boolean <span class="Special"><-</span> <a href='1a.mu.html#L77'>find-after</a> numbers, i, target +<span id="L59" class="LineNr">59 </span> compare found?, <span class="Constant">0</span>/false +<span id="L60" class="LineNr">60 </span> <span class="PreProc">break-if-=</span> +<span id="L61" class="LineNr">61 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"found\n"</span> +<span id="L62" class="LineNr">62 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, *src +<span id="L63" class="LineNr">63 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> +<span id="L64" class="LineNr">64 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, target +<span id="L65" class="LineNr">65 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L66" class="LineNr">66 </span> target <span class="Special"><-</span> multiply *src +<span id="L67" class="LineNr">67 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, target +<span id="L68" class="LineNr">68 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L69" class="LineNr">69 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/success +<span id="L70" class="LineNr">70 </span> <span class="Delimiter">}</span> +<span id="L71" class="LineNr">71 </span> i <span class="Special"><-</span> increment +<span id="L72" class="LineNr">72 </span> <span class="PreProc">loop</span> +<span id="L73" class="LineNr">73 </span> <span class="Delimiter">}</span> +<span id="L74" class="LineNr">74 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/not-found +<span id="L75" class="LineNr">75 </span><span class="Delimiter">}</span> +<span id="L76" class="LineNr">76 </span> +<span id="L77" class="LineNr">77 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1a.mu.html#L77'>find-after</a></span> _numbers: (addr array int), start: int, _target: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L78" class="LineNr">78 </span> <span class="PreProc">var</span> numbers/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> copy _numbers +<span id="L79" class="LineNr">79 </span> <span class="PreProc">var</span> target/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy _target +<span id="L80" class="LineNr">80 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length numbers +<span id="L81" class="LineNr">81 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy start +<span id="L82" class="LineNr">82 </span> i <span class="Special"><-</span> increment +<span id="L83" class="LineNr">83 </span> <span class="Delimiter">{</span> +<span id="L84" class="LineNr">84 </span> compare i, len +<span id="L85" class="LineNr">85 </span> <span class="PreProc">break-if->=</span> +<span id="L86" class="LineNr">86 </span> <span class="PreProc">var</span> src/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> index numbers, i +<span id="L87" class="LineNr">87 </span> <span class="muComment"># if *src == target, return true</span> +<span id="L88" class="LineNr">88 </span> compare *src, target +<span id="L89" class="LineNr">89 </span> <span class="Delimiter">{</span> +<span id="L90" class="LineNr">90 </span> <span class="PreProc">break-if-!=</span> +<span id="L91" class="LineNr">91 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true +<span id="L92" class="LineNr">92 </span> <span class="Delimiter">}</span> +<span id="L93" class="LineNr">93 </span> i <span class="Special"><-</span> increment +<span id="L94" class="LineNr">94 </span> <span class="PreProc">loop</span> +<span id="L95" class="LineNr">95 </span> <span class="Delimiter">}</span> +<span id="L96" class="LineNr">96 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L97" class="LineNr">97 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/advent2020/1b.mu.html b/html/linux/apps/advent2020/1b.mu.html new file mode 100644 index 00000000..4346642b --- /dev/null +++ b/html/linux/apps/advent2020/1b.mu.html @@ -0,0 +1,181 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2020/1b.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/1b.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/1b.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># <a href="https://adventofcode.com/2020/day/1">https://adventofcode.com/2020/day/1</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/advent2020/1b.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># found</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># 143 407 1470</span> +<span id="L10" class="LineNr"> 10 </span><span class="muComment"># 85555470</span> +<span id="L11" class="LineNr"> 11 </span><span class="muComment">#</span> +<span id="L12" class="LineNr"> 12 </span><span class="muComment"># You'll need to register to download the 'input' file for yourself.</span> +<span id="L13" class="LineNr"> 13 </span> +<span id="L14" class="LineNr"> 14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1b.mu.html#L14'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L15" class="LineNr"> 15 </span> <span class="muComment"># data structure</span> +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> numbers-storage: (array int <span class="Constant">0x100</span>) <span class="muComment"># 256 ints</span> +<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> numbers/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> address numbers-storage +<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> numbers-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L19" class="LineNr"> 19 </span> <span class="muComment"># phase 1: parse each line from stdin and add it to numbers</span> +<span id="L20" class="LineNr"> 20 </span> <span class="Delimiter">{</span> +<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> line-storage: (stream byte <span class="Constant">0x100</span>) <span class="muComment"># 256 bytes</span> +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> line/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage +<span id="L23" class="LineNr"> 23 </span> <span class="Delimiter">{</span> +<span id="L24" class="LineNr"> 24 </span><span class="CommentedCode">#? print-string 0, "== iter\n"</span> +<span id="L25" class="LineNr"> 25 </span> <span class="muComment"># read line from stdin</span> +<span id="L26" class="LineNr"> 26 </span> <a href='../../106stream.subx.html#L17'>clear-stream</a> line +<span id="L27" class="LineNr"> 27 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line +<span id="L28" class="LineNr"> 28 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> +<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L30" class="LineNr"> 30 </span> compare done?, <span class="Constant">0</span>/false +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">break-if-!=</span> +<span id="L32" class="LineNr"> 32 </span><span class="CommentedCode">#? print-stream-to-real-screen line</span> +<span id="L33" class="LineNr"> 33 </span> <span class="muComment"># convert line to int and append it to numbers</span> +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L48'>parse-decimal-int-from-stream</a> line +<span id="L35" class="LineNr"> 35 </span><span class="CommentedCode">#? print-int32-decimal 0, n</span> +<span id="L36" class="LineNr"> 36 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> dest/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> index numbers, numbers-index +<span id="L38" class="LineNr"> 38 </span> copy-to *dest, n +<span id="L39" class="LineNr"> 39 </span> numbers-index <span class="Special"><-</span> increment +<span id="L40" class="LineNr"> 40 </span><span class="CommentedCode">#? print-string 0, "== "</span> +<span id="L41" class="LineNr"> 41 </span><span class="CommentedCode">#? print-int32-decimal 0, numbers-index</span> +<span id="L42" class="LineNr"> 42 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">loop</span> +<span id="L44" class="LineNr"> 44 </span> <span class="Delimiter">}</span> +<span id="L45" class="LineNr"> 45 </span> <span class="Delimiter">}</span> +<span id="L46" class="LineNr"> 46 </span> <span class="muComment"># phase 2: for every pair of distinct numbers, check if the rest of the</span> +<span id="L47" class="LineNr"> 47 </span> <span class="muComment"># array has 2020-it</span> +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> i/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L49" class="LineNr"> 49 </span> <span class="Delimiter">{</span> +<span id="L50" class="LineNr"> 50 </span> compare i, numbers-index +<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">break-if->=</span> +<span id="L52" class="LineNr"> 52 </span> <span class="muComment"># for j from i+1 to end</span> +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> j/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy i +<span id="L54" class="LineNr"> 54 </span> j <span class="Special"><-</span> increment +<span id="L55" class="LineNr"> 55 </span> <span class="Delimiter">{</span> +<span id="L56" class="LineNr"> 56 </span> compare j, numbers-index +<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">break-if->=</span> +<span id="L58" class="LineNr"> 58 </span> <span class="Delimiter">{</span> +<span id="L59" class="LineNr"> 59 </span> compare i, j +<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">break-if-=</span> +<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> target/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0x7e4</span> <span class="muComment"># 2020</span> +<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> src/<span class="muRegEdi">edi</span>: (addr int) <span class="Special"><-</span> index numbers, i +<span id="L63" class="LineNr"> 63 </span> target <span class="Special"><-</span> subtract *src +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> src2/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> index numbers, j +<span id="L65" class="LineNr"> 65 </span> target <span class="Special"><-</span> subtract *src2 +<span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">{</span> +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> found?/eax: boolean <span class="Special"><-</span> <a href='1b.mu.html#L93'>find-after</a> numbers, j, target +<span id="L68" class="LineNr"> 68 </span> compare found?, <span class="Constant">0</span>/false +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">break-if-=</span> +<span id="L70" class="LineNr"> 70 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"found\n"</span> +<span id="L71" class="LineNr"> 71 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, *src +<span id="L72" class="LineNr"> 72 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> +<span id="L73" class="LineNr"> 73 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, *src2 +<span id="L74" class="LineNr"> 74 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> +<span id="L75" class="LineNr"> 75 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, target +<span id="L76" class="LineNr"> 76 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L77" class="LineNr"> 77 </span> target <span class="Special"><-</span> multiply *src +<span id="L78" class="LineNr"> 78 </span> target <span class="Special"><-</span> multiply *src2 +<span id="L79" class="LineNr"> 79 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, target +<span id="L80" class="LineNr"> 80 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/success +<span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">}</span> +<span id="L83" class="LineNr"> 83 </span> <span class="Delimiter">}</span> +<span id="L84" class="LineNr"> 84 </span> j <span class="Special"><-</span> increment +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">loop</span> +<span id="L86" class="LineNr"> 86 </span> <span class="Delimiter">}</span> +<span id="L87" class="LineNr"> 87 </span> i <span class="Special"><-</span> increment +<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">loop</span> +<span id="L89" class="LineNr"> 89 </span> <span class="Delimiter">}</span> +<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/not-found +<span id="L91" class="LineNr"> 91 </span><span class="Delimiter">}</span> +<span id="L92" class="LineNr"> 92 </span> +<span id="L93" class="LineNr"> 93 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='1b.mu.html#L93'>find-after</a></span> _numbers: (addr array int), start: int, _target: int<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> numbers/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> copy _numbers +<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> target/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy _target +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> len/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> length numbers +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy start +<span id="L98" class="LineNr"> 98 </span> i <span class="Special"><-</span> increment +<span id="L99" class="LineNr"> 99 </span> <span class="Delimiter">{</span> +<span id="L100" class="LineNr">100 </span> compare i, len +<span id="L101" class="LineNr">101 </span> <span class="PreProc">break-if->=</span> +<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> src/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> index numbers, i +<span id="L103" class="LineNr">103 </span> <span class="muComment"># if *src == target, return true</span> +<span id="L104" class="LineNr">104 </span> compare *src, target +<span id="L105" class="LineNr">105 </span> <span class="Delimiter">{</span> +<span id="L106" class="LineNr">106 </span> <span class="PreProc">break-if-!=</span> +<span id="L107" class="LineNr">107 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true +<span id="L108" class="LineNr">108 </span> <span class="Delimiter">}</span> +<span id="L109" class="LineNr">109 </span> i <span class="Special"><-</span> increment +<span id="L110" class="LineNr">110 </span> <span class="PreProc">loop</span> +<span id="L111" class="LineNr">111 </span> <span class="Delimiter">}</span> +<span id="L112" class="LineNr">112 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L113" class="LineNr">113 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/advent2020/2a.mu.html b/html/linux/apps/advent2020/2a.mu.html new file mode 100644 index 00000000..2e6e3488 --- /dev/null +++ b/html/linux/apps/advent2020/2a.mu.html @@ -0,0 +1,159 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2020/2a.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/2a.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/2a.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># <a href="https://adventofcode.com/2020/day/2">https://adventofcode.com/2020/day/2</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/advent2020/2a.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># You'll need to register to download the 'input' file for yourself.</span> +<span id="L10" class="LineNr">10 </span> +<span id="L11" class="LineNr">11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='2a.mu.html#L11'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> valid-password-count/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> line-storage: (stream byte <span class="Constant">0x100</span>) <span class="muComment"># 256 bytes</span> +<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> line/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage +<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> slice-storage: slice +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> slice/<span class="muRegEcx">ecx</span>: (addr slice) <span class="Special"><-</span> address slice-storage +<span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span> +<span id="L18" class="LineNr">18 </span> <span class="muComment"># read line from stdin</span> +<span id="L19" class="LineNr">19 </span> <a href='../../106stream.subx.html#L17'>clear-stream</a> line +<span id="L20" class="LineNr">20 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line +<span id="L21" class="LineNr">21 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> +<span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L23" class="LineNr">23 </span> compare done?, <span class="Constant">0</span>/false +<span id="L24" class="LineNr">24 </span> <span class="PreProc">break-if-!=</span> +<span id="L25" class="LineNr">25 </span> <a href='../../304screen.subx.html#L147'>print-stream-to-real-screen</a> line +<span id="L26" class="LineNr">26 </span> <span class="muComment"># slice = next-token(line, '-')</span> +<span id="L27" class="LineNr">27 </span> <a href='../../124next-token.subx.html#L10'>next-token</a> line, <span class="Constant">0x2d</span>, slice +<span id="L28" class="LineNr">28 </span> <span class="muComment"># start = parse-int(slice)</span> +<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> _start/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice +<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> start/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _start +<span id="L31" class="LineNr">31 </span> <span class="PreProc">var</span> dash/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip '-'</span> +<span id="L32" class="LineNr">32 </span> <span class="muComment"># slice = next-token(line, ' ')</span> +<span id="L33" class="LineNr">33 </span> <a href='../../124next-token.subx.html#L10'>next-token</a> line, <span class="Constant">0x20</span>, slice +<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> _end/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice +<span id="L35" class="LineNr">35 </span> <span class="PreProc">var</span> end/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy _end +<span id="L36" class="LineNr">36 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, start +<span id="L37" class="LineNr">37 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> +<span id="L38" class="LineNr">38 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, end +<span id="L39" class="LineNr">39 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L40" class="LineNr">40 </span> <span class="muComment"># letter = next non-space</span> +<span id="L41" class="LineNr">41 </span> <a href='../../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line +<span id="L42" class="LineNr">42 </span> <span class="PreProc">var</span> letter/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> line +<span id="L43" class="LineNr">43 </span> <span class="muComment"># skip some stuff</span> +<span id="L44" class="LineNr">44 </span> <span class="Delimiter">{</span> +<span id="L45" class="LineNr">45 </span> <span class="PreProc">var</span> colon/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip ':'</span> +<span id="L46" class="LineNr">46 </span> <span class="Delimiter">}</span> +<span id="L47" class="LineNr">47 </span> <a href='../../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line +<span id="L48" class="LineNr">48 </span> <span class="muComment"># now check the rest of the line</span> +<span id="L49" class="LineNr">49 </span> <span class="PreProc">var</span> <a href='2a.mu.html#L63'>valid?</a>/eax: boolean <span class="Special"><-</span> <a href='2a.mu.html#L63'>valid?</a> start, end, letter, line +<span id="L50" class="LineNr">50 </span> compare <a href='2a.mu.html#L63'>valid?</a>, <span class="Constant">0</span>/false +<span id="L51" class="LineNr">51 </span> <span class="Delimiter">{</span> +<span id="L52" class="LineNr">52 </span> <span class="PreProc">break-if-=</span> +<span id="L53" class="LineNr">53 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"valid!\n"</span> +<span id="L54" class="LineNr">54 </span> valid-password-count <span class="Special"><-</span> increment +<span id="L55" class="LineNr">55 </span> <span class="Delimiter">}</span> +<span id="L56" class="LineNr">56 </span> <span class="PreProc">loop</span> +<span id="L57" class="LineNr">57 </span> <span class="Delimiter">}</span> +<span id="L58" class="LineNr">58 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, valid-password-count +<span id="L59" class="LineNr">59 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L60" class="LineNr">60 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L61" class="LineNr">61 </span><span class="Delimiter">}</span> +<span id="L62" class="LineNr">62 </span> +<span id="L63" class="LineNr">63 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='2a.mu.html#L63'>valid?</a></span> start: int, end: int, letter: byte, password: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L64" class="LineNr">64 </span> <span class="PreProc">var</span> letter-count/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L65" class="LineNr">65 </span> <span class="muComment"># for every c in password</span> +<span id="L66" class="LineNr">66 </span> <span class="muComment"># if (c == letter)</span> +<span id="L67" class="LineNr">67 </span> <span class="muComment"># ++letter-count</span> +<span id="L68" class="LineNr">68 </span> <span class="Delimiter">{</span> +<span id="L69" class="LineNr">69 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> password +<span id="L70" class="LineNr">70 </span> compare done?, <span class="Constant">0</span>/false +<span id="L71" class="LineNr">71 </span> <span class="PreProc">break-if-!=</span> +<span id="L72" class="LineNr">72 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> password +<span id="L73" class="LineNr">73 </span> compare c, letter +<span id="L74" class="LineNr">74 </span> <span class="Delimiter">{</span> +<span id="L75" class="LineNr">75 </span> <span class="PreProc">break-if-!=</span> +<span id="L76" class="LineNr">76 </span> letter-count <span class="Special"><-</span> increment +<span id="L77" class="LineNr">77 </span> <span class="Delimiter">}</span> +<span id="L78" class="LineNr">78 </span> <span class="PreProc">loop</span> +<span id="L79" class="LineNr">79 </span> <span class="Delimiter">}</span> +<span id="L80" class="LineNr">80 </span> <span class="muComment"># return (start <= letter-count <= end)</span> +<span id="L81" class="LineNr">81 </span> compare letter-count, start +<span id="L82" class="LineNr">82 </span> <span class="Delimiter">{</span> +<span id="L83" class="LineNr">83 </span> <span class="PreProc">break-if->=</span> +<span id="L84" class="LineNr">84 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L85" class="LineNr">85 </span> <span class="Delimiter">}</span> +<span id="L86" class="LineNr">86 </span> compare letter-count, end +<span id="L87" class="LineNr">87 </span> <span class="Delimiter">{</span> +<span id="L88" class="LineNr">88 </span> <span class="PreProc">break-if-<=</span> +<span id="L89" class="LineNr">89 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L90" class="LineNr">90 </span> <span class="Delimiter">}</span> +<span id="L91" class="LineNr">91 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true +<span id="L92" class="LineNr">92 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/advent2020/2b.mu.html b/html/linux/apps/advent2020/2b.mu.html new file mode 100644 index 00000000..604e06bb --- /dev/null +++ b/html/linux/apps/advent2020/2b.mu.html @@ -0,0 +1,190 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2020/2b.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/2b.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/2b.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># <a href="https://adventofcode.com/2020/day/2">https://adventofcode.com/2020/day/2</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/advent2020/2b.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># You'll need to register to download the 'input' file for yourself.</span> +<span id="L10" class="LineNr"> 10 </span> +<span id="L11" class="LineNr"> 11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='2b.mu.html#L11'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> valid-password-count/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> line-storage: (stream byte <span class="Constant">0x100</span>) <span class="muComment"># 256 bytes</span> +<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> line/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> slice-storage: slice +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> slice/<span class="muRegEcx">ecx</span>: (addr slice) <span class="Special"><-</span> address slice-storage +<span id="L17" class="LineNr"> 17 </span> <span class="Delimiter">{</span> +<span id="L18" class="LineNr"> 18 </span> <span class="muComment"># read line from stdin</span> +<span id="L19" class="LineNr"> 19 </span> <a href='../../106stream.subx.html#L17'>clear-stream</a> line +<span id="L20" class="LineNr"> 20 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line +<span id="L21" class="LineNr"> 21 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L23" class="LineNr"> 23 </span> compare done?, <span class="Constant">0</span>/false +<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">break-if-!=</span> +<span id="L25" class="LineNr"> 25 </span> <a href='../../304screen.subx.html#L147'>print-stream-to-real-screen</a> line +<span id="L26" class="LineNr"> 26 </span> <span class="muComment"># slice = next-token(line, '-')</span> +<span id="L27" class="LineNr"> 27 </span> <a href='../../124next-token.subx.html#L10'>next-token</a> line, <span class="Constant">0x2d</span>, slice +<span id="L28" class="LineNr"> 28 </span> <span class="muComment"># pos1 = parse-int(slice)</span> +<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> _pos1/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> pos1/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _pos1 +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> dash/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip '-'</span> +<span id="L32" class="LineNr"> 32 </span> <span class="muComment"># slice = next-token(line, ' ')</span> +<span id="L33" class="LineNr"> 33 </span> <a href='../../124next-token.subx.html#L10'>next-token</a> line, <span class="Constant">0x20</span>, slice +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> _pos2/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> slice +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> pos2/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy _pos2 +<span id="L36" class="LineNr"> 36 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, pos1 +<span id="L37" class="LineNr"> 37 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> +<span id="L38" class="LineNr"> 38 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, pos2 +<span id="L39" class="LineNr"> 39 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L40" class="LineNr"> 40 </span> compare pos1, pos2 +<span id="L41" class="LineNr"> 41 </span> <span class="Delimiter">{</span> +<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">break-if-<=</span> +<span id="L43" class="LineNr"> 43 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"out of order!\n"</span> +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">return</span> <span class="Constant">1</span> +<span id="L45" class="LineNr"> 45 </span> <span class="Delimiter">}</span> +<span id="L46" class="LineNr"> 46 </span> <span class="muComment"># letter = next non-space</span> +<span id="L47" class="LineNr"> 47 </span> <a href='../../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> letter/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> line +<span id="L49" class="LineNr"> 49 </span> <span class="muComment"># skip some stuff</span> +<span id="L50" class="LineNr"> 50 </span> <span class="Delimiter">{</span> +<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> colon/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip ':'</span> +<span id="L52" class="LineNr"> 52 </span> <span class="Delimiter">}</span> +<span id="L53" class="LineNr"> 53 </span> <a href='../../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line +<span id="L54" class="LineNr"> 54 </span> <span class="muComment"># now check the rest of the line</span> +<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> <a href='2b.mu.html#L72'>valid?</a>/eax: boolean <span class="Special"><-</span> <a href='2b.mu.html#L72'>valid?</a> pos1, pos2, letter, line +<span id="L56" class="LineNr"> 56 </span> compare <a href='2b.mu.html#L72'>valid?</a>, <span class="Constant">0</span>/false +<span id="L57" class="LineNr"> 57 </span> <span class="Delimiter">{</span> +<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">break-if-=</span> +<span id="L59" class="LineNr"> 59 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"valid!\n"</span> +<span id="L60" class="LineNr"> 60 </span> valid-password-count <span class="Special"><-</span> increment +<span id="L61" class="LineNr"> 61 </span> <span class="Delimiter">}</span> +<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">loop</span> +<span id="L63" class="LineNr"> 63 </span> <span class="Delimiter">}</span> +<span id="L64" class="LineNr"> 64 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, valid-password-count +<span id="L65" class="LineNr"> 65 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L67" class="LineNr"> 67 </span><span class="Delimiter">}</span> +<span id="L68" class="LineNr"> 68 </span> +<span id="L69" class="LineNr"> 69 </span><span class="muComment"># ideally password would be a random-access array</span> +<span id="L70" class="LineNr"> 70 </span><span class="muComment"># we'll just track an index</span> +<span id="L71" class="LineNr"> 71 </span><span class="muComment"># one benefit: we can easily start at 1</span> +<span id="L72" class="LineNr"> 72 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='2b.mu.html#L72'>valid?</a></span> pos1: int, pos2: int, letter: byte, password: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> i/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> letter-count/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L75" class="LineNr"> 75 </span> <span class="muComment"># while password stream isn't empty</span> +<span id="L76" class="LineNr"> 76 </span> <span class="muComment"># c = read byte from password</span> +<span id="L77" class="LineNr"> 77 </span> <span class="muComment"># if (c == letter)</span> +<span id="L78" class="LineNr"> 78 </span> <span class="muComment"># if (i == pos1)</span> +<span id="L79" class="LineNr"> 79 </span> <span class="muComment"># ++letter-count</span> +<span id="L80" class="LineNr"> 80 </span> <span class="muComment"># if (i == pos2)</span> +<span id="L81" class="LineNr"> 81 </span> <span class="muComment"># ++letter-count</span> +<span id="L82" class="LineNr"> 82 </span> <span class="muComment"># ++i</span> +<span id="L83" class="LineNr"> 83 </span> <span class="Delimiter">{</span> +<span id="L84" class="LineNr"> 84 </span><span class="CommentedCode">#? print-string 0, " "</span> +<span id="L85" class="LineNr"> 85 </span><span class="CommentedCode">#? print-int32-decimal 0, i</span> +<span id="L86" class="LineNr"> 86 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> password +<span id="L88" class="LineNr"> 88 </span> compare done?, <span class="Constant">0</span>/false +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">break-if-!=</span> +<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> password +<span id="L91" class="LineNr"> 91 </span><span class="CommentedCode">#? {</span> +<span id="L92" class="LineNr"> 92 </span><span class="CommentedCode">#? var c2/eax: int <- copy c</span> +<span id="L93" class="LineNr"> 93 </span><span class="CommentedCode">#? print-int32-decimal 0, c2</span> +<span id="L94" class="LineNr"> 94 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L95" class="LineNr"> 95 </span><span class="CommentedCode">#? }</span> +<span id="L96" class="LineNr"> 96 </span> compare c, letter +<span id="L97" class="LineNr"> 97 </span> <span class="Delimiter">{</span> +<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">break-if-!=</span> +<span id="L99" class="LineNr"> 99 </span> compare i, pos1 +<span id="L100" class="LineNr">100 </span> <span class="Delimiter">{</span> +<span id="L101" class="LineNr">101 </span> <span class="PreProc">break-if-!=</span> +<span id="L102" class="LineNr">102 </span> letter-count <span class="Special"><-</span> increment +<span id="L103" class="LineNr">103 </span><span class="CommentedCode">#? print-string 0, " hit\n"</span> +<span id="L104" class="LineNr">104 </span> <span class="Delimiter">}</span> +<span id="L105" class="LineNr">105 </span> compare i, pos2 +<span id="L106" class="LineNr">106 </span> <span class="Delimiter">{</span> +<span id="L107" class="LineNr">107 </span> <span class="PreProc">break-if-!=</span> +<span id="L108" class="LineNr">108 </span> letter-count <span class="Special"><-</span> increment +<span id="L109" class="LineNr">109 </span><span class="CommentedCode">#? print-string 0, " hit\n"</span> +<span id="L110" class="LineNr">110 </span> <span class="Delimiter">}</span> +<span id="L111" class="LineNr">111 </span> <span class="Delimiter">}</span> +<span id="L112" class="LineNr">112 </span> i <span class="Special"><-</span> increment +<span id="L113" class="LineNr">113 </span> <span class="PreProc">loop</span> +<span id="L114" class="LineNr">114 </span> <span class="Delimiter">}</span> +<span id="L115" class="LineNr">115 </span> <span class="muComment"># return (letter-count == 1)</span> +<span id="L116" class="LineNr">116 </span> compare letter-count, <span class="Constant">1</span> +<span id="L117" class="LineNr">117 </span> <span class="Delimiter">{</span> +<span id="L118" class="LineNr">118 </span> <span class="PreProc">break-if-!=</span> +<span id="L119" class="LineNr">119 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true +<span id="L120" class="LineNr">120 </span> <span class="Delimiter">}</span> +<span id="L121" class="LineNr">121 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L122" class="LineNr">122 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/advent2020/3a.mu.html b/html/linux/apps/advent2020/3a.mu.html new file mode 100644 index 00000000..09d7f160 --- /dev/null +++ b/html/linux/apps/advent2020/3a.mu.html @@ -0,0 +1,175 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2020/3a.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/3a.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/3a.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># <a href="https://adventofcode.com/2020/day/3">https://adventofcode.com/2020/day/3</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/advent2020/3a.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># You'll need to register to download the 'input' file for yourself.</span> +<span id="L10" class="LineNr"> 10 </span> +<span id="L11" class="LineNr"> 11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3a.mu.html#L11'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L12" class="LineNr"> 12 </span> <span class="muComment"># represent trees in a 2D array of ints</span> +<span id="L13" class="LineNr"> 13 </span> <span class="muComment"># wasteful since each tree is just one bit</span> +<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> trees-storage: (array int <span class="Constant">0x2800</span>) <span class="muComment"># 10k ints</span> +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> trees/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> address trees-storage +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> trees-length/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> num-rows: int +<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> width: int +<span id="L19" class="LineNr"> 19 </span> <span class="muComment"># phase 1: parse each row of trees from stdin</span> +<span id="L20" class="LineNr"> 20 </span> <span class="Delimiter">{</span> +<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> line-storage: (stream byte <span class="Constant">0x40</span>) <span class="muComment"># 64 bytes</span> +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> line/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage +<span id="L23" class="LineNr"> 23 </span> <span class="Delimiter">{</span> +<span id="L24" class="LineNr"> 24 </span> <span class="muComment"># read line from stdin</span> +<span id="L25" class="LineNr"> 25 </span> <a href='../../106stream.subx.html#L17'>clear-stream</a> line +<span id="L26" class="LineNr"> 26 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line +<span id="L27" class="LineNr"> 27 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L29" class="LineNr"> 29 </span> compare done?, <span class="Constant">0</span>/false +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">break-if-!=</span> +<span id="L31" class="LineNr"> 31 </span> <span class="muComment"># wastefully recompute width on every line</span> +<span id="L32" class="LineNr"> 32 </span> <span class="muComment"># zero error-checking; we assume input lines are all equally long</span> +<span id="L33" class="LineNr"> 33 </span> copy-to width, <span class="Constant">0</span> +<span id="L34" class="LineNr"> 34 </span> <span class="muComment"># turn each byte into a tree and append it</span> +<span id="L35" class="LineNr"> 35 </span> $main:line-loop: <span class="Delimiter">{</span> +<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L37" class="LineNr"> 37 </span> compare done?, <span class="Constant">0</span>/false +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">break-if-!=</span> +<span id="L39" class="LineNr"> 39 </span><span class="CommentedCode">#? print-int32-decimal 0, num-rows</span> +<span id="L40" class="LineNr"> 40 </span><span class="CommentedCode">#? print-string 0, " "</span> +<span id="L41" class="LineNr"> 41 </span><span class="CommentedCode">#? print-int32-decimal 0, width</span> +<span id="L42" class="LineNr"> 42 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> dest/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> index trees, trees-length +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> line +<span id="L45" class="LineNr"> 45 </span> <span class="muComment"># newline comes only at end of line</span> +<span id="L46" class="LineNr"> 46 </span> compare c, <span class="Constant">0xa</span>/newline +<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">break-if-=</span> +<span id="L48" class="LineNr"> 48 </span> <span class="muComment"># '#' = tree</span> +<span id="L49" class="LineNr"> 49 </span> compare c, <span class="Constant">0x23</span>/hash +<span id="L50" class="LineNr"> 50 </span> <span class="Delimiter">{</span> +<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">break-if-!=</span> +<span id="L52" class="LineNr"> 52 </span> copy-to *dest, <span class="Constant">1</span> +<span id="L53" class="LineNr"> 53 </span> <span class="Delimiter">}</span> +<span id="L54" class="LineNr"> 54 </span> <span class="muComment"># anything else = no tree</span> +<span id="L55" class="LineNr"> 55 </span> <span class="Delimiter">{</span> +<span id="L56" class="LineNr"> 56 </span> <span class="PreProc">break-if-=</span> +<span id="L57" class="LineNr"> 57 </span> copy-to *dest, <span class="Constant">0</span> +<span id="L58" class="LineNr"> 58 </span> <span class="Delimiter">}</span> +<span id="L59" class="LineNr"> 59 </span> increment width +<span id="L60" class="LineNr"> 60 </span> trees-length <span class="Special"><-</span> increment +<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">loop</span> +<span id="L62" class="LineNr"> 62 </span> <span class="Delimiter">}</span> +<span id="L63" class="LineNr"> 63 </span> increment num-rows +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">loop</span> +<span id="L65" class="LineNr"> 65 </span> <span class="Delimiter">}</span> +<span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">}</span> +<span id="L67" class="LineNr"> 67 </span> <span class="muComment"># phase 2: compute</span> +<span id="L68" class="LineNr"> 68 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, num-rows +<span id="L69" class="LineNr"> 69 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"x"</span> +<span id="L70" class="LineNr"> 70 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, width +<span id="L71" class="LineNr"> 71 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> row/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> num-trees-hit/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L75" class="LineNr"> 75 </span> <span class="Delimiter">{</span> +<span id="L76" class="LineNr"> 76 </span> compare row, num-rows +<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">break-if->=</span> +<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> curr/eax: int <span class="Special"><-</span> <a href='3a.mu.html#L94'>index2d</a> trees, row, col, width +<span id="L79" class="LineNr"> 79 </span> compare curr, <span class="Constant">0</span> +<span id="L80" class="LineNr"> 80 </span> <span class="Delimiter">{</span> +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">break-if-=</span> +<span id="L82" class="LineNr"> 82 </span> num-trees-hit <span class="Special"><-</span> increment +<span id="L83" class="LineNr"> 83 </span> <span class="Delimiter">}</span> +<span id="L84" class="LineNr"> 84 </span> <span class="muComment"># right 3, down 1</span> +<span id="L85" class="LineNr"> 85 </span> col <span class="Special"><-</span> add <span class="Constant">3</span> +<span id="L86" class="LineNr"> 86 </span> row <span class="Special"><-</span> add <span class="Constant">1</span> +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">loop</span> +<span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">}</span> +<span id="L89" class="LineNr"> 89 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, num-trees-hit +<span id="L90" class="LineNr"> 90 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L92" class="LineNr"> 92 </span><span class="Delimiter">}</span> +<span id="L93" class="LineNr"> 93 </span> +<span id="L94" class="LineNr"> 94 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3a.mu.html#L94'>index2d</a></span> _arr: (addr array int), _row: int, _col: int, width: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L95" class="LineNr"> 95 </span> <span class="muComment"># handle repeating columns of trees</span> +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L98" class="LineNr"> 98 </span> dummy, col <span class="Special"><-</span> <a href='../../314divide.subx.html#L3'>integer-divide</a> _col, width +<span id="L99" class="LineNr"> 99 </span> <span class="muComment"># compute index</span> +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> index/eax: int <span class="Special"><-</span> copy _row +<span id="L101" class="LineNr">101 </span> index <span class="Special"><-</span> multiply width +<span id="L102" class="LineNr">102 </span> index <span class="Special"><-</span> add col +<span id="L103" class="LineNr">103 </span> <span class="muComment"># look up array</span> +<span id="L104" class="LineNr">104 </span> <span class="PreProc">var</span> arr/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> copy _arr +<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> src/eax: (addr int) <span class="Special"><-</span> index arr, index +<span id="L106" class="LineNr">106 </span> <span class="PreProc">return</span> *src +<span id="L107" class="LineNr">107 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/advent2020/3b.mu.html b/html/linux/apps/advent2020/3b.mu.html new file mode 100644 index 00000000..ff64117f --- /dev/null +++ b/html/linux/apps/advent2020/3b.mu.html @@ -0,0 +1,205 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2020/3b.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/3b.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/3b.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># <a href="https://adventofcode.com/2020/day/3">https://adventofcode.com/2020/day/3</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/advent2020/3a.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># You'll need to register to download the 'input' file for yourself.</span> +<span id="L10" class="LineNr"> 10 </span> +<span id="L11" class="LineNr"> 11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3b.mu.html#L11'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L12" class="LineNr"> 12 </span> <span class="muComment"># represent trees in a 2D array of ints</span> +<span id="L13" class="LineNr"> 13 </span> <span class="muComment"># wasteful since each tree is just one bit</span> +<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> trees-storage: (array int <span class="Constant">0x2800</span>) <span class="muComment"># 10k ints</span> +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> trees/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> address trees-storage +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> trees-length/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> num-rows: int +<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> width: int +<span id="L19" class="LineNr"> 19 </span> <span class="muComment"># phase 1: parse each row of trees from stdin</span> +<span id="L20" class="LineNr"> 20 </span> <span class="Delimiter">{</span> +<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> line-storage: (stream byte <span class="Constant">0x40</span>) <span class="muComment"># 64 bytes</span> +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> line/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage +<span id="L23" class="LineNr"> 23 </span> <span class="Delimiter">{</span> +<span id="L24" class="LineNr"> 24 </span> <span class="muComment"># read line from stdin</span> +<span id="L25" class="LineNr"> 25 </span> <a href='../../106stream.subx.html#L17'>clear-stream</a> line +<span id="L26" class="LineNr"> 26 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line +<span id="L27" class="LineNr"> 27 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L29" class="LineNr"> 29 </span> compare done?, <span class="Constant">0</span>/false +<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">break-if-!=</span> +<span id="L31" class="LineNr"> 31 </span> <span class="muComment"># wastefully recompute width on every line</span> +<span id="L32" class="LineNr"> 32 </span> <span class="muComment"># zero error-checking; we assume input lines are all equally long</span> +<span id="L33" class="LineNr"> 33 </span> copy-to width, <span class="Constant">0</span> +<span id="L34" class="LineNr"> 34 </span> <span class="muComment"># turn each byte into a tree and append it</span> +<span id="L35" class="LineNr"> 35 </span> $main:line-loop: <span class="Delimiter">{</span> +<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L37" class="LineNr"> 37 </span> compare done?, <span class="Constant">0</span>/false +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">break-if-!=</span> +<span id="L39" class="LineNr"> 39 </span><span class="CommentedCode">#? print-int32-decimal 0, num-rows</span> +<span id="L40" class="LineNr"> 40 </span><span class="CommentedCode">#? print-string 0, " "</span> +<span id="L41" class="LineNr"> 41 </span><span class="CommentedCode">#? print-int32-decimal 0, width</span> +<span id="L42" class="LineNr"> 42 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> dest/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> index trees, trees-length +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> line +<span id="L45" class="LineNr"> 45 </span> <span class="muComment"># newline comes only at end of line</span> +<span id="L46" class="LineNr"> 46 </span> compare c, <span class="Constant">0xa</span>/newline +<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">break-if-=</span> +<span id="L48" class="LineNr"> 48 </span> <span class="muComment"># '#' = tree</span> +<span id="L49" class="LineNr"> 49 </span> compare c, <span class="Constant">0x23</span>/hash +<span id="L50" class="LineNr"> 50 </span> <span class="Delimiter">{</span> +<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">break-if-!=</span> +<span id="L52" class="LineNr"> 52 </span> copy-to *dest, <span class="Constant">1</span> +<span id="L53" class="LineNr"> 53 </span> <span class="Delimiter">}</span> +<span id="L54" class="LineNr"> 54 </span> <span class="muComment"># anything else = no tree</span> +<span id="L55" class="LineNr"> 55 </span> <span class="Delimiter">{</span> +<span id="L56" class="LineNr"> 56 </span> <span class="PreProc">break-if-=</span> +<span id="L57" class="LineNr"> 57 </span> copy-to *dest, <span class="Constant">0</span> +<span id="L58" class="LineNr"> 58 </span> <span class="Delimiter">}</span> +<span id="L59" class="LineNr"> 59 </span> increment width +<span id="L60" class="LineNr"> 60 </span> trees-length <span class="Special"><-</span> increment +<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">loop</span> +<span id="L62" class="LineNr"> 62 </span> <span class="Delimiter">}</span> +<span id="L63" class="LineNr"> 63 </span> increment num-rows +<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">loop</span> +<span id="L65" class="LineNr"> 65 </span> <span class="Delimiter">}</span> +<span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">}</span> +<span id="L67" class="LineNr"> 67 </span> <span class="muComment"># phase 2: compute</span> +<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> product/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">1</span>, <span class="Constant">1</span> +<span id="L70" class="LineNr"> 70 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result +<span id="L71" class="LineNr"> 71 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" x "</span> +<span id="L72" class="LineNr"> 72 </span> product <span class="Special"><-</span> multiply result +<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">3</span>, <span class="Constant">1</span> +<span id="L74" class="LineNr"> 74 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result +<span id="L75" class="LineNr"> 75 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" x "</span> +<span id="L76" class="LineNr"> 76 </span> product <span class="Special"><-</span> multiply result +<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">5</span>, <span class="Constant">1</span> +<span id="L78" class="LineNr"> 78 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result +<span id="L79" class="LineNr"> 79 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" x "</span> +<span id="L80" class="LineNr"> 80 </span> product <span class="Special"><-</span> multiply result +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">7</span>, <span class="Constant">1</span> +<span id="L82" class="LineNr"> 82 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result +<span id="L83" class="LineNr"> 83 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" x "</span> +<span id="L84" class="LineNr"> 84 </span> product <span class="Special"><-</span> multiply result +<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L94'>num-trees-hit</a> trees, width, num-rows, <span class="Constant">1</span>, <span class="Constant">2</span> +<span id="L86" class="LineNr"> 86 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result +<span id="L87" class="LineNr"> 87 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" = "</span> +<span id="L88" class="LineNr"> 88 </span> product <span class="Special"><-</span> multiply result +<span id="L89" class="LineNr"> 89 </span> <a href='../../405screen.mu.html#L440'>print-int32-hex</a> <span class="Constant">0</span>, product +<span id="L90" class="LineNr"> 90 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L92" class="LineNr"> 92 </span><span class="Delimiter">}</span> +<span id="L93" class="LineNr"> 93 </span> +<span id="L94" class="LineNr"> 94 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3b.mu.html#L94'>num-trees-hit</a></span> trees: (addr array int), width: int, num-rows: int, right: int, down: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L95" class="LineNr"> 95 </span><span class="CommentedCode">#? print-string 0, "== "</span> +<span id="L96" class="LineNr"> 96 </span><span class="CommentedCode">#? print-int32-decimal 0, right</span> +<span id="L97" class="LineNr"> 97 </span><span class="CommentedCode">#? print-string 0, " "</span> +<span id="L98" class="LineNr"> 98 </span><span class="CommentedCode">#? print-int32-decimal 0, down</span> +<span id="L99" class="LineNr"> 99 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> row/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> <a href='3b.mu.html#L94'>num-trees-hit</a>/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L103" class="LineNr">103 </span> <span class="Delimiter">{</span> +<span id="L104" class="LineNr">104 </span> compare row, num-rows +<span id="L105" class="LineNr">105 </span> <span class="PreProc">break-if->=</span> +<span id="L106" class="LineNr">106 </span><span class="CommentedCode">#? print-int32-decimal 0, col</span> +<span id="L107" class="LineNr">107 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> curr/eax: int <span class="Special"><-</span> <a href='3b.mu.html#L121'>index2d</a> trees, row, col, width +<span id="L109" class="LineNr">109 </span> compare curr, <span class="Constant">0</span> +<span id="L110" class="LineNr">110 </span> <span class="Delimiter">{</span> +<span id="L111" class="LineNr">111 </span> <span class="PreProc">break-if-=</span> +<span id="L112" class="LineNr">112 </span> <a href='3b.mu.html#L94'>num-trees-hit</a> <span class="Special"><-</span> increment +<span id="L113" class="LineNr">113 </span> <span class="Delimiter">}</span> +<span id="L114" class="LineNr">114 </span> col <span class="Special"><-</span> add right +<span id="L115" class="LineNr">115 </span> row <span class="Special"><-</span> add down +<span id="L116" class="LineNr">116 </span> <span class="PreProc">loop</span> +<span id="L117" class="LineNr">117 </span> <span class="Delimiter">}</span> +<span id="L118" class="LineNr">118 </span> <span class="PreProc">return</span> <a href='3b.mu.html#L94'>num-trees-hit</a> +<span id="L119" class="LineNr">119 </span><span class="Delimiter">}</span> +<span id="L120" class="LineNr">120 </span> +<span id="L121" class="LineNr">121 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3b.mu.html#L121'>index2d</a></span> _arr: (addr array int), _row: int, _col: int, width: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L122" class="LineNr">122 </span> <span class="muComment"># handle repeating columns of trees</span> +<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> col/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L125" class="LineNr">125 </span> dummy, col <span class="Special"><-</span> <a href='../../314divide.subx.html#L3'>integer-divide</a> _col, width +<span id="L126" class="LineNr">126 </span><span class="CommentedCode">#? print-string 0, " "</span> +<span id="L127" class="LineNr">127 </span><span class="CommentedCode">#? print-int32-decimal 0, col</span> +<span id="L128" class="LineNr">128 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L129" class="LineNr">129 </span> <span class="muComment"># compute index</span> +<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> index/eax: int <span class="Special"><-</span> copy _row +<span id="L131" class="LineNr">131 </span> index <span class="Special"><-</span> multiply width +<span id="L132" class="LineNr">132 </span> index <span class="Special"><-</span> add col +<span id="L133" class="LineNr">133 </span> <span class="muComment"># look up array</span> +<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> arr/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> copy _arr +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> src/eax: (addr int) <span class="Special"><-</span> index arr, index +<span id="L136" class="LineNr">136 </span> <span class="PreProc">return</span> *src +<span id="L137" class="LineNr">137 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/advent2020/4a.mu.html b/html/linux/apps/advent2020/4a.mu.html new file mode 100644 index 00000000..6f477717 --- /dev/null +++ b/html/linux/apps/advent2020/4a.mu.html @@ -0,0 +1,142 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2020/4a.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/4a.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/4a.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># <a href="https://adventofcode.com/2020/day/4">https://adventofcode.com/2020/day/4</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/advent2020/4a.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># You'll need to register to download the 'input' file for yourself.</span> +<span id="L10" class="LineNr">10 </span> +<span id="L11" class="LineNr">11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='4a.mu.html#L11'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> curr-passport-field-count/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> valid-passport-count/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> line-storage: (stream byte <span class="Constant">0x100</span>) <span class="muComment"># 256 bytes</span> +<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> line/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> slice-storage: slice +<span id="L17" class="LineNr">17 </span> <span class="PreProc">var</span> slice/<span class="muRegEdx">edx</span>: (addr slice) <span class="Special"><-</span> address slice-storage +<span id="L18" class="LineNr">18 </span> $main:line-loop: <span class="Delimiter">{</span> +<span id="L19" class="LineNr">19 </span> <span class="muComment"># read line from stdin</span> +<span id="L20" class="LineNr">20 </span> <a href='../../106stream.subx.html#L17'>clear-stream</a> line +<span id="L21" class="LineNr">21 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line +<span id="L22" class="LineNr">22 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> +<span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L24" class="LineNr">24 </span> compare done?, <span class="Constant">0</span>/false +<span id="L25" class="LineNr">25 </span> <span class="PreProc">break-if-!=</span> +<span id="L26" class="LineNr">26 </span> <a href='../../304screen.subx.html#L147'>print-stream-to-real-screen</a> line +<span id="L27" class="LineNr">27 </span> <span class="muComment"># if line has just a newline, process passport</span> +<span id="L28" class="LineNr">28 </span> <a href='../../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line +<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> new-passport?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L30" class="LineNr">30 </span> <span class="Delimiter">{</span> +<span id="L31" class="LineNr">31 </span> compare new-passport?, <span class="Constant">0</span>/false +<span id="L32" class="LineNr">32 </span> <span class="PreProc">break-if-=</span> +<span id="L33" class="LineNr">33 </span> compare curr-passport-field-count, <span class="Constant">7</span> +<span id="L34" class="LineNr">34 </span> <span class="Delimiter">{</span> +<span id="L35" class="LineNr">35 </span> <span class="PreProc">break-if-!=</span> +<span id="L36" class="LineNr">36 </span> valid-passport-count <span class="Special"><-</span> increment +<span id="L37" class="LineNr">37 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"=> "</span> +<span id="L38" class="LineNr">38 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, valid-passport-count +<span id="L39" class="LineNr">39 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L40" class="LineNr">40 </span> <span class="Delimiter">}</span> +<span id="L41" class="LineNr">41 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L42" class="LineNr">42 </span> <span class="PreProc">loop</span> $main:line-loop +<span id="L43" class="LineNr">43 </span> <span class="Delimiter">}</span> +<span id="L44" class="LineNr">44 </span> $main:word-loop: <span class="Delimiter">{</span> +<span id="L45" class="LineNr">45 </span> <a href='../../127next-word.subx.html#L11'>next-word</a> line, slice +<span id="L46" class="LineNr">46 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L9'>slice-empty?</a> slice +<span id="L47" class="LineNr">47 </span> compare done?, <span class="Constant">0</span>/false +<span id="L48" class="LineNr">48 </span> <span class="PreProc">break-if-!=</span> +<span id="L49" class="LineNr">49 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> +<span id="L50" class="LineNr">50 </span> <a href='../../304screen.subx.html#L134'>print-slice-to-real-screen</a> slice +<span id="L51" class="LineNr">51 </span> <span class="muComment"># treat cid as optional</span> +<span id="L52" class="LineNr">52 </span> <span class="PreProc">var</span> optional?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L487'>slice-starts-with?</a> slice, <span class="Constant">"cid:"</span> +<span id="L53" class="LineNr">53 </span> compare optional?, <span class="Constant">0</span>/false +<span id="L54" class="LineNr">54 </span> <span class="Delimiter">{</span> +<span id="L55" class="LineNr">55 </span> <span class="PreProc">break-if-!=</span> +<span id="L56" class="LineNr">56 </span> <span class="muComment"># otherwise assume there are no invalid fields and no duplicate fields</span> +<span id="L57" class="LineNr">57 </span> curr-passport-field-count <span class="Special"><-</span> increment +<span id="L58" class="LineNr">58 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" => "</span> +<span id="L59" class="LineNr">59 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, curr-passport-field-count +<span id="L60" class="LineNr">60 </span> <span class="Delimiter">}</span> +<span id="L61" class="LineNr">61 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L62" class="LineNr">62 </span> <span class="PreProc">loop</span> +<span id="L63" class="LineNr">63 </span> <span class="Delimiter">}</span> +<span id="L64" class="LineNr">64 </span> <span class="PreProc">loop</span> +<span id="L65" class="LineNr">65 </span> <span class="Delimiter">}</span> +<span id="L66" class="LineNr">66 </span> <span class="muComment"># process final passport</span> +<span id="L67" class="LineNr">67 </span> compare curr-passport-field-count, <span class="Constant">7</span> +<span id="L68" class="LineNr">68 </span> <span class="Delimiter">{</span> +<span id="L69" class="LineNr">69 </span> <span class="PreProc">break-if-!=</span> +<span id="L70" class="LineNr">70 </span> valid-passport-count <span class="Special"><-</span> increment +<span id="L71" class="LineNr">71 </span> <span class="Delimiter">}</span> +<span id="L72" class="LineNr">72 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, valid-passport-count +<span id="L73" class="LineNr">73 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L74" class="LineNr">74 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L75" class="LineNr">75 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/advent2020/4b.mu.html b/html/linux/apps/advent2020/4b.mu.html new file mode 100644 index 00000000..47538296 --- /dev/null +++ b/html/linux/apps/advent2020/4b.mu.html @@ -0,0 +1,381 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2020/4b.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/4b.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/4b.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># <a href="https://adventofcode.com/2020/day/4">https://adventofcode.com/2020/day/4</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/advent2020/4b.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># You'll need to register to download the 'input' file for yourself.</span> +<span id="L10" class="LineNr"> 10 </span> +<span id="L11" class="LineNr"> 11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='4b.mu.html#L11'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> curr-passport-field-count/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> valid-passport-count/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> line-storage: (stream byte <span class="Constant">0x100</span>) <span class="muComment"># 256 bytes</span> +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> line/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> key-slice-storage: slice +<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> key-slice/<span class="muRegEdx">edx</span>: (addr slice) <span class="Special"><-</span> address key-slice-storage +<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> val-slice-storage: slice +<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> val-slice/<span class="muRegEbx">ebx</span>: (addr slice) <span class="Special"><-</span> address val-slice-storage +<span id="L20" class="LineNr"> 20 </span> $main:line-loop: <span class="Delimiter">{</span> +<span id="L21" class="LineNr"> 21 </span> <span class="muComment"># read line from stdin</span> +<span id="L22" class="LineNr"> 22 </span> <a href='../../106stream.subx.html#L17'>clear-stream</a> line +<span id="L23" class="LineNr"> 23 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line +<span id="L24" class="LineNr"> 24 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L26" class="LineNr"> 26 </span> compare done?, <span class="Constant">0</span>/false +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">break-if-!=</span> +<span id="L28" class="LineNr"> 28 </span> <a href='../../304screen.subx.html#L147'>print-stream-to-real-screen</a> line +<span id="L29" class="LineNr"> 29 </span> <span class="muComment"># if line has just a newline, process passport</span> +<span id="L30" class="LineNr"> 30 </span> <a href='../../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> new-passport?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L32" class="LineNr"> 32 </span> <span class="Delimiter">{</span> +<span id="L33" class="LineNr"> 33 </span> compare new-passport?, <span class="Constant">0</span>/false +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">break-if-=</span> +<span id="L35" class="LineNr"> 35 </span> compare curr-passport-field-count, <span class="Constant">7</span> +<span id="L36" class="LineNr"> 36 </span> <span class="Delimiter">{</span> +<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">break-if-!=</span> +<span id="L38" class="LineNr"> 38 </span> valid-passport-count <span class="Special"><-</span> increment +<span id="L39" class="LineNr"> 39 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"=> "</span> +<span id="L40" class="LineNr"> 40 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, valid-passport-count +<span id="L41" class="LineNr"> 41 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L42" class="LineNr"> 42 </span> <span class="Delimiter">}</span> +<span id="L43" class="LineNr"> 43 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">loop</span> $main:line-loop +<span id="L45" class="LineNr"> 45 </span> <span class="Delimiter">}</span> +<span id="L46" class="LineNr"> 46 </span> $main:word-loop: <span class="Delimiter">{</span> +<span id="L47" class="LineNr"> 47 </span> <a href='../../124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> line +<span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L49" class="LineNr"> 49 </span> compare done?, <span class="Constant">0</span>/false +<span id="L50" class="LineNr"> 50 </span> <span class="PreProc">break-if-!=</span> +<span id="L51" class="LineNr"> 51 </span> <a href='../../124next-token.subx.html#L10'>next-token</a> line, <span class="Constant">0x3a</span>, key-slice <span class="muComment"># ':'</span> +<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> dummy/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> line <span class="muComment"># skip ':'</span> +<span id="L53" class="LineNr"> 53 </span> <a href='../../127next-word.subx.html#L306'>next-raw-word</a> line, val-slice +<span id="L54" class="LineNr"> 54 </span> <a href='../../304screen.subx.html#L134'>print-slice-to-real-screen</a> key-slice +<span id="L55" class="LineNr"> 55 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" : "</span> +<span id="L56" class="LineNr"> 56 </span> <a href='../../304screen.subx.html#L134'>print-slice-to-real-screen</a> val-slice +<span id="L57" class="LineNr"> 57 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L58" class="LineNr"> 58 </span> <span class="muComment"># treat cid as optional</span> +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> cid?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"cid"</span> +<span id="L60" class="LineNr"> 60 </span> compare cid?, <span class="Constant">0</span>/false +<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">loop-if-!=</span> +<span id="L62" class="LineNr"> 62 </span> <span class="muComment"># increment field count</span> +<span id="L63" class="LineNr"> 63 </span> curr-passport-field-count <span class="Special"><-</span> increment +<span id="L64" class="LineNr"> 64 </span> <span class="muComment"># - validate fields one by one, setting curr-passport-field-count to impossibly high value to signal invalid</span> +<span id="L65" class="LineNr"> 65 </span> <span class="muComment"># byr</span> +<span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">{</span> +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> byr?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"byr"</span> +<span id="L68" class="LineNr"> 68 </span> compare byr?, <span class="Constant">0</span>/false +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">break-if-=</span> +<span id="L70" class="LineNr"> 70 </span> <span class="muComment"># 1920 <= byr <= 2002</span> +<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> byr/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice +<span id="L72" class="LineNr"> 72 </span> compare byr, <span class="Constant">0x780</span> <span class="muComment"># 1920</span> +<span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">{</span> +<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">break-if->=</span> +<span id="L75" class="LineNr"> 75 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L76" class="LineNr"> 76 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L77" class="LineNr"> 77 </span> <span class="Delimiter">}</span> +<span id="L78" class="LineNr"> 78 </span> compare byr, <span class="Constant">0x7d2</span> <span class="muComment"># 2002</span> +<span id="L79" class="LineNr"> 79 </span> <span class="Delimiter">{</span> +<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">break-if-<=</span> +<span id="L81" class="LineNr"> 81 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L82" class="LineNr"> 82 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L83" class="LineNr"> 83 </span> <span class="Delimiter">}</span> +<span id="L84" class="LineNr"> 84 </span> <span class="Delimiter">}</span> +<span id="L85" class="LineNr"> 85 </span> <span class="muComment"># iyr</span> +<span id="L86" class="LineNr"> 86 </span> <span class="Delimiter">{</span> +<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> iyr?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"iyr"</span> +<span id="L88" class="LineNr"> 88 </span> compare iyr?, <span class="Constant">0</span>/false +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">break-if-=</span> +<span id="L90" class="LineNr"> 90 </span> <span class="muComment"># 2010 <= iyr <= 2020</span> +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> iyr/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice +<span id="L92" class="LineNr"> 92 </span> compare iyr, <span class="Constant">0x7da</span> <span class="muComment"># 2010</span> +<span id="L93" class="LineNr"> 93 </span> <span class="Delimiter">{</span> +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">break-if->=</span> +<span id="L95" class="LineNr"> 95 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L96" class="LineNr"> 96 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L97" class="LineNr"> 97 </span> <span class="Delimiter">}</span> +<span id="L98" class="LineNr"> 98 </span> compare iyr, <span class="Constant">0x7e4</span> <span class="muComment"># 2020</span> +<span id="L99" class="LineNr"> 99 </span> <span class="Delimiter">{</span> +<span id="L100" class="LineNr">100 </span> <span class="PreProc">break-if-<=</span> +<span id="L101" class="LineNr">101 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L102" class="LineNr">102 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L103" class="LineNr">103 </span> <span class="Delimiter">}</span> +<span id="L104" class="LineNr">104 </span> <span class="Delimiter">}</span> +<span id="L105" class="LineNr">105 </span> <span class="muComment"># eyr</span> +<span id="L106" class="LineNr">106 </span> <span class="Delimiter">{</span> +<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> eyr?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"eyr"</span> +<span id="L108" class="LineNr">108 </span> compare eyr?, <span class="Constant">0</span>/false +<span id="L109" class="LineNr">109 </span> <span class="PreProc">break-if-=</span> +<span id="L110" class="LineNr">110 </span> <span class="muComment"># 2020 <= eyr <= 2030</span> +<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> eyr/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice +<span id="L112" class="LineNr">112 </span> compare eyr, <span class="Constant">0x7e4</span> <span class="muComment"># 2020</span> +<span id="L113" class="LineNr">113 </span> <span class="Delimiter">{</span> +<span id="L114" class="LineNr">114 </span> <span class="PreProc">break-if->=</span> +<span id="L115" class="LineNr">115 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L116" class="LineNr">116 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L117" class="LineNr">117 </span> <span class="Delimiter">}</span> +<span id="L118" class="LineNr">118 </span> compare eyr, <span class="Constant">0x7ee</span> <span class="muComment"># 2030</span> +<span id="L119" class="LineNr">119 </span> <span class="Delimiter">{</span> +<span id="L120" class="LineNr">120 </span> <span class="PreProc">break-if-<=</span> +<span id="L121" class="LineNr">121 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L122" class="LineNr">122 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L123" class="LineNr">123 </span> <span class="Delimiter">}</span> +<span id="L124" class="LineNr">124 </span> <span class="Delimiter">}</span> +<span id="L125" class="LineNr">125 </span> <span class="muComment"># hgt</span> +<span id="L126" class="LineNr">126 </span> <span class="Delimiter">{</span> +<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> hgt?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"hgt"</span> +<span id="L128" class="LineNr">128 </span> compare hgt?, <span class="Constant">0</span>/false +<span id="L129" class="LineNr">129 </span> <span class="PreProc">break-if-=</span> +<span id="L130" class="LineNr">130 </span> <span class="muComment"># convert val</span> +<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> s: (handle array byte) +<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> s2/eax: (addr handle array byte) <span class="Special"><-</span> address s +<span id="L133" class="LineNr">133 </span> <a href='../../315slice.subx.html#L5'>_slice-to-string</a> val-slice, s2 +<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> s3/eax: (addr array byte) <span class="Special"><-</span> <a href='../../120allocate.subx.html#L258'>lookup</a> *s2 +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> s4/<span class="muRegEbx">ebx</span>: (addr array byte) <span class="Special"><-</span> copy s3 +<span id="L136" class="LineNr">136 </span> <span class="muComment"># check suffix</span> +<span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> start/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> length s4 +<span id="L138" class="LineNr">138 </span> start <span class="Special"><-</span> subtract <span class="Constant">2</span> <span class="muComment"># luckily both 'in' and 'cm' have the same length</span> +<span id="L139" class="LineNr">139 </span> <span class="Delimiter">{</span> +<span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> suffix-h: (handle array byte) +<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> suffix-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> address suffix-h +<span id="L142" class="LineNr">142 </span> <a href='../../411string.mu.html#L2'>substring</a> s4, start, <span class="Constant">2</span>, suffix-ah +<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> suffix/eax: (addr array byte) <span class="Special"><-</span> <a href='../../120allocate.subx.html#L258'>lookup</a> *suffix-ah +<span id="L144" class="LineNr">144 </span> <span class="Delimiter">{</span> +<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../../105string-equal.subx.html#L15'>string-equal?</a> suffix, <span class="Constant">"in"</span> +<span id="L146" class="LineNr">146 </span> compare match?, <span class="Constant">0</span>/false +<span id="L147" class="LineNr">147 </span> <span class="PreProc">break-if-=</span> +<span id="L148" class="LineNr">148 </span> <span class="muComment"># if suffix is "in", 59 <= val <= 96</span> +<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> num-h: (handle array byte) +<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> num-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> address num-h +<span id="L151" class="LineNr">151 </span> <a href='../../411string.mu.html#L2'>substring</a> s4, <span class="Constant">0</span>, start, num-ah +<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> num/eax: (addr array byte) <span class="Special"><-</span> <a href='../../120allocate.subx.html#L258'>lookup</a> *num-ah +<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L23'>parse-decimal-int</a> num +<span id="L154" class="LineNr">154 </span> compare val, <span class="Constant">0x3b</span> <span class="muComment"># 59</span> +<span id="L155" class="LineNr">155 </span> <span class="Delimiter">{</span> +<span id="L156" class="LineNr">156 </span> <span class="PreProc">break-if->=</span> +<span id="L157" class="LineNr">157 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L158" class="LineNr">158 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L159" class="LineNr">159 </span> <span class="Delimiter">}</span> +<span id="L160" class="LineNr">160 </span> compare val, <span class="Constant">0x60</span> <span class="muComment"># 96</span> +<span id="L161" class="LineNr">161 </span> <span class="Delimiter">{</span> +<span id="L162" class="LineNr">162 </span> <span class="PreProc">break-if-<=</span> +<span id="L163" class="LineNr">163 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L164" class="LineNr">164 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L165" class="LineNr">165 </span> <span class="Delimiter">}</span> +<span id="L166" class="LineNr">166 </span> <span class="PreProc">loop</span> $main:word-loop +<span id="L167" class="LineNr">167 </span> <span class="Delimiter">}</span> +<span id="L168" class="LineNr">168 </span> <span class="Delimiter">{</span> +<span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../../105string-equal.subx.html#L15'>string-equal?</a> suffix, <span class="Constant">"cm"</span> +<span id="L170" class="LineNr">170 </span> compare match?, <span class="Constant">0</span>/false +<span id="L171" class="LineNr">171 </span> <span class="PreProc">break-if-=</span> +<span id="L172" class="LineNr">172 </span> <span class="muComment"># if suffix is "cm", 150 <= val <= 193</span> +<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> num-h: (handle array byte) +<span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> num-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> address num-h +<span id="L175" class="LineNr">175 </span> <a href='../../411string.mu.html#L2'>substring</a> s4, <span class="Constant">0</span>, start, num-ah +<span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> num/eax: (addr array byte) <span class="Special"><-</span> <a href='../../120allocate.subx.html#L258'>lookup</a> *num-ah +<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L23'>parse-decimal-int</a> num +<span id="L178" class="LineNr">178 </span> compare val, <span class="Constant">0x96</span> <span class="muComment"># 150</span> +<span id="L179" class="LineNr">179 </span> <span class="Delimiter">{</span> +<span id="L180" class="LineNr">180 </span> <span class="PreProc">break-if->=</span> +<span id="L181" class="LineNr">181 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L182" class="LineNr">182 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L183" class="LineNr">183 </span> <span class="Delimiter">}</span> +<span id="L184" class="LineNr">184 </span> compare val, <span class="Constant">0xc1</span> <span class="muComment"># 193</span> +<span id="L185" class="LineNr">185 </span> <span class="Delimiter">{</span> +<span id="L186" class="LineNr">186 </span> <span class="PreProc">break-if-<=</span> +<span id="L187" class="LineNr">187 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L188" class="LineNr">188 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L189" class="LineNr">189 </span> <span class="Delimiter">}</span> +<span id="L190" class="LineNr">190 </span> <span class="PreProc">loop</span> $main:word-loop +<span id="L191" class="LineNr">191 </span> <span class="Delimiter">}</span> +<span id="L192" class="LineNr">192 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L193" class="LineNr">193 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L194" class="LineNr">194 </span> <span class="PreProc">loop</span> $main:word-loop +<span id="L195" class="LineNr">195 </span> <span class="Delimiter">}</span> +<span id="L196" class="LineNr">196 </span> <span class="Delimiter">}</span> +<span id="L197" class="LineNr">197 </span> <span class="muComment"># hcl</span> +<span id="L198" class="LineNr">198 </span> <span class="Delimiter">{</span> +<span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> hcl?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"hcl"</span> +<span id="L200" class="LineNr">200 </span> compare hcl?, <span class="Constant">0</span>/false +<span id="L201" class="LineNr">201 </span> <span class="PreProc">break-if-=</span> +<span id="L202" class="LineNr">202 </span> <span class="muComment"># convert val</span> +<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> s: (handle array byte) +<span id="L204" class="LineNr">204 </span> <span class="PreProc">var</span> s2/eax: (addr handle array byte) <span class="Special"><-</span> address s +<span id="L205" class="LineNr">205 </span> <a href='../../315slice.subx.html#L5'>_slice-to-string</a> val-slice, s2 +<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> s3/eax: (addr array byte) <span class="Special"><-</span> <a href='../../120allocate.subx.html#L258'>lookup</a> *s2 +<span id="L207" class="LineNr">207 </span> <span class="muComment"># check length</span> +<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> len/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> length s3 +<span id="L209" class="LineNr">209 </span> compare len, <span class="Constant">7</span> +<span id="L210" class="LineNr">210 </span> <span class="Delimiter">{</span> +<span id="L211" class="LineNr">211 </span> <span class="PreProc">break-if-=</span> +<span id="L212" class="LineNr">212 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L213" class="LineNr">213 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L214" class="LineNr">214 </span> <span class="PreProc">loop</span> $main:word-loop +<span id="L215" class="LineNr">215 </span> <span class="Delimiter">}</span> +<span id="L216" class="LineNr">216 </span> <span class="muComment"># check first byte</span> +<span id="L217" class="LineNr">217 </span> <span class="Delimiter">{</span> +<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> c/eax: (addr byte) <span class="Special"><-</span> index s3, <span class="Constant">0</span> +<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> c2/eax: byte <span class="Special"><-</span> copy-byte *c +<span id="L220" class="LineNr">220 </span> compare c2, <span class="Constant">0x23</span>/hash +<span id="L221" class="LineNr">221 </span> <span class="PreProc">break-if-=</span> +<span id="L222" class="LineNr">222 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid2\n"</span> +<span id="L223" class="LineNr">223 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L224" class="LineNr">224 </span> <span class="PreProc">loop</span> $main:word-loop +<span id="L225" class="LineNr">225 </span> <span class="Delimiter">}</span> +<span id="L226" class="LineNr">226 </span> <span class="muComment"># check remaining bytes</span> +<span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">1</span> <span class="muComment"># skip 0</span> +<span id="L228" class="LineNr">228 </span> <span class="Delimiter">{</span> +<span id="L229" class="LineNr">229 </span> compare i, <span class="Constant">7</span> +<span id="L230" class="LineNr">230 </span> <span class="PreProc">break-if->=</span> +<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> c/eax: (addr byte) <span class="Special"><-</span> index s3, i +<span id="L232" class="LineNr">232 </span> <span class="Delimiter">{</span> +<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> c2/eax: byte <span class="Special"><-</span> copy-byte *c +<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> valid?/eax: boolean <span class="Special"><-</span> <a href='../../118parse-hex-int.subx.html#L701'>hex-digit?</a> c2 +<span id="L235" class="LineNr">235 </span> compare valid?, <span class="Constant">0</span> +<span id="L236" class="LineNr">236 </span> <span class="PreProc">loop-if-=</span> $main:word-loop +<span id="L237" class="LineNr">237 </span> <span class="Delimiter">}</span> +<span id="L238" class="LineNr">238 </span> i <span class="Special"><-</span> increment +<span id="L239" class="LineNr">239 </span> <span class="PreProc">loop</span> +<span id="L240" class="LineNr">240 </span> <span class="Delimiter">}</span> +<span id="L241" class="LineNr">241 </span> <span class="Delimiter">}</span> +<span id="L242" class="LineNr">242 </span> <span class="muComment"># ecl</span> +<span id="L243" class="LineNr">243 </span> <span class="Delimiter">{</span> +<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> ecl?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"ecl"</span> +<span id="L245" class="LineNr">245 </span> compare ecl?, <span class="Constant">0</span>/false +<span id="L246" class="LineNr">246 </span> <span class="PreProc">break-if-=</span> +<span id="L247" class="LineNr">247 </span> <span class="PreProc">var</span> amb?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"amb"</span> +<span id="L248" class="LineNr">248 </span> compare amb?, <span class="Constant">0</span>/false +<span id="L249" class="LineNr">249 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop +<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> blu?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"blu"</span> +<span id="L251" class="LineNr">251 </span> compare blu?, <span class="Constant">0</span>/false +<span id="L252" class="LineNr">252 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop +<span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> brn?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"brn"</span> +<span id="L254" class="LineNr">254 </span> compare brn?, <span class="Constant">0</span>/false +<span id="L255" class="LineNr">255 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop +<span id="L256" class="LineNr">256 </span> <span class="PreProc">var</span> gry?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"gry"</span> +<span id="L257" class="LineNr">257 </span> compare gry?, <span class="Constant">0</span>/false +<span id="L258" class="LineNr">258 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop +<span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> grn?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"grn"</span> +<span id="L260" class="LineNr">260 </span> compare grn?, <span class="Constant">0</span>/false +<span id="L261" class="LineNr">261 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop +<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> hzl?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"hzl"</span> +<span id="L263" class="LineNr">263 </span> compare hzl?, <span class="Constant">0</span>/false +<span id="L264" class="LineNr">264 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop +<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> oth?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> val-slice, <span class="Constant">"oth"</span> +<span id="L266" class="LineNr">266 </span> compare oth?, <span class="Constant">0</span>/false +<span id="L267" class="LineNr">267 </span> <span class="PreProc">loop-if-!=</span> $main:word-loop +<span id="L268" class="LineNr">268 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L269" class="LineNr">269 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L270" class="LineNr">270 </span> <span class="Delimiter">}</span> +<span id="L271" class="LineNr">271 </span> <span class="muComment"># pid</span> +<span id="L272" class="LineNr">272 </span> <span class="Delimiter">{</span> +<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> pid?/eax: boolean <span class="Special"><-</span> <a href='../../123slice.subx.html#L120'>slice-equal?</a> key-slice, <span class="Constant">"pid"</span> +<span id="L274" class="LineNr">274 </span> compare pid?, <span class="Constant">0</span>/false +<span id="L275" class="LineNr">275 </span> <span class="PreProc">break-if-=</span> +<span id="L276" class="LineNr">276 </span> <span class="muComment"># convert val</span> +<span id="L277" class="LineNr">277 </span> <span class="PreProc">var</span> s: (handle array byte) +<span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> s2/eax: (addr handle array byte) <span class="Special"><-</span> address s +<span id="L279" class="LineNr">279 </span> <a href='../../315slice.subx.html#L5'>_slice-to-string</a> val-slice, s2 +<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> s3/eax: (addr array byte) <span class="Special"><-</span> <a href='../../120allocate.subx.html#L258'>lookup</a> *s2 +<span id="L281" class="LineNr">281 </span> <span class="muComment"># check length</span> +<span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> len/eax: int <span class="Special"><-</span> length s3 +<span id="L283" class="LineNr">283 </span> compare len, <span class="Constant">9</span> +<span id="L284" class="LineNr">284 </span> <span class="Delimiter">{</span> +<span id="L285" class="LineNr">285 </span> <span class="PreProc">break-if-=</span> +<span id="L286" class="LineNr">286 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L287" class="LineNr">287 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L288" class="LineNr">288 </span> <span class="PreProc">loop</span> $main:word-loop +<span id="L289" class="LineNr">289 </span> <span class="Delimiter">}</span> +<span id="L290" class="LineNr">290 </span> <span class="muComment"># check valid decimal int</span> +<span id="L291" class="LineNr">291 </span> <span class="muComment"># parse-decimal-int-from-slice currently returns 0 on invalid parse,</span> +<span id="L292" class="LineNr">292 </span> <span class="muComment"># which isn't ideal but suffices for our purposes</span> +<span id="L293" class="LineNr">293 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> <a href='../../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> val-slice +<span id="L294" class="LineNr">294 </span> compare val, <span class="Constant">0</span> +<span id="L295" class="LineNr">295 </span> <span class="Delimiter">{</span> +<span id="L296" class="LineNr">296 </span> <span class="PreProc">break-if-></span> +<span id="L297" class="LineNr">297 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"invalid\n"</span> +<span id="L298" class="LineNr">298 </span> curr-passport-field-count <span class="Special"><-</span> copy <span class="Constant">8</span> +<span id="L299" class="LineNr">299 </span> <span class="Delimiter">}</span> +<span id="L300" class="LineNr">300 </span> <span class="Delimiter">}</span> +<span id="L301" class="LineNr">301 </span> <span class="PreProc">loop</span> +<span id="L302" class="LineNr">302 </span> <span class="Delimiter">}</span> +<span id="L303" class="LineNr">303 </span> <span class="PreProc">loop</span> +<span id="L304" class="LineNr">304 </span> <span class="Delimiter">}</span> +<span id="L305" class="LineNr">305 </span> <span class="muComment"># process final passport</span> +<span id="L306" class="LineNr">306 </span> compare curr-passport-field-count, <span class="Constant">7</span> +<span id="L307" class="LineNr">307 </span> <span class="Delimiter">{</span> +<span id="L308" class="LineNr">308 </span> <span class="PreProc">break-if-!=</span> +<span id="L309" class="LineNr">309 </span> valid-passport-count <span class="Special"><-</span> increment +<span id="L310" class="LineNr">310 </span> <span class="Delimiter">}</span> +<span id="L311" class="LineNr">311 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, valid-passport-count +<span id="L312" class="LineNr">312 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L313" class="LineNr">313 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L314" class="LineNr">314 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/advent2020/5a.mu.html b/html/linux/apps/advent2020/5a.mu.html new file mode 100644 index 00000000..3c3b535d --- /dev/null +++ b/html/linux/apps/advent2020/5a.mu.html @@ -0,0 +1,146 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2020/5a.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.Special { color: #ff6060; } +.muRegEdx { color: #af5f00; } +.LineNr { } +.CommentedCode { color: #8a8a8a; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEcx { color: #870000; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/5a.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/5a.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># <a href="https://adventofcode.com/2020/day/5">https://adventofcode.com/2020/day/5</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/advent2020/5a.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># You'll need to register to download the 'input' file for yourself.</span> +<span id="L10" class="LineNr">10 </span> +<span id="L11" class="LineNr">11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='5a.mu.html#L11'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> line-storage: (stream byte <span class="Constant">0x10</span>) <span class="muComment"># 16 bytes is enough</span> +<span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> line/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage +<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> max-seat-id/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L15" class="LineNr">15 </span> <span class="Delimiter">{</span> +<span id="L16" class="LineNr">16 </span> <span class="muComment"># read line from stdin</span> +<span id="L17" class="LineNr">17 </span> <a href='../../106stream.subx.html#L17'>clear-stream</a> line +<span id="L18" class="LineNr">18 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line +<span id="L19" class="LineNr">19 </span> <a href='../../304screen.subx.html#L147'>print-stream-to-real-screen</a> line +<span id="L20" class="LineNr">20 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> +<span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L22" class="LineNr">22 </span> compare done?, <span class="Constant">0</span>/false +<span id="L23" class="LineNr">23 </span> <span class="PreProc">break-if-!=</span> +<span id="L24" class="LineNr">24 </span> <span class="muComment"># process line</span> +<span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> seat-id/eax: int <span class="Special"><-</span> <a href='5a.mu.html#L38'>convert-from-binary</a> line +<span id="L26" class="LineNr">26 </span> compare seat-id, max-seat-id +<span id="L27" class="LineNr">27 </span> <span class="Delimiter">{</span> +<span id="L28" class="LineNr">28 </span> <span class="PreProc">break-if-<=</span> +<span id="L29" class="LineNr">29 </span> max-seat-id <span class="Special"><-</span> copy seat-id +<span id="L30" class="LineNr">30 </span> <span class="Delimiter">}</span> +<span id="L31" class="LineNr">31 </span> <span class="PreProc">loop</span> +<span id="L32" class="LineNr">32 </span> <span class="Delimiter">}</span> +<span id="L33" class="LineNr">33 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, max-seat-id +<span id="L34" class="LineNr">34 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L35" class="LineNr">35 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L36" class="LineNr">36 </span><span class="Delimiter">}</span> +<span id="L37" class="LineNr">37 </span> +<span id="L38" class="LineNr">38 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='5a.mu.html#L38'>convert-from-binary</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L39" class="LineNr">39 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L40" class="LineNr">40 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">9</span> <span class="muComment"># loop counter and also exponent</span> +<span id="L41" class="LineNr">41 </span> <span class="Delimiter">{</span> +<span id="L42" class="LineNr">42 </span> compare i, <span class="Constant">0</span> +<span id="L43" class="LineNr">43 </span> <span class="PreProc">break-if-<</span> +<span id="L44" class="LineNr">44 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> in +<span id="L45" class="LineNr">45 </span><span class="CommentedCode">#? print-string 0, "char: "</span> +<span id="L46" class="LineNr">46 </span><span class="CommentedCode">#? {</span> +<span id="L47" class="LineNr">47 </span><span class="CommentedCode">#? var c2/eax: int <- copy c</span> +<span id="L48" class="LineNr">48 </span><span class="CommentedCode">#? print-int32-hex 0, c2</span> +<span id="L49" class="LineNr">49 </span><span class="CommentedCode">#? }</span> +<span id="L50" class="LineNr">50 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L51" class="LineNr">51 </span> <span class="PreProc">var</span> bit/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L52" class="LineNr">52 </span> <span class="Delimiter">{</span> +<span id="L53" class="LineNr">53 </span> compare c, <span class="Constant">0x42</span>/B +<span id="L54" class="LineNr">54 </span> <span class="PreProc">break-if-!=</span> +<span id="L55" class="LineNr">55 </span> bit <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L56" class="LineNr">56 </span> <span class="Delimiter">}</span> +<span id="L57" class="LineNr">57 </span> <span class="Delimiter">{</span> +<span id="L58" class="LineNr">58 </span> compare c, <span class="Constant">0x52</span>/R +<span id="L59" class="LineNr">59 </span> <span class="PreProc">break-if-!=</span> +<span id="L60" class="LineNr">60 </span> bit <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L61" class="LineNr">61 </span> <span class="Delimiter">}</span> +<span id="L62" class="LineNr">62 </span><span class="CommentedCode">#? print-string 0, "bit: "</span> +<span id="L63" class="LineNr">63 </span><span class="CommentedCode">#? print-int32-decimal 0, bit</span> +<span id="L64" class="LineNr">64 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L65" class="LineNr">65 </span> <span class="PreProc">var</span> bit-value/eax: int <span class="Special"><-</span> <a href='../../406int32.mu.html#L5'>repeated-shift-left</a> bit, i +<span id="L66" class="LineNr">66 </span><span class="CommentedCode">#? print-string 0, "bit value: "</span> +<span id="L67" class="LineNr">67 </span><span class="CommentedCode">#? print-int32-decimal 0, bit-value</span> +<span id="L68" class="LineNr">68 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L69" class="LineNr">69 </span> result <span class="Special"><-</span> add bit-value +<span id="L70" class="LineNr">70 </span><span class="CommentedCode">#? print-string 0, "result: "</span> +<span id="L71" class="LineNr">71 </span><span class="CommentedCode">#? print-int32-decimal 0, result</span> +<span id="L72" class="LineNr">72 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L73" class="LineNr">73 </span> i <span class="Special"><-</span> decrement +<span id="L74" class="LineNr">74 </span> <span class="PreProc">loop</span> +<span id="L75" class="LineNr">75 </span> <span class="Delimiter">}</span> +<span id="L76" class="LineNr">76 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, result +<span id="L77" class="LineNr">77 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L78" class="LineNr">78 </span> <span class="PreProc">return</span> result +<span id="L79" class="LineNr">79 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/advent2020/5b.mu.html b/html/linux/apps/advent2020/5b.mu.html new file mode 100644 index 00000000..b5e1892f --- /dev/null +++ b/html/linux/apps/advent2020/5b.mu.html @@ -0,0 +1,148 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/advent2020/5b.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/5b.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/advent2020/5b.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># <a href="https://adventofcode.com/2020/day/5">https://adventofcode.com/2020/day/5</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/advent2020/5b.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf < input</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># You'll need to register to download the 'input' file for yourself.</span> +<span id="L10" class="LineNr">10 </span> +<span id="L11" class="LineNr">11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='5b.mu.html#L11'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> pass-storage: (array int <span class="Constant">0x400</span>) <span class="muComment"># 1k ints</span> +<span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> pass/<span class="muRegEsi">esi</span>: (addr array int) <span class="Special"><-</span> address pass-storage +<span id="L14" class="LineNr">14 </span> <span class="muComment"># phase 1: populate pass array</span> +<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> line-storage: (stream byte <span class="Constant">0x10</span>) <span class="muComment"># 16 bytes is enough</span> +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> line/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special"><-</span> address line-storage +<span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span> +<span id="L18" class="LineNr">18 </span> <span class="muComment"># read line from stdin</span> +<span id="L19" class="LineNr">19 </span> <a href='../../106stream.subx.html#L17'>clear-stream</a> line +<span id="L20" class="LineNr">20 </span> <a href='../../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> line +<span id="L21" class="LineNr">21 </span> <span class="muComment"># if line is empty (not even a newline), quit</span> +<span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../../309stream.subx.html#L6'>stream-empty?</a> line +<span id="L23" class="LineNr">23 </span> compare done?, <span class="Constant">0</span>/false +<span id="L24" class="LineNr">24 </span> <span class="PreProc">break-if-!=</span> +<span id="L25" class="LineNr">25 </span> <span class="muComment"># process line</span> +<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> seat-id/eax: int <span class="Special"><-</span> <a href='5b.mu.html#L57'>convert-from-binary</a> line +<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> dest/eax: (addr int) <span class="Special"><-</span> index pass, seat-id +<span id="L28" class="LineNr">28 </span> copy-to *dest, <span class="Constant">1</span> +<span id="L29" class="LineNr">29 </span> <span class="PreProc">loop</span> +<span id="L30" class="LineNr">30 </span> <span class="Delimiter">}</span> +<span id="L31" class="LineNr">31 </span> <span class="muComment"># phase 2: skip empty seats</span> +<span id="L32" class="LineNr">32 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L33" class="LineNr">33 </span> <span class="Delimiter">{</span> +<span id="L34" class="LineNr">34 </span> compare i, <span class="Constant">0x400</span> +<span id="L35" class="LineNr">35 </span> <span class="PreProc">break-if->=</span> +<span id="L36" class="LineNr">36 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> index pass, i +<span id="L37" class="LineNr">37 </span> compare *src, <span class="Constant">0</span> +<span id="L38" class="LineNr">38 </span> <span class="PreProc">break-if-!=</span> +<span id="L39" class="LineNr">39 </span> i <span class="Special"><-</span> increment +<span id="L40" class="LineNr">40 </span> <span class="PreProc">loop</span> +<span id="L41" class="LineNr">41 </span> <span class="Delimiter">}</span> +<span id="L42" class="LineNr">42 </span> <span class="muComment"># phase 3: skip non-empty seats</span> +<span id="L43" class="LineNr">43 </span> <span class="Delimiter">{</span> +<span id="L44" class="LineNr">44 </span> compare i, <span class="Constant">0x400</span> +<span id="L45" class="LineNr">45 </span> <span class="PreProc">break-if->=</span> +<span id="L46" class="LineNr">46 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> index pass, i +<span id="L47" class="LineNr">47 </span> compare *src, <span class="Constant">0</span> +<span id="L48" class="LineNr">48 </span> <span class="PreProc">break-if-=</span> +<span id="L49" class="LineNr">49 </span> i <span class="Special"><-</span> increment +<span id="L50" class="LineNr">50 </span> <span class="PreProc">loop</span> +<span id="L51" class="LineNr">51 </span> <span class="Delimiter">}</span> +<span id="L52" class="LineNr">52 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, i +<span id="L53" class="LineNr">53 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"\n"</span> +<span id="L54" class="LineNr">54 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L55" class="LineNr">55 </span><span class="Delimiter">}</span> +<span id="L56" class="LineNr">56 </span> +<span id="L57" class="LineNr">57 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='5b.mu.html#L57'>convert-from-binary</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L58" class="LineNr">58 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L59" class="LineNr">59 </span> <span class="PreProc">var</span> i/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">9</span> <span class="muComment"># loop counter and also exponent</span> +<span id="L60" class="LineNr">60 </span> <span class="Delimiter">{</span> +<span id="L61" class="LineNr">61 </span> compare i, <span class="Constant">0</span> +<span id="L62" class="LineNr">62 </span> <span class="PreProc">break-if-<</span> +<span id="L63" class="LineNr">63 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../../112read-byte.subx.html#L273'>read-byte</a> in +<span id="L64" class="LineNr">64 </span> <span class="PreProc">var</span> bit/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L65" class="LineNr">65 </span> <span class="Delimiter">{</span> +<span id="L66" class="LineNr">66 </span> compare c, <span class="Constant">0x42</span>/B +<span id="L67" class="LineNr">67 </span> <span class="PreProc">break-if-!=</span> +<span id="L68" class="LineNr">68 </span> bit <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L69" class="LineNr">69 </span> <span class="Delimiter">}</span> +<span id="L70" class="LineNr">70 </span> <span class="Delimiter">{</span> +<span id="L71" class="LineNr">71 </span> compare c, <span class="Constant">0x52</span>/R +<span id="L72" class="LineNr">72 </span> <span class="PreProc">break-if-!=</span> +<span id="L73" class="LineNr">73 </span> bit <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L74" class="LineNr">74 </span> <span class="Delimiter">}</span> +<span id="L75" class="LineNr">75 </span> <span class="PreProc">var</span> bit-value/eax: int <span class="Special"><-</span> <a href='../../406int32.mu.html#L5'>repeated-shift-left</a> bit, i +<span id="L76" class="LineNr">76 </span> result <span class="Special"><-</span> add bit-value +<span id="L77" class="LineNr">77 </span> i <span class="Special"><-</span> decrement +<span id="L78" class="LineNr">78 </span> <span class="PreProc">loop</span> +<span id="L79" class="LineNr">79 </span> <span class="Delimiter">}</span> +<span id="L80" class="LineNr">80 </span> <span class="PreProc">return</span> result +<span id="L81" class="LineNr">81 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/arith.mu.html b/html/linux/apps/arith.mu.html index 7cd2e5c9..fb6a9194 100644 --- a/html/linux/arith.mu.html +++ b/html/linux/apps/arith.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/arith.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/arith.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.muRegEdx { color: #af5f00; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } .Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } -.muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } -.CommentedCode { color: #8a8a8a; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -60,7 +60,7 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/arith.mu'>https://github.com/akkartik/mu/blob/main/linux/arith.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/arith.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/arith.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Integer arithmetic using conventional precedence.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> @@ -71,7 +71,7 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span><span class="muComment"># No division yet.</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> <span id="L9" class="LineNr"> 9 </span><span class="muComment"># To build:</span> -<span id="L10" class="LineNr"> 10 </span><span class="muComment"># $ ./translate arith.mu</span> +<span id="L10" class="LineNr"> 10 </span><span class="muComment"># $ ./translate apps/arith.mu</span> <span id="L11" class="LineNr"> 11 </span><span class="muComment">#</span> <span id="L12" class="LineNr"> 12 </span><span class="muComment"># Example session:</span> <span id="L13" class="LineNr"> 13 </span><span class="muComment"># $ ./a.elf</span> @@ -96,26 +96,26 @@ if ('onhashchange' in window) { <span id="L32" class="LineNr"> 32 </span><span class="muComment"># Error handling is non-existent. This is just a prototype.</span> <span id="L33" class="LineNr"> 33 </span> <span id="L34" class="LineNr"> 34 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L34'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L35" class="LineNr"> 35 </span> <a href='305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a> +<span id="L35" class="LineNr"> 35 </span> <a href='../305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a> <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> look/<span class="muRegEsi">esi</span>: grapheme <span class="Special"><-</span> copy <span class="Constant">0</span> <span class="muComment"># lookahead</span> <span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span class="muComment"># result of each expression</span> -<span id="L38" class="LineNr"> 38 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <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#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"press ctrl-c or ctrl-d to exit\n"</span> <span id="L39" class="LineNr"> 39 </span> <span class="muComment"># 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="muComment"># print prompt</span> -<span id="L42" class="LineNr"> 42 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"> "</span> +<span id="L42" class="LineNr"> 42 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"> "</span> <span id="L43" class="LineNr"> 43 </span> <span class="muComment"># read and eval</span> <span id="L44" class="LineNr"> 44 </span> n, look <span class="Special"><-</span> <a href='arith.mu.html#L58'>simplify</a> <span class="muComment"># we explicitly thread 'look' everywhere</span> <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># 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="muComment"># print</span> -<span id="L49" class="LineNr"> 49 </span> <a href='405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, n -<span id="L50" class="LineNr"> 50 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> +<span id="L49" class="LineNr"> 49 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, n +<span id="L50" class="LineNr"> 50 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> <span id="L51" class="LineNr"> 51 </span> <span class="muComment">#</span> <span id="L52" class="LineNr"> 52 </span> <span class="PreProc">loop</span> <span id="L53" class="LineNr"> 53 </span> <span class="Delimiter">}</span> -<span id="L54" class="LineNr"> 54 </span> <a href='305keyboard.subx.html#L72'>enable-keyboard-type-mode</a> +<span id="L54" class="LineNr"> 54 </span> <a href='../305keyboard.subx.html#L72'>enable-keyboard-type-mode</a> <span id="L55" class="LineNr"> 55 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L56" class="LineNr"> 56 </span><span class="Delimiter">}</span> <span id="L57" class="LineNr"> 57 </span> @@ -276,13 +276,13 @@ if ('onhashchange' in window) { <span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> look/<span class="muRegEsi">esi</span>: grapheme <span class="Special"><-</span> copy _look <span id="L213" class="LineNr">213 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L214" class="LineNr">214 </span> <span class="Delimiter">{</span> -<span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> first-digit/eax: int <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> look +<span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> first-digit/eax: int <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L405'>to-decimal-digit</a> look <span id="L216" class="LineNr">216 </span> result <span class="Special"><-</span> copy first-digit <span id="L217" class="LineNr">217 </span> <span class="Delimiter">}</span> <span id="L218" class="LineNr">218 </span> <span class="Delimiter">{</span> <span id="L219" class="LineNr">219 </span> look <span class="Special"><-</span> <a href='arith.mu.html#L248'>get-char</a> <span id="L220" class="LineNr">220 </span> <span class="muComment"># done?</span> -<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> digit?/eax: boolean <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L306'>decimal-digit?</a> look +<span id="L221" class="LineNr">221 </span> <span class="PreProc">var</span> digit?/eax: boolean <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L306'>decimal-digit?</a> look <span id="L222" class="LineNr">222 </span> compare digit?, <span class="Constant">0</span>/false <span id="L223" class="LineNr">223 </span> <span class="PreProc">break-if-=</span> <span id="L224" class="LineNr">224 </span> <span class="muComment"># result *= 10</span> @@ -291,7 +291,7 @@ if ('onhashchange' in window) { <span id="L227" class="LineNr">227 </span> result <span class="Special"><-</span> multiply ten <span id="L228" class="LineNr">228 </span> <span class="Delimiter">}</span> <span id="L229" class="LineNr">229 </span> <span class="muComment"># result += digit(look)</span> -<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> digit/eax: int <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> look +<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> digit/eax: int <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L405'>to-decimal-digit</a> look <span id="L231" class="LineNr">231 </span> result <span class="Special"><-</span> add digit <span id="L232" class="LineNr">232 </span> <span class="PreProc">loop</span> <span id="L233" class="LineNr">233 </span> <span class="Delimiter">}</span> @@ -310,13 +310,13 @@ if ('onhashchange' in window) { <span id="L246" class="LineNr">246 </span><span class="Delimiter">}</span> <span id="L247" class="LineNr">247 </span> <span id="L248" class="LineNr">248 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L248'>get-char</a></span><span class="PreProc"> -> </span>_/<span class="muRegEsi">esi</span>: grapheme <span class="Delimiter">{</span> -<span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> look/eax: grapheme <span class="Special"><-</span> <a href='305keyboard.subx.html#L132'>read-key-from-real-keyboard</a> -<span id="L250" class="LineNr">250 </span> <a href='304screen.subx.html#L161'>print-grapheme-to-real-screen</a> look +<span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> look/eax: grapheme <span class="Special"><-</span> <a href='../305keyboard.subx.html#L132'>read-key-from-real-keyboard</a> +<span id="L250" class="LineNr">250 </span> <a href='../304screen.subx.html#L161'>print-grapheme-to-real-screen</a> look <span id="L251" class="LineNr">251 </span> compare look, <span class="Constant">4</span> <span id="L252" class="LineNr">252 </span> <span class="Delimiter">{</span> <span id="L253" class="LineNr">253 </span> <span class="PreProc">break-if-!=</span> -<span id="L254" class="LineNr">254 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"^D\n"</span> -<span id="L255" class="LineNr">255 </span> <a href='000init.subx.html#L18'>syscall_exit</a> +<span id="L254" class="LineNr">254 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"^D\n"</span> +<span id="L255" class="LineNr">255 </span> <a href='../000init.subx.html#L18'>syscall_exit</a> <span id="L256" class="LineNr">256 </span> <span class="Delimiter">}</span> <span id="L257" class="LineNr">257 </span> <span class="PreProc">return</span> look <span id="L258" class="LineNr">258 </span><span class="Delimiter">}</span> diff --git a/html/linux/apps/crenshaw2-1.subx.html b/html/linux/apps/crenshaw2-1.subx.html new file mode 100644 index 00000000..191ff721 --- /dev/null +++ b/html/linux/apps/crenshaw2-1.subx.html @@ -0,0 +1,621 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/crenshaw2-1.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } +.subxH1Comment { color: #005faf; text-decoration: underline; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/crenshaw2-1.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/crenshaw2-1.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Port of <a href="https://github.com/akkartik/crenshaw/blob/master/tutor2.1.pas">https://github.com/akkartik/crenshaw/blob/master/tutor2.1.pas</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment"># which corresponds to the section "single digits" in <a href="https://compilers.iecc.com/crenshaw/tutor2.txt">https://compilers.iecc.com/crenshaw/tutor2.txt</a></span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># except that we support hex digits.</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># To run:</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># $ bootstrap/bootstrap translate [01]*.subx apps/crenshaw2-1.subx -o crenshaw2-1</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo '3' |bootstrap/bootstrap run crenshaw2-1</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># Expected output:</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># # syscall(exit, 3)</span> +<span id="L10" class="LineNr"> 10 </span><span class="subxComment"># bb/copy-to-ebx 3/imm32</span> +<span id="L11" class="LineNr"> 11 </span><span class="subxComment"># b8/copy-to-eax 1/imm32/exit</span> +<span id="L12" class="LineNr"> 12 </span><span class="subxComment"># cd/syscall 0x80/imm8</span> +<span id="L13" class="LineNr"> 13 </span><span class="subxComment">#</span> +<span id="L14" class="LineNr"> 14 </span><span class="subxComment"># To run the generated output:</span> +<span id="L15" class="LineNr"> 15 </span><span class="subxComment"># $ echo '3' |bootstrap/bootstrap run crenshaw2-1 > z1.subx</span> +<span id="L16" class="LineNr"> 16 </span><span class="subxComment"># $ bootstrap/bootstrap translate z1.subx -o z1</span> +<span id="L17" class="LineNr"> 17 </span><span class="subxComment"># $ bootstrap/bootstrap run z1</span> +<span id="L18" class="LineNr"> 18 </span><span class="subxComment"># $ echo $?</span> +<span id="L19" class="LineNr"> 19 </span><span class="subxComment"># 3</span> +<span id="L20" class="LineNr"> 20 </span><span class="subxComment">#</span> +<span id="L21" class="LineNr"> 21 </span><span class="subxComment"># Stdin must contain just a single hex digit. Other input will print an error:</span> +<span id="L22" class="LineNr"> 22 </span><span class="subxComment"># $ echo 'xyz' |bootstrap/bootstrap run crenshaw2-1</span> +<span id="L23" class="LineNr"> 23 </span><span class="subxComment"># Error: integer expected</span> +<span id="L24" class="LineNr"> 24 </span><span class="subxComment">#</span> +<span id="L25" class="LineNr"> 25 </span><span class="subxComment"># Names in this file sometimes follow Crenshaw's original rather than my usual</span> +<span id="L26" class="LineNr"> 26 </span><span class="subxComment"># naming conventions.</span> +<span id="L27" class="LineNr"> 27 </span> +<span id="L28" class="LineNr"> 28 </span>== code +<span id="L29" class="LineNr"> 29 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L30" class="LineNr"> 30 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L31" class="LineNr"> 31 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L32" class="LineNr"> 32 </span> +<span id="L33" class="LineNr"> 33 </span><span class="SpecialChar">Entry</span>: <span class="subxComment"># run tests if necessary, call 'compile' if not</span> +<span id="L34" class="LineNr"> 34 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L35" class="LineNr"> 35 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L36" class="LineNr"> 36 </span> +<span id="L37" class="LineNr"> 37 </span> <span class="subxComment"># initialize heap</span> +<span id="L38" class="LineNr"> 38 </span> <span class="subxS1Comment"># . Heap = new-segment(Heap-size)</span> +<span id="L39" class="LineNr"> 39 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L40" class="LineNr"> 40 </span> 68/push <span class="SpecialChar"><a href='../120allocate.subx.html#L27'>Heap</a></span>/imm32 +<span id="L41" class="LineNr"> 41 </span> ff 6/subop/push 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="SpecialChar"><a href='../120allocate.subx.html#L34'>Heap-size</a></span>/disp32 <span class="subxComment"># push *Heap-size</span> +<span id="L42" class="LineNr"> 42 </span> <span class="subxS2Comment"># . . call</span> +<span id="L43" class="LineNr"> 43 </span> e8/call <a href='../104new-segment.subx.html#L40'>new-segment</a>/disp32 +<span id="L44" class="LineNr"> 44 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L45" class="LineNr"> 45 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L46" class="LineNr"> 46 </span> +<span id="L47" class="LineNr"> 47 </span> <span class="subxH1Comment"># - if argc > 1 and argv[1] == "test", then return run_tests()</span> +<span id="L48" class="LineNr"> 48 </span> <span class="subxComment"># if (argc <= 1) goto run-main</span> +<span id="L49" class="LineNr"> 49 </span> 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/disp8 1/imm32 <span class="subxComment"># compare *ebp</span> +<span id="L50" class="LineNr"> 50 </span> 7e/jump-if-<= $run-main/disp8 +<span id="L51" class="LineNr"> 51 </span> <span class="subxComment"># if (!kernel-string-equal?(argv[1], "test")) goto run-main</span> +<span id="L52" class="LineNr"> 52 </span> <span class="subxS1Comment"># . eax = kernel-string-equal?(argv[1], "test")</span> +<span id="L53" class="LineNr"> 53 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L54" class="LineNr"> 54 </span> 68/push <span class="Constant">"test"</span>/imm32 +<span id="L55" class="LineNr"> 55 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L56" class="LineNr"> 56 </span> <span class="subxS2Comment"># . . call</span> +<span id="L57" class="LineNr"> 57 </span> e8/call <a href='../103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a>/disp32 +<span id="L58" class="LineNr"> 58 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L59" class="LineNr"> 59 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L60" class="LineNr"> 60 </span> <span class="subxS1Comment"># . if (eax == false) goto run-main</span> +<span id="L61" class="LineNr"> 61 </span> 3d/compare-eax-and 0/imm32/false +<span id="L62" class="LineNr"> 62 </span> 74/jump-if-= $run-main/disp8 +<span id="L63" class="LineNr"> 63 </span> <span class="subxComment"># run-tests()</span> +<span id="L64" class="LineNr"> 64 </span> e8/call run-tests/disp32 +<span id="L65" class="LineNr"> 65 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> +<span id="L66" class="LineNr"> 66 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../102test.subx.html#L89'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> +<span id="L67" class="LineNr"> 67 </span> eb/jump $main:end/disp8 +<span id="L68" class="LineNr"> 68 </span><span class="Constant">$run-main</span>: +<span id="L69" class="LineNr"> 69 </span> <span class="subxH1Comment"># - otherwise read a program from stdin and emit its translation to stdout</span> +<span id="L70" class="LineNr"> 70 </span> <span class="subxS1Comment"># . compile(Stdin, 1/stdout, 2/stderr, ed)</span> +<span id="L71" class="LineNr"> 71 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L72" class="LineNr"> 72 </span> 68/push 0/imm32/exit-descriptor +<span id="L73" class="LineNr"> 73 </span> 68/push 2/imm32/stderr +<span id="L74" class="LineNr"> 74 </span> 68/push 1/imm32/stdout +<span id="L75" class="LineNr"> 75 </span> 68/push <span class="SpecialChar"><a href='../112read-byte.subx.html#L14'>Stdin</a></span>/imm32 +<span id="L76" class="LineNr"> 76 </span> <span class="subxS2Comment"># . . call</span> +<span id="L77" class="LineNr"> 77 </span> e8/call <a href='crenshaw2-1.subx.html#L86'>compile</a>/disp32 +<span id="L78" class="LineNr"> 78 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L79" class="LineNr"> 79 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L80" class="LineNr"> 80 </span> <span class="subxComment"># syscall(exit, 0)</span> +<span id="L81" class="LineNr"> 81 </span> bb/copy-to-ebx 0/imm32 +<span id="L82" class="LineNr"> 82 </span><span class="Constant">$main:end</span>: +<span id="L83" class="LineNr"> 83 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L84" class="LineNr"> 84 </span> +<span id="L85" class="LineNr"> 85 </span><span class="subxComment"># the main entry point</span> +<span id="L86" class="LineNr"> 86 </span><span class="subxFunction">compile</span>: <span class="subxComment"># in: (addr buffered-file), out: fd or (addr stream byte), err: fd or (addr stream byte), ed: (addr exit-descriptor)</span> +<span id="L87" class="LineNr"> 87 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L88" class="LineNr"> 88 </span> 55/push-ebp +<span id="L89" class="LineNr"> 89 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L90" class="LineNr"> 90 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L91" class="LineNr"> 91 </span> 50/push-eax +<span id="L92" class="LineNr"> 92 </span> 51/push-ecx +<span id="L93" class="LineNr"> 93 </span> <span class="subxComment"># prime the pump</span> +<span id="L94" class="LineNr"> 94 </span> <span class="subxS1Comment"># . Look = get-char(in)</span> +<span id="L95" class="LineNr"> 95 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L96" class="LineNr"> 96 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L97" class="LineNr"> 97 </span> <span class="subxS2Comment"># . . call</span> +<span id="L98" class="LineNr"> 98 </span> e8/call <a href='crenshaw2-1.subx.html#L508'>get-char</a>/disp32 +<span id="L99" class="LineNr"> 99 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L100" class="LineNr">100 </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="L101" class="LineNr">101 </span> <span class="subxComment"># var num/ecx: (stream byte 7)</span> +<span id="L102" class="LineNr">102 </span> <span class="subxComment"># Numbers can be 32 bits or 8 hex bytes long. One of them will be in 'Look', so we need space for 7 bytes.</span> +<span id="L103" class="LineNr">103 </span> <span class="subxComment"># Sizing the stream just right buys us overflow-handling for free inside 'get-num'.</span> +<span id="L104" class="LineNr">104 </span> <span class="subxComment"># Add 12 bytes for 'read', 'write' and 'size' fields, for a total of 19 bytes, or 0x13 in hex.</span> +<span id="L105" class="LineNr">105 </span> <span class="subxComment"># The stack pointer is no longer aligned, so dump_stack() can be misleading past this point.</span> +<span id="L106" class="LineNr">106 </span> 81 5/subop/subtract 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> 0x13/imm32 <span class="subxComment"># subtract from esp</span> +<span id="L107" class="LineNr">107 </span> 89/copy 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ecx</span> +<span id="L108" class="LineNr">108 </span> <span class="subxComment"># initialize the stream</span> +<span id="L109" class="LineNr">109 </span> <span class="subxS1Comment"># . num->size = 7</span> +<span id="L110" class="LineNr">110 </span> c7 0/subop/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 7/imm32 <span class="subxComment"># copy to *(ecx+8)</span> +<span id="L111" class="LineNr">111 </span> <span class="subxS1Comment"># . clear-stream(num)</span> +<span id="L112" class="LineNr">112 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L113" class="LineNr">113 </span> 51/push-ecx +<span id="L114" class="LineNr">114 </span> <span class="subxS2Comment"># . . call</span> +<span id="L115" class="LineNr">115 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L116" class="LineNr">116 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L117" class="LineNr">117 </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="L118" class="LineNr">118 </span> <span class="subxComment"># read a digit from 'in' into 'num'</span> +<span id="L119" class="LineNr">119 </span> <span class="subxS1Comment"># . get-num(in, num, err, ed)</span> +<span id="L120" class="LineNr">120 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L121" class="LineNr">121 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x14/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+20)</span> +<span id="L122" class="LineNr">122 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+16)</span> +<span id="L123" class="LineNr">123 </span> 51/push-ecx/num +<span id="L124" class="LineNr">124 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L125" class="LineNr">125 </span> <span class="subxS2Comment"># . . call</span> +<span id="L126" class="LineNr">126 </span> e8/call <a href='crenshaw2-1.subx.html#L187'>get-num</a>/disp32 +<span id="L127" class="LineNr">127 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L128" class="LineNr">128 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L129" class="LineNr">129 </span> <span class="subxComment"># render 'num' into the following template on 'out':</span> +<span id="L130" class="LineNr">130 </span> <span class="subxComment"># bb/copy-to-ebx _num_</span> +<span id="L131" class="LineNr">131 </span> <span class="subxComment"># b8/copy-to-eax 1/imm32/exit</span> +<span id="L132" class="LineNr">132 </span> <span class="subxComment"># cd/syscall 0x80/imm8</span> +<span id="L133" class="LineNr">133 </span> <span class="subxComment">#</span> +<span id="L134" class="LineNr">134 </span> <span class="subxS1Comment"># . write(out, "bb/copy-to-ebx ")</span> +<span id="L135" class="LineNr">135 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L136" class="LineNr">136 </span> 68/push <span class="Constant">"bb/copy-to-ebx "</span>/imm32 +<span id="L137" class="LineNr">137 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L138" class="LineNr">138 </span> <span class="subxS2Comment"># . . call</span> +<span id="L139" class="LineNr">139 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L140" class="LineNr">140 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L141" class="LineNr">141 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L142" class="LineNr">142 </span> <span class="subxS1Comment"># . write-stream(out, num)</span> +<span id="L143" class="LineNr">143 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L144" class="LineNr">144 </span> 51/push-ecx/num +<span id="L145" class="LineNr">145 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L146" class="LineNr">146 </span> <span class="subxS2Comment"># . . call</span> +<span id="L147" class="LineNr">147 </span> e8/call <a href='../113write-stream.subx.html#L17'>write-stream</a>/disp32 +<span id="L148" class="LineNr">148 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L149" class="LineNr">149 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L150" class="LineNr">150 </span> <span class="subxS1Comment"># . write(out, Newline)</span> +<span id="L151" class="LineNr">151 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L152" class="LineNr">152 </span> 68/push <span class="SpecialChar"><a href='../102test.subx.html#L82'>Newline</a></span>/imm32 +<span id="L153" class="LineNr">153 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L154" class="LineNr">154 </span> <span class="subxS2Comment"># . . call</span> +<span id="L155" class="LineNr">155 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L156" class="LineNr">156 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L157" class="LineNr">157 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L158" class="LineNr">158 </span> <span class="subxS1Comment"># . write(out, "b8/copy-to-eax 1/imm32/exit\n")</span> +<span id="L159" class="LineNr">159 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L160" class="LineNr">160 </span> 68/push <span class="Constant">"b8/copy-to-eax 1/imm32/exit\n"</span>/imm32 +<span id="L161" class="LineNr">161 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L162" class="LineNr">162 </span> <span class="subxS2Comment"># . . call</span> +<span id="L163" class="LineNr">163 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L164" class="LineNr">164 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L165" class="LineNr">165 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L166" class="LineNr">166 </span> <span class="subxS1Comment"># . write(out, "cd/syscall 0x80/imm8\n")</span> +<span id="L167" class="LineNr">167 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L168" class="LineNr">168 </span> 68/push <span class="Constant">"cd/syscall 0x80/imm8\n"</span>/imm32 +<span id="L169" class="LineNr">169 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L170" class="LineNr">170 </span> <span class="subxS2Comment"># . . call</span> +<span id="L171" class="LineNr">171 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L172" class="LineNr">172 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L173" class="LineNr">173 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L174" class="LineNr">174 </span><span class="Constant">$compile:end</span>: +<span id="L175" class="LineNr">175 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L176" class="LineNr">176 </span> 59/pop-to-ecx +<span id="L177" class="LineNr">177 </span> 58/pop-to-eax +<span id="L178" class="LineNr">178 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L179" class="LineNr">179 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L180" class="LineNr">180 </span> 5d/pop-to-ebp +<span id="L181" class="LineNr">181 </span> c3/return +<span id="L182" class="LineNr">182 </span> +<span id="L183" class="LineNr">183 </span><span class="subxComment"># Read a single digit into 'out'. Abort if there are none, or if there is no</span> +<span id="L184" class="LineNr">184 </span><span class="subxComment"># space in 'out'.</span> +<span id="L185" class="LineNr">185 </span><span class="subxComment"># Input comes from the global variable 'Look' (first byte) and the argument</span> +<span id="L186" class="LineNr">186 </span><span class="subxComment"># 'in' (rest). We leave the next byte from 'in' into 'Look' on exit.</span> +<span id="L187" class="LineNr">187 </span><span class="subxFunction">get-num</span>: <span class="subxComment"># in: (addr buffered-file), out: (addr stream byte), err: fd or (addr stream byte), ed: (addr exit-descriptor)</span> +<span id="L188" class="LineNr">188 </span> <span class="subxComment"># pseudocode:</span> +<span id="L189" class="LineNr">189 </span> <span class="subxComment"># if (!digit?(Look)) expected(ed, err, "integer")</span> +<span id="L190" class="LineNr">190 </span> <span class="subxComment"># if out->write >= out->size</span> +<span id="L191" class="LineNr">191 </span> <span class="subxComment"># write(err, "Error: too many digits in number\n")</span> +<span id="L192" class="LineNr">192 </span> <span class="subxComment"># stop(ed, 1)</span> +<span id="L193" class="LineNr">193 </span> <span class="subxComment"># out->data[out->write] = LSB(Look)</span> +<span id="L194" class="LineNr">194 </span> <span class="subxComment"># ++out->write</span> +<span id="L195" class="LineNr">195 </span> <span class="subxComment"># Look = get-char(in)</span> +<span id="L196" class="LineNr">196 </span> <span class="subxComment">#</span> +<span id="L197" class="LineNr">197 </span> <span class="subxComment"># registers:</span> +<span id="L198" class="LineNr">198 </span> <span class="subxComment"># in: esi</span> +<span id="L199" class="LineNr">199 </span> <span class="subxComment"># out: edi</span> +<span id="L200" class="LineNr">200 </span> <span class="subxComment"># out->write: ecx (cached copy; need to keep in sync)</span> +<span id="L201" class="LineNr">201 </span> <span class="subxComment"># out->size: edx</span> +<span id="L202" class="LineNr">202 </span> <span class="subxComment"># temporaries: eax, ebx</span> +<span id="L203" class="LineNr">203 </span> <span class="subxComment"># We can't allocate Look to a register because it gets written implicitly in</span> +<span id="L204" class="LineNr">204 </span> <span class="subxComment"># get-char in each iteration of the loop. (Thereby demonstrating that it's</span> +<span id="L205" class="LineNr">205 </span> <span class="subxComment"># not the right interface for us. But we'll keep it just to follow Crenshaw.)</span> +<span id="L206" class="LineNr">206 </span> <span class="subxComment">#</span> +<span id="L207" class="LineNr">207 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L208" class="LineNr">208 </span> 55/push-ebp +<span id="L209" class="LineNr">209 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L210" class="LineNr">210 </span> <span class="subxH1Comment"># - if (digit?(Look)) expected(ed, err, "integer")</span> +<span id="L211" class="LineNr">211 </span> <span class="subxS1Comment"># . eax = digit?(Look)</span> +<span id="L212" class="LineNr">212 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L213" class="LineNr">213 </span> ff 6/subop/push 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="SpecialChar"><a href='crenshaw2-1.subx.html#L553'>Look</a></span>/disp32 <span class="Normal"> . </span> <span class="subxComment"># push *Look</span> +<span id="L214" class="LineNr">214 </span> <span class="subxS2Comment"># . . call</span> +<span id="L215" class="LineNr">215 </span> e8/call <a href='crenshaw2-1.subx.html#L531'>digit?</a>/disp32 +<span id="L216" class="LineNr">216 </span> <span class="subxS2Comment"># . . discard args</span> +<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: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 +<span id="L224" class="LineNr">224 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+16)</span> +<span id="L225" class="LineNr">225 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x14/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+20)</span> +<span id="L226" class="LineNr">226 </span> <span class="subxS2Comment"># . . call</span> +<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: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 +<span id="L234" class="LineNr">234 </span> 51/push-ecx +<span id="L235" class="LineNr">235 </span> 52/push-edx +<span id="L236" class="LineNr">236 </span> 53/push-ebx +<span id="L237" class="LineNr">237 </span> 56/push-esi +<span id="L238" class="LineNr">238 </span> 57/push-edi +<span id="L239" class="LineNr">239 </span> <span class="subxComment"># read necessary variables to registers</span> +<span id="L240" class="LineNr">240 </span> <span class="subxComment"># esi = in</span> +<span id="L241" class="LineNr">241 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/esi 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to esi</span> +<span id="L242" class="LineNr">242 </span> <span class="subxComment"># edi = out</span> +<span id="L243" class="LineNr">243 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 7/r32/edi 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+12) to edi</span> +<span id="L244" class="LineNr">244 </span> <span class="subxComment"># ecx = out->write</span> +<span id="L245" class="LineNr">245 </span> 8b/copy 0/mod/indirect 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *edi to ecx</span> +<span id="L246" class="LineNr">246 </span> <span class="subxComment"># edx = out->size</span> +<span id="L247" class="LineNr">247 </span> 8b/copy 1/mod/*+disp8 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(edi+8) to edx</span> +<span id="L248" class="LineNr">248 </span><span class="Constant">$get-num:loop</span>: +<span id="L249" class="LineNr">249 </span> <span class="subxComment"># if (out->write >= out->size) error</span> +<span id="L250" class="LineNr">250 </span> 39/compare 3/mod/direct 2/rm32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># compare edx with ecx</span> +<span id="L251" class="LineNr">251 </span> 7d/jump-if-< $get-num:stage2/disp8 +<span id="L252" class="LineNr">252 </span> <span class="subxS1Comment"># . error(ed, err, msg) # TODO: show full number</span> +<span id="L253" class="LineNr">253 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L254" class="LineNr">254 </span> 68/push <span class="Constant">"get-num: too many digits in number"</span>/imm32 +<span id="L255" class="LineNr">255 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+16)</span> +<span id="L256" class="LineNr">256 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x14/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+20)</span> +<span id="L257" class="LineNr">257 </span> <span class="subxS2Comment"># . . call</span> +<span id="L258" class="LineNr">258 </span> e8/call <a href='../114error.subx.html#L9'>error</a>/disp32 <span class="subxComment"># never returns</span> +<span id="L259" class="LineNr">259 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L260" class="LineNr">260 </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="L261" class="LineNr">261 </span><span class="Constant">$get-num:stage2</span>: +<span id="L262" class="LineNr">262 </span> <span class="subxComment"># out->data[out->write] = LSB(Look)</span> +<span id="L263" class="LineNr">263 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/edi 1/index/ecx <span class="Normal"> . </span> 3/r32/ebx 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy edi+ecx+12 to ebx</span> +<span id="L264" class="LineNr">264 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="SpecialChar"><a href='crenshaw2-1.subx.html#L553'>Look</a></span>/disp32 <span class="Normal"> . </span> <span class="subxComment"># copy *Look to eax</span> +<span id="L265" class="LineNr">265 </span> 88/copy-byte 0/mod/indirect 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/AL <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy byte at AL to *ebx</span> +<span id="L266" class="LineNr">266 </span> <span class="subxComment"># ++out->write</span> +<span id="L267" class="LineNr">267 </span> 41/increment-ecx +<span id="L268" class="LineNr">268 </span> <span class="subxComment"># Look = get-char(in)</span> +<span id="L269" class="LineNr">269 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L270" class="LineNr">270 </span> 56/push-esi +<span id="L271" class="LineNr">271 </span> <span class="subxS2Comment"># . . call</span> +<span id="L272" class="LineNr">272 </span> e8/call <a href='crenshaw2-1.subx.html#L508'>get-char</a>/disp32 +<span id="L273" class="LineNr">273 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L274" class="LineNr">274 </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="L275" class="LineNr">275 </span><span class="Constant">$get-num:loop-end</span>: +<span id="L276" class="LineNr">276 </span> <span class="subxComment"># persist necessary variables from registers</span> +<span id="L277" class="LineNr">277 </span> 89/copy 0/mod/indirect 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ecx to *edi</span> +<span id="L278" class="LineNr">278 </span><span class="Constant">$get-num:end</span>: +<span id="L279" class="LineNr">279 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L280" class="LineNr">280 </span> 5f/pop-to-edi +<span id="L281" class="LineNr">281 </span> 5e/pop-to-esi +<span id="L282" class="LineNr">282 </span> 5b/pop-to-ebx +<span id="L283" class="LineNr">283 </span> 5a/pop-to-edx +<span id="L284" class="LineNr">284 </span> 59/pop-to-ecx +<span id="L285" class="LineNr">285 </span> 58/pop-to-eax +<span id="L286" class="LineNr">286 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L287" class="LineNr">287 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L288" class="LineNr">288 </span> 5d/pop-to-ebp +<span id="L289" class="LineNr">289 </span> c3/return +<span id="L290" class="LineNr">290 </span> +<span id="L291" class="LineNr">291 </span><span class="subxTest">test-get-num-reads-single-digit</span>: +<span id="L292" class="LineNr">292 </span> <span class="subxH1Comment"># - check that get-num returns first character if it's a digit</span> +<span id="L293" class="LineNr">293 </span> <span class="subxComment"># This test uses exit-descriptors. Use ebp for setting up local variables.</span> +<span id="L294" class="LineNr">294 </span> 55/push-ebp +<span id="L295" class="LineNr">295 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L296" class="LineNr">296 </span> <span class="subxComment"># clear all streams</span> +<span id="L297" class="LineNr">297 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L298" class="LineNr">298 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L299" class="LineNr">299 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L300" class="LineNr">300 </span> <span class="subxS2Comment"># . . call</span> +<span id="L301" class="LineNr">301 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L302" class="LineNr">302 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L303" class="LineNr">303 </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="L304" class="LineNr">304 </span> <span class="subxS1Comment"># . clear-stream($_test-buffered-file->buffer)</span> +<span id="L305" class="LineNr">305 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L306" class="LineNr">306 </span> 68/push $_test-buffered-file->buffer/imm32 +<span id="L307" class="LineNr">307 </span> <span class="subxS2Comment"># . . call</span> +<span id="L308" class="LineNr">308 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L309" class="LineNr">309 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L310" class="LineNr">310 </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="L311" class="LineNr">311 </span> <span class="subxS1Comment"># . clear-stream(_test-output-stream)</span> +<span id="L312" class="LineNr">312 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L313" class="LineNr">313 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L314" class="LineNr">314 </span> <span class="subxS2Comment"># . . call</span> +<span id="L315" class="LineNr">315 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L316" class="LineNr">316 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L317" class="LineNr">317 </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="L318" class="LineNr">318 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> +<span id="L319" class="LineNr">319 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L320" class="LineNr">320 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L321" class="LineNr">321 </span> <span class="subxS2Comment"># . . call</span> +<span id="L322" class="LineNr">322 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L323" class="LineNr">323 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L324" class="LineNr">324 </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="L325" class="LineNr">325 </span> <span class="subxComment"># initialize 'in'</span> +<span id="L326" class="LineNr">326 </span> <span class="subxS1Comment"># . write(_test-stream, "3")</span> +<span id="L327" class="LineNr">327 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L328" class="LineNr">328 </span> 68/push <span class="Constant">"3"</span>/imm32 +<span id="L329" class="LineNr">329 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L330" class="LineNr">330 </span> <span class="subxS2Comment"># . . call</span> +<span id="L331" class="LineNr">331 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L332" class="LineNr">332 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L333" class="LineNr">333 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L334" class="LineNr">334 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'get-num' below</span> +<span id="L335" class="LineNr">335 </span> <span class="subxS1Comment"># . var ed/eax: exit-descriptor</span> +<span id="L336" class="LineNr">336 </span> 81 5/subop/subtract 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> 8/imm32 <span class="subxComment"># subtract from esp</span> +<span id="L337" class="LineNr">337 </span> 89/copy 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to eax</span> +<span id="L338" class="LineNr">338 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 16)</span> +<span id="L339" class="LineNr">339 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L340" class="LineNr">340 </span> 68/push 0x10/imm32/nbytes-of-args-for-get-num +<span id="L341" class="LineNr">341 </span> 50/push-eax/ed +<span id="L342" class="LineNr">342 </span> <span class="subxS2Comment"># . . call</span> +<span id="L343" class="LineNr">343 </span> e8/call <a href='../110stop.subx.html#L44'>tailor-exit-descriptor</a>/disp32 +<span id="L344" class="LineNr">344 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L345" class="LineNr">345 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L346" class="LineNr">346 </span> <span class="subxComment"># prime the pump</span> +<span id="L347" class="LineNr">347 </span> <span class="subxS1Comment"># . get-char(_test-buffered-file)</span> +<span id="L348" class="LineNr">348 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L349" class="LineNr">349 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32 +<span id="L350" class="LineNr">350 </span> <span class="subxS2Comment"># . . call</span> +<span id="L351" class="LineNr">351 </span> e8/call <a href='crenshaw2-1.subx.html#L508'>get-char</a>/disp32 +<span id="L352" class="LineNr">352 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L353" class="LineNr">353 </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="L354" class="LineNr">354 </span> <span class="subxComment"># get-num(in, out, err, ed)</span> +<span id="L355" class="LineNr">355 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L356" class="LineNr">356 </span> 50/push-eax/ed +<span id="L357" class="LineNr">357 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L358" class="LineNr">358 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L359" class="LineNr">359 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32 +<span id="L360" class="LineNr">360 </span> <span class="subxS2Comment"># . . call</span> +<span id="L361" class="LineNr">361 </span> e8/call <a href='crenshaw2-1.subx.html#L187'>get-num</a>/disp32 +<span id="L362" class="LineNr">362 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span> +<span id="L363" class="LineNr">363 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L364" class="LineNr">364 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L365" class="LineNr">365 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3', msg)</span> +<span id="L366" class="LineNr">366 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L367" class="LineNr">367 </span> 68/push <span class="Constant">"F - test-get-num-reads-single-digit"</span>/imm32 +<span id="L368" class="LineNr">368 </span> 68/push 0x33/imm32 +<span id="L369" class="LineNr">369 </span> b8/copy-to-eax <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L370" class="LineNr">370 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+12)</span> +<span id="L371" class="LineNr">371 </span> <span class="subxS2Comment"># . . call</span> +<span id="L372" class="LineNr">372 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32 +<span id="L373" class="LineNr">373 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L374" class="LineNr">374 </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="L375" class="LineNr">375 </span> <span class="subxS1Comment"># . reclaim locals</span> +<span id="L376" class="LineNr">376 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L377" class="LineNr">377 </span> 5d/pop-to-ebp +<span id="L378" class="LineNr">378 </span> c3/return +<span id="L379" class="LineNr">379 </span> +<span id="L380" class="LineNr">380 </span><span class="subxTest">test-get-num-aborts-on-non-digit-in-Look</span>: +<span id="L381" class="LineNr">381 </span> <span class="subxH1Comment"># - check that get-num returns first character if it's a digit</span> +<span id="L382" class="LineNr">382 </span> <span class="subxComment"># This test uses exit-descriptors. Use ebp for setting up local variables.</span> +<span id="L383" class="LineNr">383 </span> 55/push-ebp +<span id="L384" class="LineNr">384 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L385" class="LineNr">385 </span> <span class="subxComment"># clear all streams</span> +<span id="L386" class="LineNr">386 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L387" class="LineNr">387 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L388" class="LineNr">388 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L389" class="LineNr">389 </span> <span class="subxS2Comment"># . . call</span> +<span id="L390" class="LineNr">390 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L391" class="LineNr">391 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L392" class="LineNr">392 </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="L393" class="LineNr">393 </span> <span class="subxS1Comment"># . clear-stream($_test-buffered-file->buffer)</span> +<span id="L394" class="LineNr">394 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L395" class="LineNr">395 </span> 68/push $_test-buffered-file->buffer/imm32 +<span id="L396" class="LineNr">396 </span> <span class="subxS2Comment"># . . call</span> +<span id="L397" class="LineNr">397 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L398" class="LineNr">398 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L399" class="LineNr">399 </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="L400" class="LineNr">400 </span> <span class="subxS1Comment"># . clear-stream(_test-output-stream)</span> +<span id="L401" class="LineNr">401 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L402" class="LineNr">402 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L403" class="LineNr">403 </span> <span class="subxS2Comment"># . . call</span> +<span id="L404" class="LineNr">404 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L405" class="LineNr">405 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L406" class="LineNr">406 </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="L407" class="LineNr">407 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> +<span id="L408" class="LineNr">408 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L409" class="LineNr">409 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L410" class="LineNr">410 </span> <span class="subxS2Comment"># . . call</span> +<span id="L411" class="LineNr">411 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L412" class="LineNr">412 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L413" class="LineNr">413 </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="L414" class="LineNr">414 </span> <span class="subxComment"># initialize 'in'</span> +<span id="L415" class="LineNr">415 </span> <span class="subxS1Comment"># . write(_test-stream, "3")</span> +<span id="L416" class="LineNr">416 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L417" class="LineNr">417 </span> 68/push <span class="Constant">"3"</span>/imm32 +<span id="L418" class="LineNr">418 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L419" class="LineNr">419 </span> <span class="subxS2Comment"># . . call</span> +<span id="L420" class="LineNr">420 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L421" class="LineNr">421 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L422" class="LineNr">422 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L423" class="LineNr">423 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'get-num' below</span> +<span id="L424" class="LineNr">424 </span> <span class="subxS1Comment"># . var ed/eax: exit-descriptor</span> +<span id="L425" class="LineNr">425 </span> 81 5/subop/subtract 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> 8/imm32 <span class="subxComment"># subtract from esp</span> +<span id="L426" class="LineNr">426 </span> 89/copy 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to eax</span> +<span id="L427" class="LineNr">427 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 16)</span> +<span id="L428" class="LineNr">428 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L429" class="LineNr">429 </span> 68/push 0x10/imm32/nbytes-of-args-for-get-num +<span id="L430" class="LineNr">430 </span> 50/push-eax/ed +<span id="L431" class="LineNr">431 </span> <span class="subxS2Comment"># . . call</span> +<span id="L432" class="LineNr">432 </span> e8/call <a href='../110stop.subx.html#L44'>tailor-exit-descriptor</a>/disp32 +<span id="L433" class="LineNr">433 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L434" class="LineNr">434 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L435" class="LineNr">435 </span> <span class="subxComment"># *don't* prime the pump</span> +<span id="L436" class="LineNr">436 </span> <span class="subxComment"># get-num(in, out, err, ed)</span> +<span id="L437" class="LineNr">437 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L438" class="LineNr">438 </span> 50/push-eax/ed +<span id="L439" class="LineNr">439 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L440" class="LineNr">440 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L441" class="LineNr">441 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32 +<span id="L442" class="LineNr">442 </span> <span class="subxS2Comment"># . . call</span> +<span id="L443" class="LineNr">443 </span> e8/call <a href='crenshaw2-1.subx.html#L187'>get-num</a>/disp32 +<span id="L444" class="LineNr">444 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span> +<span id="L445" class="LineNr">445 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L446" class="LineNr">446 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L447" class="LineNr">447 </span> <span class="subxComment"># check that get-num tried to call exit(1)</span> +<span id="L448" class="LineNr">448 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 2, msg) # i.e. stop was called with value 1</span> +<span id="L449" class="LineNr">449 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L450" class="LineNr">450 </span> 68/push <span class="Constant">"F - test-get-num-aborts-on-non-digit-in-Look"</span>/imm32 +<span id="L451" class="LineNr">451 </span> 68/push 2/imm32 +<span id="L452" class="LineNr">452 </span> <span class="subxS2Comment"># . . push ed->value</span> +<span id="L453" class="LineNr">453 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span> +<span id="L454" class="LineNr">454 </span> <span class="subxS2Comment"># . . call</span> +<span id="L455" class="LineNr">455 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32 +<span id="L456" class="LineNr">456 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L457" class="LineNr">457 </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="L458" class="LineNr">458 </span> <span class="subxS1Comment"># . reclaim locals</span> +<span id="L459" class="LineNr">459 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L460" class="LineNr">460 </span> 5d/pop-to-ebp +<span id="L461" class="LineNr">461 </span> c3/return +<span id="L462" class="LineNr">462 </span> +<span id="L463" class="LineNr">463 </span><span class="subxComment">## helpers</span> +<span id="L464" class="LineNr">464 </span> +<span id="L465" class="LineNr">465 </span><span class="subxComment"># write(f, "Error: "+s+" expected\n") then stop(ed, 1)</span> +<span id="L466" class="LineNr">466 </span><span class="subxFunction">expected</span>: <span class="subxComment"># ed: (addr exit-descriptor), f: fd or (addr stream byte), s: (addr array byte)</span> +<span id="L467" class="LineNr">467 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L468" class="LineNr">468 </span> 55/push-ebp +<span id="L469" class="LineNr">469 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L470" class="LineNr">470 </span> <span class="subxComment"># write(f, "Error: ")</span> +<span id="L471" class="LineNr">471 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L472" class="LineNr">472 </span> 68/push <span class="Constant">"Error: "</span>/imm32 +<span id="L473" class="LineNr">473 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L474" class="LineNr">474 </span> <span class="subxS2Comment"># . . call</span> +<span id="L475" class="LineNr">475 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L476" class="LineNr">476 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L477" class="LineNr">477 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L478" class="LineNr">478 </span> <span class="subxComment"># write(f, s)</span> +<span id="L479" class="LineNr">479 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L480" class="LineNr">480 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+16)</span> +<span id="L481" class="LineNr">481 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L482" class="LineNr">482 </span> <span class="subxS2Comment"># . . call</span> +<span id="L483" class="LineNr">483 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L484" class="LineNr">484 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L485" class="LineNr">485 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L486" class="LineNr">486 </span> <span class="subxComment"># write(f, " expected\n")</span> +<span id="L487" class="LineNr">487 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L488" class="LineNr">488 </span> 68/push <span class="Constant">" expected\n"</span>/imm32 +<span id="L489" class="LineNr">489 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L490" class="LineNr">490 </span> <span class="subxS2Comment"># . . call</span> +<span id="L491" class="LineNr">491 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L492" class="LineNr">492 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L493" class="LineNr">493 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L494" class="LineNr">494 </span> <span class="subxComment"># stop(ed, 1)</span> +<span id="L495" class="LineNr">495 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L496" class="LineNr">496 </span> 68/push 1/imm32 +<span id="L497" class="LineNr">497 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L498" class="LineNr">498 </span> <span class="subxS2Comment"># . . call</span> +<span id="L499" class="LineNr">499 </span> e8/call <a href='../110stop.subx.html#L92'>stop</a>/disp32 +<span id="L500" class="LineNr">500 </span> <span class="subxComment"># should never get past this point</span> +<span id="L501" class="LineNr">501 </span><span class="Constant">$expected:dead-end</span>: +<span id="L502" class="LineNr">502 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L503" class="LineNr">503 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L504" class="LineNr">504 </span> 5d/pop-to-ebp +<span id="L505" class="LineNr">505 </span> c3/return +<span id="L506" class="LineNr">506 </span> +<span id="L507" class="LineNr">507 </span><span class="subxComment"># read a byte from 'f', and save it in 'Look'</span> +<span id="L508" class="LineNr">508 </span><span class="subxFunction">get-char</span>: <span class="subxComment"># f: (addr buffered-file)</span> +<span id="L509" class="LineNr">509 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L510" class="LineNr">510 </span> 55/push-ebp +<span id="L511" class="LineNr">511 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L512" class="LineNr">512 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L513" class="LineNr">513 </span> 50/push-eax +<span id="L514" class="LineNr">514 </span> <span class="subxComment"># eax = read-byte-buffered(f)</span> +<span id="L515" class="LineNr">515 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L516" class="LineNr">516 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L517" class="LineNr">517 </span> <span class="subxS2Comment"># . . call</span> +<span id="L518" class="LineNr">518 </span> e8/call <a href='../112read-byte.subx.html#L38'>read-byte-buffered</a>/disp32 +<span id="L519" class="LineNr">519 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L520" class="LineNr">520 </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="L521" class="LineNr">521 </span> <span class="subxComment"># save eax to Look</span> +<span id="L522" class="LineNr">522 </span> 89/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="SpecialChar"><a href='crenshaw2-1.subx.html#L553'>Look</a></span>/disp32 <span class="Normal"> . </span> <span class="subxComment"># copy eax to *Look</span> +<span id="L523" class="LineNr">523 </span><span class="Constant">$get-char:end</span>: +<span id="L524" class="LineNr">524 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L525" class="LineNr">525 </span> 58/pop-to-eax +<span id="L526" class="LineNr">526 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L527" class="LineNr">527 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L528" class="LineNr">528 </span> 5d/pop-to-ebp +<span id="L529" class="LineNr">529 </span> c3/return +<span id="L530" class="LineNr">530 </span> +<span id="L531" class="LineNr">531 </span><span class="subxFunction">digit?</span>: <span class="subxComment"># c: int -> eax: boolean</span> +<span id="L532" class="LineNr">532 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L533" class="LineNr">533 </span> 55/push-ebp +<span id="L534" class="LineNr">534 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L535" class="LineNr">535 </span> <span class="subxComment"># eax = false</span> +<span id="L536" class="LineNr">536 </span> b8/copy-to-eax 0/imm32 +<span id="L537" class="LineNr">537 </span> <span class="subxComment"># if (c < '0') return false</span> +<span id="L538" class="LineNr">538 </span> 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 0x30/imm32 <span class="subxComment"># compare *(ebp+8)</span> +<span id="L539" class="LineNr">539 </span> 7c/jump-if-< $digit?:end/disp8 +<span id="L540" class="LineNr">540 </span> <span class="subxComment"># if (c > '9') return false</span> +<span id="L541" class="LineNr">541 </span> 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 0x39/imm32 <span class="subxComment"># compare *(ebp+8)</span> +<span id="L542" class="LineNr">542 </span> 7f/jump-if-> $digit?:end/disp8 +<span id="L543" class="LineNr">543 </span> <span class="subxComment"># otherwise return true</span> +<span id="L544" class="LineNr">544 </span> b8/copy-to-eax 1/imm32 +<span id="L545" class="LineNr">545 </span><span class="Constant">$digit?:end</span>: +<span id="L546" class="LineNr">546 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L547" class="LineNr">547 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L548" class="LineNr">548 </span> 5d/pop-to-ebp +<span id="L549" class="LineNr">549 </span> c3/return +<span id="L550" class="LineNr">550 </span> +<span id="L551" class="LineNr">551 </span>== data +<span id="L552" class="LineNr">552 </span> +<span id="L553" class="LineNr">553 </span><span class="SpecialChar">Look</span>: <span class="subxComment"># (char with some extra padding)</span> +<span id="L554" class="LineNr">554 </span> 0/imm32 +<span id="L555" class="LineNr">555 </span> +<span id="L556" class="LineNr">556 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/crenshaw2-1b.subx.html b/html/linux/apps/crenshaw2-1b.subx.html new file mode 100644 index 00000000..8a50be2c --- /dev/null +++ b/html/linux/apps/crenshaw2-1b.subx.html @@ -0,0 +1,815 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/crenshaw2-1b.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } +.subxH1Comment { color: #005faf; text-decoration: underline; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/crenshaw2-1b.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/crenshaw2-1b.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Port of <a href="https://github.com/akkartik/crenshaw/blob/master/tutor2.1.pas">https://github.com/akkartik/crenshaw/blob/master/tutor2.1.pas</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment"># which corresponds to the section "single digits" in <a href="https://compilers.iecc.com/crenshaw/tutor2.txt">https://compilers.iecc.com/crenshaw/tutor2.txt</a></span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># except that we support hex numbers of multiple digits.</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment">#</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># To run:</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># $ bootstrap/bootstrap translate [01]*.subx apps/crenshaw2-1b.subx -o crenshaw2-1b</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo '1a' |bootstrap/bootstrap run crenshaw2-1b</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># Expected output:</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># # syscall(exit, 1a)</span> +<span id="L10" class="LineNr"> 10 </span><span class="subxComment"># bb/copy-to-ebx 3/imm32</span> +<span id="L11" class="LineNr"> 11 </span><span class="subxComment"># b8/copy-to-eax 1/imm32/exit</span> +<span id="L12" class="LineNr"> 12 </span><span class="subxComment"># cd/syscall 0x80/imm8</span> +<span id="L13" class="LineNr"> 13 </span><span class="subxComment">#</span> +<span id="L14" class="LineNr"> 14 </span><span class="subxComment"># To run the generated output:</span> +<span id="L15" class="LineNr"> 15 </span><span class="subxComment"># $ echo '1a' |bootstrap/bootstrap run crenshaw2-1b > z1.subx</span> +<span id="L16" class="LineNr"> 16 </span><span class="subxComment"># $ bootstrap/bootstrap translate z1.subx -o z1</span> +<span id="L17" class="LineNr"> 17 </span><span class="subxComment"># $ bootstrap/bootstrap run z1</span> +<span id="L18" class="LineNr"> 18 </span><span class="subxComment"># $ echo $?</span> +<span id="L19" class="LineNr"> 19 </span><span class="subxComment"># 26 # 0x1a in decimal</span> +<span id="L20" class="LineNr"> 20 </span><span class="subxComment">#</span> +<span id="L21" class="LineNr"> 21 </span><span class="subxComment"># Stdin must contain just a single hex digit. Other input will print an error:</span> +<span id="L22" class="LineNr"> 22 </span><span class="subxComment"># $ echo 'xyz' |bootstrap/bootstrap run crenshaw2-1b</span> +<span id="L23" class="LineNr"> 23 </span><span class="subxComment"># Error: integer expected</span> +<span id="L24" class="LineNr"> 24 </span><span class="subxComment">#</span> +<span id="L25" class="LineNr"> 25 </span><span class="subxComment"># Names in this file sometimes follow Crenshaw's original rather than my usual</span> +<span id="L26" class="LineNr"> 26 </span><span class="subxComment"># naming conventions.</span> +<span id="L27" class="LineNr"> 27 </span> +<span id="L28" class="LineNr"> 28 </span>== code +<span id="L29" class="LineNr"> 29 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L30" class="LineNr"> 30 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L31" class="LineNr"> 31 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L32" class="LineNr"> 32 </span> +<span id="L33" class="LineNr"> 33 </span><span class="SpecialChar">Entry</span>: <span class="subxComment"># run tests if necessary, call 'compile' if not</span> +<span id="L34" class="LineNr"> 34 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L35" class="LineNr"> 35 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L36" class="LineNr"> 36 </span> +<span id="L37" class="LineNr"> 37 </span> <span class="subxComment"># initialize heap</span> +<span id="L38" class="LineNr"> 38 </span> <span class="subxS1Comment"># . Heap = new-segment(Heap-size)</span> +<span id="L39" class="LineNr"> 39 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L40" class="LineNr"> 40 </span> 68/push <span class="SpecialChar"><a href='../120allocate.subx.html#L27'>Heap</a></span>/imm32 +<span id="L41" class="LineNr"> 41 </span> ff 6/subop/push 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="SpecialChar"><a href='../120allocate.subx.html#L34'>Heap-size</a></span>/disp32 <span class="subxComment"># push *Heap-size</span> +<span id="L42" class="LineNr"> 42 </span> <span class="subxS2Comment"># . . call</span> +<span id="L43" class="LineNr"> 43 </span> e8/call <a href='../104new-segment.subx.html#L40'>new-segment</a>/disp32 +<span id="L44" class="LineNr"> 44 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L45" class="LineNr"> 45 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L46" class="LineNr"> 46 </span> +<span id="L47" class="LineNr"> 47 </span> <span class="subxH1Comment"># - if argc > 1 and argv[1] == "test", then return run_tests()</span> +<span id="L48" class="LineNr"> 48 </span> <span class="subxComment"># if (argc <= 1) goto run-main</span> +<span id="L49" class="LineNr"> 49 </span> 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/disp8 1/imm32 <span class="subxComment"># compare *ebp</span> +<span id="L50" class="LineNr"> 50 </span> 7e/jump-if-<= $run-main/disp8 +<span id="L51" class="LineNr"> 51 </span> <span class="subxComment"># if (!kernel-string-equal?(argv[1], "test")) goto run-main</span> +<span id="L52" class="LineNr"> 52 </span> <span class="subxS1Comment"># . eax = kernel-string-equal?(argv[1], "test")</span> +<span id="L53" class="LineNr"> 53 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L54" class="LineNr"> 54 </span> 68/push <span class="Constant">"test"</span>/imm32 +<span id="L55" class="LineNr"> 55 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L56" class="LineNr"> 56 </span> <span class="subxS2Comment"># . . call</span> +<span id="L57" class="LineNr"> 57 </span> e8/call <a href='../103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a>/disp32 +<span id="L58" class="LineNr"> 58 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L59" class="LineNr"> 59 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L60" class="LineNr"> 60 </span> <span class="subxS1Comment"># . if (eax == false) goto run-main</span> +<span id="L61" class="LineNr"> 61 </span> 3d/compare-eax-and 0/imm32/false +<span id="L62" class="LineNr"> 62 </span> 74/jump-if-= $run-main/disp8 +<span id="L63" class="LineNr"> 63 </span> <span class="subxComment"># run-tests()</span> +<span id="L64" class="LineNr"> 64 </span> e8/call run-tests/disp32 +<span id="L65" class="LineNr"> 65 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> +<span id="L66" class="LineNr"> 66 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../102test.subx.html#L89'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> +<span id="L67" class="LineNr"> 67 </span> eb/jump $main:end/disp8 +<span id="L68" class="LineNr"> 68 </span><span class="Constant">$run-main</span>: +<span id="L69" class="LineNr"> 69 </span> <span class="subxH1Comment"># - otherwise read a program from stdin and emit its translation to stdout</span> +<span id="L70" class="LineNr"> 70 </span> <span class="subxS1Comment"># . compile(Stdin, 1/stdout, 2/stderr, 0)</span> +<span id="L71" class="LineNr"> 71 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L72" class="LineNr"> 72 </span> 68/push 0/imm32/exit-descriptor +<span id="L73" class="LineNr"> 73 </span> 68/push 2/imm32/stderr +<span id="L74" class="LineNr"> 74 </span> 68/push 1/imm32/stdout +<span id="L75" class="LineNr"> 75 </span> 68/push <span class="SpecialChar"><a href='../112read-byte.subx.html#L14'>Stdin</a></span>/imm32 +<span id="L76" class="LineNr"> 76 </span> <span class="subxS2Comment"># . . call</span> +<span id="L77" class="LineNr"> 77 </span> e8/call <a href='crenshaw2-1b.subx.html#L86'>compile</a>/disp32 +<span id="L78" class="LineNr"> 78 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L79" class="LineNr"> 79 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L80" class="LineNr"> 80 </span> <span class="subxComment"># syscall(exit, 0)</span> +<span id="L81" class="LineNr"> 81 </span> bb/copy-to-ebx 0/imm32 +<span id="L82" class="LineNr"> 82 </span><span class="Constant">$main:end</span>: +<span id="L83" class="LineNr"> 83 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L84" class="LineNr"> 84 </span> +<span id="L85" class="LineNr"> 85 </span><span class="subxComment"># the main entry point</span> +<span id="L86" class="LineNr"> 86 </span><span class="subxFunction">compile</span>: <span class="subxComment"># in: (addr buffered-file), out: fd or (addr stream byte), err: fd or (addr stream byte), ed: (addr exit-descriptor)</span> +<span id="L87" class="LineNr"> 87 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L88" class="LineNr"> 88 </span> 55/push-ebp +<span id="L89" class="LineNr"> 89 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L90" class="LineNr"> 90 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L91" class="LineNr"> 91 </span> 50/push-eax +<span id="L92" class="LineNr"> 92 </span> 51/push-ecx +<span id="L93" class="LineNr"> 93 </span> <span class="subxComment"># prime the pump</span> +<span id="L94" class="LineNr"> 94 </span> <span class="subxS1Comment"># . Look = get-char(in)</span> +<span id="L95" class="LineNr"> 95 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L96" class="LineNr"> 96 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L97" class="LineNr"> 97 </span> <span class="subxS2Comment"># . . call</span> +<span id="L98" class="LineNr"> 98 </span> e8/call <a href='crenshaw2-1b.subx.html#L702'>get-char</a>/disp32 +<span id="L99" class="LineNr"> 99 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L100" class="LineNr">100 </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="L101" class="LineNr">101 </span> <span class="subxComment"># var num/ecx: (stream byte 7)</span> +<span id="L102" class="LineNr">102 </span> <span class="subxComment"># Numbers can be 32 bits or 8 hex bytes long. One of them will be in 'Look', so we need space for 7 bytes.</span> +<span id="L103" class="LineNr">103 </span> <span class="subxComment"># Sizing the stream just right buys us overflow-handling for free inside 'get-num'.</span> +<span id="L104" class="LineNr">104 </span> <span class="subxComment"># Add 12 bytes for 'read', 'write' and 'size' fields, for a total of 19 bytes, or 0x13 in hex.</span> +<span id="L105" class="LineNr">105 </span> <span class="subxComment"># The stack pointer is no longer aligned, so dump_stack() can be misleading past this point.</span> +<span id="L106" class="LineNr">106 </span> 81 5/subop/subtract 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> 0x13/imm32 <span class="subxComment"># subtract from esp</span> +<span id="L107" class="LineNr">107 </span> 89/copy 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ecx</span> +<span id="L108" class="LineNr">108 </span> <span class="subxComment"># initialize the stream</span> +<span id="L109" class="LineNr">109 </span> <span class="subxS1Comment"># . num->size = 7</span> +<span id="L110" class="LineNr">110 </span> c7 0/subop/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 7/imm32 <span class="subxComment"># copy to *(ecx+8)</span> +<span id="L111" class="LineNr">111 </span> <span class="subxS1Comment"># . clear-stream(num)</span> +<span id="L112" class="LineNr">112 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L113" class="LineNr">113 </span> 51/push-ecx +<span id="L114" class="LineNr">114 </span> <span class="subxS2Comment"># . . call</span> +<span id="L115" class="LineNr">115 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L116" class="LineNr">116 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L117" class="LineNr">117 </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="L118" class="LineNr">118 </span> <span class="subxComment"># read a digit from 'in' into 'num'</span> +<span id="L119" class="LineNr">119 </span> <span class="subxS1Comment"># . get-num(in, num, err, ed)</span> +<span id="L120" class="LineNr">120 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L121" class="LineNr">121 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x14/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+20)</span> +<span id="L122" class="LineNr">122 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+16)</span> +<span id="L123" class="LineNr">123 </span> 51/push-ecx/num +<span id="L124" class="LineNr">124 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L125" class="LineNr">125 </span> <span class="subxS2Comment"># . . call</span> +<span id="L126" class="LineNr">126 </span> e8/call <a href='crenshaw2-1b.subx.html#L187'>get-num</a>/disp32 +<span id="L127" class="LineNr">127 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L128" class="LineNr">128 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L129" class="LineNr">129 </span> <span class="subxComment"># render 'num' into the following template on 'out':</span> +<span id="L130" class="LineNr">130 </span> <span class="subxComment"># bb/copy-to-ebx _num_</span> +<span id="L131" class="LineNr">131 </span> <span class="subxComment"># b8/copy-to-eax 1/imm32/exit</span> +<span id="L132" class="LineNr">132 </span> <span class="subxComment"># cd/syscall 0x80/imm8</span> +<span id="L133" class="LineNr">133 </span> <span class="subxComment">#</span> +<span id="L134" class="LineNr">134 </span> <span class="subxS1Comment"># . write(out, "bb/copy-to-ebx ")</span> +<span id="L135" class="LineNr">135 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L136" class="LineNr">136 </span> 68/push <span class="Constant">"bb/copy-to-ebx "</span>/imm32 +<span id="L137" class="LineNr">137 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L138" class="LineNr">138 </span> <span class="subxS2Comment"># . . call</span> +<span id="L139" class="LineNr">139 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L140" class="LineNr">140 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L141" class="LineNr">141 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L142" class="LineNr">142 </span> <span class="subxS1Comment"># . write-stream(out, num)</span> +<span id="L143" class="LineNr">143 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L144" class="LineNr">144 </span> 51/push-ecx/num +<span id="L145" class="LineNr">145 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L146" class="LineNr">146 </span> <span class="subxS2Comment"># . . call</span> +<span id="L147" class="LineNr">147 </span> e8/call <a href='../113write-stream.subx.html#L17'>write-stream</a>/disp32 +<span id="L148" class="LineNr">148 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L149" class="LineNr">149 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L150" class="LineNr">150 </span> <span class="subxS1Comment"># . write(out, Newline)</span> +<span id="L151" class="LineNr">151 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L152" class="LineNr">152 </span> 68/push <span class="SpecialChar"><a href='../102test.subx.html#L82'>Newline</a></span>/imm32 +<span id="L153" class="LineNr">153 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L154" class="LineNr">154 </span> <span class="subxS2Comment"># . . call</span> +<span id="L155" class="LineNr">155 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L156" class="LineNr">156 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L157" class="LineNr">157 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L158" class="LineNr">158 </span> <span class="subxS1Comment"># . write(out, "b8/copy-to-eax 1/imm32/exit\n")</span> +<span id="L159" class="LineNr">159 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L160" class="LineNr">160 </span> 68/push <span class="Constant">"b8/copy-to-eax 1/imm32/exit\n"</span>/imm32 +<span id="L161" class="LineNr">161 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L162" class="LineNr">162 </span> <span class="subxS2Comment"># . . call</span> +<span id="L163" class="LineNr">163 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L164" class="LineNr">164 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L165" class="LineNr">165 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L166" class="LineNr">166 </span> <span class="subxS1Comment"># . write(out, "cd/syscall 0x80/imm8\n")</span> +<span id="L167" class="LineNr">167 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L168" class="LineNr">168 </span> 68/push <span class="Constant">"cd/syscall 0x80/imm8\n"</span>/imm32 +<span id="L169" class="LineNr">169 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L170" class="LineNr">170 </span> <span class="subxS2Comment"># . . call</span> +<span id="L171" class="LineNr">171 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L172" class="LineNr">172 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L173" class="LineNr">173 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L174" class="LineNr">174 </span><span class="Constant">$compile:end</span>: +<span id="L175" class="LineNr">175 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L176" class="LineNr">176 </span> 59/pop-to-ecx +<span id="L177" class="LineNr">177 </span> 58/pop-to-eax +<span id="L178" class="LineNr">178 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L179" class="LineNr">179 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L180" class="LineNr">180 </span> 5d/pop-to-ebp +<span id="L181" class="LineNr">181 </span> c3/return +<span id="L182" class="LineNr">182 </span> +<span id="L183" class="LineNr">183 </span><span class="subxComment"># Read a sequence of digits into 'out'. Abort if there are none, or if there is</span> +<span id="L184" class="LineNr">184 </span><span class="subxComment"># no space in 'out'.</span> +<span id="L185" class="LineNr">185 </span><span class="subxComment"># Input comes from the global variable 'Look' (first byte) and the argument</span> +<span id="L186" class="LineNr">186 </span><span class="subxComment"># 'in' (rest). We leave the next byte from 'in' into 'Look' on exit.</span> +<span id="L187" class="LineNr">187 </span><span class="subxFunction">get-num</span>: <span class="subxComment"># in: (addr buffered-file), out: (addr stream byte), err: fd or (addr stream byte), ed: (addr exit-descriptor)</span> +<span id="L188" class="LineNr">188 </span> <span class="subxComment"># pseudocode:</span> +<span id="L189" class="LineNr">189 </span> <span class="subxComment"># if (!digit?(Look)) expected(ed, err, "integer")</span> +<span id="L190" class="LineNr">190 </span> <span class="subxComment"># do</span> +<span id="L191" class="LineNr">191 </span> <span class="subxComment"># if out->write >= out->size</span> +<span id="L192" class="LineNr">192 </span> <span class="subxComment"># write(err, "Error: too many digits in number\n")</span> +<span id="L193" class="LineNr">193 </span> <span class="subxComment"># stop(ed, 1)</span> +<span id="L194" class="LineNr">194 </span> <span class="subxComment"># out->data[out->write] = LSB(Look)</span> +<span id="L195" class="LineNr">195 </span> <span class="subxComment"># ++out->write</span> +<span id="L196" class="LineNr">196 </span> <span class="subxComment"># Look = get-char(in)</span> +<span id="L197" class="LineNr">197 </span> <span class="subxComment"># while digit?(Look)</span> +<span id="L198" class="LineNr">198 </span> <span class="subxComment"># This is complicated because I don't want to hard-code the error strategy in</span> +<span id="L199" class="LineNr">199 </span> <span class="subxComment"># a general helper like write-byte-buffered. Maybe I should just create a</span> +<span id="L200" class="LineNr">200 </span> <span class="subxComment"># local helper.</span> +<span id="L201" class="LineNr">201 </span> <span class="subxComment">#</span> +<span id="L202" class="LineNr">202 </span> <span class="subxComment"># within the loop we'll try to keep things in registers:</span> +<span id="L203" class="LineNr">203 </span> <span class="subxComment"># in: esi</span> +<span id="L204" class="LineNr">204 </span> <span class="subxComment"># out: edi</span> +<span id="L205" class="LineNr">205 </span> <span class="subxComment"># out->write: ecx (cached copy; need to keep in sync)</span> +<span id="L206" class="LineNr">206 </span> <span class="subxComment"># out->size: edx</span> +<span id="L207" class="LineNr">207 </span> <span class="subxComment"># temporaries: eax, ebx</span> +<span id="L208" class="LineNr">208 </span> <span class="subxComment"># We can't allocate Look to a register because it gets written implicitly in</span> +<span id="L209" class="LineNr">209 </span> <span class="subxComment"># get-char in each iteration of the loop. (Thereby demonstrating that it's</span> +<span id="L210" class="LineNr">210 </span> <span class="subxComment"># not the right interface for us. But we'll keep it just to follow Crenshaw.)</span> +<span id="L211" class="LineNr">211 </span> <span class="subxComment">#</span> +<span id="L212" class="LineNr">212 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L213" class="LineNr">213 </span> 55/push-ebp +<span id="L214" class="LineNr">214 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L215" class="LineNr">215 </span> <span class="subxH1Comment"># - if (digit?(Look)) expected(ed, err, "integer")</span> +<span id="L216" class="LineNr">216 </span> <span class="subxS1Comment"># . eax = digit?(Look)</span> +<span id="L217" class="LineNr">217 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L218" class="LineNr">218 </span> ff 6/subop/push 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="SpecialChar"><a href='crenshaw2-1b.subx.html#L747'>Look</a></span>/disp32 <span class="Normal"> . </span> <span class="subxComment"># push *Look</span> +<span id="L219" class="LineNr">219 </span> <span class="subxS2Comment"># . . call</span> +<span id="L220" class="LineNr">220 </span> e8/call <a href='crenshaw2-1b.subx.html#L725'>digit?</a>/disp32 +<span id="L221" class="LineNr">221 </span> <span class="subxS2Comment"># . . discard args</span> +<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: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 +<span id="L229" class="LineNr">229 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+16)</span> +<span id="L230" class="LineNr">230 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x14/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+20)</span> +<span id="L231" class="LineNr">231 </span> <span class="subxS2Comment"># . . call</span> +<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: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 +<span id="L239" class="LineNr">239 </span> 51/push-ecx +<span id="L240" class="LineNr">240 </span> 52/push-edx +<span id="L241" class="LineNr">241 </span> 53/push-ebx +<span id="L242" class="LineNr">242 </span> 56/push-esi +<span id="L243" class="LineNr">243 </span> 57/push-edi +<span id="L244" class="LineNr">244 </span> <span class="subxComment"># read necessary variables to registers</span> +<span id="L245" class="LineNr">245 </span> <span class="subxComment"># esi = in</span> +<span id="L246" class="LineNr">246 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/esi 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to esi</span> +<span id="L247" class="LineNr">247 </span> <span class="subxComment"># edi = out</span> +<span id="L248" class="LineNr">248 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 7/r32/edi 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+12) to edi</span> +<span id="L249" class="LineNr">249 </span> <span class="subxComment"># ecx = out->write</span> +<span id="L250" class="LineNr">250 </span> 8b/copy 0/mod/indirect 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *edi to ecx</span> +<span id="L251" class="LineNr">251 </span> <span class="subxComment"># edx = out->size</span> +<span id="L252" class="LineNr">252 </span> 8b/copy 1/mod/*+disp8 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(edi+8) to edx</span> +<span id="L253" class="LineNr">253 </span><span class="Constant">$get-num:loop</span>: +<span id="L254" class="LineNr">254 </span> <span class="subxComment"># if (out->write >= out->size) error</span> +<span id="L255" class="LineNr">255 </span> 39/compare 3/mod/direct 2/rm32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># compare edx with ecx</span> +<span id="L256" class="LineNr">256 </span> 7d/jump-if-< $get-num:loop-stage2/disp8 +<span id="L257" class="LineNr">257 </span> <span class="subxS1Comment"># . error(ed, err, msg) # TODO: show full number</span> +<span id="L258" class="LineNr">258 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L259" class="LineNr">259 </span> 68/push <span class="Constant">"get-num: too many digits in number"</span>/imm32 +<span id="L260" class="LineNr">260 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+16)</span> +<span id="L261" class="LineNr">261 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x14/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+20)</span> +<span id="L262" class="LineNr">262 </span> <span class="subxS2Comment"># . . call</span> +<span id="L263" class="LineNr">263 </span> e8/call <a href='../114error.subx.html#L9'>error</a>/disp32 <span class="subxComment"># never returns</span> +<span id="L264" class="LineNr">264 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L265" class="LineNr">265 </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="L266" class="LineNr">266 </span><span class="Constant">$get-num:loop-stage2</span>: +<span id="L267" class="LineNr">267 </span> <span class="subxComment"># out->data[out->write] = LSB(Look)</span> +<span id="L268" class="LineNr">268 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/edi 1/index/ecx <span class="Normal"> . </span> 3/r32/ebx 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy edi+ecx+12 to ebx</span> +<span id="L269" class="LineNr">269 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="SpecialChar"><a href='crenshaw2-1b.subx.html#L747'>Look</a></span>/disp32 <span class="Normal"> . </span> <span class="subxComment"># copy *Look to eax</span> +<span id="L270" class="LineNr">270 </span> 88/copy-byte 0/mod/indirect 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/AL <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy byte at AL to *ebx</span> +<span id="L271" class="LineNr">271 </span> <span class="subxComment"># ++out->write</span> +<span id="L272" class="LineNr">272 </span> 41/increment-ecx +<span id="L273" class="LineNr">273 </span> <span class="subxComment"># Look = get-char(in)</span> +<span id="L274" class="LineNr">274 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L275" class="LineNr">275 </span> 56/push-esi +<span id="L276" class="LineNr">276 </span> <span class="subxS2Comment"># . . call</span> +<span id="L277" class="LineNr">277 </span> e8/call <a href='crenshaw2-1b.subx.html#L702'>get-char</a>/disp32 +<span id="L278" class="LineNr">278 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L279" class="LineNr">279 </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="L280" class="LineNr">280 </span> <span class="subxComment"># if (digit?(Look)) loop</span> +<span id="L281" class="LineNr">281 </span> <span class="subxS1Comment"># . eax = digit?(Look)</span> +<span id="L282" class="LineNr">282 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L283" class="LineNr">283 </span> ff 6/subop/push 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="SpecialChar"><a href='crenshaw2-1b.subx.html#L747'>Look</a></span>/disp32 <span class="Normal"> . </span> <span class="subxComment"># push *Look</span> +<span id="L284" class="LineNr">284 </span> <span class="subxS2Comment"># . . call</span> +<span id="L285" class="LineNr">285 </span> e8/call <a href='crenshaw2-1b.subx.html#L725'>digit?</a>/disp32 +<span id="L286" class="LineNr">286 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L287" class="LineNr">287 </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="L288" class="LineNr">288 </span> <span class="subxS1Comment"># . if (eax != false) loop</span> +<span id="L289" class="LineNr">289 </span> 3d/compare-eax-and 0/imm32/false +<span id="L290" class="LineNr">290 </span> 0f 85/jump-if-!= $get-num:<span class="Constant">loop</span>/disp32 +<span id="L291" class="LineNr">291 </span><span class="Constant">$get-num:loop-end</span>: +<span id="L292" class="LineNr">292 </span> <span class="subxComment"># persist necessary variables from registers</span> +<span id="L293" class="LineNr">293 </span> 89/copy 0/mod/indirect 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ecx to *edi</span> +<span id="L294" class="LineNr">294 </span><span class="Constant">$get-num:end</span>: +<span id="L295" class="LineNr">295 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L296" class="LineNr">296 </span> 5f/pop-to-edi +<span id="L297" class="LineNr">297 </span> 5e/pop-to-esi +<span id="L298" class="LineNr">298 </span> 5b/pop-to-ebx +<span id="L299" class="LineNr">299 </span> 5a/pop-to-edx +<span id="L300" class="LineNr">300 </span> 59/pop-to-ecx +<span id="L301" class="LineNr">301 </span> 58/pop-to-eax +<span id="L302" class="LineNr">302 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L303" class="LineNr">303 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L304" class="LineNr">304 </span> 5d/pop-to-ebp +<span id="L305" class="LineNr">305 </span> c3/return +<span id="L306" class="LineNr">306 </span> +<span id="L307" class="LineNr">307 </span><span class="subxTest">test-get-num-reads-single-digit</span>: +<span id="L308" class="LineNr">308 </span> <span class="subxH1Comment"># - check that get-num returns first character if it's a digit</span> +<span id="L309" class="LineNr">309 </span> <span class="subxComment"># This test uses exit-descriptors. Use ebp for setting up local variables.</span> +<span id="L310" class="LineNr">310 </span> 55/push-ebp +<span id="L311" class="LineNr">311 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L312" class="LineNr">312 </span> <span class="subxComment"># clear all streams</span> +<span id="L313" class="LineNr">313 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L314" class="LineNr">314 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L315" class="LineNr">315 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L316" class="LineNr">316 </span> <span class="subxS2Comment"># . . call</span> +<span id="L317" class="LineNr">317 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L318" class="LineNr">318 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L319" class="LineNr">319 </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="L320" class="LineNr">320 </span> <span class="subxS1Comment"># . clear-stream($_test-buffered-file->buffer)</span> +<span id="L321" class="LineNr">321 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L322" class="LineNr">322 </span> 68/push $_test-buffered-file->buffer/imm32 +<span id="L323" class="LineNr">323 </span> <span class="subxS2Comment"># . . call</span> +<span id="L324" class="LineNr">324 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L325" class="LineNr">325 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L326" class="LineNr">326 </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="L327" class="LineNr">327 </span> <span class="subxS1Comment"># . clear-stream(_test-output-stream)</span> +<span id="L328" class="LineNr">328 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L329" class="LineNr">329 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L330" class="LineNr">330 </span> <span class="subxS2Comment"># . . call</span> +<span id="L331" class="LineNr">331 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L332" class="LineNr">332 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L333" class="LineNr">333 </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="L334" class="LineNr">334 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> +<span id="L335" class="LineNr">335 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L336" class="LineNr">336 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L337" class="LineNr">337 </span> <span class="subxS2Comment"># . . call</span> +<span id="L338" class="LineNr">338 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L339" class="LineNr">339 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L340" class="LineNr">340 </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="L341" class="LineNr">341 </span> <span class="subxComment"># initialize 'in'</span> +<span id="L342" class="LineNr">342 </span> <span class="subxS1Comment"># . write(_test-stream, "3")</span> +<span id="L343" class="LineNr">343 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L344" class="LineNr">344 </span> 68/push <span class="Constant">"3"</span>/imm32 +<span id="L345" class="LineNr">345 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L346" class="LineNr">346 </span> <span class="subxS2Comment"># . . call</span> +<span id="L347" class="LineNr">347 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L348" class="LineNr">348 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L349" class="LineNr">349 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L350" class="LineNr">350 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'get-num' below</span> +<span id="L351" class="LineNr">351 </span> <span class="subxS1Comment"># . var ed/eax: exit-descriptor</span> +<span id="L352" class="LineNr">352 </span> 81 5/subop/subtract 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> 8/imm32 <span class="subxComment"># subtract from esp</span> +<span id="L353" class="LineNr">353 </span> 89/copy 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to eax</span> +<span id="L354" class="LineNr">354 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 16)</span> +<span id="L355" class="LineNr">355 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L356" class="LineNr">356 </span> 68/push 0x10/imm32/nbytes-of-args-for-get-num +<span id="L357" class="LineNr">357 </span> 50/push-eax/ed +<span id="L358" class="LineNr">358 </span> <span class="subxS2Comment"># . . call</span> +<span id="L359" class="LineNr">359 </span> e8/call <a href='../110stop.subx.html#L44'>tailor-exit-descriptor</a>/disp32 +<span id="L360" class="LineNr">360 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L361" class="LineNr">361 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L362" class="LineNr">362 </span> <span class="subxComment"># prime the pump</span> +<span id="L363" class="LineNr">363 </span> <span class="subxS1Comment"># . get-char(_test-buffered-file)</span> +<span id="L364" class="LineNr">364 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L365" class="LineNr">365 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32 +<span id="L366" class="LineNr">366 </span> <span class="subxS2Comment"># . . call</span> +<span id="L367" class="LineNr">367 </span> e8/call <a href='crenshaw2-1b.subx.html#L702'>get-char</a>/disp32 +<span id="L368" class="LineNr">368 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L369" class="LineNr">369 </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="L370" class="LineNr">370 </span> <span class="subxComment"># get-num(in, out, err, ed)</span> +<span id="L371" class="LineNr">371 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L372" class="LineNr">372 </span> 50/push-eax/ed +<span id="L373" class="LineNr">373 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L374" class="LineNr">374 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L375" class="LineNr">375 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32 +<span id="L376" class="LineNr">376 </span> <span class="subxS2Comment"># . . call</span> +<span id="L377" class="LineNr">377 </span> e8/call <a href='crenshaw2-1b.subx.html#L187'>get-num</a>/disp32 +<span id="L378" class="LineNr">378 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span> +<span id="L379" class="LineNr">379 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L380" class="LineNr">380 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L381" class="LineNr">381 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3', msg)</span> +<span id="L382" class="LineNr">382 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L383" class="LineNr">383 </span> 68/push <span class="Constant">"F - test-get-num-reads-single-digit"</span>/imm32 +<span id="L384" class="LineNr">384 </span> 68/push 0x33/imm32 +<span id="L385" class="LineNr">385 </span> b8/copy-to-eax <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L386" class="LineNr">386 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+12)</span> +<span id="L387" class="LineNr">387 </span> <span class="subxS2Comment"># . . call</span> +<span id="L388" class="LineNr">388 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32 +<span id="L389" class="LineNr">389 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L390" class="LineNr">390 </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="L391" class="LineNr">391 </span> <span class="subxS1Comment"># . reclaim locals</span> +<span id="L392" class="LineNr">392 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L393" class="LineNr">393 </span> 5d/pop-to-ebp +<span id="L394" class="LineNr">394 </span> c3/return +<span id="L395" class="LineNr">395 </span> +<span id="L396" class="LineNr">396 </span><span class="subxTest">test-get-num-aborts-on-non-digit-in-Look</span>: +<span id="L397" class="LineNr">397 </span> <span class="subxH1Comment"># - check that get-num returns first character if it's a digit</span> +<span id="L398" class="LineNr">398 </span> <span class="subxComment"># This test uses exit-descriptors. Use ebp for setting up local variables.</span> +<span id="L399" class="LineNr">399 </span> 55/push-ebp +<span id="L400" class="LineNr">400 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L401" class="LineNr">401 </span> <span class="subxComment"># clear all streams</span> +<span id="L402" class="LineNr">402 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L403" class="LineNr">403 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L404" class="LineNr">404 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L405" class="LineNr">405 </span> <span class="subxS2Comment"># . . call</span> +<span id="L406" class="LineNr">406 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L407" class="LineNr">407 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L408" class="LineNr">408 </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="L409" class="LineNr">409 </span> <span class="subxS1Comment"># . clear-stream($_test-buffered-file->buffer)</span> +<span id="L410" class="LineNr">410 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L411" class="LineNr">411 </span> 68/push $_test-buffered-file->buffer/imm32 +<span id="L412" class="LineNr">412 </span> <span class="subxS2Comment"># . . call</span> +<span id="L413" class="LineNr">413 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L414" class="LineNr">414 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L415" class="LineNr">415 </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="L416" class="LineNr">416 </span> <span class="subxS1Comment"># . clear-stream(_test-output-stream)</span> +<span id="L417" class="LineNr">417 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L418" class="LineNr">418 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L419" class="LineNr">419 </span> <span class="subxS2Comment"># . . call</span> +<span id="L420" class="LineNr">420 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L421" class="LineNr">421 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L422" class="LineNr">422 </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="L423" class="LineNr">423 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> +<span id="L424" class="LineNr">424 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L425" class="LineNr">425 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L426" class="LineNr">426 </span> <span class="subxS2Comment"># . . call</span> +<span id="L427" class="LineNr">427 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L428" class="LineNr">428 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L429" class="LineNr">429 </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="L430" class="LineNr">430 </span> <span class="subxComment"># initialize 'in'</span> +<span id="L431" class="LineNr">431 </span> <span class="subxS1Comment"># . write(_test-stream, "3")</span> +<span id="L432" class="LineNr">432 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L433" class="LineNr">433 </span> 68/push <span class="Constant">"3"</span>/imm32 +<span id="L434" class="LineNr">434 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L435" class="LineNr">435 </span> <span class="subxS2Comment"># . . call</span> +<span id="L436" class="LineNr">436 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L437" class="LineNr">437 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L438" class="LineNr">438 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L439" class="LineNr">439 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'get-num' below</span> +<span id="L440" class="LineNr">440 </span> <span class="subxS1Comment"># . var ed/eax: exit-descriptor</span> +<span id="L441" class="LineNr">441 </span> 81 5/subop/subtract 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> 8/imm32 <span class="subxComment"># subtract from esp</span> +<span id="L442" class="LineNr">442 </span> 89/copy 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to eax</span> +<span id="L443" class="LineNr">443 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 16)</span> +<span id="L444" class="LineNr">444 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L445" class="LineNr">445 </span> 68/push 0x10/imm32/nbytes-of-args-for-get-num +<span id="L446" class="LineNr">446 </span> 50/push-eax/ed +<span id="L447" class="LineNr">447 </span> <span class="subxS2Comment"># . . call</span> +<span id="L448" class="LineNr">448 </span> e8/call <a href='../110stop.subx.html#L44'>tailor-exit-descriptor</a>/disp32 +<span id="L449" class="LineNr">449 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L450" class="LineNr">450 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L451" class="LineNr">451 </span> <span class="subxComment"># *don't* prime the pump</span> +<span id="L452" class="LineNr">452 </span> <span class="subxComment"># get-num(in, out, err, ed)</span> +<span id="L453" class="LineNr">453 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L454" class="LineNr">454 </span> 50/push-eax/ed +<span id="L455" class="LineNr">455 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L456" class="LineNr">456 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L457" class="LineNr">457 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32 +<span id="L458" class="LineNr">458 </span> <span class="subxS2Comment"># . . call</span> +<span id="L459" class="LineNr">459 </span> e8/call <a href='crenshaw2-1b.subx.html#L187'>get-num</a>/disp32 +<span id="L460" class="LineNr">460 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span> +<span id="L461" class="LineNr">461 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L462" class="LineNr">462 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L463" class="LineNr">463 </span> <span class="subxComment"># check that get-num tried to call exit(1)</span> +<span id="L464" class="LineNr">464 </span> <span class="subxS1Comment"># . check-ints-equal(ed->value, 2, msg) # i.e. stop was called with value 1</span> +<span id="L465" class="LineNr">465 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L466" class="LineNr">466 </span> 68/push <span class="Constant">"F - test-get-num-aborts-on-non-digit-in-Look"</span>/imm32 +<span id="L467" class="LineNr">467 </span> 68/push 2/imm32 +<span id="L468" class="LineNr">468 </span> <span class="subxS2Comment"># . . push ed->value</span> +<span id="L469" class="LineNr">469 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span> +<span id="L470" class="LineNr">470 </span> <span class="subxS2Comment"># . . call</span> +<span id="L471" class="LineNr">471 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32 +<span id="L472" class="LineNr">472 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L473" class="LineNr">473 </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="L474" class="LineNr">474 </span> <span class="subxS1Comment"># . reclaim locals</span> +<span id="L475" class="LineNr">475 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L476" class="LineNr">476 </span> 5d/pop-to-ebp +<span id="L477" class="LineNr">477 </span> c3/return +<span id="L478" class="LineNr">478 </span> +<span id="L479" class="LineNr">479 </span><span class="subxTest">test-get-num-reads-multiple-digits</span>: +<span id="L480" class="LineNr">480 </span> <span class="subxH1Comment"># - check that get-num returns all initial digits until it encounters a non-digit</span> +<span id="L481" class="LineNr">481 </span> <span class="subxComment"># This test uses exit-descriptors. Use ebp for setting up local variables.</span> +<span id="L482" class="LineNr">482 </span> 55/push-ebp +<span id="L483" class="LineNr">483 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L484" class="LineNr">484 </span> <span class="subxComment"># clear all streams</span> +<span id="L485" class="LineNr">485 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L486" class="LineNr">486 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L487" class="LineNr">487 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L488" class="LineNr">488 </span> <span class="subxS2Comment"># . . call</span> +<span id="L489" class="LineNr">489 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L490" class="LineNr">490 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L491" class="LineNr">491 </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="L492" class="LineNr">492 </span> <span class="subxS1Comment"># . clear-stream($_test-buffered-file->buffer)</span> +<span id="L493" class="LineNr">493 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L494" class="LineNr">494 </span> 68/push $_test-buffered-file->buffer/imm32 +<span id="L495" class="LineNr">495 </span> <span class="subxS2Comment"># . . call</span> +<span id="L496" class="LineNr">496 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L497" class="LineNr">497 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L498" class="LineNr">498 </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="L499" class="LineNr">499 </span> <span class="subxS1Comment"># . clear-stream(_test-output-stream)</span> +<span id="L500" class="LineNr">500 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L501" class="LineNr">501 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L502" class="LineNr">502 </span> <span class="subxS2Comment"># . . call</span> +<span id="L503" class="LineNr">503 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L504" class="LineNr">504 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L505" class="LineNr">505 </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="L506" class="LineNr">506 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> +<span id="L507" class="LineNr">507 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L508" class="LineNr">508 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L509" class="LineNr">509 </span> <span class="subxS2Comment"># . . call</span> +<span id="L510" class="LineNr">510 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L511" class="LineNr">511 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L512" class="LineNr">512 </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="L513" class="LineNr">513 </span> <span class="subxComment"># initialize 'in'</span> +<span id="L514" class="LineNr">514 </span> <span class="subxS1Comment"># . write(_test-stream, "3456 x")</span> +<span id="L515" class="LineNr">515 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L516" class="LineNr">516 </span> 68/push <span class="Constant">"3456"</span>/imm32 +<span id="L517" class="LineNr">517 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L518" class="LineNr">518 </span> <span class="subxS2Comment"># . . call</span> +<span id="L519" class="LineNr">519 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L520" class="LineNr">520 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L521" class="LineNr">521 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L522" class="LineNr">522 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'get-num' below</span> +<span id="L523" class="LineNr">523 </span> <span class="subxS1Comment"># . var ed/eax: exit-descriptor</span> +<span id="L524" class="LineNr">524 </span> 81 5/subop/subtract 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> 8/imm32 <span class="subxComment"># subtract from esp</span> +<span id="L525" class="LineNr">525 </span> 89/copy 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to eax</span> +<span id="L526" class="LineNr">526 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 16)</span> +<span id="L527" class="LineNr">527 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L528" class="LineNr">528 </span> 68/push 0x10/imm32/nbytes-of-args-for-get-num +<span id="L529" class="LineNr">529 </span> 50/push-eax/ed +<span id="L530" class="LineNr">530 </span> <span class="subxS2Comment"># . . call</span> +<span id="L531" class="LineNr">531 </span> e8/call <a href='../110stop.subx.html#L44'>tailor-exit-descriptor</a>/disp32 +<span id="L532" class="LineNr">532 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L533" class="LineNr">533 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L534" class="LineNr">534 </span> <span class="subxComment"># prime the pump</span> +<span id="L535" class="LineNr">535 </span> <span class="subxS1Comment"># . get-char(_test-buffered-file)</span> +<span id="L536" class="LineNr">536 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L537" class="LineNr">537 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32 +<span id="L538" class="LineNr">538 </span> <span class="subxS2Comment"># . . call</span> +<span id="L539" class="LineNr">539 </span> e8/call <a href='crenshaw2-1b.subx.html#L702'>get-char</a>/disp32 +<span id="L540" class="LineNr">540 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L541" class="LineNr">541 </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="L542" class="LineNr">542 </span> <span class="subxComment"># get-num(in, out, err, ed)</span> +<span id="L543" class="LineNr">543 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L544" class="LineNr">544 </span> 50/push-eax/ed +<span id="L545" class="LineNr">545 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L546" class="LineNr">546 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L547" class="LineNr">547 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32 +<span id="L548" class="LineNr">548 </span> <span class="subxS2Comment"># . . call</span> +<span id="L549" class="LineNr">549 </span> e8/call <a href='crenshaw2-1b.subx.html#L187'>get-num</a>/disp32 +<span id="L550" class="LineNr">550 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span> +<span id="L551" class="LineNr">551 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L552" class="LineNr">552 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L553" class="LineNr">553 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3456', msg)</span> +<span id="L554" class="LineNr">554 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L555" class="LineNr">555 </span> 68/push <span class="Constant">"F - test-get-num-reads-multiple-digits"</span>/imm32 +<span id="L556" class="LineNr">556 </span> 68/push 0x36353433/imm32 +<span id="L557" class="LineNr">557 </span> b8/copy-to-eax <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L558" class="LineNr">558 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+12)</span> +<span id="L559" class="LineNr">559 </span> <span class="subxS2Comment"># . . call</span> +<span id="L560" class="LineNr">560 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32 +<span id="L561" class="LineNr">561 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L562" class="LineNr">562 </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="L563" class="LineNr">563 </span> <span class="subxS1Comment"># . reclaim locals</span> +<span id="L564" class="LineNr">564 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L565" class="LineNr">565 </span> 5d/pop-to-ebp +<span id="L566" class="LineNr">566 </span> c3/return +<span id="L567" class="LineNr">567 </span> +<span id="L568" class="LineNr">568 </span><span class="subxTest">test-get-num-reads-multiple-digits-followed-by-nondigit</span>: +<span id="L569" class="LineNr">569 </span> <span class="subxH1Comment"># - check that get-num returns all initial digits until it encounters a non-digit</span> +<span id="L570" class="LineNr">570 </span> <span class="subxComment"># This test uses exit-descriptors. Use ebp for setting up local variables.</span> +<span id="L571" class="LineNr">571 </span> 55/push-ebp +<span id="L572" class="LineNr">572 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L573" class="LineNr">573 </span> <span class="subxComment"># clear all streams</span> +<span id="L574" class="LineNr">574 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> +<span id="L575" class="LineNr">575 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L576" class="LineNr">576 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L577" class="LineNr">577 </span> <span class="subxS2Comment"># . . call</span> +<span id="L578" class="LineNr">578 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L579" class="LineNr">579 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L580" class="LineNr">580 </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="L581" class="LineNr">581 </span> <span class="subxS1Comment"># . clear-stream($_test-buffered-file->buffer)</span> +<span id="L582" class="LineNr">582 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L583" class="LineNr">583 </span> 68/push $_test-buffered-file->buffer/imm32 +<span id="L584" class="LineNr">584 </span> <span class="subxS2Comment"># . . call</span> +<span id="L585" class="LineNr">585 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L586" class="LineNr">586 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L587" class="LineNr">587 </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="L588" class="LineNr">588 </span> <span class="subxS1Comment"># . clear-stream(_test-output-stream)</span> +<span id="L589" class="LineNr">589 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L590" class="LineNr">590 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L591" class="LineNr">591 </span> <span class="subxS2Comment"># . . call</span> +<span id="L592" class="LineNr">592 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L593" class="LineNr">593 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L594" class="LineNr">594 </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="L595" class="LineNr">595 </span> <span class="subxS1Comment"># . clear-stream(_test-error-stream)</span> +<span id="L596" class="LineNr">596 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L597" class="LineNr">597 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L598" class="LineNr">598 </span> <span class="subxS2Comment"># . . call</span> +<span id="L599" class="LineNr">599 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32 +<span id="L600" class="LineNr">600 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L601" class="LineNr">601 </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="L602" class="LineNr">602 </span> <span class="subxComment"># initialize 'in'</span> +<span id="L603" class="LineNr">603 </span> <span class="subxS1Comment"># . write(_test-stream, "3456 x")</span> +<span id="L604" class="LineNr">604 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L605" class="LineNr">605 </span> 68/push <span class="Constant">"3456 x"</span>/imm32 +<span id="L606" class="LineNr">606 </span> 68/push <a href='../108write.subx.html#L151'>_test-stream</a>/imm32 +<span id="L607" class="LineNr">607 </span> <span class="subxS2Comment"># . . call</span> +<span id="L608" class="LineNr">608 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L609" class="LineNr">609 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L610" class="LineNr">610 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L611" class="LineNr">611 </span> <span class="subxComment"># initialize exit-descriptor 'ed' for the call to 'get-num' below</span> +<span id="L612" class="LineNr">612 </span> <span class="subxS1Comment"># . var ed/eax: exit-descriptor</span> +<span id="L613" class="LineNr">613 </span> 81 5/subop/subtract 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> 8/imm32 <span class="subxComment"># subtract from esp</span> +<span id="L614" class="LineNr">614 </span> 89/copy 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to eax</span> +<span id="L615" class="LineNr">615 </span> <span class="subxS1Comment"># . tailor-exit-descriptor(ed, 16)</span> +<span id="L616" class="LineNr">616 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L617" class="LineNr">617 </span> 68/push 0x10/imm32/nbytes-of-args-for-get-num +<span id="L618" class="LineNr">618 </span> 50/push-eax/ed +<span id="L619" class="LineNr">619 </span> <span class="subxS2Comment"># . . call</span> +<span id="L620" class="LineNr">620 </span> e8/call <a href='../110stop.subx.html#L44'>tailor-exit-descriptor</a>/disp32 +<span id="L621" class="LineNr">621 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L622" class="LineNr">622 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L623" class="LineNr">623 </span> <span class="subxComment"># prime the pump</span> +<span id="L624" class="LineNr">624 </span> <span class="subxS1Comment"># . get-char(_test-buffered-file)</span> +<span id="L625" class="LineNr">625 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L626" class="LineNr">626 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32 +<span id="L627" class="LineNr">627 </span> <span class="subxS2Comment"># . . call</span> +<span id="L628" class="LineNr">628 </span> e8/call <a href='crenshaw2-1b.subx.html#L702'>get-char</a>/disp32 +<span id="L629" class="LineNr">629 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L630" class="LineNr">630 </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="L631" class="LineNr">631 </span> <span class="subxComment"># get-num(in, out, err, ed)</span> +<span id="L632" class="LineNr">632 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L633" class="LineNr">633 </span> 50/push-eax/ed +<span id="L634" class="LineNr">634 </span> 68/push <a href='../115write-byte.subx.html#L438'>_test-error-stream</a>/imm32 +<span id="L635" class="LineNr">635 </span> 68/push <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L636" class="LineNr">636 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32 +<span id="L637" class="LineNr">637 </span> <span class="subxS2Comment"># . . call</span> +<span id="L638" class="LineNr">638 </span> e8/call <a href='crenshaw2-1b.subx.html#L187'>get-num</a>/disp32 +<span id="L639" class="LineNr">639 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span> +<span id="L640" class="LineNr">640 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L641" class="LineNr">641 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> +<span id="L642" class="LineNr">642 </span> <span class="subxComment"># check-ints-equal(*_test-output-stream->data, '3456', msg)</span> +<span id="L643" class="LineNr">643 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L644" class="LineNr">644 </span> 68/push <span class="Constant">"F - test-get-num-reads-multiple-digits-followed-by-nondigit"</span>/imm32 +<span id="L645" class="LineNr">645 </span> 68/push 0x36353433/imm32 +<span id="L646" class="LineNr">646 </span> b8/copy-to-eax <a href='../115write-byte.subx.html#L287'>_test-output-stream</a>/imm32 +<span id="L647" class="LineNr">647 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+12)</span> +<span id="L648" class="LineNr">648 </span> <span class="subxS2Comment"># . . call</span> +<span id="L649" class="LineNr">649 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32 +<span id="L650" class="LineNr">650 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L651" class="LineNr">651 </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="L652" class="LineNr">652 </span> <span class="subxS1Comment"># . reclaim locals</span> +<span id="L653" class="LineNr">653 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L654" class="LineNr">654 </span> 5d/pop-to-ebp +<span id="L655" class="LineNr">655 </span> c3/return +<span id="L656" class="LineNr">656 </span> +<span id="L657" class="LineNr">657 </span><span class="subxComment">## helpers</span> +<span id="L658" class="LineNr">658 </span> +<span id="L659" class="LineNr">659 </span><span class="subxComment"># write(f, "Error: "+s+" expected\n") then stop(ed, 1)</span> +<span id="L660" class="LineNr">660 </span><span class="subxFunction">expected</span>: <span class="subxComment"># ed: (addr exit-descriptor), f: fd or (addr stream byte), s: (addr array byte)</span> +<span id="L661" class="LineNr">661 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L662" class="LineNr">662 </span> 55/push-ebp +<span id="L663" class="LineNr">663 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L664" class="LineNr">664 </span> <span class="subxComment"># write(f, "Error: ")</span> +<span id="L665" class="LineNr">665 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L666" class="LineNr">666 </span> 68/push <span class="Constant">"Error: "</span>/imm32 +<span id="L667" class="LineNr">667 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L668" class="LineNr">668 </span> <span class="subxS2Comment"># . . call</span> +<span id="L669" class="LineNr">669 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L670" class="LineNr">670 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L671" class="LineNr">671 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L672" class="LineNr">672 </span> <span class="subxComment"># write(f, s)</span> +<span id="L673" class="LineNr">673 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L674" class="LineNr">674 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+16)</span> +<span id="L675" class="LineNr">675 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L676" class="LineNr">676 </span> <span class="subxS2Comment"># . . call</span> +<span id="L677" class="LineNr">677 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L678" class="LineNr">678 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L679" class="LineNr">679 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L680" class="LineNr">680 </span> <span class="subxComment"># write(f, " expected\n")</span> +<span id="L681" class="LineNr">681 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L682" class="LineNr">682 </span> 68/push <span class="Constant">" expected\n"</span>/imm32 +<span id="L683" class="LineNr">683 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L684" class="LineNr">684 </span> <span class="subxS2Comment"># . . call</span> +<span id="L685" class="LineNr">685 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L686" class="LineNr">686 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L687" class="LineNr">687 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L688" class="LineNr">688 </span> <span class="subxComment"># stop(ed, 1)</span> +<span id="L689" class="LineNr">689 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L690" class="LineNr">690 </span> 68/push 1/imm32 +<span id="L691" class="LineNr">691 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L692" class="LineNr">692 </span> <span class="subxS2Comment"># . . call</span> +<span id="L693" class="LineNr">693 </span> e8/call <a href='../110stop.subx.html#L92'>stop</a>/disp32 +<span id="L694" class="LineNr">694 </span> <span class="subxComment"># should never get past this point</span> +<span id="L695" class="LineNr">695 </span><span class="Constant">$expected:dead-end</span>: +<span id="L696" class="LineNr">696 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L697" class="LineNr">697 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L698" class="LineNr">698 </span> 5d/pop-to-ebp +<span id="L699" class="LineNr">699 </span> c3/return +<span id="L700" class="LineNr">700 </span> +<span id="L701" class="LineNr">701 </span><span class="subxComment"># read a byte from 'f', and save it in 'Look'</span> +<span id="L702" class="LineNr">702 </span><span class="subxFunction">get-char</span>: <span class="subxComment"># f: (addr buffered-file)</span> +<span id="L703" class="LineNr">703 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L704" class="LineNr">704 </span> 55/push-ebp +<span id="L705" class="LineNr">705 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L706" class="LineNr">706 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L707" class="LineNr">707 </span> 50/push-eax +<span id="L708" class="LineNr">708 </span> <span class="subxComment"># eax = read-byte-buffered(f)</span> +<span id="L709" class="LineNr">709 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L710" class="LineNr">710 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L711" class="LineNr">711 </span> <span class="subxS2Comment"># . . call</span> +<span id="L712" class="LineNr">712 </span> e8/call <a href='../112read-byte.subx.html#L38'>read-byte-buffered</a>/disp32 +<span id="L713" class="LineNr">713 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L714" class="LineNr">714 </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="L715" class="LineNr">715 </span> <span class="subxComment"># save eax to Look</span> +<span id="L716" class="LineNr">716 </span> 89/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="SpecialChar"><a href='crenshaw2-1b.subx.html#L747'>Look</a></span>/disp32 <span class="Normal"> . </span> <span class="subxComment"># copy eax to *Look</span> +<span id="L717" class="LineNr">717 </span><span class="Constant">$get-char:end</span>: +<span id="L718" class="LineNr">718 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L719" class="LineNr">719 </span> 58/pop-to-eax +<span id="L720" class="LineNr">720 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L721" class="LineNr">721 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L722" class="LineNr">722 </span> 5d/pop-to-ebp +<span id="L723" class="LineNr">723 </span> c3/return +<span id="L724" class="LineNr">724 </span> +<span id="L725" class="LineNr">725 </span><span class="subxFunction">digit?</span>: <span class="subxComment"># c: int -> eax: boolean</span> +<span id="L726" class="LineNr">726 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L727" class="LineNr">727 </span> 55/push-ebp +<span id="L728" class="LineNr">728 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L729" class="LineNr">729 </span> <span class="subxComment"># eax = false</span> +<span id="L730" class="LineNr">730 </span> b8/copy-to-eax 0/imm32 +<span id="L731" class="LineNr">731 </span> <span class="subxComment"># if (c < '0') return false</span> +<span id="L732" class="LineNr">732 </span> 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 0x30/imm32 <span class="subxComment"># compare *(ebp+8)</span> +<span id="L733" class="LineNr">733 </span> 7c/jump-if-< $digit?:end/disp8 +<span id="L734" class="LineNr">734 </span> <span class="subxComment"># if (c > '9') return false</span> +<span id="L735" class="LineNr">735 </span> 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 0x39/imm32 <span class="subxComment"># compare *(ebp+8)</span> +<span id="L736" class="LineNr">736 </span> 7f/jump-if-> $digit?:end/disp8 +<span id="L737" class="LineNr">737 </span> <span class="subxComment"># otherwise return true</span> +<span id="L738" class="LineNr">738 </span> b8/copy-to-eax 1/imm32 +<span id="L739" class="LineNr">739 </span><span class="Constant">$digit?:end</span>: +<span id="L740" class="LineNr">740 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L741" class="LineNr">741 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L742" class="LineNr">742 </span> 5d/pop-to-ebp +<span id="L743" class="LineNr">743 </span> c3/return +<span id="L744" class="LineNr">744 </span> +<span id="L745" class="LineNr">745 </span>== data +<span id="L746" class="LineNr">746 </span> +<span id="L747" class="LineNr">747 </span><span class="SpecialChar">Look</span>: <span class="subxComment"># (char with some extra padding)</span> +<span id="L748" class="LineNr">748 </span> 0/imm32 +<span id="L749" class="LineNr">749 </span> +<span id="L750" class="LineNr">750 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/ex1.mu.html b/html/linux/apps/ex1.mu.html index a91ca222..bf1644a4 100644 --- a/html/linux/ex1.mu.html +++ b/html/linux/apps/ex1.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/ex1.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex1.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,15 +16,15 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } .LineNr { } -.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -54,21 +54,23 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/ex1.mu'>https://github.com/akkartik/mu/blob/main/linux/ex1.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex1.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/ex1.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># First example: return the answer to the Ultimate Question of Life, the</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment"># Universe, and Everything.</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment">#</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># To run:</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./translate ex1.mu</span> -<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./a.elf</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># Expected result:</span> -<span id="L8" class="LineNr"> 8 </span><span class="muComment"># $ echo $?</span> -<span id="L9" class="LineNr"> 9 </span><span class="muComment"># 42</span> -<span id="L10" class="LineNr">10 </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>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L12" class="LineNr">12 </span> <span class="PreProc">return</span> <span class="Constant">0x2a</span> <span class="muComment"># Mu requires hexadecimal</span> -<span id="L13" class="LineNr">13 </span><span class="Delimiter">}</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># Same as <a href="https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html">https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment">#</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># To run:</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate apps/ex1.mu</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># $ ./a.elf</span> +<span id="L9" class="LineNr"> 9 </span><span class="muComment"># Expected result:</span> +<span id="L10" class="LineNr">10 </span><span class="muComment"># $ echo $?</span> +<span id="L11" class="LineNr">11 </span><span class="muComment"># 42</span> +<span id="L12" class="LineNr">12 </span> +<span id="L13" class="LineNr">13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex1.mu.html#L13'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L14" class="LineNr">14 </span> <span class="PreProc">return</span> <span class="Constant">0x2a</span> <span class="muComment"># Mu requires hexadecimal</span> +<span id="L15" class="LineNr">15 </span><span class="Delimiter">}</span> </pre> </body> </html> diff --git a/html/linux/apps/ex1.subx.html b/html/linux/apps/ex1.subx.html new file mode 100644 index 00000000..678f74c9 --- /dev/null +++ b/html/linux/apps/ex1.subx.html @@ -0,0 +1,79 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex1.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.SpecialChar { color: #d70000; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex1.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex1.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># First example: return the answer to the Ultimate Question of Life, the</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment"># Universe, and Everything.</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment">#</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># Same as <a href="https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html">https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># To run:</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex1.subx -o ex1</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># $ bootstrap/bootstrap run ex1</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># Expected result:</span> +<span id="L10" class="LineNr">10 </span><span class="subxComment"># $ echo $?</span> +<span id="L11" class="LineNr">11 </span><span class="subxComment"># 42</span> +<span id="L12" class="LineNr">12 </span> +<span id="L13" class="LineNr">13 </span>== code +<span id="L14" class="LineNr">14 </span> +<span id="L15" class="LineNr">15 </span><span class="SpecialChar">Entry</span>: +<span id="L16" class="LineNr">16 </span><span class="subxComment"># exit(42)</span> +<span id="L17" class="LineNr">17 </span>bb/copy-to-ebx 0x2a/imm32 <span class="subxComment"># 42 in hex</span> +<span id="L18" class="LineNr">18 </span>e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L19" class="LineNr">19 </span> +<span id="L20" class="LineNr">20 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex10.subx.html b/html/linux/apps/ex10.subx.html new file mode 100644 index 00000000..c359244c --- /dev/null +++ b/html/linux/apps/ex10.subx.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex10.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex10.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex10.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># String comparison: return 1 iff the two args passed in at the commandline are equal.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex10.subx -o ex10</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap run ex10 abc abd</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo $?</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># 0 # false</span> +<span id="L9" class="LineNr"> 9 </span> +<span id="L10" class="LineNr">10 </span>== code +<span id="L11" class="LineNr">11 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L12" class="LineNr">12 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L13" class="LineNr">13 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L14" class="LineNr">14 </span> +<span id="L15" class="LineNr">15 </span><span class="SpecialChar">Entry</span>: <span class="subxComment"># return argv-equal(argv[1], argv[2])</span> +<span id="L16" class="LineNr">16 </span><span class="subxComment"># At the start of a SubX program:</span> +<span id="L17" class="LineNr">17 </span><span class="subxComment"># argc: *esp</span> +<span id="L18" class="LineNr">18 </span><span class="subxComment"># argv[0]: *(esp+4)</span> +<span id="L19" class="LineNr">19 </span><span class="subxComment"># argv[1]: *(esp+8)</span> +<span id="L20" class="LineNr">20 </span><span class="subxComment"># ...</span> +<span id="L21" class="LineNr">21 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L22" class="LineNr">22 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L23" class="LineNr">23 </span> <span class="subxComment"># argv-equal(argv[1], argv[2])</span> +<span id="L24" class="LineNr">24 </span> <span class="subxS2Comment"># . . push argv[2]</span> +<span id="L25" class="LineNr">25 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L26" class="LineNr">26 </span> <span class="subxS2Comment"># . . push argv[1]</span> +<span id="L27" class="LineNr">27 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L28" class="LineNr">28 </span> <span class="subxS2Comment"># . . call</span> +<span id="L29" class="LineNr">29 </span> e8/call <a href='ex10.subx.html#L36'>argv-equal</a>/disp32 +<span id="L30" class="LineNr">30 </span> <span class="subxComment"># exit(eax)</span> +<span id="L31" class="LineNr">31 </span> 89/copy 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to ebx</span> +<span id="L32" class="LineNr">32 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L33" class="LineNr">33 </span> +<span id="L34" class="LineNr">34 </span><span class="subxComment"># compare two null-terminated ascii strings</span> +<span id="L35" class="LineNr">35 </span><span class="subxComment"># reason for the name: the only place we should have null-terminated ascii strings is from commandline args</span> +<span id="L36" class="LineNr">36 </span><span class="subxFunction">argv-equal</span>: <span class="subxComment"># (s1, s2): null-terminated ascii strings -> eax: boolean</span> +<span id="L37" class="LineNr">37 </span> <span class="subxComment"># initialize s1 (ecx) and s2 (edx)</span> +<span id="L38" class="LineNr">38 </span> 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none <span class="Normal"> . </span> 1/r32/ecx 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(esp+4) to ecx</span> +<span id="L39" class="LineNr">39 </span> 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none <span class="Normal"> . </span> 2/r32/edx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(esp+8) to edx</span> +<span id="L40" class="LineNr">40 </span><span class="Constant">$argv-equal:loop</span>: +<span id="L41" class="LineNr">41 </span> <span class="subxComment"># c1/eax, c2/ebx = *s1, *s2</span> +<span id="L42" class="LineNr">42 </span> b8/copy-to-eax 0/imm32 +<span id="L43" class="LineNr">43 </span> 8a/copy-byte 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/AL <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy byte at *ecx to AL</span> +<span id="L44" class="LineNr">44 </span> bb/copy-to-ebx 0/imm32 +<span id="L45" class="LineNr">45 </span> 8a/copy-byte 0/mod/indirect 2/rm32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/BL <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy byte at *edx to BL</span> +<span id="L46" class="LineNr">46 </span> <span class="subxComment"># if (c1 == 0) break</span> +<span id="L47" class="LineNr">47 </span> 3d/compare-eax-and 0/imm32/null +<span id="L48" class="LineNr">48 </span> 74/jump-if-= $argv-equal:<span class="Constant">break</span>/disp8 +<span id="L49" class="LineNr">49 </span> <span class="subxComment"># if (c1 != c2) return false</span> +<span id="L50" class="LineNr">50 </span> 39/compare 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># compare eax and ebx</span> +<span id="L51" class="LineNr">51 </span> 75/jump-if-!= $argv-equal:false/disp8 +<span id="L52" class="LineNr">52 </span> <span class="subxComment"># ++s1, ++s2</span> +<span id="L53" class="LineNr">53 </span> 41/increment-ecx +<span id="L54" class="LineNr">54 </span> 42/increment-edx +<span id="L55" class="LineNr">55 </span> <span class="subxComment"># end while</span> +<span id="L56" class="LineNr">56 </span> eb/jump $argv-equal:<span class="Constant">loop</span>/disp8 +<span id="L57" class="LineNr">57 </span><span class="Constant">$argv-equal:break</span>: +<span id="L58" class="LineNr">58 </span> <span class="subxComment"># if (c2 == 0) return true</span> +<span id="L59" class="LineNr">59 </span> 81 7/subop/compare 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32/null <span class="subxComment"># compare ebx</span> +<span id="L60" class="LineNr">60 </span> 75/jump-if-!= $argv-equal:false/disp8 +<span id="L61" class="LineNr">61 </span><span class="Constant">$argv-equal:success</span>: +<span id="L62" class="LineNr">62 </span> b8/copy-to-eax 1/imm32 +<span id="L63" class="LineNr">63 </span> c3/return +<span id="L64" class="LineNr">64 </span> <span class="subxComment"># return false</span> +<span id="L65" class="LineNr">65 </span><span class="Constant">$argv-equal:false</span>: +<span id="L66" class="LineNr">66 </span> b8/copy-to-eax 0/imm32 +<span id="L67" class="LineNr">67 </span> c3/return +<span id="L68" class="LineNr">68 </span> +<span id="L69" class="LineNr">69 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex11.subx.html b/html/linux/apps/ex11.subx.html new file mode 100644 index 00000000..f101f852 --- /dev/null +++ b/html/linux/apps/ex11.subx.html @@ -0,0 +1,421 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex11.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } +.subxH1Comment { color: #005faf; text-decoration: underline; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex11.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex11.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Null-terminated vs size-prefixed ascii strings.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># By default we create strings with a 4-byte size prefix rather than a null suffix.</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># However we still need null-prefixed strings when interacting with the Linux</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># kernel in a few places. This layer implements a function for comparing</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># a null-terminated 'kernel string' with a size-prefixed 'SubX string'.</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment">#</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># To run:</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex11.subx -o ex11</span> +<span id="L10" class="LineNr"> 10 </span><span class="subxComment"># $ bootstrap/bootstrap run ex11 # runs a series of tests</span> +<span id="L11" class="LineNr"> 11 </span><span class="subxComment"># ...... # all tests pass</span> +<span id="L12" class="LineNr"> 12 </span><span class="subxComment">#</span> +<span id="L13" class="LineNr"> 13 </span><span class="subxComment"># (We can't yet run the tests when given a "test" commandline argument,</span> +<span id="L14" class="LineNr"> 14 </span><span class="subxComment"># because checking for it would require the function being tested! Breakage</span> +<span id="L15" class="LineNr"> 15 </span><span class="subxComment"># would cause tests to not run, rather than to fail as we'd like.)</span> +<span id="L16" class="LineNr"> 16 </span> +<span id="L17" class="LineNr"> 17 </span>== code +<span id="L18" class="LineNr"> 18 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L19" class="LineNr"> 19 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L20" class="LineNr"> 20 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L21" class="LineNr"> 21 </span> +<span id="L22" class="LineNr"> 22 </span><span class="SpecialChar">Entry</span>: <span class="subxComment"># run all tests</span> +<span id="L23" class="LineNr"> 23 </span> e8/call run-tests/disp32 <span class="subxComment"># 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.</span> +<span id="L24" class="LineNr"> 24 </span> <span class="subxComment"># exit(eax)</span> +<span id="L25" class="LineNr"> 25 </span> 89/copy 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to ebx</span> +<span id="L26" class="LineNr"> 26 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L27" class="LineNr"> 27 </span> +<span id="L28" class="LineNr"> 28 </span><span class="subxComment"># compare a null-terminated ascii string with a more idiomatic size-prefixed byte array</span> +<span id="L29" class="LineNr"> 29 </span><span class="subxComment"># reason for the name: the only place we should have null-terminated ascii strings is from commandline args</span> +<span id="L30" class="LineNr"> 30 </span><span class="subxFunction">kernel-string-equal?</span>: <span class="subxComment"># s: null-terminated ascii string, benchmark: size-prefixed ascii string -> eax: boolean</span> +<span id="L31" class="LineNr"> 31 </span> <span class="subxComment"># pseudocode:</span> +<span id="L32" class="LineNr"> 32 </span> <span class="subxComment"># n = benchmark->size</span> +<span id="L33" class="LineNr"> 33 </span> <span class="subxComment"># s1 = s</span> +<span id="L34" class="LineNr"> 34 </span> <span class="subxComment"># s2 = benchmark->data</span> +<span id="L35" class="LineNr"> 35 </span> <span class="subxComment"># i = 0</span> +<span id="L36" class="LineNr"> 36 </span> <span class="subxComment"># while i < n</span> +<span id="L37" class="LineNr"> 37 </span> <span class="subxComment"># c1 = *s1</span> +<span id="L38" class="LineNr"> 38 </span> <span class="subxComment"># c2 = *s2</span> +<span id="L39" class="LineNr"> 39 </span> <span class="subxComment"># if (c1 == 0) return false</span> +<span id="L40" class="LineNr"> 40 </span> <span class="subxComment"># if (c1 != c2) return false</span> +<span id="L41" class="LineNr"> 41 </span> <span class="subxComment"># ++s1, ++s2, ++i</span> +<span id="L42" class="LineNr"> 42 </span> <span class="subxComment"># return *s1 == 0</span> +<span id="L43" class="LineNr"> 43 </span> <span class="subxComment">#</span> +<span id="L44" class="LineNr"> 44 </span> <span class="subxComment"># registers:</span> +<span id="L45" class="LineNr"> 45 </span> <span class="subxComment"># i: ecx</span> +<span id="L46" class="LineNr"> 46 </span> <span class="subxComment"># n: edx</span> +<span id="L47" class="LineNr"> 47 </span> <span class="subxComment"># s1: edi</span> +<span id="L48" class="LineNr"> 48 </span> <span class="subxComment"># s2: esi</span> +<span id="L49" class="LineNr"> 49 </span> <span class="subxComment"># c1: eax</span> +<span id="L50" class="LineNr"> 50 </span> <span class="subxComment"># c2: ebx</span> +<span id="L51" class="LineNr"> 51 </span> <span class="subxComment">#</span> +<span id="L52" class="LineNr"> 52 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L53" class="LineNr"> 53 </span> 55/push-ebp +<span id="L54" class="LineNr"> 54 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L55" class="LineNr"> 55 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L56" class="LineNr"> 56 </span> 51/push-ecx +<span id="L57" class="LineNr"> 57 </span> 52/push-edx +<span id="L58" class="LineNr"> 58 </span> 53/push-ebx +<span id="L59" class="LineNr"> 59 </span> 56/push-esi +<span id="L60" class="LineNr"> 60 </span> 57/push-edi +<span id="L61" class="LineNr"> 61 </span> <span class="subxComment"># s1/edi = s</span> +<span id="L62" class="LineNr"> 62 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 7/r32/edi 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to edi</span> +<span id="L63" class="LineNr"> 63 </span> <span class="subxComment"># n/edx = benchmark->size</span> +<span id="L64" class="LineNr"> 64 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+12) to edx</span> +<span id="L65" class="LineNr"> 65 </span> 8b/copy 0/mod/indirect 2/rm32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *edx to edx</span> +<span id="L66" class="LineNr"> 66 </span> <span class="subxComment"># s2/esi = benchmark->data</span> +<span id="L67" class="LineNr"> 67 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/esi 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+12) to esi</span> +<span id="L68" class="LineNr"> 68 </span> 81 0/subop/add 3/mod/direct 6/rm32/esi <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 esi</span> +<span id="L69" class="LineNr"> 69 </span> <span class="subxComment"># i/ecx = c1/eax = c2/ebx = 0</span> +<span id="L70" class="LineNr"> 70 </span> b9/copy-to-ecx 0/imm32/exit +<span id="L71" class="LineNr"> 71 </span> b8/copy-to-eax 0/imm32 +<span id="L72" class="LineNr"> 72 </span> bb/copy-to-ebx 0/imm32 +<span id="L73" class="LineNr"> 73 </span><span class="Constant">$kernel-string-equal?:loop</span>: +<span id="L74" class="LineNr"> 74 </span> <span class="subxComment"># if (i >= n) break</span> +<span id="L75" class="LineNr"> 75 </span> 39/compare 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># compare ecx with edx</span> +<span id="L76" class="LineNr"> 76 </span> 7d/jump-if->= $kernel-string-equal?:<span class="Constant">break</span>/disp8 +<span id="L77" class="LineNr"> 77 </span> <span class="subxComment"># c1 = *s1</span> +<span id="L78" class="LineNr"> 78 </span> 8a/copy-byte 0/mod/indirect 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/AL <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy byte at *edi to AL</span> +<span id="L79" class="LineNr"> 79 </span> <span class="subxComment"># c2 = *s2</span> +<span id="L80" class="LineNr"> 80 </span> 8a/copy-byte 0/mod/indirect 6/rm32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/BL <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy byte at *esi to BL</span> +<span id="L81" class="LineNr"> 81 </span> <span class="subxComment"># if (c1 == 0) return false</span> +<span id="L82" class="LineNr"> 82 </span> 3d/compare-eax-and 0/imm32/null +<span id="L83" class="LineNr"> 83 </span> 74/jump-if-= $kernel-string-equal?:false/disp8 +<span id="L84" class="LineNr"> 84 </span> <span class="subxComment"># if (c1 != c2) return false</span> +<span id="L85" class="LineNr"> 85 </span> 39/compare 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># compare eax and ebx</span> +<span id="L86" class="LineNr"> 86 </span> 75/jump-if-!= $kernel-string-equal?:false/disp8 +<span id="L87" class="LineNr"> 87 </span> <span class="subxComment"># ++i</span> +<span id="L88" class="LineNr"> 88 </span> 41/increment-ecx +<span id="L89" class="LineNr"> 89 </span> <span class="subxComment"># ++s1</span> +<span id="L90" class="LineNr"> 90 </span> 47/increment-edi +<span id="L91" class="LineNr"> 91 </span> <span class="subxComment"># ++s2</span> +<span id="L92" class="LineNr"> 92 </span> 46/increment-esi +<span id="L93" class="LineNr"> 93 </span> eb/jump $kernel-string-equal?:<span class="Constant">loop</span>/disp8 +<span id="L94" class="LineNr"> 94 </span><span class="Constant">$kernel-string-equal?:break</span>: +<span id="L95" class="LineNr"> 95 </span> <span class="subxComment"># return *s1 == 0</span> +<span id="L96" class="LineNr"> 96 </span> 8a/copy-byte 0/mod/indirect 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/AL <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy byte at *edi to AL</span> +<span id="L97" class="LineNr"> 97 </span> 3d/compare-eax-and 0/imm32/null +<span id="L98" class="LineNr"> 98 </span> 75/jump-if-!= $kernel-string-equal?:false/disp8 +<span id="L99" class="LineNr"> 99 </span><span class="Constant">$kernel-string-equal?:true</span>: +<span id="L100" class="LineNr">100 </span> b8/copy-to-eax 1/imm32 +<span id="L101" class="LineNr">101 </span> eb/jump $kernel-string-equal?:end/disp8 +<span id="L102" class="LineNr">102 </span><span class="Constant">$kernel-string-equal?:false</span>: +<span id="L103" class="LineNr">103 </span> b8/copy-to-eax 0/imm32 +<span id="L104" class="LineNr">104 </span><span class="Constant">$kernel-string-equal?:end</span>: +<span id="L105" class="LineNr">105 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L106" class="LineNr">106 </span> 5f/pop-to-edi +<span id="L107" class="LineNr">107 </span> 5e/pop-to-esi +<span id="L108" class="LineNr">108 </span> 5b/pop-to-ebx +<span id="L109" class="LineNr">109 </span> 5a/pop-to-edx +<span id="L110" class="LineNr">110 </span> 59/pop-to-ecx +<span id="L111" class="LineNr">111 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L112" class="LineNr">112 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L113" class="LineNr">113 </span> 5d/pop-to-ebp +<span id="L114" class="LineNr">114 </span> c3/return +<span id="L115" class="LineNr">115 </span> +<span id="L116" class="LineNr">116 </span><span class="subxH1Comment"># - tests</span> +<span id="L117" class="LineNr">117 </span> +<span id="L118" class="LineNr">118 </span><span class="subxTest">test-compare-null-kernel-string-with-empty-array</span>: +<span id="L119" class="LineNr">119 </span> <span class="subxComment"># eax = kernel-string-equal?(Null-kernel-string, "")</span> +<span id="L120" class="LineNr">120 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L121" class="LineNr">121 </span> 68/push <span class="Constant">""</span>/imm32 +<span id="L122" class="LineNr">122 </span> 68/push <span class="SpecialChar">Null-kernel-string</span>/imm32 +<span id="L123" class="LineNr">123 </span> <span class="subxS2Comment"># . . call</span> +<span id="L124" class="LineNr">124 </span> e8/call kernel-string-equal?/disp32 +<span id="L125" class="LineNr">125 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L126" class="LineNr">126 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L127" class="LineNr">127 </span> <span class="subxComment"># check-ints-equal(eax, 1, msg)</span> +<span id="L128" class="LineNr">128 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L129" class="LineNr">129 </span> 68/push <span class="Constant">"F - test-compare-null-kernel-string-with-empty-array"</span>/imm32 +<span id="L130" class="LineNr">130 </span> 68/push 1/imm32/true +<span id="L131" class="LineNr">131 </span> 50/push-eax +<span id="L132" class="LineNr">132 </span> <span class="subxS2Comment"># . . call</span> +<span id="L133" class="LineNr">133 </span> e8/call check-ints-equal/disp32 +<span id="L134" class="LineNr">134 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L135" class="LineNr">135 </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="L136" class="LineNr">136 </span> c3/return +<span id="L137" class="LineNr">137 </span> +<span id="L138" class="LineNr">138 </span><span class="subxTest">test-compare-null-kernel-string-with-non-empty-array</span>: +<span id="L139" class="LineNr">139 </span> <span class="subxComment"># eax = kernel-string-equal?(Null-kernel-string, "Abc")</span> +<span id="L140" class="LineNr">140 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L141" class="LineNr">141 </span> 68/push <span class="Constant">"Abc"</span>/imm32 +<span id="L142" class="LineNr">142 </span> 68/push <span class="SpecialChar">Null-kernel-string</span>/imm32 +<span id="L143" class="LineNr">143 </span> <span class="subxS2Comment"># . . call</span> +<span id="L144" class="LineNr">144 </span> e8/call kernel-string-equal?/disp32 +<span id="L145" class="LineNr">145 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L146" class="LineNr">146 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L147" class="LineNr">147 </span> <span class="subxComment"># check-ints-equal(eax, 0, msg)</span> +<span id="L148" class="LineNr">148 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L149" class="LineNr">149 </span> 68/push <span class="Constant">"F - test-compare-null-kernel-string-with-non-empty-array"</span>/imm32 +<span id="L150" class="LineNr">150 </span> 68/push 0/imm32/false +<span id="L151" class="LineNr">151 </span> 50/push-eax +<span id="L152" class="LineNr">152 </span> <span class="subxS2Comment"># . . call</span> +<span id="L153" class="LineNr">153 </span> e8/call check-ints-equal/disp32 +<span id="L154" class="LineNr">154 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L155" class="LineNr">155 </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="L156" class="LineNr">156 </span> c3/return +<span id="L157" class="LineNr">157 </span> +<span id="L158" class="LineNr">158 </span><span class="subxTest">test-compare-kernel-string-with-equal-array</span>: +<span id="L159" class="LineNr">159 </span> <span class="subxComment"># eax = kernel-string-equal?(_test-Abc-kernel-string, "Abc")</span> +<span id="L160" class="LineNr">160 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L161" class="LineNr">161 </span> 68/push <span class="Constant">"Abc"</span>/imm32 +<span id="L162" class="LineNr">162 </span> 68/push _test-Abc-kernel-string/imm32 +<span id="L163" class="LineNr">163 </span> <span class="subxS2Comment"># . . call</span> +<span id="L164" class="LineNr">164 </span> e8/call kernel-string-equal?/disp32 +<span id="L165" class="LineNr">165 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L166" class="LineNr">166 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L167" class="LineNr">167 </span> <span class="subxComment"># check-ints-equal(eax, 1, msg)</span> +<span id="L168" class="LineNr">168 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L169" class="LineNr">169 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-equal-array"</span>/imm32 +<span id="L170" class="LineNr">170 </span> 68/push 1/imm32/true +<span id="L171" class="LineNr">171 </span> 50/push-eax +<span id="L172" class="LineNr">172 </span> <span class="subxS2Comment"># . . call</span> +<span id="L173" class="LineNr">173 </span> e8/call check-ints-equal/disp32 +<span id="L174" class="LineNr">174 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L175" class="LineNr">175 </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="L176" class="LineNr">176 </span> c3/return +<span id="L177" class="LineNr">177 </span> +<span id="L178" class="LineNr">178 </span><span class="subxTest">test-compare-kernel-string-with-inequal-array</span>: +<span id="L179" class="LineNr">179 </span> <span class="subxComment"># eax = kernel-string-equal?(_test-Abc-kernel-string, "Adc")</span> +<span id="L180" class="LineNr">180 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L181" class="LineNr">181 </span> 68/push <span class="Constant">"Adc"</span>/imm32 +<span id="L182" class="LineNr">182 </span> 68/push _test-Abc-kernel-string/imm32 +<span id="L183" class="LineNr">183 </span> <span class="subxS2Comment"># . . call</span> +<span id="L184" class="LineNr">184 </span> e8/call kernel-string-equal?/disp32 +<span id="L185" class="LineNr">185 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L186" class="LineNr">186 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L187" class="LineNr">187 </span> <span class="subxComment"># check-ints-equal(eax, 0, msg)</span> +<span id="L188" class="LineNr">188 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L189" class="LineNr">189 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-equal-array"</span>/imm32 +<span id="L190" class="LineNr">190 </span> 68/push 0/imm32/false +<span id="L191" class="LineNr">191 </span> 50/push-eax +<span id="L192" class="LineNr">192 </span> <span class="subxS2Comment"># . . call</span> +<span id="L193" class="LineNr">193 </span> e8/call check-ints-equal/disp32 +<span id="L194" class="LineNr">194 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L195" class="LineNr">195 </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="L196" class="LineNr">196 </span> c3/return +<span id="L197" class="LineNr">197 </span> +<span id="L198" class="LineNr">198 </span><span class="subxTest">test-compare-kernel-string-with-empty-array</span>: +<span id="L199" class="LineNr">199 </span> <span class="subxComment"># eax = kernel-string-equal?(_test-Abc-kernel-string, "")</span> +<span id="L200" class="LineNr">200 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L201" class="LineNr">201 </span> 68/push <span class="Constant">""</span>/imm32 +<span id="L202" class="LineNr">202 </span> 68/push _test-Abc-kernel-string/imm32 +<span id="L203" class="LineNr">203 </span> <span class="subxS2Comment"># . . call</span> +<span id="L204" class="LineNr">204 </span> e8/call kernel-string-equal?/disp32 +<span id="L205" class="LineNr">205 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L206" class="LineNr">206 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L207" class="LineNr">207 </span> <span class="subxComment"># check-ints-equal(eax, 0, msg)</span> +<span id="L208" class="LineNr">208 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L209" class="LineNr">209 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-equal-array"</span>/imm32 +<span id="L210" class="LineNr">210 </span> 68/push 0/imm32/false +<span id="L211" class="LineNr">211 </span> 50/push-eax +<span id="L212" class="LineNr">212 </span> <span class="subxS2Comment"># . . call</span> +<span id="L213" class="LineNr">213 </span> e8/call check-ints-equal/disp32 +<span id="L214" class="LineNr">214 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L215" class="LineNr">215 </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="L216" class="LineNr">216 </span> c3/return +<span id="L217" class="LineNr">217 </span> +<span id="L218" class="LineNr">218 </span><span class="subxTest">test-compare-kernel-string-with-shorter-array</span>: +<span id="L219" class="LineNr">219 </span> <span class="subxComment"># eax = kernel-string-equal?(_test-Abc-kernel-string, "Ab")</span> +<span id="L220" class="LineNr">220 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L221" class="LineNr">221 </span> 68/push <span class="Constant">"Ab"</span>/imm32 +<span id="L222" class="LineNr">222 </span> 68/push _test-Abc-kernel-string/imm32 +<span id="L223" class="LineNr">223 </span> <span class="subxS2Comment"># . . call</span> +<span id="L224" class="LineNr">224 </span> e8/call kernel-string-equal?/disp32 +<span id="L225" class="LineNr">225 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L226" class="LineNr">226 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L227" class="LineNr">227 </span> <span class="subxComment"># check-ints-equal(eax, 0, msg)</span> +<span id="L228" class="LineNr">228 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L229" class="LineNr">229 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-shorter-array"</span>/imm32 +<span id="L230" class="LineNr">230 </span> 68/push 0/imm32/false +<span id="L231" class="LineNr">231 </span> 50/push-eax +<span id="L232" class="LineNr">232 </span> <span class="subxS2Comment"># . . call</span> +<span id="L233" class="LineNr">233 </span> e8/call check-ints-equal/disp32 +<span id="L234" class="LineNr">234 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L235" class="LineNr">235 </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="L236" class="LineNr">236 </span> c3/return +<span id="L237" class="LineNr">237 </span> +<span id="L238" class="LineNr">238 </span><span class="subxTest">test-compare-kernel-string-with-longer-array</span>: +<span id="L239" class="LineNr">239 </span> <span class="subxComment"># eax = kernel-string-equal?(_test-Abc-kernel-string, "Abcd")</span> +<span id="L240" class="LineNr">240 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L241" class="LineNr">241 </span> 68/push <span class="Constant">"Abcd"</span>/imm32 +<span id="L242" class="LineNr">242 </span> 68/push _test-Abc-kernel-string/imm32 +<span id="L243" class="LineNr">243 </span> <span class="subxS2Comment"># . . call</span> +<span id="L244" class="LineNr">244 </span> e8/call kernel-string-equal?/disp32 +<span id="L245" class="LineNr">245 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L246" class="LineNr">246 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L247" class="LineNr">247 </span> <span class="subxComment"># check-ints-equal(eax, 0, msg)</span> +<span id="L248" class="LineNr">248 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L249" class="LineNr">249 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-longer-array"</span>/imm32 +<span id="L250" class="LineNr">250 </span> 68/push 0/imm32/false +<span id="L251" class="LineNr">251 </span> 50/push-eax +<span id="L252" class="LineNr">252 </span> <span class="subxS2Comment"># . . call</span> +<span id="L253" class="LineNr">253 </span> e8/call check-ints-equal/disp32 +<span id="L254" class="LineNr">254 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L255" class="LineNr">255 </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="L256" class="LineNr">256 </span> c3/return +<span id="L257" class="LineNr">257 </span> +<span id="L258" class="LineNr">258 </span><span class="subxH1Comment"># - helpers</span> +<span id="L259" class="LineNr">259 </span> +<span id="L260" class="LineNr">260 </span><span class="subxComment"># print msg to stderr if a != b, otherwise print "."</span> +<span id="L261" class="LineNr">261 </span><span class="subxFunction">check-ints-equal</span>: <span class="subxComment"># (a: int, b: int, msg: (addr array byte)) -> boolean</span> +<span id="L262" class="LineNr">262 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L263" class="LineNr">263 </span> 55/push-ebp +<span id="L264" class="LineNr">264 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L265" class="LineNr">265 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L266" class="LineNr">266 </span> 51/push-ecx +<span id="L267" class="LineNr">267 </span> 53/push-ebx +<span id="L268" class="LineNr">268 </span> <span class="subxComment"># load args into eax, ebx and ecx</span> +<span id="L269" class="LineNr">269 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to eax</span> +<span id="L270" class="LineNr">270 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+12) to ebx</span> +<span id="L271" class="LineNr">271 </span> <span class="subxComment"># if (eax == b/ebx) print('.') and return</span> +<span id="L272" class="LineNr">272 </span> 39/compare 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># compare eax and ebx</span> +<span id="L273" class="LineNr">273 </span> 75/jump-if-unequal $check-ints-equal:else/disp8 +<span id="L274" class="LineNr">274 </span> <span class="subxS1Comment"># . write-stderr('.')</span> +<span id="L275" class="LineNr">275 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L276" class="LineNr">276 </span> 68/push <span class="Constant">"."</span>/imm32 +<span id="L277" class="LineNr">277 </span> <span class="subxS2Comment"># . . call</span> +<span id="L278" class="LineNr">278 </span> e8/call <a href='ex11.subx.html#L310'>write-stderr</a>/disp32 +<span id="L279" class="LineNr">279 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L280" class="LineNr">280 </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="L281" class="LineNr">281 </span> <span class="subxS1Comment"># . return</span> +<span id="L282" class="LineNr">282 </span> eb/jump $check-ints-equal:end/disp8 +<span id="L283" class="LineNr">283 </span> <span class="subxComment"># otherwise print(msg)</span> +<span id="L284" class="LineNr">284 </span><span class="Constant">$check-ints-equal:else</span>: +<span id="L285" class="LineNr">285 </span> <span class="subxComment"># copy msg into ecx</span> +<span id="L286" class="LineNr">286 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+16) to ecx</span> +<span id="L287" class="LineNr">287 </span> <span class="subxComment"># print(ecx)</span> +<span id="L288" class="LineNr">288 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L289" class="LineNr">289 </span> 51/push-ecx +<span id="L290" class="LineNr">290 </span> <span class="subxS2Comment"># . . call</span> +<span id="L291" class="LineNr">291 </span> e8/call <a href='ex11.subx.html#L310'>write-stderr</a>/disp32 +<span id="L292" class="LineNr">292 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L293" class="LineNr">293 </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="L294" class="LineNr">294 </span> <span class="subxComment"># print newline</span> +<span id="L295" class="LineNr">295 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L296" class="LineNr">296 </span> 68/push <span class="SpecialChar">Newline</span>/imm32 +<span id="L297" class="LineNr">297 </span> <span class="subxS2Comment"># . . call</span> +<span id="L298" class="LineNr">298 </span> e8/call <a href='ex11.subx.html#L310'>write-stderr</a>/disp32 +<span id="L299" class="LineNr">299 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L300" class="LineNr">300 </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="L301" class="LineNr">301 </span><span class="Constant">$check-ints-equal:end</span>: +<span id="L302" class="LineNr">302 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L303" class="LineNr">303 </span> 5b/pop-to-ebx +<span id="L304" class="LineNr">304 </span> 59/pop-to-ecx +<span id="L305" class="LineNr">305 </span> <span class="subxComment"># end</span> +<span id="L306" class="LineNr">306 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L307" class="LineNr">307 </span> 5d/pop-to-ebp +<span id="L308" class="LineNr">308 </span> c3/return +<span id="L309" class="LineNr">309 </span> +<span id="L310" class="LineNr">310 </span><span class="subxFunction">write-stderr</span>: <span class="subxComment"># s: (addr array byte) -> <void></span> +<span id="L311" class="LineNr">311 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L312" class="LineNr">312 </span> 55/push-ebp +<span id="L313" class="LineNr">313 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L314" class="LineNr">314 </span> <span class="subxS1Comment"># . save registers</span> +<span id="L315" class="LineNr">315 </span> 50/push-eax +<span id="L316" class="LineNr">316 </span> 51/push-ecx +<span id="L317" class="LineNr">317 </span> 52/push-edx +<span id="L318" class="LineNr">318 </span> 53/push-ebx +<span id="L319" class="LineNr">319 </span> <span class="subxComment"># syscall(write, 2/stderr, (data) s+4, (size) *s)</span> +<span id="L320" class="LineNr">320 </span> <span class="subxS2Comment"># . . fd = 2 (stderr)</span> +<span id="L321" class="LineNr">321 </span> bb/copy-to-ebx 2/imm32 +<span id="L322" class="LineNr">322 </span> <span class="subxS2Comment"># . . x = s+4</span> +<span id="L323" class="LineNr">323 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to ecx</span> +<span id="L324" class="LineNr">324 </span> 81 0/subop/add 3/mod/direct 1/rm32/ecx <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 ecx</span> +<span id="L325" class="LineNr">325 </span> <span class="subxS2Comment"># . . size = *s</span> +<span id="L326" class="LineNr">326 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to edx</span> +<span id="L327" class="LineNr">327 </span> 8b/copy 0/mod/indirect 2/rm32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *edx to edx</span> +<span id="L328" class="LineNr">328 </span> <span class="subxS2Comment"># . . syscall</span> +<span id="L329" class="LineNr">329 </span> e8/call <a href='../000init.subx.html#L29'>syscall_write</a>/disp32 +<span id="L330" class="LineNr">330 </span> <span class="subxS1Comment"># . restore registers</span> +<span id="L331" class="LineNr">331 </span> 5b/pop-to-ebx +<span id="L332" class="LineNr">332 </span> 5a/pop-to-edx +<span id="L333" class="LineNr">333 </span> 59/pop-to-ecx +<span id="L334" class="LineNr">334 </span> 58/pop-to-eax +<span id="L335" class="LineNr">335 </span> <span class="subxS1Comment"># . end</span> +<span id="L336" class="LineNr">336 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L337" class="LineNr">337 </span> 5d/pop-to-ebp +<span id="L338" class="LineNr">338 </span> c3/return +<span id="L339" class="LineNr">339 </span> +<span id="L340" class="LineNr">340 </span>== data +<span id="L341" class="LineNr">341 </span> +<span id="L342" class="LineNr">342 </span><span class="SpecialChar">Newline</span>: +<span id="L343" class="LineNr">343 </span> <span class="subxComment"># size</span> +<span id="L344" class="LineNr">344 </span> 1/imm32 +<span id="L345" class="LineNr">345 </span> <span class="subxComment"># data</span> +<span id="L346" class="LineNr">346 </span> 0a/newline +<span id="L347" class="LineNr">347 </span> +<span id="L348" class="LineNr">348 </span><span class="subxComment"># for kernel-string-equal tests</span> +<span id="L349" class="LineNr">349 </span><span class="SpecialChar">Null-kernel-string</span>: +<span id="L350" class="LineNr">350 </span> 00/null +<span id="L351" class="LineNr">351 </span> +<span id="L352" class="LineNr">352 </span><span class="subxMinorFunction">_test-Abc-kernel-string</span>: +<span id="L353" class="LineNr">353 </span> 41/A 62/b 63/c 00/null +<span id="L354" class="LineNr">354 </span> +<span id="L355" class="LineNr">355 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex12.subx.html b/html/linux/apps/ex12.subx.html new file mode 100644 index 00000000..12b09331 --- /dev/null +++ b/html/linux/apps/ex12.subx.html @@ -0,0 +1,104 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex12.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex12.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex12.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Example showing mmap syscall.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment"># Create a new segment using mmap, save the address, write to it.</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment">#</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># To run:</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex12.subx -o ex12</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># $ bootstrap/bootstrap run ex12</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># You shouldn't get a segmentation fault.</span> +<span id="L8" class="LineNr"> 8 </span> +<span id="L9" class="LineNr"> 9 </span>== code +<span id="L10" class="LineNr">10 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L11" class="LineNr">11 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L12" class="LineNr">12 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L13" class="LineNr">13 </span> +<span id="L14" class="LineNr">14 </span><span class="SpecialChar">Entry</span>: +<span id="L15" class="LineNr">15 </span> <span class="subxComment"># mmap(Mmap-new-segment->len)</span> +<span id="L16" class="LineNr">16 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex12.subx.html#L29'>Mmap-new-segment</a></span>/imm32 +<span id="L17" class="LineNr">17 </span> e8/call <a href='../000init.subx.html#L71'>syscall_mmap</a>/disp32 +<span id="L18" class="LineNr">18 </span> +<span id="L19" class="LineNr">19 </span> <span class="subxComment"># write to *eax to check that we have access to the newly-allocated segment</span> +<span id="L20" class="LineNr">20 </span> c7 0/subop/copy 0/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x34/imm32 <span class="subxComment"># copy to *eax</span> +<span id="L21" class="LineNr">21 </span> +<span id="L22" class="LineNr">22 </span> <span class="subxComment"># exit(eax)</span> +<span id="L23" class="LineNr">23 </span> 89/copy 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to ebx</span> +<span id="L24" class="LineNr">24 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L25" class="LineNr">25 </span> +<span id="L26" class="LineNr">26 </span>== data +<span id="L27" class="LineNr">27 </span> +<span id="L28" class="LineNr">28 </span><span class="subxComment"># various constants used here were found in the Linux sources (search for file mman-common.h)</span> +<span id="L29" class="LineNr">29 </span><span class="SpecialChar">Mmap-new-segment</span>: <span class="subxComment"># type mmap_arg_struct</span> +<span id="L30" class="LineNr">30 </span> <span class="subxComment"># addr</span> +<span id="L31" class="LineNr">31 </span> 0/imm32 +<span id="L32" class="LineNr">32 </span> <span class="subxComment"># len</span> +<span id="L33" class="LineNr">33 </span> 0x100/imm32 +<span id="L34" class="LineNr">34 </span> <span class="subxComment"># protection flags</span> +<span id="L35" class="LineNr">35 </span> 3/imm32 <span class="subxComment"># PROT_READ | PROT_WRITE</span> +<span id="L36" class="LineNr">36 </span> <span class="subxComment"># sharing flags</span> +<span id="L37" class="LineNr">37 </span> 0x22/imm32 <span class="subxComment"># MAP_PRIVATE | MAP_ANONYMOUS</span> +<span id="L38" class="LineNr">38 </span> <span class="subxComment"># fd</span> +<span id="L39" class="LineNr">39 </span> -1/imm32 <span class="subxComment"># since MAP_ANONYMOUS is specified</span> +<span id="L40" class="LineNr">40 </span> <span class="subxComment"># offset</span> +<span id="L41" class="LineNr">41 </span> 0/imm32 <span class="subxComment"># since MAP_ANONYMOUS is specified</span> +<span id="L42" class="LineNr">42 </span> +<span id="L43" class="LineNr">43 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex13.subx.html b/html/linux/apps/ex13.subx.html new file mode 100644 index 00000000..c0181b6c --- /dev/null +++ b/html/linux/apps/ex13.subx.html @@ -0,0 +1,87 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex13.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex13.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex13.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Compare 3 and 3.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex13.subx -o ex13</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap run ex13</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo $?</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># 1</span> +<span id="L9" class="LineNr"> 9 </span> +<span id="L10" class="LineNr">10 </span>== code +<span id="L11" class="LineNr">11 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L12" class="LineNr">12 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L13" class="LineNr">13 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L14" class="LineNr">14 </span> +<span id="L15" class="LineNr">15 </span><span class="SpecialChar">Entry</span>: +<span id="L16" class="LineNr">16 </span> b8/copy-to-eax 3/imm32 +<span id="L17" class="LineNr">17 </span> 3d/compare-eax-and 3/imm32 +<span id="L18" class="LineNr">18 </span> 0f 94/set-if-= 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># set ebx to ZF</span> +<span id="L19" class="LineNr">19 </span> 81 4/subop/and 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xff/imm32 <span class="subxComment"># AND with eax</span> +<span id="L20" class="LineNr">20 </span> +<span id="L21" class="LineNr">21 </span><span class="Constant">$exit</span>: +<span id="L22" class="LineNr">22 </span> <span class="subxComment"># exit(ebx)</span> +<span id="L23" class="LineNr">23 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L24" class="LineNr">24 </span> +<span id="L25" class="LineNr">25 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex14.subx.html b/html/linux/apps/ex14.subx.html new file mode 100644 index 00000000..fd76cdc3 --- /dev/null +++ b/html/linux/apps/ex14.subx.html @@ -0,0 +1,88 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex14.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex14.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex14.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Multiply 2 numbers.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex14.subx -o ex14</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap run ex14</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo $?</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># 6</span> +<span id="L9" class="LineNr"> 9 </span> +<span id="L10" class="LineNr">10 </span>== code +<span id="L11" class="LineNr">11 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L12" class="LineNr">12 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L13" class="LineNr">13 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L14" class="LineNr">14 </span> +<span id="L15" class="LineNr">15 </span><span class="SpecialChar">Entry</span>: +<span id="L16" class="LineNr">16 </span> b8/copy-to-eax 1/imm32 +<span id="L17" class="LineNr">17 </span> b9/copy-to-ecx 2/imm32 +<span id="L18" class="LineNr">18 </span> bb/copy-to-ebx 3/imm32 +<span id="L19" class="LineNr">19 </span> +<span id="L20" class="LineNr">20 </span> 69/multiply 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx 3/imm32 <span class="subxComment"># ebx = ecx * 3</span> +<span id="L21" class="LineNr">21 </span> +<span id="L22" class="LineNr">22 </span><span class="Constant">$exit</span>: +<span id="L23" class="LineNr">23 </span> <span class="subxComment"># exit(ebx)</span> +<span id="L24" class="LineNr">24 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L25" class="LineNr">25 </span> +<span id="L26" class="LineNr">26 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/ex2.mu.html b/html/linux/apps/ex2.mu.html index 5c3da3c3..48ee0e00 100644 --- a/html/linux/ex2.mu.html +++ b/html/linux/apps/ex2.mu.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/ex2.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex2.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .Special { color: #ff6060; } .LineNr { } -.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -56,12 +56,12 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/ex2.mu'>https://github.com/akkartik/mu/blob/main/linux/ex2.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex2.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/ex2.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Add 3 and 4, and return the result in the exit code.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate ex2.mu</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate apps/ex2.mu</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./a.elf</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># Expected result:</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ echo $?</span> diff --git a/html/linux/apps/ex2.subx.html b/html/linux/apps/ex2.subx.html new file mode 100644 index 00000000..519b4b73 --- /dev/null +++ b/html/linux/apps/ex2.subx.html @@ -0,0 +1,79 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex2.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.SpecialChar { color: #d70000; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex2.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex2.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Add 3 and 4, and return the result in the exit code.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex2.subx -o ex2</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap run ex2</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo $?</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># 2</span> +<span id="L9" class="LineNr"> 9 </span> +<span id="L10" class="LineNr">10 </span>== code +<span id="L11" class="LineNr">11 </span> +<span id="L12" class="LineNr">12 </span><span class="SpecialChar">Entry</span>: +<span id="L13" class="LineNr">13 </span><span class="subxComment"># ebx = 3</span> +<span id="L14" class="LineNr">14 </span>bb/copy-to-ebx 3/imm32 +<span id="L15" class="LineNr">15 </span><span class="subxComment"># add 4 to ebx</span> +<span id="L16" class="LineNr">16 </span>81 0/subop/add 3/mod/direct 3/rm32/ebx 4/imm32 +<span id="L17" class="LineNr">17 </span><span class="subxComment"># exit(ebx)</span> +<span id="L18" class="LineNr">18 </span>e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L19" class="LineNr">19 </span> +<span id="L20" class="LineNr">20 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/ex3.2.mu.html b/html/linux/apps/ex3.2.mu.html index b2e48718..98c6a027 100644 --- a/html/linux/ex3.2.mu.html +++ b/html/linux/apps/ex3.2.mu.html @@ -1,33 +1,33 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/ex3.2.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex3.2.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.muRegEdx { color: #af5f00; } +.muRegEcx { color: #870000; } .Special { color: #ff6060; } .LineNr { } -.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -57,12 +57,12 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/ex3.2.mu'>https://github.com/akkartik/mu/blob/main/linux/ex3.2.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex3.2.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/ex3.2.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Unnecessarily use an array to sum 1..10</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate ex3.2.mu</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate apps/ex3.2.mu</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./a.elf</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ echo $?</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># 55</span> diff --git a/html/linux/ex3.mu.html b/html/linux/apps/ex3.mu.html index 70288094..9da58562 100644 --- a/html/linux/ex3.mu.html +++ b/html/linux/apps/ex3.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/ex3.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex3.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -17,15 +17,15 @@ a { color:inherit; } .PreProc { color: #c000c0; } .Special { color: #ff6060; } .LineNr { } -.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -55,12 +55,12 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/ex3.mu'>https://github.com/akkartik/mu/blob/main/linux/ex3.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex3.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/ex3.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Add the first 10 numbers, and return the result in the exit code.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate browse.mu</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate ex3.mu</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./a.elf</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># Expected result:</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ echo $?</span> diff --git a/html/linux/apps/ex3.subx.html b/html/linux/apps/ex3.subx.html new file mode 100644 index 00000000..0810bdc8 --- /dev/null +++ b/html/linux/apps/ex3.subx.html @@ -0,0 +1,98 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex3.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxS1Comment { color: #0000af; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.SpecialChar { color: #d70000; } +.Constant { color: #008787; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex3.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex3.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Add the first 10 numbers, and return the result in the exit code.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex3.subx -o ex3</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap run ex3</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo $?</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># 55</span> +<span id="L9" class="LineNr"> 9 </span> +<span id="L10" class="LineNr">10 </span>== code +<span id="L11" class="LineNr">11 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L12" class="LineNr">12 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L13" class="LineNr">13 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L14" class="LineNr">14 </span> +<span id="L15" class="LineNr">15 </span><span class="SpecialChar">Entry</span>: +<span id="L16" class="LineNr">16 </span> <span class="subxComment"># result: ebx = 0</span> +<span id="L17" class="LineNr">17 </span> bb/copy-to-ebx 0/imm32 +<span id="L18" class="LineNr">18 </span> <span class="subxComment"># counter: ecx = 1</span> +<span id="L19" class="LineNr">19 </span> b9/copy-to-ecx 1/imm32 +<span id="L20" class="LineNr">20 </span> +<span id="L21" class="LineNr">21 </span><span class="Constant">$loop</span>: +<span id="L22" class="LineNr">22 </span> <span class="subxComment"># if (counter > 10) break</span> +<span id="L23" class="LineNr">23 </span> 81 7/subop/compare 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xa/imm32 <span class="subxComment"># compare ecx</span> +<span id="L24" class="LineNr">24 </span> 7f/jump-if-> $exit/disp8 +<span id="L25" class="LineNr">25 </span> <span class="subxComment"># result += counter</span> +<span id="L26" class="LineNr">26 </span> 01/add 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># add ecx to ebx</span> +<span id="L27" class="LineNr">27 </span> <span class="subxComment"># ++counter</span> +<span id="L28" class="LineNr">28 </span> 41/increment-ecx +<span id="L29" class="LineNr">29 </span> <span class="subxComment"># loop</span> +<span id="L30" class="LineNr">30 </span> eb/jump $loop/disp8 +<span id="L31" class="LineNr">31 </span> +<span id="L32" class="LineNr">32 </span><span class="Constant">$exit</span>: +<span id="L33" class="LineNr">33 </span> <span class="subxComment"># exit(ebx)</span> +<span id="L34" class="LineNr">34 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L35" class="LineNr">35 </span> +<span id="L36" class="LineNr">36 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex4.subx.html b/html/linux/apps/ex4.subx.html new file mode 100644 index 00000000..1b3bd941 --- /dev/null +++ b/html/linux/apps/ex4.subx.html @@ -0,0 +1,99 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex4.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex4.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex4.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Read a character from stdin, save it to a global, write it to stdout.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex4.subx -o ex4</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap run ex4</span> +<span id="L6" class="LineNr"> 6 </span> +<span id="L7" class="LineNr"> 7 </span>== data +<span id="L8" class="LineNr"> 8 </span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># the global variable we save to</span> +<span id="L10" class="LineNr">10 </span><span class="SpecialChar">X</span>: +<span id="L11" class="LineNr">11 </span> 0/imm32 <span class="subxComment"># space for read() to write to</span> +<span id="L12" class="LineNr">12 </span> +<span id="L13" class="LineNr">13 </span>== code +<span id="L14" class="LineNr">14 </span> +<span id="L15" class="LineNr">15 </span><span class="SpecialChar">Entry</span>: +<span id="L16" class="LineNr">16 </span><span class="subxComment"># read(stdin, X, 1)</span> +<span id="L17" class="LineNr">17 </span><span class="subxS1Comment"># . fd = 0 (stdin)</span> +<span id="L18" class="LineNr">18 </span>bb/copy-to-ebx 0/imm32 +<span id="L19" class="LineNr">19 </span><span class="subxS1Comment"># . data = X (location to write result to)</span> +<span id="L20" class="LineNr">20 </span>b9/copy-to-ecx <span class="SpecialChar"><a href='ex4.subx.html#L10'>X</a></span>/imm32 +<span id="L21" class="LineNr">21 </span><span class="subxS1Comment"># . size = 1 character</span> +<span id="L22" class="LineNr">22 </span>ba/copy-to-edx 1/imm32 +<span id="L23" class="LineNr">23 </span><span class="subxS1Comment"># . syscall</span> +<span id="L24" class="LineNr">24 </span>e8/call <a href='../000init.subx.html#L23'>syscall_read</a>/disp32 +<span id="L25" class="LineNr">25 </span> +<span id="L26" class="LineNr">26 </span><span class="subxComment"># write(stdout, X, 1)</span> +<span id="L27" class="LineNr">27 </span><span class="subxS1Comment"># . fd = 1 (stdout)</span> +<span id="L28" class="LineNr">28 </span>bb/copy-to-ebx 1/imm32 +<span id="L29" class="LineNr">29 </span><span class="subxS1Comment"># . initialize X (location to read from)</span> +<span id="L30" class="LineNr">30 </span>b9/copy-to-ecx <span class="SpecialChar"><a href='ex4.subx.html#L10'>X</a></span>/imm32 +<span id="L31" class="LineNr">31 </span><span class="subxS1Comment"># . size = 1 character</span> +<span id="L32" class="LineNr">32 </span>ba/copy-to-edx 1/imm32 +<span id="L33" class="LineNr">33 </span><span class="subxS1Comment"># . syscall</span> +<span id="L34" class="LineNr">34 </span>e8/call <a href='../000init.subx.html#L29'>syscall_write</a>/disp32 +<span id="L35" class="LineNr">35 </span> +<span id="L36" class="LineNr">36 </span><span class="subxComment"># exit(ebx)</span> +<span id="L37" class="LineNr">37 </span>e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L38" class="LineNr">38 </span> +<span id="L39" class="LineNr">39 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex5.subx.html b/html/linux/apps/ex5.subx.html new file mode 100644 index 00000000..949e207c --- /dev/null +++ b/html/linux/apps/ex5.subx.html @@ -0,0 +1,101 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex5.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex5.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex5.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Read a character from stdin, save it to a local on the stack, write it to stdout.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex5.subx -o ex5</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap run ex5</span> +<span id="L6" class="LineNr"> 6 </span> +<span id="L7" class="LineNr"> 7 </span>== code +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L10" class="LineNr">10 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L11" class="LineNr">11 </span> +<span id="L12" class="LineNr">12 </span><span class="SpecialChar">Entry</span>: +<span id="L13" class="LineNr">13 </span> +<span id="L14" class="LineNr">14 </span> <span class="subxComment"># allocate x on the stack</span> +<span id="L15" class="LineNr">15 </span> 81 5/subop/subtract 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"># subtract from esp</span> +<span id="L16" class="LineNr">16 </span> +<span id="L17" class="LineNr">17 </span> <span class="subxComment"># read(stdin, x, 1)</span> +<span id="L18" class="LineNr">18 </span> <span class="subxS1Comment"># . fd = 0 (stdin)</span> +<span id="L19" class="LineNr">19 </span> bb/copy-to-ebx 0/imm32 +<span id="L20" class="LineNr">20 </span> <span class="subxS1Comment"># . data = x (location to write result to)</span> +<span id="L21" class="LineNr">21 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none 1/r32/ecx 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy esp+4 to ecx</span> +<span id="L22" class="LineNr">22 </span> <span class="subxS1Comment"># . size = 1 character</span> +<span id="L23" class="LineNr">23 </span> ba/copy-to-edx 1/imm32 +<span id="L24" class="LineNr">24 </span> <span class="subxS1Comment"># . syscall</span> +<span id="L25" class="LineNr">25 </span> e8/call <a href='../000init.subx.html#L23'>syscall_read</a>/disp32 +<span id="L26" class="LineNr">26 </span> +<span id="L27" class="LineNr">27 </span> <span class="subxComment"># syscall(write, stdout, x, 1)</span> +<span id="L28" class="LineNr">28 </span> <span class="subxS1Comment"># . fd = 1 (stdout)</span> +<span id="L29" class="LineNr">29 </span> bb/copy-to-ebx 1/imm32 +<span id="L30" class="LineNr">30 </span> <span class="subxS1Comment"># . data = x (location to read from)</span> +<span id="L31" class="LineNr">31 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none 1/r32/ecx 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy esp+4 to ecx</span> +<span id="L32" class="LineNr">32 </span> <span class="subxS1Comment"># . size = 1 character</span> +<span id="L33" class="LineNr">33 </span> ba/copy-to-edx 1/imm32 +<span id="L34" class="LineNr">34 </span> <span class="subxS1Comment"># . syscall</span> +<span id="L35" class="LineNr">35 </span> e8/call <a href='../000init.subx.html#L29'>syscall_write</a>/disp32 +<span id="L36" class="LineNr">36 </span> +<span id="L37" class="LineNr">37 </span> <span class="subxComment"># exit(ebx)</span> +<span id="L38" class="LineNr">38 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L39" class="LineNr">39 </span> +<span id="L40" class="LineNr">40 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex6.subx.html b/html/linux/apps/ex6.subx.html new file mode 100644 index 00000000..5aa4fd53 --- /dev/null +++ b/html/linux/apps/ex6.subx.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex6.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex6.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex6.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Print out a (global variable) string to stdout.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex6.subx -o ex6</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap run ex6</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Hello, world!</span> +<span id="L7" class="LineNr"> 7 </span> +<span id="L8" class="LineNr"> 8 </span>== code +<span id="L9" class="LineNr"> 9 </span> +<span id="L10" class="LineNr">10 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L11" class="LineNr">11 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L12" class="LineNr">12 </span> +<span id="L13" class="LineNr">13 </span><span class="SpecialChar">Entry</span>: +<span id="L14" class="LineNr">14 </span> <span class="subxComment"># write(stdout, X, Size)</span> +<span id="L15" class="LineNr">15 </span> <span class="subxS1Comment"># . fd = 1 (stdout)</span> +<span id="L16" class="LineNr">16 </span> bb/copy-to-ebx 1/imm32 +<span id="L17" class="LineNr">17 </span> <span class="subxS1Comment"># . initialize X (location to write result to)</span> +<span id="L18" class="LineNr">18 </span> b9/copy-to-ecx <span class="SpecialChar"><a href='ex6.subx.html#L31'>X</a></span>/imm32 +<span id="L19" class="LineNr">19 </span> <span class="subxS1Comment"># . initialize Size</span> +<span id="L20" class="LineNr">20 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx <span class="SpecialChar"><a href='ex6.subx.html#L29'>Size</a></span>/disp32 <span class="Normal"> . </span> <span class="subxComment"># copy *Size to edx</span> +<span id="L21" class="LineNr">21 </span> <span class="subxS1Comment"># . syscall</span> +<span id="L22" class="LineNr">22 </span> e8/call <a href='../000init.subx.html#L29'>syscall_write</a>/disp32 +<span id="L23" class="LineNr">23 </span> +<span id="L24" class="LineNr">24 </span> <span class="subxComment"># exit(ebx)</span> +<span id="L25" class="LineNr">25 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L26" class="LineNr">26 </span> +<span id="L27" class="LineNr">27 </span>== data +<span id="L28" class="LineNr">28 </span> +<span id="L29" class="LineNr">29 </span><span class="SpecialChar">Size</span>: <span class="subxComment"># size of string</span> +<span id="L30" class="LineNr">30 </span> 0x0d/imm32 <span class="subxComment"># 13</span> +<span id="L31" class="LineNr">31 </span><span class="SpecialChar">X</span>: <span class="subxComment"># string to print</span> +<span id="L32" class="LineNr">32 </span> 48 65 6c 6c 6f 20 77 6f 72 6c 64 21 0a 00 +<span id="L33" class="LineNr">33 </span><span class="subxComment"># H e l l o ␣ w o r l d ! newline null</span> +<span id="L34" class="LineNr">34 </span> +<span id="L35" class="LineNr">35 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex7.subx.html b/html/linux/apps/ex7.subx.html new file mode 100644 index 00000000..b2a87263 --- /dev/null +++ b/html/linux/apps/ex7.subx.html @@ -0,0 +1,159 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex7.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex7.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex7.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Example showing file syscalls.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># Create a file, open it for writing, write a character to it, close it, open</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># it for reading, read a character from it, close it, delete it, and return</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># the character read.</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment">#</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># To run:</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex7.subx -o ex7</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># $ bootstrap/bootstrap run ex7</span> +<span id="L10" class="LineNr">10 </span><span class="subxComment"># Expected result:</span> +<span id="L11" class="LineNr">11 </span><span class="subxComment"># $ echo $?</span> +<span id="L12" class="LineNr">12 </span><span class="subxComment"># 97</span> +<span id="L13" class="LineNr">13 </span> +<span id="L14" class="LineNr">14 </span>== code +<span id="L15" class="LineNr">15 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L16" class="LineNr">16 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L17" class="LineNr">17 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L18" class="LineNr">18 </span> +<span id="L19" class="LineNr">19 </span><span class="SpecialChar">Entry</span>: +<span id="L20" class="LineNr">20 </span> <span class="subxComment"># creat(Filename)</span> +<span id="L21" class="LineNr">21 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L94'>Filename</a></span>/imm32 +<span id="L22" class="LineNr">22 </span> b9/copy-to-ecx 0x180/imm32/fixed-perms +<span id="L23" class="LineNr">23 </span> e8/call <a href='../000init.subx.html#L53'>syscall_creat</a>/disp32 +<span id="L24" class="LineNr">24 </span> +<span id="L25" class="LineNr">25 </span> <span class="subxComment"># stream = open(Filename, O_WRONLY, 0) # we can't use 'fd' because it looks like a hex byte</span> +<span id="L26" class="LineNr">26 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L94'>Filename</a></span>/imm32 +<span id="L27" class="LineNr">27 </span> b9/copy-to-ecx 1/imm32/wronly +<span id="L28" class="LineNr">28 </span> ba/copy-to-edx 0x180/imm32/fixed-perms +<span id="L29" class="LineNr">29 </span> e8/call <a href='../000init.subx.html#L35'>syscall_open</a>/disp32 +<span id="L30" class="LineNr">30 </span> <span class="subxComment"># save stream</span> +<span id="L31" class="LineNr">31 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L88'>Stream</a></span>/imm32 +<span id="L32" class="LineNr">32 </span> 89/copy 0/mod/indirect 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to *ebx</span> +<span id="L33" class="LineNr">33 </span> +<span id="L34" class="LineNr">34 </span> <span class="subxComment"># write(Stream, "a", 1)</span> +<span id="L35" class="LineNr">35 </span> <span class="subxS1Comment"># . load stream</span> +<span id="L36" class="LineNr">36 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L88'>Stream</a></span>/imm32 +<span id="L37" class="LineNr">37 </span> 8b/copy 0/mod/indirect 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ebx to ebx</span> +<span id="L38" class="LineNr">38 </span> <span class="subxS1Comment"># .</span> +<span id="L39" class="LineNr">39 </span> b9/copy-to-ecx <span class="SpecialChar"><a href='ex7.subx.html#L90'>A</a></span>/imm32 +<span id="L40" class="LineNr">40 </span> ba/copy-to-edx 1/imm32/size +<span id="L41" class="LineNr">41 </span> e8/call <a href='../000init.subx.html#L29'>syscall_write</a>/disp32 +<span id="L42" class="LineNr">42 </span> +<span id="L43" class="LineNr">43 </span> <span class="subxComment"># close(Stream)</span> +<span id="L44" class="LineNr">44 </span> <span class="subxS1Comment"># . load stream</span> +<span id="L45" class="LineNr">45 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L88'>Stream</a></span>/imm32 +<span id="L46" class="LineNr">46 </span> 8b/copy 0/mod/indirect 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ebx to ebx</span> +<span id="L47" class="LineNr">47 </span> <span class="subxS1Comment"># .</span> +<span id="L48" class="LineNr">48 </span> e8/call <a href='../000init.subx.html#L41'>syscall_close</a>/disp32 +<span id="L49" class="LineNr">49 </span> +<span id="L50" class="LineNr">50 </span> <span class="subxComment"># stream = open(Filename, O_RDONLY, 0)</span> +<span id="L51" class="LineNr">51 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L94'>Filename</a></span>/imm32 +<span id="L52" class="LineNr">52 </span> b9/copy-to-ecx 0/imm32/rdonly +<span id="L53" class="LineNr">53 </span> ba/copy-to-edx 0x180/imm32/fixed-perms +<span id="L54" class="LineNr">54 </span> e8/call <a href='../000init.subx.html#L35'>syscall_open</a>/disp32 +<span id="L55" class="LineNr">55 </span> <span class="subxS1Comment"># . save Stream</span> +<span id="L56" class="LineNr">56 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L88'>Stream</a></span>/imm32 +<span id="L57" class="LineNr">57 </span> 89/copy 0/mod/indirect 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to *ebx</span> +<span id="L58" class="LineNr">58 </span> +<span id="L59" class="LineNr">59 </span> <span class="subxComment"># read(Stream, B, 1)</span> +<span id="L60" class="LineNr">60 </span> <span class="subxS1Comment"># . load stream</span> +<span id="L61" class="LineNr">61 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L88'>Stream</a></span>/imm32 +<span id="L62" class="LineNr">62 </span> 8b/copy 0/mod/indirect 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ebx to ebx</span> +<span id="L63" class="LineNr">63 </span> <span class="subxS1Comment"># .</span> +<span id="L64" class="LineNr">64 </span> b9/copy-to-ecx <span class="SpecialChar"><a href='ex7.subx.html#L92'>B</a></span>/imm32 +<span id="L65" class="LineNr">65 </span> ba/copy-to-edx 1/imm32/size +<span id="L66" class="LineNr">66 </span> e8/call <a href='../000init.subx.html#L23'>syscall_read</a>/disp32 +<span id="L67" class="LineNr">67 </span> +<span id="L68" class="LineNr">68 </span> <span class="subxComment"># close(Stream)</span> +<span id="L69" class="LineNr">69 </span> <span class="subxS1Comment"># . load stream</span> +<span id="L70" class="LineNr">70 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L88'>Stream</a></span>/imm32 +<span id="L71" class="LineNr">71 </span> 8b/copy 0/mod/indirect 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ebx to ebx</span> +<span id="L72" class="LineNr">72 </span> <span class="subxComment">#</span> +<span id="L73" class="LineNr">73 </span> e8/call <a href='../000init.subx.html#L41'>syscall_close</a>/disp32 +<span id="L74" class="LineNr">74 </span> +<span id="L75" class="LineNr">75 </span> <span class="subxComment"># unlink(filename)</span> +<span id="L76" class="LineNr">76 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L94'>Filename</a></span>/imm32 +<span id="L77" class="LineNr">77 </span> e8/call <a href='../000init.subx.html#L59'>syscall_unlink</a>/disp32 +<span id="L78" class="LineNr">78 </span> +<span id="L79" class="LineNr">79 </span> <span class="subxComment"># exit(b)</span> +<span id="L80" class="LineNr">80 </span> <span class="subxS1Comment"># . load b</span> +<span id="L81" class="LineNr">81 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='ex7.subx.html#L92'>B</a></span>/imm32 +<span id="L82" class="LineNr">82 </span> 8b/copy 0/mod/indirect 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ebx to ebx</span> +<span id="L83" class="LineNr">83 </span> <span class="subxComment">#</span> +<span id="L84" class="LineNr">84 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L85" class="LineNr">85 </span> +<span id="L86" class="LineNr">86 </span>== data +<span id="L87" class="LineNr">87 </span> +<span id="L88" class="LineNr">88 </span><span class="SpecialChar">Stream</span>: +<span id="L89" class="LineNr">89 </span> 0/imm32 +<span id="L90" class="LineNr">90 </span><span class="SpecialChar">A</span>: +<span id="L91" class="LineNr">91 </span> 61/imm32/A +<span id="L92" class="LineNr">92 </span><span class="SpecialChar">B</span>: +<span id="L93" class="LineNr">93 </span> 0/imm32 +<span id="L94" class="LineNr">94 </span><span class="SpecialChar">Filename</span>: +<span id="L95" class="LineNr">95 </span> 2e 66 6f 6f 00 00 00 00 +<span id="L96" class="LineNr">96 </span><span class="subxComment"># . f o o null</span> +<span id="L97" class="LineNr">97 </span> +<span id="L98" class="LineNr">98 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex8.subx.html b/html/linux/apps/ex8.subx.html new file mode 100644 index 00000000..86d16571 --- /dev/null +++ b/html/linux/apps/ex8.subx.html @@ -0,0 +1,123 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex8.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex8.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex8.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Example reading commandline arguments: compute length of first arg.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex8.subx -o ex8</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap run ex8 abc de fghi</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo $?</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># 3 # length of 'abc'</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment">#</span> +<span id="L10" class="LineNr">10 </span><span class="subxComment"># At the start of a SubX program:</span> +<span id="L11" class="LineNr">11 </span><span class="subxComment"># argc: *esp</span> +<span id="L12" class="LineNr">12 </span><span class="subxComment"># argv[0]: *(esp+4)</span> +<span id="L13" class="LineNr">13 </span><span class="subxComment"># argv[1]: *(esp+8)</span> +<span id="L14" class="LineNr">14 </span><span class="subxComment"># ...</span> +<span id="L15" class="LineNr">15 </span><span class="subxComment"># Locals start from esp-4 downwards.</span> +<span id="L16" class="LineNr">16 </span> +<span id="L17" class="LineNr">17 </span>== code +<span id="L18" class="LineNr">18 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L19" class="LineNr">19 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L20" class="LineNr">20 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L21" class="LineNr">21 </span> +<span id="L22" class="LineNr">22 </span><span class="SpecialChar">Entry</span>: +<span id="L23" class="LineNr">23 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L24" class="LineNr">24 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L25" class="LineNr">25 </span> <span class="subxComment"># eax = ascii-length(argv[1])</span> +<span id="L26" class="LineNr">26 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L27" class="LineNr">27 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L28" class="LineNr">28 </span> <span class="subxS2Comment"># . . call</span> +<span id="L29" class="LineNr">29 </span> e8/call <a href='ex8.subx.html#L37'>ascii-length</a>/disp32 +<span id="L30" class="LineNr">30 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L31" class="LineNr">31 </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="L32" class="LineNr">32 </span> +<span id="L33" class="LineNr">33 </span> <span class="subxComment"># exit(eax)</span> +<span id="L34" class="LineNr">34 </span> 89/copy 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to ebx</span> +<span id="L35" class="LineNr">35 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L36" class="LineNr">36 </span> +<span id="L37" class="LineNr">37 </span><span class="subxFunction">ascii-length</span>: <span class="subxComment"># s: (addr array byte) -> n/eax</span> +<span id="L38" class="LineNr">38 </span> <span class="subxComment"># edx = s</span> +<span id="L39" class="LineNr">39 </span> 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none <span class="Normal"> . </span> 2/r32/edx 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(esp+4) to edx</span> +<span id="L40" class="LineNr">40 </span> <span class="subxComment"># var result/eax = 0</span> +<span id="L41" class="LineNr">41 </span> b8/copy-to-eax 0/imm32 +<span id="L42" class="LineNr">42 </span><span class="Constant">$ascii-length:loop</span>: +<span id="L43" class="LineNr">43 </span> <span class="subxComment"># var c/ecx = *s</span> +<span id="L44" class="LineNr">44 </span> 8a/copy-byte 0/mod/* 2/rm32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/CL <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy byte at *edx to CL</span> +<span id="L45" class="LineNr">45 </span> <span class="subxComment"># if (c == '\0') break</span> +<span id="L46" class="LineNr">46 </span> 81 7/subop/compare 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32/null <span class="subxComment"># compare ecx</span> +<span id="L47" class="LineNr">47 </span> 74/jump-if-= $ascii-length:end/disp8 +<span id="L48" class="LineNr">48 </span> <span class="subxComment"># ++s</span> +<span id="L49" class="LineNr">49 </span> 42/increment-edx +<span id="L50" class="LineNr">50 </span> <span class="subxComment"># ++result</span> +<span id="L51" class="LineNr">51 </span> 40/increment-eax +<span id="L52" class="LineNr">52 </span> <span class="subxComment"># loop</span> +<span id="L53" class="LineNr">53 </span> eb/jump $ascii-length:<span class="Constant">loop</span>/disp8 +<span id="L54" class="LineNr">54 </span><span class="Constant">$ascii-length:end</span>: +<span id="L55" class="LineNr">55 </span> <span class="subxComment"># return eax</span> +<span id="L56" class="LineNr">56 </span> c3/return +<span id="L57" class="LineNr">57 </span> +<span id="L58" class="LineNr">58 </span>== data +<span id="L59" class="LineNr">59 </span> +<span id="L60" class="LineNr">60 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/ex9.subx.html b/html/linux/apps/ex9.subx.html new file mode 100644 index 00000000..3a79d9d9 --- /dev/null +++ b/html/linux/apps/ex9.subx.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/ex9.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/ex9.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/ex9.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Example showing arg order on the stack.</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># Show difference between ascii codes of first letter of first arg and first</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># letter of second arg.</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># To run:</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ bootstrap/bootstrap translate apps/ex9.subx -o ex9</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># $ bootstrap/bootstrap run ex9 z x</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># Expected result:</span> +<span id="L10" class="LineNr">10 </span><span class="subxComment"># $ echo $?</span> +<span id="L11" class="LineNr">11 </span><span class="subxComment"># 2</span> +<span id="L12" class="LineNr">12 </span><span class="subxComment">#</span> +<span id="L13" class="LineNr">13 </span><span class="subxComment"># At the start of a SubX program:</span> +<span id="L14" class="LineNr">14 </span><span class="subxComment"># argc: *esp</span> +<span id="L15" class="LineNr">15 </span><span class="subxComment"># argv[0]: *(esp+4)</span> +<span id="L16" class="LineNr">16 </span><span class="subxComment"># argv[1]: *(esp+8)</span> +<span id="L17" class="LineNr">17 </span><span class="subxComment"># ...</span> +<span id="L18" class="LineNr">18 </span><span class="subxComment"># Locals start from esp-4 downwards.</span> +<span id="L19" class="LineNr">19 </span> +<span id="L20" class="LineNr">20 </span>== code +<span id="L21" class="LineNr">21 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L22" class="LineNr">22 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L23" class="LineNr">23 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L24" class="LineNr">24 </span> +<span id="L25" class="LineNr">25 </span><span class="SpecialChar">Entry</span>: +<span id="L26" class="LineNr">26 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L27" class="LineNr">27 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L28" class="LineNr">28 </span> <span class="subxComment"># ascii-difference(argv[1], argv[2])</span> +<span id="L29" class="LineNr">29 </span> <span class="subxS2Comment"># . . push argv[2]</span> +<span id="L30" class="LineNr">30 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+12)</span> +<span id="L31" class="LineNr">31 </span> <span class="subxS2Comment"># . . push argv[1]</span> +<span id="L32" class="LineNr">32 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L33" class="LineNr">33 </span> <span class="subxS2Comment"># . . call</span> +<span id="L34" class="LineNr">34 </span> e8/call <a href='ex9.subx.html#L41'>ascii-difference</a>/disp32 +<span id="L35" class="LineNr">35 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L36" class="LineNr">36 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L37" class="LineNr">37 </span> <span class="subxComment"># exit(eax)</span> +<span id="L38" class="LineNr">38 </span> 89/copy 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to ebx</span> +<span id="L39" class="LineNr">39 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L40" class="LineNr">40 </span> +<span id="L41" class="LineNr">41 </span><span class="subxFunction">ascii-difference</span>: <span class="subxComment"># (s1, s2): null-terminated ascii strings</span> +<span id="L42" class="LineNr">42 </span> <span class="subxComment"># a = first letter of s1 (ecx)</span> +<span id="L43" class="LineNr">43 </span> 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(esp+4) to eax</span> +<span id="L44" class="LineNr">44 </span> 8b/copy 0/mod/indirect 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *eax to eax</span> +<span id="L45" class="LineNr">45 </span> <span class="subxComment"># b = first letter of s2 (edx)</span> +<span id="L46" class="LineNr">46 </span> 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none <span class="Normal"> . </span> 1/r32/ecx 8/disp8 <span class="subxComment"># copy *(esp+8) to ecx</span> +<span id="L47" class="LineNr">47 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to ecx</span> +<span id="L48" class="LineNr">48 </span> <span class="subxComment"># a-b</span> +<span id="L49" class="LineNr">49 </span> 29/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># subtract ecx from eax</span> +<span id="L50" class="LineNr">50 </span> c3/return +<span id="L51" class="LineNr">51 </span> +<span id="L52" class="LineNr">52 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/factorial.mu.html b/html/linux/apps/factorial.mu.html index 242c53b7..3e626b6d 100644 --- a/html/linux/factorial.mu.html +++ b/html/linux/apps/factorial.mu.html @@ -1,33 +1,33 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/factorial.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/factorial.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } -.LineNr { } .muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } .muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.LineNr { } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -57,12 +57,12 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/factorial.mu'>https://github.com/akkartik/mu/blob/main/linux/factorial.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/factorial.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/factorial.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># compute the factorial of 5, and return the result in the exit code</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate factorial.mu</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate apps/factorial.mu</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./a.elf</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ echo $?</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># 120</span> @@ -94,7 +94,7 @@ if ('onhashchange' in window) { <span id="L33" class="LineNr">33 </span> <span id="L34" class="LineNr">34 </span><span class="PreProc">fn</span> <span class="muTest"><a href='factorial.mu.html#L34'>test-factorial</a></span> <span class="Delimiter">{</span> <span id="L35" class="LineNr">35 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='factorial.mu.html#L19'>factorial</a> <span class="Constant">5</span> -<span id="L36" class="LineNr">36 </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="L36" class="LineNr">36 </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="L37" class="LineNr">37 </span><span class="Delimiter">}</span> <span id="L38" class="LineNr">38 </span> <span id="L39" class="LineNr">39 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='factorial.mu.html#L39'>main</a></span> args-on-stack: (addr array addr array byte)<span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> @@ -110,7 +110,7 @@ if ('onhashchange' in window) { <span id="L49" class="LineNr">49 </span> <span class="Delimiter">}</span> <span id="L50" class="LineNr">50 </span> <span class="muComment"># if (args[1] == "test") run-tests()</span> <span id="L51" class="LineNr">51 </span> <span class="PreProc">var</span> tmp2/<span class="muRegEcx">ecx</span>: (addr addr array byte) <span class="Special"><-</span> index args, <span class="Constant">1</span> -<span id="L52" class="LineNr">52 </span> <span class="PreProc">var</span> tmp3/eax: boolean <span class="Special"><-</span> <a href='105string-equal.subx.html#L15'>string-equal?</a> *tmp2, <span class="Constant">"test"</span> +<span id="L52" class="LineNr">52 </span> <span class="PreProc">var</span> tmp3/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L15'>string-equal?</a> *tmp2, <span class="Constant">"test"</span> <span id="L53" class="LineNr">53 </span> compare tmp3, <span class="Constant">0</span> <span id="L54" class="LineNr">54 </span> <span class="Delimiter">{</span> <span id="L55" class="LineNr">55 </span> <span class="PreProc">break-if-=</span> diff --git a/html/linux/apps/factorial.subx.html b/html/linux/apps/factorial.subx.html new file mode 100644 index 00000000..c8f08ab6 --- /dev/null +++ b/html/linux/apps/factorial.subx.html @@ -0,0 +1,217 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/factorial.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.Constant { color: #008787; } +.SpecialChar { color: #d70000; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.subxTest { color: #5f8700; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/factorial.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/factorial.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment">## compute the factorial of 5, and print the result</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ bootstrap/bootstrap translate [01]*.subx apps/factorial.subx -o factorial</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># $ bootstrap/bootstrap run factorial</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># Expected result:</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ echo $?</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># 120</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment">#</span> +<span id="L10" class="LineNr"> 10 </span><span class="subxComment"># You can also run the automated test suite:</span> +<span id="L11" class="LineNr"> 11 </span><span class="subxComment"># $ bootstrap/bootstrap run factorial test</span> +<span id="L12" class="LineNr"> 12 </span><span class="subxComment"># Expected output:</span> +<span id="L13" class="LineNr"> 13 </span><span class="subxComment"># ........</span> +<span id="L14" class="LineNr"> 14 </span><span class="subxComment"># Every '.' indicates a passing test. Failing tests get a 'F'.</span> +<span id="L15" class="LineNr"> 15 </span> +<span id="L16" class="LineNr"> 16 </span>== code +<span id="L17" class="LineNr"> 17 </span><span class="subxComment"># instruction effective address register displacement immediate</span> +<span id="L18" class="LineNr"> 18 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> +<span id="L19" class="LineNr"> 19 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> +<span id="L20" class="LineNr"> 20 </span> +<span id="L21" class="LineNr"> 21 </span><span class="subxFunction">factorial</span>: <span class="subxComment"># n: int -> _/eax: int</span> +<span id="L22" class="LineNr"> 22 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L23" class="LineNr"> 23 </span> 55/push-ebp +<span id="L24" class="LineNr"> 24 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L25" class="LineNr"> 25 </span> 51/push-ecx +<span id="L26" class="LineNr"> 26 </span> <span class="subxComment"># if (n <= 1) return 1</span> +<span id="L27" class="LineNr"> 27 </span> b8/copy-to-eax 1/imm32 +<span id="L28" class="LineNr"> 28 </span> 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 1/imm32 <span class="subxComment"># compare *(ebp+8)</span> +<span id="L29" class="LineNr"> 29 </span> 7e/jump-if-<= $factorial:end/disp8 +<span id="L30" class="LineNr"> 30 </span> <span class="subxComment"># var ecx: int = n-1</span> +<span id="L31" class="LineNr"> 31 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to ecx</span> +<span id="L32" class="LineNr"> 32 </span> 49/decrement-ecx +<span id="L33" class="LineNr"> 33 </span> <span class="subxComment"># var eax: int = factorial(n-1)</span> +<span id="L34" class="LineNr"> 34 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L35" class="LineNr"> 35 </span> 51/push-ecx +<span id="L36" class="LineNr"> 36 </span> <span class="subxS2Comment"># . . call</span> +<span id="L37" class="LineNr"> 37 </span> e8/call <a href='factorial.subx.html#L21'>factorial</a>/disp32 +<span id="L38" class="LineNr"> 38 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L39" class="LineNr"> 39 </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="L40" class="LineNr"> 40 </span> <span class="subxComment"># return n * factorial(n-1)</span> +<span id="L41" class="LineNr"> 41 </span> f7 4/subop/multiply 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># multiply *(ebp+8) into eax</span> +<span id="L42" class="LineNr"> 42 </span> <span class="subxComment"># TODO: check for overflow</span> +<span id="L43" class="LineNr"> 43 </span><span class="Constant">$factorial:end</span>: +<span id="L44" class="LineNr"> 44 </span> <span class="subxComment"># restore registers</span> +<span id="L45" class="LineNr"> 45 </span> 59/pop-to-ecx +<span id="L46" class="LineNr"> 46 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L47" class="LineNr"> 47 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> +<span id="L48" class="LineNr"> 48 </span> 5d/pop-to-ebp +<span id="L49" class="LineNr"> 49 </span> c3/return +<span id="L50" class="LineNr"> 50 </span> +<span id="L51" class="LineNr"> 51 </span><span class="subxTest">test-factorial</span>: +<span id="L52" class="LineNr"> 52 </span> <span class="subxComment"># factorial(5)</span> +<span id="L53" class="LineNr"> 53 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L54" class="LineNr"> 54 </span> 68/push 5/imm32 +<span id="L55" class="LineNr"> 55 </span> <span class="subxS2Comment"># . . call</span> +<span id="L56" class="LineNr"> 56 </span> e8/call <a href='factorial.subx.html#L21'>factorial</a>/disp32 +<span id="L57" class="LineNr"> 57 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L58" class="LineNr"> 58 </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="L59" class="LineNr"> 59 </span> <span class="subxComment"># check-ints-equal(eax, 120, msg)</span> +<span id="L60" class="LineNr"> 60 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L61" class="LineNr"> 61 </span> 68/push <span class="Constant">"F - test-factorial"</span>/imm32 +<span id="L62" class="LineNr"> 62 </span> 68/push 0x78/imm32/expected-120 +<span id="L63" class="LineNr"> 63 </span> 50/push-eax +<span id="L64" class="LineNr"> 64 </span> <span class="subxS2Comment"># . . call</span> +<span id="L65" class="LineNr"> 65 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32 +<span id="L66" class="LineNr"> 66 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L67" class="LineNr"> 67 </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="L68" class="LineNr"> 68 </span> <span class="subxComment"># end</span> +<span id="L69" class="LineNr"> 69 </span> c3/return +<span id="L70" class="LineNr"> 70 </span> +<span id="L71" class="LineNr"> 71 </span><span class="SpecialChar">Entry</span>: <span class="subxComment"># run tests if necessary, compute `factorial(5)` if not</span> +<span id="L72" class="LineNr"> 72 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L73" class="LineNr"> 73 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> +<span id="L74" class="LineNr"> 74 </span> +<span id="L75" class="LineNr"> 75 </span> <span class="subxComment"># initialize heap (needed by tests elsewhere)</span> +<span id="L76" class="LineNr"> 76 </span> <span class="subxS1Comment"># . Heap = new-segment(Heap-size)</span> +<span id="L77" class="LineNr"> 77 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L78" class="LineNr"> 78 </span> 68/push <span class="SpecialChar"><a href='../120allocate.subx.html#L27'>Heap</a></span>/imm32 +<span id="L79" class="LineNr"> 79 </span> ff 6/subop/push 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="SpecialChar"><a href='../120allocate.subx.html#L34'>Heap-size</a></span>/disp32 <span class="subxComment"># push *Heap-size</span> +<span id="L80" class="LineNr"> 80 </span> <span class="subxS2Comment"># . . call</span> +<span id="L81" class="LineNr"> 81 </span> e8/call <a href='../104new-segment.subx.html#L40'>new-segment</a>/disp32 +<span id="L82" class="LineNr"> 82 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L83" class="LineNr"> 83 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L84" class="LineNr"> 84 </span> +<span id="L85" class="LineNr"> 85 </span> <span class="subxComment"># if (argc <= 1) return factorial(5)</span> +<span id="L86" class="LineNr"> 86 </span><span class="Constant">$run-main</span>: +<span id="L87" class="LineNr"> 87 </span> 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/disp8 1/imm32 <span class="subxComment"># compare *ebp</span> +<span id="L88" class="LineNr"> 88 </span> 7f/jump-if-> $main:run-tests/disp8 +<span id="L89" class="LineNr"> 89 </span> <span class="subxComment"># eax = factorial(5)</span> +<span id="L90" class="LineNr"> 90 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L91" class="LineNr"> 91 </span> 68/push 5/imm32 +<span id="L92" class="LineNr"> 92 </span> <span class="subxS2Comment"># . . call</span> +<span id="L93" class="LineNr"> 93 </span> e8/call <a href='factorial.subx.html#L21'>factorial</a>/disp32 +<span id="L94" class="LineNr"> 94 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L95" class="LineNr"> 95 </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="L96" class="LineNr"> 96 </span> <span class="subxComment"># var buffer/ecx: (stream byte 10) # number of decimal digits a 32-bit number can have</span> +<span id="L97" class="LineNr"> 97 </span> 81 5/subop/subtract 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> 0xa/imm32 <span class="subxComment"># subtract from esp</span> +<span id="L98" class="LineNr"> 98 </span> 68/push 0xa/imm32/decimal-digits-in-32bit-number +<span id="L99" class="LineNr"> 99 </span> 68/push 0/imm32/read +<span id="L100" class="LineNr">100 </span> 68/push 0/imm32/write +<span id="L101" class="LineNr">101 </span> 89/copy 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ecx</span> +<span id="L102" class="LineNr">102 </span> <span class="subxComment"># write-int32-decimal(buffer, eax)</span> +<span id="L103" class="LineNr">103 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L104" class="LineNr">104 </span> 50/push-eax +<span id="L105" class="LineNr">105 </span> 51/push-ecx +<span id="L106" class="LineNr">106 </span> <span class="subxS2Comment"># . . call</span> +<span id="L107" class="LineNr">107 </span> e8/call <a href='../126write-int-decimal.subx.html#L8'>write-int32-decimal</a>/disp32 +<span id="L108" class="LineNr">108 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L109" class="LineNr">109 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L110" class="LineNr">110 </span> <span class="subxComment"># write-stream(stderr, buffer)</span> +<span id="L111" class="LineNr">111 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L112" class="LineNr">112 </span> 51/push-ecx +<span id="L113" class="LineNr">113 </span> 68/push 2/imm32/stderr +<span id="L114" class="LineNr">114 </span> <span class="subxS2Comment"># . . call</span> +<span id="L115" class="LineNr">115 </span> e8/call <a href='../113write-stream.subx.html#L17'>write-stream</a>/disp32 +<span id="L116" class="LineNr">116 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L117" class="LineNr">117 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L118" class="LineNr">118 </span> <span class="subxComment"># write(stderr, Newline)</span> +<span id="L119" class="LineNr">119 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L120" class="LineNr">120 </span> 68/push <span class="SpecialChar"><a href='../102test.subx.html#L82'>Newline</a></span>/imm32 +<span id="L121" class="LineNr">121 </span> 68/push 2/imm32/stderr +<span id="L122" class="LineNr">122 </span> <span class="subxS2Comment"># . . call</span> +<span id="L123" class="LineNr">123 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32 +<span id="L124" class="LineNr">124 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L125" class="LineNr">125 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L126" class="LineNr">126 </span> <span class="subxComment">#</span> +<span id="L127" class="LineNr">127 </span> 89/copy 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to ebx</span> +<span id="L128" class="LineNr">128 </span> eb/jump $main:end/disp8 +<span id="L129" class="LineNr">129 </span><span class="Constant">$main:run-tests</span>: +<span id="L130" class="LineNr">130 </span> <span class="subxComment"># otherwise if first arg is "test", then return run_tests()</span> +<span id="L131" class="LineNr">131 </span> <span class="subxComment"># if (!kernel-string-equal?(argv[1], "test")) goto do-nothing</span> +<span id="L132" class="LineNr">132 </span> <span class="subxS1Comment"># . eax = kernel-string-equal?(argv[1], "test")</span> +<span id="L133" class="LineNr">133 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L134" class="LineNr">134 </span> 68/push <span class="Constant">"test"</span>/imm32 +<span id="L135" class="LineNr">135 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> +<span id="L136" class="LineNr">136 </span> <span class="subxS2Comment"># . . call</span> +<span id="L137" class="LineNr">137 </span> e8/call <a href='../103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a>/disp32 +<span id="L138" class="LineNr">138 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L139" class="LineNr">139 </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> 8/imm32 <span class="subxComment"># add to esp</span> +<span id="L140" class="LineNr">140 </span> <span class="subxS1Comment"># . if (eax == false) goto do-nothing</span> +<span id="L141" class="LineNr">141 </span> 3d/compare-eax-and 0/imm32/false +<span id="L142" class="LineNr">142 </span> 74/jump-if-= $main:do-nothing/disp8 +<span id="L143" class="LineNr">143 </span> <span class="subxComment"># run-tests()</span> +<span id="L144" class="LineNr">144 </span> e8/call run-tests/disp32 +<span id="L145" class="LineNr">145 </span> <span class="subxComment"># exit(*Num-test-failures)</span> +<span id="L146" class="LineNr">146 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx <span class="SpecialChar"><a href='../102test.subx.html#L89'>Num-test-failures</a></span>/disp32 <span class="subxComment"># copy *Num-test-failures to ebx</span> +<span id="L147" class="LineNr">147 </span> eb/jump $main:end/disp8 +<span id="L148" class="LineNr">148 </span><span class="Constant">$main:do-nothing</span>: +<span id="L149" class="LineNr">149 </span> bb/copy-to-ebx 0/imm32 +<span id="L150" class="LineNr">150 </span><span class="Constant">$main:end</span>: +<span id="L151" class="LineNr">151 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +<span id="L152" class="LineNr">152 </span> +<span id="L153" class="LineNr">153 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/factorial2.subx.html b/html/linux/apps/factorial2.subx.html new file mode 100644 index 00000000..72331748 --- /dev/null +++ b/html/linux/apps/factorial2.subx.html @@ -0,0 +1,185 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/factorial2.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.subxS2Comment { color: #8a8a8a; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } +.Constant { color: #008787; } +.subxTest { color: #5f8700; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/factorial2.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/factorial2.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment">## compute the factorial of 5, and return the result in the exit code</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># Uses syntax sugar for:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># rm32 operands</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment">#</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># To run:</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># $ ./translate_subx init.linux [01]*.subx apps/factorial2.subx -o factorial</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># $ bootstrap/bootstrap run factorial</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># Expected result:</span> +<span id="L10" class="LineNr"> 10 </span><span class="subxComment"># $ echo $?</span> +<span id="L11" class="LineNr"> 11 </span><span class="subxComment"># 120</span> +<span id="L12" class="LineNr"> 12 </span><span class="subxComment">#</span> +<span id="L13" class="LineNr"> 13 </span><span class="subxComment"># You can also run the automated test suite:</span> +<span id="L14" class="LineNr"> 14 </span><span class="subxComment"># $ bootstrap/bootstrap run factorial test</span> +<span id="L15" class="LineNr"> 15 </span><span class="subxComment"># Expected output:</span> +<span id="L16" class="LineNr"> 16 </span><span class="subxComment"># ........</span> +<span id="L17" class="LineNr"> 17 </span><span class="subxComment"># Every '.' indicates a passing test. Failing tests get a 'F'.</span> +<span id="L18" class="LineNr"> 18 </span><span class="subxComment">#</span> +<span id="L19" class="LineNr"> 19 </span><span class="subxComment"># Compare factorial.subx</span> +<span id="L20" class="LineNr"> 20 </span> +<span id="L21" class="LineNr"> 21 </span>== code +<span id="L22" class="LineNr"> 22 </span> +<span id="L23" class="LineNr"> 23 </span><span class="subxFunction">factorial</span>: <span class="subxComment"># n: int -> _/eax: int</span> +<span id="L24" class="LineNr"> 24 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L25" class="LineNr"> 25 </span> 55/push-ebp +<span id="L26" class="LineNr"> 26 </span> 89/<- %ebp 4/r32/esp +<span id="L27" class="LineNr"> 27 </span> <span class="subxComment"># save registers</span> +<span id="L28" class="LineNr"> 28 </span> 51/push-ecx +<span id="L29" class="LineNr"> 29 </span> <span class="subxComment"># if (n <= 1) return 1</span> +<span id="L30" class="LineNr"> 30 </span> b8/copy-to-eax 1/imm32 +<span id="L31" class="LineNr"> 31 </span> 81 7/subop/compare *(ebp+8) 1/imm32 +<span id="L32" class="LineNr"> 32 </span> 7e/jump-if-<= $factorial:end/disp8 +<span id="L33" class="LineNr"> 33 </span> <span class="subxComment"># n > 1; return n * factorial(n-1)</span> +<span id="L34" class="LineNr"> 34 </span> 8b/-> *(ebp+8) 1/r32/ecx +<span id="L35" class="LineNr"> 35 </span> 49/decrement-ecx +<span id="L36" class="LineNr"> 36 </span> <span class="subxComment"># var tmp/eax: int = factorial(n-1)</span> +<span id="L37" class="LineNr"> 37 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L38" class="LineNr"> 38 </span> 51/push-ecx +<span id="L39" class="LineNr"> 39 </span> <span class="subxS2Comment"># . . call</span> +<span id="L40" class="LineNr"> 40 </span> e8/call <a href='factorial2.subx.html#L23'>factorial</a>/disp32 +<span id="L41" class="LineNr"> 41 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L42" class="LineNr"> 42 </span> 81 0/subop/add %esp 4/imm32 +<span id="L43" class="LineNr"> 43 </span> <span class="subxComment"># return n * tmp</span> +<span id="L44" class="LineNr"> 44 </span> f7 4/subop/multiply-into-eax *(ebp+8) +<span id="L45" class="LineNr"> 45 </span> <span class="subxComment"># TODO: check for overflow</span> +<span id="L46" class="LineNr"> 46 </span><span class="Constant">$factorial:end</span>: +<span id="L47" class="LineNr"> 47 </span> <span class="subxComment"># restore registers</span> +<span id="L48" class="LineNr"> 48 </span> 59/pop-to-ecx +<span id="L49" class="LineNr"> 49 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L50" class="LineNr"> 50 </span> 89/<- %esp 5/r32/ebp +<span id="L51" class="LineNr"> 51 </span> 5d/pop-to-ebp +<span id="L52" class="LineNr"> 52 </span> c3/return +<span id="L53" class="LineNr"> 53 </span> +<span id="L54" class="LineNr"> 54 </span><span class="subxTest">test-factorial</span>: +<span id="L55" class="LineNr"> 55 </span> <span class="subxComment"># factorial(5)</span> +<span id="L56" class="LineNr"> 56 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L57" class="LineNr"> 57 </span> 68/push 5/imm32 +<span id="L58" class="LineNr"> 58 </span> <span class="subxS2Comment"># . . call</span> +<span id="L59" class="LineNr"> 59 </span> e8/call <a href='factorial2.subx.html#L23'>factorial</a>/disp32 +<span id="L60" class="LineNr"> 60 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L61" class="LineNr"> 61 </span> 81 0/subop/add %esp 4/imm32 +<span id="L62" class="LineNr"> 62 </span> <span class="subxComment"># check-ints-equal(eax, 120, msg)</span> +<span id="L63" class="LineNr"> 63 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L64" class="LineNr"> 64 </span> 68/push <span class="Constant">"F - test-factorial"</span>/imm32 +<span id="L65" class="LineNr"> 65 </span> 68/push 0x78/imm32/expected-120 +<span id="L66" class="LineNr"> 66 </span> 50/push-eax +<span id="L67" class="LineNr"> 67 </span> <span class="subxS2Comment"># . . call</span> +<span id="L68" class="LineNr"> 68 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32 +<span id="L69" class="LineNr"> 69 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L70" class="LineNr"> 70 </span> 81 0/subop/add %esp 0xc/imm32 +<span id="L71" class="LineNr"> 71 </span> <span class="subxComment"># end</span> +<span id="L72" class="LineNr"> 72 </span> c3/return +<span id="L73" class="LineNr"> 73 </span> +<span id="L74" class="LineNr"> 74 </span><span class="SpecialChar">Entry</span>: <span class="subxComment"># run tests if necessary, compute `factorial(5)` if not</span> +<span id="L75" class="LineNr"> 75 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L76" class="LineNr"> 76 </span> 89/<- %ebp 4/r32/esp +<span id="L77" class="LineNr"> 77 </span> +<span id="L78" class="LineNr"> 78 </span> <span class="subxComment"># initialize heap (needed by tests elsewhere)</span> +<span id="L79" class="LineNr"> 79 </span> <span class="subxS1Comment"># . Heap = new-segment(Heap-size)</span> +<span id="L80" class="LineNr"> 80 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L81" class="LineNr"> 81 </span> 68/push <span class="SpecialChar"><a href='../120allocate.subx.html#L27'>Heap</a></span>/imm32 +<span id="L82" class="LineNr"> 82 </span> ff 6/subop/push *<span class="SpecialChar"><a href='../120allocate.subx.html#L34'>Heap-size</a></span> +<span id="L83" class="LineNr"> 83 </span> <span class="subxS2Comment"># . . call</span> +<span id="L84" class="LineNr"> 84 </span> e8/call <a href='../104new-segment.subx.html#L40'>new-segment</a>/disp32 +<span id="L85" class="LineNr"> 85 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L86" class="LineNr"> 86 </span> 81 0/subop/add %esp 8/imm32 +<span id="L87" class="LineNr"> 87 </span> +<span id="L88" class="LineNr"> 88 </span> <span class="subxComment"># if (argc <= 1) return factorial(5)</span> +<span id="L89" class="LineNr"> 89 </span> 81 7/subop/compare *ebp 1/imm32 +<span id="L90" class="LineNr"> 90 </span> 7f/jump-if-> $main:run-tests/disp8 +<span id="L91" class="LineNr"> 91 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L92" class="LineNr"> 92 </span> 68/push 5/imm32 +<span id="L93" class="LineNr"> 93 </span> <span class="subxS2Comment"># . . call</span> +<span id="L94" class="LineNr"> 94 </span> e8/call <a href='factorial2.subx.html#L23'>factorial</a>/disp32 +<span id="L95" class="LineNr"> 95 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L96" class="LineNr"> 96 </span> 81 0/subop/add %esp 4/imm32 +<span id="L97" class="LineNr"> 97 </span> <span class="subxS1Comment"># .</span> +<span id="L98" class="LineNr"> 98 </span> 89/<- %ebx 0/r32/eax +<span id="L99" class="LineNr"> 99 </span> eb/jump $main:end/disp8 +<span id="L100" class="LineNr">100 </span><span class="Constant">$main:run-tests</span>: +<span id="L101" class="LineNr">101 </span> <span class="subxComment"># otherwise if first arg is "test", then return run_tests()</span> +<span id="L102" class="LineNr">102 </span> <span class="subxComment"># if (!kernel-string-equal?(argv[1], "test")) goto do-nothing</span> +<span id="L103" class="LineNr">103 </span> <span class="subxS1Comment"># . eax = kernel-string-equal?(argv[1], "test")</span> +<span id="L104" class="LineNr">104 </span> <span class="subxS2Comment"># . . push args</span> +<span id="L105" class="LineNr">105 </span> 68/push <span class="Constant">"test"</span>/imm32 +<span id="L106" class="LineNr">106 </span> ff 6/subop/push *(ebp+8) +<span id="L107" class="LineNr">107 </span> <span class="subxS2Comment"># . . call</span> +<span id="L108" class="LineNr">108 </span> e8/call <a href='../103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a>/disp32 +<span id="L109" class="LineNr">109 </span> <span class="subxS2Comment"># . . discard args</span> +<span id="L110" class="LineNr">110 </span> 81 0/subop/add %esp 8/imm32 +<span id="L111" class="LineNr">111 </span> <span class="subxS1Comment"># . if (eax == false) goto do-nothing</span> +<span id="L112" class="LineNr">112 </span> 3d/compare-eax-and 0/imm32/false +<span id="L113" class="LineNr">113 </span> 74/jump-if-= $main:do-nothing/disp8 +<span id="L114" class="LineNr">114 </span> <span class="subxComment"># run-tests()</span> +<span id="L115" class="LineNr">115 </span> e8/call run-tests/disp32 +<span id="L116" class="LineNr">116 </span> <span class="subxComment"># exit(*Num-test-failures)</span> +<span id="L117" class="LineNr">117 </span> 8b/-> *<span class="SpecialChar"><a href='../102test.subx.html#L89'>Num-test-failures</a></span> 3/r32/ebx +<span id="L118" class="LineNr">118 </span> eb/jump $main:end/disp8 +<span id="L119" class="LineNr">119 </span><span class="Constant">$main:do-nothing</span>: +<span id="L120" class="LineNr">120 </span> bb/copy-to-ebx 0/imm32 +<span id="L121" class="LineNr">121 </span><span class="Constant">$main:end</span>: +<span id="L122" class="LineNr">122 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/factorial3.subx.html b/html/linux/apps/factorial3.subx.html new file mode 100644 index 00000000..93cf4e55 --- /dev/null +++ b/html/linux/apps/factorial3.subx.html @@ -0,0 +1,142 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/factorial3.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } +.Constant { color: #008787; } +.subxTest { color: #5f8700; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/factorial3.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/factorial3.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment">## compute the factorial of 5, and return the result in the exit code</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># Uses syntax sugar for:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># rm32 operands</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># function calls</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment">#</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment"># To run:</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># $ ./translate_subx init.linux [01]*.subx apps/factorial3.subx -o factorial</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># $ bootstrap/bootstrap run factorial</span> +<span id="L10" class="LineNr">10 </span><span class="subxComment"># Expected result:</span> +<span id="L11" class="LineNr">11 </span><span class="subxComment"># $ echo $?</span> +<span id="L12" class="LineNr">12 </span><span class="subxComment"># 120</span> +<span id="L13" class="LineNr">13 </span><span class="subxComment">#</span> +<span id="L14" class="LineNr">14 </span><span class="subxComment"># You can also run the automated test suite:</span> +<span id="L15" class="LineNr">15 </span><span class="subxComment"># $ bootstrap/bootstrap run factorial test</span> +<span id="L16" class="LineNr">16 </span><span class="subxComment"># Expected output:</span> +<span id="L17" class="LineNr">17 </span><span class="subxComment"># ........</span> +<span id="L18" class="LineNr">18 </span><span class="subxComment"># Every '.' indicates a passing test. Failing tests get a 'F'.</span> +<span id="L19" class="LineNr">19 </span><span class="subxComment">#</span> +<span id="L20" class="LineNr">20 </span><span class="subxComment"># Compare factorial2.subx</span> +<span id="L21" class="LineNr">21 </span> +<span id="L22" class="LineNr">22 </span>== code +<span id="L23" class="LineNr">23 </span> +<span id="L24" class="LineNr">24 </span><span class="subxFunction">factorial</span>: <span class="subxComment"># n: int -> _/eax: int</span> +<span id="L25" class="LineNr">25 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L26" class="LineNr">26 </span> 55/push-ebp +<span id="L27" class="LineNr">27 </span> 89/<- %ebp 4/r32/esp +<span id="L28" class="LineNr">28 </span> <span class="subxComment"># save registers</span> +<span id="L29" class="LineNr">29 </span> 51/push-ecx +<span id="L30" class="LineNr">30 </span> <span class="subxComment"># if (n <= 1) return 1</span> +<span id="L31" class="LineNr">31 </span> b8/copy-to-eax 1/imm32 +<span id="L32" class="LineNr">32 </span> 81 7/subop/compare *(ebp+8) 1/imm32 +<span id="L33" class="LineNr">33 </span> 7e/jump-if-<= $factorial:end/disp8 +<span id="L34" class="LineNr">34 </span> <span class="subxComment"># n > 1; return n * factorial(n-1)</span> +<span id="L35" class="LineNr">35 </span> 8b/-> *(ebp+8) 1/r32/ecx +<span id="L36" class="LineNr">36 </span> 49/decrement-ecx +<span id="L37" class="LineNr">37 </span> (<a href='factorial3.subx.html#L24'>factorial</a> %ecx) <span class="subxComment"># => eax</span> +<span id="L38" class="LineNr">38 </span> f7 4/subop/multiply-into-eax *(ebp+8) +<span id="L39" class="LineNr">39 </span> <span class="subxComment"># TODO: check for overflow</span> +<span id="L40" class="LineNr">40 </span><span class="Constant">$factorial:end</span>: +<span id="L41" class="LineNr">41 </span> <span class="subxComment"># restore registers</span> +<span id="L42" class="LineNr">42 </span> 59/pop-to-ecx +<span id="L43" class="LineNr">43 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L44" class="LineNr">44 </span> 89/<- %esp 5/r32/ebp +<span id="L45" class="LineNr">45 </span> 5d/pop-to-ebp +<span id="L46" class="LineNr">46 </span> c3/return +<span id="L47" class="LineNr">47 </span> +<span id="L48" class="LineNr">48 </span><span class="subxTest">test-factorial</span>: +<span id="L49" class="LineNr">49 </span> (<a href='factorial3.subx.html#L24'>factorial</a> 5) +<span id="L50" class="LineNr">50 </span> (<a href='../102test.subx.html#L23'>check-ints-equal</a> %eax 0x78 <span class="Constant">"F - test-factorial"</span>) +<span id="L51" class="LineNr">51 </span> c3/return +<span id="L52" class="LineNr">52 </span> +<span id="L53" class="LineNr">53 </span><span class="SpecialChar">Entry</span>: <span class="subxComment"># run tests if necessary, compute `factorial(5)` if not</span> +<span id="L54" class="LineNr">54 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L55" class="LineNr">55 </span> 89/<- %ebp 4/r32/esp +<span id="L56" class="LineNr">56 </span> +<span id="L57" class="LineNr">57 </span> <span class="subxComment"># initialize heap (needed by tests elsewhere)</span> +<span id="L58" class="LineNr">58 </span> (<a href='../104new-segment.subx.html#L40'>new-segment</a> *<span class="SpecialChar"><a href='../120allocate.subx.html#L34'>Heap-size</a></span> <span class="SpecialChar"><a href='../120allocate.subx.html#L27'>Heap</a></span>) +<span id="L59" class="LineNr">59 </span> +<span id="L60" class="LineNr">60 </span> <span class="subxComment"># if (argc <= 1) return factorial(5)</span> +<span id="L61" class="LineNr">61 </span> 81 7/subop/compare *ebp 1/imm32 +<span id="L62" class="LineNr">62 </span> 7f/jump-if-> $main:run-tests/disp8 +<span id="L63" class="LineNr">63 </span> (<a href='factorial3.subx.html#L24'>factorial</a> 5) <span class="subxComment"># => eax</span> +<span id="L64" class="LineNr">64 </span> 89/<- %ebx 0/r32/eax +<span id="L65" class="LineNr">65 </span> eb/jump $main:end/disp8 +<span id="L66" class="LineNr">66 </span><span class="Constant">$main:run-tests</span>: +<span id="L67" class="LineNr">67 </span> <span class="subxComment"># otherwise if first arg is "test", then return run_tests()</span> +<span id="L68" class="LineNr">68 </span> <span class="subxComment"># if (!kernel-string-equal?(argv[1], "test")) goto do-nothing</span> +<span id="L69" class="LineNr">69 </span> (<a href='../103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a> *(ebp+8) <span class="Constant">"test"</span>) <span class="subxComment"># => eax</span> +<span id="L70" class="LineNr">70 </span> 3d/compare-eax-and 0/imm32/false +<span id="L71" class="LineNr">71 </span> 74/jump-if-= $main:do-nothing/disp8 +<span id="L72" class="LineNr">72 </span> <span class="subxComment">#</span> +<span id="L73" class="LineNr">73 </span> (run-tests) +<span id="L74" class="LineNr">74 </span> <span class="subxComment"># exit(*Num-test-failures)</span> +<span id="L75" class="LineNr">75 </span> 8b/-> *<span class="SpecialChar"><a href='../102test.subx.html#L89'>Num-test-failures</a></span> 3/r32/ebx +<span id="L76" class="LineNr">76 </span> eb/jump $main:end/disp8 +<span id="L77" class="LineNr">77 </span><span class="Constant">$main:do-nothing</span>: +<span id="L78" class="LineNr">78 </span> bb/copy-to-ebx 0/imm32 +<span id="L79" class="LineNr">79 </span><span class="Constant">$main:end</span>: +<span id="L80" class="LineNr">80 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/factorial4.subx.html b/html/linux/apps/factorial4.subx.html new file mode 100644 index 00000000..879a7a44 --- /dev/null +++ b/html/linux/apps/factorial4.subx.html @@ -0,0 +1,150 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/factorial4.subx</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color: #005faf; } +.LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } +.subxS1Comment { color: #0000af; } +.SpecialChar { color: #d70000; } +.Constant { color: #008787; } +.subxTest { color: #5f8700; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/factorial4.subx'>https://github.com/akkartik/mu/blob/main/linux/apps/factorial4.subx</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment">## compute the factorial of 5, and return the result in the exit code</span> +<span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="subxComment"># Uses syntax sugar for:</span> +<span id="L4" class="LineNr"> 4 </span><span class="subxComment"># rm32 operands</span> +<span id="L5" class="LineNr"> 5 </span><span class="subxComment"># function calls</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># control flow</span> +<span id="L7" class="LineNr"> 7 </span><span class="subxComment">#</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxComment"># To run:</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># $ ./translate_subx init.linux [01]*.subx apps/factorial4.subx -o factorial</span> +<span id="L10" class="LineNr">10 </span><span class="subxComment"># $ bootstrap/bootstrap run factorial</span> +<span id="L11" class="LineNr">11 </span><span class="subxComment"># Expected result:</span> +<span id="L12" class="LineNr">12 </span><span class="subxComment"># $ echo $?</span> +<span id="L13" class="LineNr">13 </span><span class="subxComment"># 120</span> +<span id="L14" class="LineNr">14 </span><span class="subxComment">#</span> +<span id="L15" class="LineNr">15 </span><span class="subxComment"># You can also run the automated test suite:</span> +<span id="L16" class="LineNr">16 </span><span class="subxComment"># $ bootstrap/bootstrap run factorial test</span> +<span id="L17" class="LineNr">17 </span><span class="subxComment"># Expected output:</span> +<span id="L18" class="LineNr">18 </span><span class="subxComment"># ........</span> +<span id="L19" class="LineNr">19 </span><span class="subxComment"># Every '.' indicates a passing test. Failing tests get a 'F'.</span> +<span id="L20" class="LineNr">20 </span><span class="subxComment">#</span> +<span id="L21" class="LineNr">21 </span><span class="subxComment"># Compare factorial3.subx</span> +<span id="L22" class="LineNr">22 </span> +<span id="L23" class="LineNr">23 </span>== code +<span id="L24" class="LineNr">24 </span> +<span id="L25" class="LineNr">25 </span><span class="subxFunction">factorial</span>: <span class="subxComment"># n: int -> _/eax: int</span> +<span id="L26" class="LineNr">26 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L27" class="LineNr">27 </span> 55/push-ebp +<span id="L28" class="LineNr">28 </span> 89/<- %ebp 4/r32/esp +<span id="L29" class="LineNr">29 </span> <span class="subxComment"># save registers</span> +<span id="L30" class="LineNr">30 </span> 51/push-ecx +<span id="L31" class="LineNr">31 </span> <span class="subxComment"># if (n <= 1) return 1</span> +<span id="L32" class="LineNr">32 </span> 81 7/subop/compare *(ebp+8) 1/imm32 +<span id="L33" class="LineNr">33 </span> { +<span id="L34" class="LineNr">34 </span> 7f/jump-if-> <span class="Constant">break</span>/disp8 +<span id="L35" class="LineNr">35 </span> b8/copy-to-eax 1/imm32 +<span id="L36" class="LineNr">36 </span> eb/jump $factorial:end/disp8 +<span id="L37" class="LineNr">37 </span> } +<span id="L38" class="LineNr">38 </span> <span class="subxComment"># n > 1; return n * factorial(n-1)</span> +<span id="L39" class="LineNr">39 </span> 8b/-> *(ebp+8) 1/r32/ecx +<span id="L40" class="LineNr">40 </span> 49/decrement-ecx +<span id="L41" class="LineNr">41 </span> (<a href='factorial4.subx.html#L25'>factorial</a> %ecx) <span class="subxComment"># => eax</span> +<span id="L42" class="LineNr">42 </span> f7 4/subop/multiply-into-eax *(ebp+8) +<span id="L43" class="LineNr">43 </span> <span class="subxComment"># TODO: check for overflow</span> +<span id="L44" class="LineNr">44 </span><span class="Constant">$factorial:end</span>: +<span id="L45" class="LineNr">45 </span> <span class="subxComment"># restore registers</span> +<span id="L46" class="LineNr">46 </span> 59/pop-to-ecx +<span id="L47" class="LineNr">47 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L48" class="LineNr">48 </span> 89/<- %esp 5/r32/ebp +<span id="L49" class="LineNr">49 </span> 5d/pop-to-ebp +<span id="L50" class="LineNr">50 </span> c3/return +<span id="L51" class="LineNr">51 </span> +<span id="L52" class="LineNr">52 </span><span class="subxTest">test-factorial</span>: +<span id="L53" class="LineNr">53 </span> (<a href='factorial4.subx.html#L25'>factorial</a> 5) +<span id="L54" class="LineNr">54 </span> (<a href='../102test.subx.html#L23'>check-ints-equal</a> %eax 0x78 <span class="Constant">"F - test-factorial"</span>) +<span id="L55" class="LineNr">55 </span> c3/return +<span id="L56" class="LineNr">56 </span> +<span id="L57" class="LineNr">57 </span><span class="SpecialChar">Entry</span>: <span class="subxComment"># run tests if necessary, compute `factorial(5)` if not</span> +<span id="L58" class="LineNr">58 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L59" class="LineNr">59 </span> 89/<- %ebp 4/r32/esp +<span id="L60" class="LineNr">60 </span> +<span id="L61" class="LineNr">61 </span> <span class="subxComment"># initialize heap (needed by tests elsewhere)</span> +<span id="L62" class="LineNr">62 </span> (<a href='../104new-segment.subx.html#L40'>new-segment</a> *<span class="SpecialChar"><a href='../120allocate.subx.html#L34'>Heap-size</a></span> <span class="SpecialChar"><a href='../120allocate.subx.html#L27'>Heap</a></span>) +<span id="L63" class="LineNr">63 </span> +<span id="L64" class="LineNr">64 </span> <span class="subxComment"># if (argc <= 1) return factorial(5)</span> +<span id="L65" class="LineNr">65 </span> { +<span id="L66" class="LineNr">66 </span> <span class="subxComment"># if (argc > 1) break</span> +<span id="L67" class="LineNr">67 </span> 81 7/subop/compare *ebp 1/imm32 +<span id="L68" class="LineNr">68 </span> 7f/jump-if-> <span class="Constant">break</span>/disp8 +<span id="L69" class="LineNr">69 </span> <span class="subxComment"># ebx = factorial(5)</span> +<span id="L70" class="LineNr">70 </span> (<a href='factorial4.subx.html#L25'>factorial</a> 5) <span class="subxComment"># => eax</span> +<span id="L71" class="LineNr">71 </span> 89/<- %ebx 0/r32/eax +<span id="L72" class="LineNr">72 </span> eb/jump $main:end/disp8 +<span id="L73" class="LineNr">73 </span> } +<span id="L74" class="LineNr">74 </span> <span class="subxComment"># otherwise if first arg is "test", then return run_tests()</span> +<span id="L75" class="LineNr">75 </span> { +<span id="L76" class="LineNr">76 </span> <span class="subxComment"># if (!kernel-string-equal?(argv[1], "test")) break</span> +<span id="L77" class="LineNr">77 </span> (<a href='../103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a> *(ebp+8) <span class="Constant">"test"</span>) <span class="subxComment"># => eax</span> +<span id="L78" class="LineNr">78 </span> 3d/compare-eax-and 0/imm32/false +<span id="L79" class="LineNr">79 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 +<span id="L80" class="LineNr">80 </span> <span class="subxComment">#</span> +<span id="L81" class="LineNr">81 </span> (run-tests) +<span id="L82" class="LineNr">82 </span> <span class="subxComment"># exit(*Num-test-failures)</span> +<span id="L83" class="LineNr">83 </span> 8b/-> *<span class="SpecialChar"><a href='../102test.subx.html#L89'>Num-test-failures</a></span> 3/r32/ebx +<span id="L84" class="LineNr">84 </span> eb/jump $main:end/disp8 +<span id="L85" class="LineNr">85 </span> } +<span id="L86" class="LineNr">86 </span> bb/copy-to-ebx 0/imm32 +<span id="L87" class="LineNr">87 </span><span class="Constant">$main:end</span>: +<span id="L88" class="LineNr">88 </span> e8/call <a href='../000init.subx.html#L18'>syscall_exit</a>/disp32 +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/hello.mu.html b/html/linux/apps/hello.mu.html index 9023e29e..b7033551 100644 --- a/html/linux/hello.mu.html +++ b/html/linux/apps/hello.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/hello.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/hello.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,15 +16,15 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } .LineNr { } -.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -54,16 +54,16 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/hello.mu'>https://github.com/akkartik/mu/blob/main/linux/hello.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/hello.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/hello.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Meaningless conventional example.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate hello.mu</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate apps/hello.mu</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./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"><a href='hello.mu.html#L7'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L8" class="LineNr"> 8 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"Hello world!\n"</span> +<span id="L8" class="LineNr"> 8 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"Hello world!\n"</span> <span id="L9" class="LineNr"> 9 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L10" class="LineNr">10 </span><span class="Delimiter">}</span> </pre> diff --git a/html/linux/parse-int.mu.html b/html/linux/apps/parse-int.mu.html index 8c28b002..0ba861a7 100644 --- a/html/linux/parse-int.mu.html +++ b/html/linux/apps/parse-int.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/parse-int.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/parse-int.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.muRegEdx { color: #af5f00; } +.muRegEcx { color: #870000; } .Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } -.muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -59,12 +59,12 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/parse-int.mu'>https://github.com/akkartik/mu/blob/main/linux/parse-int.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/parse-int.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/parse-int.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># parse a decimal int at the commandline</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate parse-int.mu</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate apps/parse-int.mu</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./a.elf 123</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ echo $?</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># 123</span> @@ -76,7 +76,7 @@ if ('onhashchange' in window) { <span id="L13" class="LineNr">13 </span> compare n, <span class="Constant">1</span> <span id="L14" class="LineNr">14 </span> <span class="Delimiter">{</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">break-if-></span> -<span id="L16" class="LineNr">16 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"usage: <a href='parse-int.mu.html#L25'>parse-int</a> <integer>\n"</span> +<span id="L16" class="LineNr">16 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"usage: <a href='parse-int.mu.html#L25'>parse-int</a> <integer>\n"</span> <span id="L17" class="LineNr">17 </span> <span class="PreProc">return</span> <span class="Constant">1</span> <span id="L18" class="LineNr">18 </span> <span class="Delimiter">}</span> <span id="L19" class="LineNr">19 </span> <span class="muComment"># otherwise parse the first arg as an integer</span> @@ -101,7 +101,7 @@ if ('onhashchange' in window) { <span id="L38" class="LineNr">38 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> copy-byte *tmp <span id="L39" class="LineNr">39 </span> <span class="muComment">#</span> <span id="L40" class="LineNr">40 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c -<span id="L41" class="LineNr">41 </span> <span class="PreProc">var</span> digit/eax: int <span class="Special"><-</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> g +<span id="L41" class="LineNr">41 </span> <span class="PreProc">var</span> digit/eax: int <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L405'>to-decimal-digit</a> g <span id="L42" class="LineNr">42 </span> result <span class="Special"><-</span> add digit <span id="L43" class="LineNr">43 </span> i <span class="Special"><-</span> increment <span id="L44" class="LineNr">44 </span> <span class="PreProc">loop</span> diff --git a/html/linux/print-file.mu.html b/html/linux/apps/print-file.mu.html index 5ec1ba21..21dfc9d2 100644 --- a/html/linux/print-file.mu.html +++ b/html/linux/apps/print-file.mu.html @@ -1,33 +1,33 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/print-file.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/print-file.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.muRegEdx { color: #af5f00; } +.muRegEcx { color: #870000; } .Special { color: #ff6060; } .LineNr { } -.muRegEbx { color: #5f00ff; } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -57,13 +57,13 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/print-file.mu'>https://github.com/akkartik/mu/blob/main/linux/print-file.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/print-file.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/print-file.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># accept a filename on the commandline, read it and print it out to screen</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment"># only ascii right now, just like the rest of Mu</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment">#</span> <span id="L4" class="LineNr"> 4 </span><span class="muComment"># To run:</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./translate print-file.mu</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./translate apps/print-file.mu</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ echo abc > x</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf x</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># abc</span> @@ -74,7 +74,7 @@ if ('onhashchange' in window) { <span id="L13" class="LineNr">13 </span> compare n, <span class="Constant">1</span> <span id="L14" class="LineNr">14 </span> <span class="Delimiter">{</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">break-if-></span> -<span id="L16" class="LineNr">16 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"usage: cat <filename>\n"</span> +<span id="L16" class="LineNr">16 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"usage: cat <filename>\n"</span> <span id="L17" class="LineNr">17 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L18" class="LineNr">18 </span> <span class="Delimiter">}</span> <span id="L19" class="LineNr">19 </span> <span class="Delimiter">{</span> @@ -83,16 +83,16 @@ if ('onhashchange' in window) { <span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> in: (handle buffered-file) <span id="L23" class="LineNr">23 </span> <span class="Delimiter">{</span> <span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> addr-in/eax: (addr handle buffered-file) <span class="Special"><-</span> address in -<span id="L25" class="LineNr">25 </span> <a href='306files.subx.html#L9'>open</a> *filename, <span class="Constant">0</span>/read-only, addr-in +<span id="L25" class="LineNr">25 </span> <a href='../306files.subx.html#L9'>open</a> *filename, <span class="Constant">0</span>/read-only, addr-in <span id="L26" class="LineNr">26 </span> <span class="Delimiter">}</span> -<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> _in-addr/eax: (addr buffered-file) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> in +<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> _in-addr/eax: (addr buffered-file) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> in <span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> in-addr/<span class="muRegEcx">ecx</span>: (addr buffered-file) <span class="Special"><-</span> copy _in-addr <span id="L29" class="LineNr">29 </span> <span class="Delimiter">{</span> -<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> in-addr +<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special"><-</span> <a href='../112read-byte.subx.html#L38'>read-byte-buffered</a> in-addr <span id="L31" class="LineNr">31 </span> compare c, <span class="Constant">0xffffffff</span>/end-of-file <span id="L32" class="LineNr">32 </span> <span class="PreProc">break-if-=</span> <span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> copy c -<span id="L34" class="LineNr">34 </span> <a href='405screen.mu.html#L214'>print-grapheme</a> <span class="Constant">0</span>/screen, g +<span id="L34" class="LineNr">34 </span> <a href='../405screen.mu.html#L214'>print-grapheme</a> <span class="Constant">0</span>/screen, g <span id="L35" class="LineNr">35 </span> <span class="PreProc">loop</span> <span id="L36" class="LineNr">36 </span> <span class="Delimiter">}</span> <span id="L37" class="LineNr">37 </span> <span class="Delimiter">}</span> diff --git a/html/linux/apps/raytracing/1.mu.html b/html/linux/apps/raytracing/1.mu.html new file mode 100644 index 00000000..f7464218 --- /dev/null +++ b/html/linux/apps/raytracing/1.mu.html @@ -0,0 +1,95 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/raytracing/1.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/1.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/1.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Listing 1 of <a href="https://raytracing.github.io/books/RayTracingInOneWeekend.html">https://raytracing.github.io/books/RayTracingInOneWeekend.html</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment"># (simplified)</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment">#</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># To run (on Linux):</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ cd mu/linux</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate apps/raytracing/1.mu</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># $ ./a.elf > 1.ppm</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>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L11" class="LineNr">11 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"P3\n256 256\n255\n"</span> +<span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> j/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0xff</span> +<span id="L13" class="LineNr">13 </span> <span class="Delimiter">{</span> +<span id="L14" class="LineNr">14 </span> compare j, <span class="Constant">0</span> +<span id="L15" class="LineNr">15 </span> <span class="PreProc">break-if-<</span> +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span> +<span id="L18" class="LineNr">18 </span> compare i, <span class="Constant">0xff</span> +<span id="L19" class="LineNr">19 </span> <span class="PreProc">break-if-></span> +<span id="L20" class="LineNr">20 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, i +<span id="L21" class="LineNr">21 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" "</span> +<span id="L22" class="LineNr">22 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>, j +<span id="L23" class="LineNr">23 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">" 64\n"</span> +<span id="L24" class="LineNr">24 </span> i <span class="Special"><-</span> increment +<span id="L25" class="LineNr">25 </span> <span class="PreProc">loop</span> +<span id="L26" class="LineNr">26 </span> <span class="Delimiter">}</span> +<span id="L27" class="LineNr">27 </span> j <span class="Special"><-</span> decrement +<span id="L28" class="LineNr">28 </span> <span class="PreProc">loop</span> +<span id="L29" class="LineNr">29 </span> <span class="Delimiter">}</span> +<span id="L30" class="LineNr">30 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L31" class="LineNr">31 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/raytracing/2.mu.html b/html/linux/apps/raytracing/2.mu.html new file mode 100644 index 00000000..6ae05c81 --- /dev/null +++ b/html/linux/apps/raytracing/2.mu.html @@ -0,0 +1,153 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/raytracing/2.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEsi { color: #005faf; } +.Special { color: #ff6060; } +.muRegEdx { color: #af5f00; } +.LineNr { } +.CommentedCode { color: #8a8a8a; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEcx { color: #870000; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/2.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/2.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Listing 7 of <a href="https://raytracing.github.io/books/RayTracingInOneWeekend.html">https://raytracing.github.io/books/RayTracingInOneWeekend.html</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu/linux</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/raytracing/2.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf > 2.ppm</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>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L10" class="LineNr">10 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"P3\n256 256\n255\n"</span> +<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> _four/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">4</span> +<span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> four/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert _four +<span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> one-fourth/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> reciprocal four +<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> max/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0xff</span> +<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> image-size/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert max +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> j/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0xff</span> +<span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span> +<span id="L18" class="LineNr">18 </span> compare j, <span class="Constant">0</span> +<span id="L19" class="LineNr">19 </span> <span class="PreProc">break-if-<</span> +<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L21" class="LineNr">21 </span> <span class="Delimiter">{</span> +<span id="L22" class="LineNr">22 </span> compare i, <span class="Constant">0xff</span> +<span id="L23" class="LineNr">23 </span> <span class="PreProc">break-if-></span> +<span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> c: rgb +<span id="L25" class="LineNr">25 </span> <span class="muComment"># compute r</span> +<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> tmp/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert i +<span id="L27" class="LineNr">27 </span> tmp <span class="Special"><-</span> divide image-size +<span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> r-addr/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, r +<span id="L29" class="LineNr">29 </span> copy-to *r-addr, tmp +<span id="L30" class="LineNr">30 </span><span class="CommentedCode">#? var tmp2/ebx: int <- reinterpret *r-addr</span> +<span id="L31" class="LineNr">31 </span><span class="CommentedCode">#? print-int32-hex 0, tmp2</span> +<span id="L32" class="LineNr">32 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L33" class="LineNr">33 </span> <span class="muComment"># compute g</span> +<span id="L34" class="LineNr">34 </span> tmp <span class="Special"><-</span> convert j +<span id="L35" class="LineNr">35 </span> tmp <span class="Special"><-</span> divide image-size +<span id="L36" class="LineNr">36 </span> <span class="PreProc">var</span> g-addr/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, g +<span id="L37" class="LineNr">37 </span> copy-to *g-addr, tmp +<span id="L38" class="LineNr">38 </span> <span class="muComment"># compute b</span> +<span id="L39" class="LineNr">39 </span> <span class="PreProc">var</span> b-addr/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, b +<span id="L40" class="LineNr">40 </span> copy-to *b-addr, one-fourth +<span id="L41" class="LineNr">41 </span> <span class="muComment"># emit</span> +<span id="L42" class="LineNr">42 </span> <span class="PreProc">var</span> c-addr/<span class="muRegEdx">edx</span>: (addr rgb) <span class="Special"><-</span> address c +<span id="L43" class="LineNr">43 </span> print-rgb <span class="Constant">0</span>, c-addr +<span id="L44" class="LineNr">44 </span> i <span class="Special"><-</span> increment +<span id="L45" class="LineNr">45 </span> <span class="PreProc">loop</span> +<span id="L46" class="LineNr">46 </span> <span class="Delimiter">}</span> +<span id="L47" class="LineNr">47 </span> j <span class="Special"><-</span> decrement +<span id="L48" class="LineNr">48 </span> <span class="PreProc">loop</span> +<span id="L49" class="LineNr">49 </span> <span class="Delimiter">}</span> +<span id="L50" class="LineNr">50 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L51" class="LineNr">51 </span><span class="Delimiter">}</span> +<span id="L52" class="LineNr">52 </span> +<span id="L53" class="LineNr">53 </span><span class="PreProc">type</span> rgb <span class="Delimiter">{</span> +<span id="L54" class="LineNr">54 </span> <span class="muComment"># components normalized to within [0.0, 1.0]</span> +<span id="L55" class="LineNr">55 </span> r: float +<span id="L56" class="LineNr">56 </span> g: float +<span id="L57" class="LineNr">57 </span> b: float +<span id="L58" class="LineNr">58 </span><span class="Delimiter">}</span> +<span id="L59" class="LineNr">59 </span> +<span id="L60" class="LineNr">60 </span><span class="muComment"># print translating to [0, 256)</span> +<span id="L61" class="LineNr">61 </span><span class="PreProc">fn</span> <span class="muFunction">print-rgb</span> <a href='../../405screen.mu.html#L9'>screen</a>: (addr <a href='../../405screen.mu.html#L9'>screen</a>), _c: (addr rgb) <span class="Delimiter">{</span> +<span id="L62" class="LineNr">62 </span> <span class="PreProc">var</span> c/<span class="muRegEsi">esi</span>: (addr rgb) <span class="Special"><-</span> copy _c +<span id="L63" class="LineNr">63 </span> <span class="PreProc">var</span> n/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0xff</span> <span class="muComment"># turns out 255 works just as well as 255.999, which is lucky because we don't have floating-point literals</span> +<span id="L64" class="LineNr">64 </span> <span class="PreProc">var</span> xn/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert n +<span id="L65" class="LineNr">65 </span> <span class="muComment"># print 255 * c->r</span> +<span id="L66" class="LineNr">66 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy xn +<span id="L67" class="LineNr">67 </span> <span class="PreProc">var</span> src-addr/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, r +<span id="L68" class="LineNr">68 </span> result <span class="Special"><-</span> multiply *src-addr +<span id="L69" class="LineNr">69 </span> <span class="PreProc">var</span> result-int/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert result +<span id="L70" class="LineNr">70 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int +<span id="L71" class="LineNr">71 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">" "</span> +<span id="L72" class="LineNr">72 </span> <span class="muComment"># print 255 * c->g</span> +<span id="L73" class="LineNr">73 </span> src-addr <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, g +<span id="L74" class="LineNr">74 </span> result <span class="Special"><-</span> copy xn +<span id="L75" class="LineNr">75 </span> result <span class="Special"><-</span> multiply *src-addr +<span id="L76" class="LineNr">76 </span> result-int <span class="Special"><-</span> convert result +<span id="L77" class="LineNr">77 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int +<span id="L78" class="LineNr">78 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">" "</span> +<span id="L79" class="LineNr">79 </span> <span class="muComment"># print 255 * c->b</span> +<span id="L80" class="LineNr">80 </span> src-addr <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, b +<span id="L81" class="LineNr">81 </span> result <span class="Special"><-</span> copy xn +<span id="L82" class="LineNr">82 </span> result <span class="Special"><-</span> multiply *src-addr +<span id="L83" class="LineNr">83 </span> result-int <span class="Special"><-</span> convert result +<span id="L84" class="LineNr">84 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int +<span id="L85" class="LineNr">85 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">"\n"</span> +<span id="L86" class="LineNr">86 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/raytracing/3.mu.html b/html/linux/apps/raytracing/3.mu.html new file mode 100644 index 00000000..c43df3a4 --- /dev/null +++ b/html/linux/apps/raytracing/3.mu.html @@ -0,0 +1,554 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/raytracing/3.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.LineNr { } +.Delimiter { color: #c000c0; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.Special { color: #ff6060; } +.PreProc { color: #c000c0; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muComment { color: #005faf; } +.muS1Comment { color: #0000af; } +.muS2Comment { color: #8a8a8a; } +.CommentedCode { color: #8a8a8a; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/3.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/3.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Listing 9 of <a href="https://raytracing.github.io/books/RayTracingInOneWeekend.html">https://raytracing.github.io/books/RayTracingInOneWeekend.html</a></span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu/linux</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/raytracing/3.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf > 3.ppm</span> +<span id="L8" class="LineNr"> 8 </span> +<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3.mu.html#L9'>ray-color</a></span> _in: (addr ray), _out: (addr rgb) <span class="Delimiter">{</span> +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _in +<span id="L11" class="LineNr"> 11 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr rgb) <span class="Special"><-</span> copy _out +<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> dir/eax: (addr vec3) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> in, dir +<span id="L13" class="LineNr"> 13 </span><span class="CommentedCode">#? print-string 0, "r.dir: "</span> +<span id="L14" class="LineNr"> 14 </span><span class="CommentedCode">#? print-vec3 0, dir</span> +<span id="L15" class="LineNr"> 15 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> unit-storage: vec3 +<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> unit/<span class="muRegEcx">ecx</span>: (addr vec3) <span class="Special"><-</span> address unit-storage +<span id="L18" class="LineNr"> 18 </span> vec3-unit dir, unit +<span id="L19" class="LineNr"> 19 </span><span class="CommentedCode">#? print-string 0, "r.dir normalized: "</span> +<span id="L20" class="LineNr"> 20 </span><span class="CommentedCode">#? print-vec3 0, unit</span> +<span id="L21" class="LineNr"> 21 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> y-addr/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> unit, y +<span id="L23" class="LineNr"> 23 </span> <span class="muComment"># t = (dir.y + 1.0) / 2.0</span> +<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> t/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *y-addr +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> one/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> one-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert one +<span id="L27" class="LineNr"> 27 </span> t <span class="Special"><-</span> add one-f +<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> two/eax: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> two-f/<span class="Constant">xmm2</span>: float <span class="Special"><-</span> convert two +<span id="L30" class="LineNr"> 30 </span> t <span class="Special"><-</span> divide two-f +<span id="L31" class="LineNr"> 31 </span><span class="CommentedCode">#? print-string 0, "t: "</span> +<span id="L32" class="LineNr"> 32 </span><span class="CommentedCode">#? print-float-hex 0, t</span> +<span id="L33" class="LineNr"> 33 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L34" class="LineNr"> 34 </span> <span class="muComment"># whitening = (1.0 - t) * white</span> +<span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> whitening-storage: rgb +<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> whitening/<span class="muRegEcx">ecx</span>: (addr rgb) <span class="Special"><-</span> address whitening-storage +<span id="L37" class="LineNr"> 37 </span> <a href='3.mu.html#L302'>rgb-white</a> whitening +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> one-minus-t/<span class="Constant">xmm3</span>: float <span class="Special"><-</span> copy one-f +<span id="L39" class="LineNr"> 39 </span> one-minus-t <span class="Special"><-</span> subtract t +<span id="L40" class="LineNr"> 40 </span> <a href='3.mu.html#L337'>rgb-scale-up</a> whitening, one-minus-t +<span id="L41" class="LineNr"> 41 </span><span class="CommentedCode">#? print-string 0, "whitening: "</span> +<span id="L42" class="LineNr"> 42 </span><span class="CommentedCode">#? print-rgb-raw 0, whitening</span> +<span id="L43" class="LineNr"> 43 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L44" class="LineNr"> 44 </span> <span class="muComment"># out = t * (0.5, 0.7, 1.0)</span> +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> out, r +<span id="L46" class="LineNr"> 46 </span> <a href='../../408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">5</span>, <span class="Constant">0xa</span> +<span id="L47" class="LineNr"> 47 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> out, g +<span id="L48" class="LineNr"> 48 </span> <a href='../../408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">7</span>, <span class="Constant">0xa</span> +<span id="L49" class="LineNr"> 49 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> out, b +<span id="L50" class="LineNr"> 50 </span> copy-to *dest, one-f +<span id="L51" class="LineNr"> 51 </span> <a href='3.mu.html#L337'>rgb-scale-up</a> out, t +<span id="L52" class="LineNr"> 52 </span><span class="CommentedCode">#? print-string 0, "base: "</span> +<span id="L53" class="LineNr"> 53 </span><span class="CommentedCode">#? print-rgb-raw 0, out</span> +<span id="L54" class="LineNr"> 54 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L55" class="LineNr"> 55 </span> <span class="muComment"># blend with whitening</span> +<span id="L56" class="LineNr"> 56 </span> <a href='3.mu.html#L314'>rgb-add-to</a> out, whitening +<span id="L57" class="LineNr"> 57 </span><span class="CommentedCode">#? print-string 0, "result: "</span> +<span id="L58" class="LineNr"> 58 </span><span class="CommentedCode">#? print-rgb-raw 0, out</span> +<span id="L59" class="LineNr"> 59 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L60" class="LineNr"> 60 </span><span class="Delimiter">}</span> +<span id="L61" class="LineNr"> 61 </span> +<span id="L62" class="LineNr"> 62 </span><span class="PreProc">fn</span> <span class="muFunction">main</span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L63" class="LineNr"> 63 </span> +<span id="L64" class="LineNr"> 64 </span> <span class="muComment"># image</span> +<span id="L65" class="LineNr"> 65 </span> <span class="muComment"># width = 400</span> +<span id="L66" class="LineNr"> 66 </span> <span class="muComment"># height = 400 * 9/16 = 225</span> +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> aspect: float +<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> aspect-addr/eax: (addr float) <span class="Special"><-</span> address aspect +<span id="L69" class="LineNr"> 69 </span> <a href='../../408float.mu.html#L3'>fill-in-rational</a> aspect-addr, <span class="Constant">0x10</span>, <span class="Constant">9</span> <span class="muComment"># 16/9</span> +<span id="L70" class="LineNr"> 70 </span><span class="CommentedCode">#? print-string 0, "aspect ratio: "</span> +<span id="L71" class="LineNr"> 71 </span><span class="CommentedCode">#? print-float-hex 0, aspect</span> +<span id="L72" class="LineNr"> 72 </span><span class="CommentedCode">#? print-string 0, " "</span> +<span id="L73" class="LineNr"> 73 </span><span class="CommentedCode">#? {</span> +<span id="L74" class="LineNr"> 74 </span><span class="CommentedCode">#? var foo2/ebx: int <- reinterpret aspect</span> +<span id="L75" class="LineNr"> 75 </span><span class="CommentedCode">#? print-int32-hex 0, foo2</span> +<span id="L76" class="LineNr"> 76 </span><span class="CommentedCode">#? }</span> +<span id="L77" class="LineNr"> 77 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L78" class="LineNr"> 78 </span> +<span id="L79" class="LineNr"> 79 </span> <span class="muComment"># camera</span> +<span id="L80" class="LineNr"> 80 </span> +<span id="L81" class="LineNr"> 81 </span> <span class="muComment"># viewport-height = 2.0</span> +<span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy <span class="Constant">2</span> +<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> two-f/<span class="Constant">xmm4</span>: float <span class="Special"><-</span> convert tmp +<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> viewport-height/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> copy two-f +<span id="L85" class="LineNr"> 85 </span><span class="CommentedCode">#? print-string 0, "viewport height: "</span> +<span id="L86" class="LineNr"> 86 </span><span class="CommentedCode">#? print-float-hex 0, viewport-height</span> +<span id="L87" class="LineNr"> 87 </span><span class="CommentedCode">#? print-string 0, " "</span> +<span id="L88" class="LineNr"> 88 </span><span class="CommentedCode">#? {</span> +<span id="L89" class="LineNr"> 89 </span><span class="CommentedCode">#? var foo: float</span> +<span id="L90" class="LineNr"> 90 </span><span class="CommentedCode">#? copy-to foo, viewport-height</span> +<span id="L91" class="LineNr"> 91 </span><span class="CommentedCode">#? var foo2/ebx: int <- reinterpret foo</span> +<span id="L92" class="LineNr"> 92 </span><span class="CommentedCode">#? print-int32-hex 0, foo2</span> +<span id="L93" class="LineNr"> 93 </span><span class="CommentedCode">#? }</span> +<span id="L94" class="LineNr"> 94 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L95" class="LineNr"> 95 </span> <span class="muComment"># viewport-width = aspect * viewport-height</span> +<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> viewport-width/<span class="Constant">xmm6</span>: float <span class="Special"><-</span> convert tmp +<span id="L97" class="LineNr"> 97 </span> viewport-width <span class="Special"><-</span> multiply aspect +<span id="L98" class="LineNr"> 98 </span><span class="CommentedCode">#? print-string 0, "viewport width: "</span> +<span id="L99" class="LineNr"> 99 </span><span class="CommentedCode">#? print-float-hex 0, viewport-width</span> +<span id="L100" class="LineNr">100 </span><span class="CommentedCode">#? print-string 0, " "</span> +<span id="L101" class="LineNr">101 </span><span class="CommentedCode">#? {</span> +<span id="L102" class="LineNr">102 </span><span class="CommentedCode">#? var foo: float</span> +<span id="L103" class="LineNr">103 </span><span class="CommentedCode">#? copy-to foo, viewport-width</span> +<span id="L104" class="LineNr">104 </span><span class="CommentedCode">#? var foo2/ebx: int <- reinterpret foo</span> +<span id="L105" class="LineNr">105 </span><span class="CommentedCode">#? print-int32-hex 0, foo2</span> +<span id="L106" class="LineNr">106 </span><span class="CommentedCode">#? }</span> +<span id="L107" class="LineNr">107 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L108" class="LineNr">108 </span> <span class="muComment"># focal-length = 1.0</span> +<span id="L109" class="LineNr">109 </span> tmp <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> focal-length/<span class="Constant">xmm5</span>: float <span class="Special"><-</span> convert tmp +<span id="L111" class="LineNr">111 </span> +<span id="L112" class="LineNr">112 </span> <span class="muComment"># origin = point3(0, 0, 0)</span> +<span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> origin-storage: vec3 +<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> origin/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> address origin-storage +<span id="L115" class="LineNr">115 </span> <span class="muComment"># horizontal = vec3(viewport-width, 0, 0)</span> +<span id="L116" class="LineNr">116 </span> <span class="PreProc">var</span> horizontal-storage: vec3 +<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> horizontal-storage, x +<span id="L118" class="LineNr">118 </span> copy-to *dest, viewport-width +<span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> horizontal/<span class="muRegEbx">ebx</span>: (addr vec3) <span class="Special"><-</span> address horizontal-storage +<span id="L120" class="LineNr">120 </span> <span class="muComment"># vertical = vec3(0, viewport-height, 0)</span> +<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> vertical-storage: vec3 +<span id="L122" class="LineNr">122 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> vertical-storage, y +<span id="L123" class="LineNr">123 </span> copy-to *dest, viewport-height +<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> vertical/<span class="muRegEdx">edx</span>: (addr vec3) <span class="Special"><-</span> address vertical-storage +<span id="L125" class="LineNr">125 </span> <span class="muComment"># lower-left-corner = origin - horizontal/2 - vertical/2 - vec3(0, 0, focal-length)</span> +<span id="L126" class="LineNr">126 </span> <span class="muS1Comment"># . lower-left-corner = origin</span> +<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> lower-left-corner-storage: vec3 +<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> lower-left-corner/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> address lower-left-corner-storage +<span id="L129" class="LineNr">129 </span> copy-object origin, lower-left-corner +<span id="L130" class="LineNr">130 </span> <span class="muS1Comment"># . lower-left-corner -= horizontal/2</span> +<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> tmp2: vec3 +<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> tmp2-addr/eax: (addr vec3) <span class="Special"><-</span> address tmp2 +<span id="L133" class="LineNr">133 </span> copy-object horizontal, tmp2-addr +<span id="L134" class="LineNr">134 </span> vec3-scale-down tmp2-addr, two-f +<span id="L135" class="LineNr">135 </span> vec3-subtract-from lower-left-corner, tmp2-addr +<span id="L136" class="LineNr">136 </span> <span class="muS1Comment"># . lower-left-corner -= vertical/2</span> +<span id="L137" class="LineNr">137 </span> copy-object vertical, tmp2-addr +<span id="L138" class="LineNr">138 </span> vec3-scale-down tmp2-addr, two-f +<span id="L139" class="LineNr">139 </span> vec3-subtract-from lower-left-corner, tmp2-addr +<span id="L140" class="LineNr">140 </span> <span class="muS1Comment"># . lower-left-corner -= vec3(0, 0, focal-length)</span> +<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> dest2/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> lower-left-corner, z +<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> tmp3/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest2 +<span id="L143" class="LineNr">143 </span> tmp3 <span class="Special"><-</span> subtract focal-length +<span id="L144" class="LineNr">144 </span> copy-to *dest2, tmp3 +<span id="L145" class="LineNr">145 </span> <span class="muComment"># phew!</span> +<span id="L146" class="LineNr">146 </span> +<span id="L147" class="LineNr">147 </span> <span class="muComment"># render</span> +<span id="L148" class="LineNr">148 </span> +<span id="L149" class="LineNr">149 </span> <span class="muComment"># live variables at this point:</span> +<span id="L150" class="LineNr">150 </span> <span class="muComment"># origin (edi)</span> +<span id="L151" class="LineNr">151 </span> <span class="muComment"># lower-left-corner (esi)</span> +<span id="L152" class="LineNr">152 </span> <span class="muComment"># horizontal (ebx)</span> +<span id="L153" class="LineNr">153 </span> <span class="muComment"># vertical (edx)</span> +<span id="L154" class="LineNr">154 </span> <span class="muComment"># floating-point registers are all free</span> +<span id="L155" class="LineNr">155 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>, <span class="Constant">"P3\n400 225\n255\n"</span> <span class="muComment"># 225 = image height</span> +<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> copy <span class="Constant">0x18f</span> <span class="muComment"># image width - 1</span> +<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> image-width-1/<span class="Constant">xmm7</span>: float <span class="Special"><-</span> convert tmp +<span id="L158" class="LineNr">158 </span> tmp <span class="Special"><-</span> copy <span class="Constant">0xe0</span> <span class="muComment"># image height - 1</span> +<span id="L159" class="LineNr">159 </span> <span class="PreProc">var</span> image-height-1/<span class="Constant">xmm6</span>: float <span class="Special"><-</span> convert tmp +<span id="L160" class="LineNr">160 </span> <span class="muComment">#</span> +<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> j/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0xe0</span> <span class="muComment"># 224</span> +<span id="L162" class="LineNr">162 </span> <span class="Delimiter">{</span> +<span id="L163" class="LineNr">163 </span> compare j, <span class="Constant">0</span> +<span id="L164" class="LineNr">164 </span> <span class="PreProc">break-if-<</span> +<span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> i/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L166" class="LineNr">166 </span> <span class="Delimiter">{</span> +<span id="L167" class="LineNr">167 </span> compare i, <span class="Constant">0x190</span> <span class="muComment"># 400 = image width</span> +<span id="L168" class="LineNr">168 </span> <span class="PreProc">break-if->=</span> +<span id="L169" class="LineNr">169 </span> <span class="muComment"># u = i / (image-width - 1)</span> +<span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert i +<span id="L171" class="LineNr">171 </span> u <span class="Special"><-</span> divide image-width-1 +<span id="L172" class="LineNr">172 </span><span class="CommentedCode">#? print-string 0, "u: "</span> +<span id="L173" class="LineNr">173 </span><span class="CommentedCode">#? print-float-hex 0, u</span> +<span id="L174" class="LineNr">174 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L175" class="LineNr">175 </span> <span class="muComment"># v = j / (image-height - 1)</span> +<span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> v/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert j +<span id="L177" class="LineNr">177 </span> v <span class="Special"><-</span> divide image-height-1 +<span id="L178" class="LineNr">178 </span> <span class="muComment"># r = ray(origin, lower-left-corner + u*horizontal + v*vertical - origin)</span> +<span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> r-storage: ray +<span id="L180" class="LineNr">180 </span> <span class="muS2Comment"># . . we're running out of int registers now,</span> +<span id="L181" class="LineNr">181 </span> <span class="muS2Comment"># . . but luckily we don't need i and j in the rest of this loop iteration,</span> +<span id="L182" class="LineNr">182 </span> <span class="muS2Comment"># . . so we'll just spill them in a block</span> +<span id="L183" class="LineNr">183 </span> <span class="Delimiter">{</span> +<span id="L184" class="LineNr">184 </span> <span class="muS1Comment"># . r.orig = origin</span> +<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> r/eax: (addr ray) <span class="Special"><-</span> address r-storage +<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> dest/<span class="muRegEcx">ecx</span>: (addr vec3) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> r, orig +<span id="L187" class="LineNr">187 </span> copy-object origin, dest +<span id="L188" class="LineNr">188 </span> <span class="muS1Comment"># . r.dir = lower-left-corner</span> +<span id="L189" class="LineNr">189 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> r, dir +<span id="L190" class="LineNr">190 </span> copy-object lower-left-corner, dest +<span id="L191" class="LineNr">191 </span> <span class="muS1Comment"># . r.dir += horizontal*u</span> +<span id="L192" class="LineNr">192 </span> <span class="PreProc">var</span> tmp-vec3: vec3 +<span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> tmp/eax: (addr vec3) <span class="Special"><-</span> address tmp-vec3 +<span id="L194" class="LineNr">194 </span> copy-object horizontal, tmp +<span id="L195" class="LineNr">195 </span> vec3-scale-up tmp, u +<span id="L196" class="LineNr">196 </span> vec3-add-to dest, tmp +<span id="L197" class="LineNr">197 </span> <span class="muS1Comment"># . r.dir += vertical*v</span> +<span id="L198" class="LineNr">198 </span> copy-object vertical, tmp +<span id="L199" class="LineNr">199 </span> vec3-scale-up tmp, v +<span id="L200" class="LineNr">200 </span> vec3-add-to dest, tmp +<span id="L201" class="LineNr">201 </span> <span class="muS1Comment"># . r.dir -= origin</span> +<span id="L202" class="LineNr">202 </span> vec3-subtract-from dest, origin +<span id="L203" class="LineNr">203 </span><span class="CommentedCode">#? print-string 0, "ray direction: "</span> +<span id="L204" class="LineNr">204 </span><span class="CommentedCode">#? print-vec3 0, dest</span> +<span id="L205" class="LineNr">205 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L206" class="LineNr">206 </span> <span class="Delimiter">}</span> +<span id="L207" class="LineNr">207 </span> <span class="muComment"># pixel-color = ray-color(r)</span> +<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> c-storage: rgb +<span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> c/<span class="muRegEcx">ecx</span>: (addr rgb) <span class="Special"><-</span> address c-storage +<span id="L210" class="LineNr">210 </span> <span class="Delimiter">{</span> +<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> r/eax: (addr ray) <span class="Special"><-</span> address r-storage +<span id="L212" class="LineNr">212 </span> <a href='3.mu.html#L9'>ray-color</a> r, c +<span id="L213" class="LineNr">213 </span> <span class="muComment"># write color</span> +<span id="L214" class="LineNr">214 </span> print-rgb <span class="Constant">0</span>, c +<span id="L215" class="LineNr">215 </span><span class="CommentedCode">#? print-rgb-raw 0, c</span> +<span id="L216" class="LineNr">216 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L217" class="LineNr">217 </span> <span class="Delimiter">}</span> +<span id="L218" class="LineNr">218 </span> i <span class="Special"><-</span> increment +<span id="L219" class="LineNr">219 </span> <span class="PreProc">loop</span> +<span id="L220" class="LineNr">220 </span> <span class="Delimiter">}</span> +<span id="L221" class="LineNr">221 </span> j <span class="Special"><-</span> decrement +<span id="L222" class="LineNr">222 </span> <span class="PreProc">loop</span> +<span id="L223" class="LineNr">223 </span> <span class="Delimiter">}</span> +<span id="L224" class="LineNr">224 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L225" class="LineNr">225 </span><span class="Delimiter">}</span> +<span id="L226" class="LineNr">226 </span> +<span id="L227" class="LineNr">227 </span><span class="PreProc">type</span> ray <span class="Delimiter">{</span> +<span id="L228" class="LineNr">228 </span> orig: vec3 <span class="muComment"># point</span> +<span id="L229" class="LineNr">229 </span> dir: vec3 +<span id="L230" class="LineNr">230 </span><span class="Delimiter">}</span> +<span id="L231" class="LineNr">231 </span> +<span id="L232" class="LineNr">232 </span><span class="muComment"># A little different from the constructor at <a href="https://raytracing.github.io/books/RayTracingInOneWeekend.html">https://raytracing.github.io/books/RayTracingInOneWeekend.html</a></span> +<span id="L233" class="LineNr">233 </span><span class="muComment"># We immediately normalize the direction vector so we don't have to keep doing</span> +<span id="L234" class="LineNr">234 </span><span class="muComment"># so.</span> +<span id="L235" class="LineNr">235 </span><span class="PreProc">fn</span> <span class="muFunction">initialize-ray</span> _self: (addr ray), o: (addr vec3), d: (addr vec3) <span class="Delimiter">{</span> +<span id="L236" class="LineNr">236 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _self +<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> dest/eax: (addr vec3) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> self, orig +<span id="L238" class="LineNr">238 </span> copy-object o, dest +<span id="L239" class="LineNr">239 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> self, dir +<span id="L240" class="LineNr">240 </span> vec3-unit d, dest +<span id="L241" class="LineNr">241 </span><span class="Delimiter">}</span> +<span id="L242" class="LineNr">242 </span> +<span id="L243" class="LineNr">243 </span><span class="PreProc">fn</span> <span class="muFunction">ray-at</span> _self: (addr ray), t: float, out: (addr vec3) <span class="Delimiter">{</span> +<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _self +<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> src/eax: (addr vec3) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> self, dir +<span id="L246" class="LineNr">246 </span> copy-object src, out +<span id="L247" class="LineNr">247 </span> vec3-scale-up out, t +<span id="L248" class="LineNr">248 </span> src <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> self, orig +<span id="L249" class="LineNr">249 </span> vec3-add-to out, src +<span id="L250" class="LineNr">250 </span><span class="Delimiter">}</span> +<span id="L251" class="LineNr">251 </span> +<span id="L252" class="LineNr">252 </span><span class="PreProc">type</span> rgb <span class="Delimiter">{</span> +<span id="L253" class="LineNr">253 </span> <span class="muComment"># components normalized to within [0.0, 1.0]</span> +<span id="L254" class="LineNr">254 </span> r: float +<span id="L255" class="LineNr">255 </span> g: float +<span id="L256" class="LineNr">256 </span> b: float +<span id="L257" class="LineNr">257 </span><span class="Delimiter">}</span> +<span id="L258" class="LineNr">258 </span> +<span id="L259" class="LineNr">259 </span><span class="muComment"># print translating to [0, 256)</span> +<span id="L260" class="LineNr">260 </span><span class="PreProc">fn</span> <span class="muFunction">print-rgb</span> <a href='../../405screen.mu.html#L9'>screen</a>: (addr <a href='../../405screen.mu.html#L9'>screen</a>), _c: (addr rgb) <span class="Delimiter">{</span> +<span id="L261" class="LineNr">261 </span> <span class="PreProc">var</span> c/<span class="muRegEsi">esi</span>: (addr rgb) <span class="Special"><-</span> copy _c +<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> xn: float +<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> xn-addr/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> address xn +<span id="L264" class="LineNr">264 </span> <a href='../../408float.mu.html#L3'>fill-in-rational</a> xn-addr, <span class="Constant">0x3e7ff</span>, <span class="Constant">0x3e8</span> <span class="muComment"># 255999 / 1000</span> +<span id="L265" class="LineNr">265 </span> <span class="muComment"># print 255.999 * c->r</span> +<span id="L266" class="LineNr">266 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy xn +<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> src-addr/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, r +<span id="L268" class="LineNr">268 </span> result <span class="Special"><-</span> multiply *src-addr +<span id="L269" class="LineNr">269 </span> <span class="PreProc">var</span> result-int/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> truncate result +<span id="L270" class="LineNr">270 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int +<span id="L271" class="LineNr">271 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">" "</span> +<span id="L272" class="LineNr">272 </span> <span class="muComment"># print 255.999 * c->g</span> +<span id="L273" class="LineNr">273 </span> src-addr <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, g +<span id="L274" class="LineNr">274 </span> result <span class="Special"><-</span> copy xn +<span id="L275" class="LineNr">275 </span> result <span class="Special"><-</span> multiply *src-addr +<span id="L276" class="LineNr">276 </span> result-int <span class="Special"><-</span> truncate result +<span id="L277" class="LineNr">277 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int +<span id="L278" class="LineNr">278 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">" "</span> +<span id="L279" class="LineNr">279 </span> <span class="muComment"># print 255.999 * c->b</span> +<span id="L280" class="LineNr">280 </span> src-addr <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, b +<span id="L281" class="LineNr">281 </span> result <span class="Special"><-</span> copy xn +<span id="L282" class="LineNr">282 </span> result <span class="Special"><-</span> multiply *src-addr +<span id="L283" class="LineNr">283 </span> result-int <span class="Special"><-</span> truncate result +<span id="L284" class="LineNr">284 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int +<span id="L285" class="LineNr">285 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">"\n"</span> +<span id="L286" class="LineNr">286 </span><span class="Delimiter">}</span> +<span id="L287" class="LineNr">287 </span> +<span id="L288" class="LineNr">288 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3.mu.html#L288'>print-rgb-raw</a></span> <a href='../../405screen.mu.html#L9'>screen</a>: (addr <a href='../../405screen.mu.html#L9'>screen</a>), _v: (addr rgb) <span class="Delimiter">{</span> +<span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr rgb) <span class="Special"><-</span> copy _v +<span id="L290" class="LineNr">290 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">"("</span> +<span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> tmp/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, r +<span id="L292" class="LineNr">292 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L293" class="LineNr">293 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> +<span id="L294" class="LineNr">294 </span> tmp <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, g +<span id="L295" class="LineNr">295 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L296" class="LineNr">296 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> +<span id="L297" class="LineNr">297 </span> tmp <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, b +<span id="L298" class="LineNr">298 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L299" class="LineNr">299 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">")"</span> +<span id="L300" class="LineNr">300 </span><span class="Delimiter">}</span> +<span id="L301" class="LineNr">301 </span> +<span id="L302" class="LineNr">302 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3.mu.html#L302'>rgb-white</a></span> _c: (addr rgb) <span class="Delimiter">{</span> +<span id="L303" class="LineNr">303 </span> <span class="PreProc">var</span> c/<span class="muRegEsi">esi</span>: (addr rgb) <span class="Special"><-</span> copy _c +<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> one/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L305" class="LineNr">305 </span> <span class="PreProc">var</span> one-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert one +<span id="L306" class="LineNr">306 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, r +<span id="L307" class="LineNr">307 </span> copy-to *dest, one-f +<span id="L308" class="LineNr">308 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, g +<span id="L309" class="LineNr">309 </span> copy-to *dest, one-f +<span id="L310" class="LineNr">310 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, b +<span id="L311" class="LineNr">311 </span> copy-to *dest, one-f +<span id="L312" class="LineNr">312 </span><span class="Delimiter">}</span> +<span id="L313" class="LineNr">313 </span> +<span id="L314" class="LineNr">314 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3.mu.html#L314'>rgb-add-to</a></span> _c1: (addr rgb), _c2: (addr rgb) <span class="Delimiter">{</span> +<span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> c1/<span class="muRegEdi">edi</span>: (addr rgb) <span class="Special"><-</span> copy _c1 +<span id="L316" class="LineNr">316 </span> <span class="PreProc">var</span> c2/<span class="muRegEsi">esi</span>: (addr rgb) <span class="Special"><-</span> copy _c2 +<span id="L317" class="LineNr">317 </span> <span class="muComment"># c1.r += c2.r</span> +<span id="L318" class="LineNr">318 </span> <span class="PreProc">var</span> arg1/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c1, r +<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> arg2/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c2, r +<span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *arg1 +<span id="L321" class="LineNr">321 </span> result <span class="Special"><-</span> add *arg2 +<span id="L322" class="LineNr">322 </span> copy-to *arg1, result +<span id="L323" class="LineNr">323 </span> <span class="muComment"># c1.g += c2.g</span> +<span id="L324" class="LineNr">324 </span> arg1 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c1, g +<span id="L325" class="LineNr">325 </span> arg2 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c2, g +<span id="L326" class="LineNr">326 </span> result <span class="Special"><-</span> copy *arg1 +<span id="L327" class="LineNr">327 </span> result <span class="Special"><-</span> add *arg2 +<span id="L328" class="LineNr">328 </span> copy-to *arg1, result +<span id="L329" class="LineNr">329 </span> <span class="muComment"># c1.b += c2.b</span> +<span id="L330" class="LineNr">330 </span> arg1 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c1, b +<span id="L331" class="LineNr">331 </span> arg2 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c2, b +<span id="L332" class="LineNr">332 </span> result <span class="Special"><-</span> copy *arg1 +<span id="L333" class="LineNr">333 </span> result <span class="Special"><-</span> add *arg2 +<span id="L334" class="LineNr">334 </span> copy-to *arg1, result +<span id="L335" class="LineNr">335 </span><span class="Delimiter">}</span> +<span id="L336" class="LineNr">336 </span> +<span id="L337" class="LineNr">337 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='3.mu.html#L337'>rgb-scale-up</a></span> _c1: (addr rgb), f: float <span class="Delimiter">{</span> +<span id="L338" class="LineNr">338 </span> <span class="PreProc">var</span> c1/<span class="muRegEdi">edi</span>: (addr rgb) <span class="Special"><-</span> copy _c1 +<span id="L339" class="LineNr">339 </span> <span class="muComment"># c1.r *= f</span> +<span id="L340" class="LineNr">340 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c1, r +<span id="L341" class="LineNr">341 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest +<span id="L342" class="LineNr">342 </span> result <span class="Special"><-</span> multiply f +<span id="L343" class="LineNr">343 </span> copy-to *dest, result +<span id="L344" class="LineNr">344 </span> <span class="muComment"># c1.g *= f</span> +<span id="L345" class="LineNr">345 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c1, g +<span id="L346" class="LineNr">346 </span> result <span class="Special"><-</span> copy *dest +<span id="L347" class="LineNr">347 </span> result <span class="Special"><-</span> multiply f +<span id="L348" class="LineNr">348 </span> copy-to *dest, result +<span id="L349" class="LineNr">349 </span> <span class="muComment"># c1.b *= f</span> +<span id="L350" class="LineNr">350 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c1, b +<span id="L351" class="LineNr">351 </span> result <span class="Special"><-</span> copy *dest +<span id="L352" class="LineNr">352 </span> result <span class="Special"><-</span> multiply f +<span id="L353" class="LineNr">353 </span> copy-to *dest, result +<span id="L354" class="LineNr">354 </span><span class="Delimiter">}</span> +<span id="L355" class="LineNr">355 </span> +<span id="L356" class="LineNr">356 </span><span class="PreProc">type</span> vec3 <span class="Delimiter">{</span> +<span id="L357" class="LineNr">357 </span> x: float +<span id="L358" class="LineNr">358 </span> y: float +<span id="L359" class="LineNr">359 </span> z: float +<span id="L360" class="LineNr">360 </span><span class="Delimiter">}</span> +<span id="L361" class="LineNr">361 </span> +<span id="L362" class="LineNr">362 </span><span class="PreProc">fn</span> <span class="muFunction">print-vec3</span> <a href='../../405screen.mu.html#L9'>screen</a>: (addr <a href='../../405screen.mu.html#L9'>screen</a>), _v: (addr vec3) <span class="Delimiter">{</span> +<span id="L363" class="LineNr">363 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v +<span id="L364" class="LineNr">364 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">"("</span> +<span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> tmp/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, x +<span id="L366" class="LineNr">366 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L367" class="LineNr">367 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> +<span id="L368" class="LineNr">368 </span> tmp <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, y +<span id="L369" class="LineNr">369 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L370" class="LineNr">370 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> +<span id="L371" class="LineNr">371 </span> tmp <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, z +<span id="L372" class="LineNr">372 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L373" class="LineNr">373 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">")"</span> +<span id="L374" class="LineNr">374 </span><span class="Delimiter">}</span> +<span id="L375" class="LineNr">375 </span> +<span id="L376" class="LineNr">376 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-add-to</span> _v1: (addr vec3), _v2: (addr vec3) <span class="Delimiter">{</span> +<span id="L377" class="LineNr">377 </span> <span class="PreProc">var</span> v1/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v1 +<span id="L378" class="LineNr">378 </span> <span class="PreProc">var</span> v2/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v2 +<span id="L379" class="LineNr">379 </span> <span class="muComment"># v1.x += v2.x</span> +<span id="L380" class="LineNr">380 </span> <span class="PreProc">var</span> arg1/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v1, x +<span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> arg2/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v2, x +<span id="L382" class="LineNr">382 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *arg1 +<span id="L383" class="LineNr">383 </span> result <span class="Special"><-</span> add *arg2 +<span id="L384" class="LineNr">384 </span> copy-to *arg1, result +<span id="L385" class="LineNr">385 </span> <span class="muComment"># v1.y += v2.y</span> +<span id="L386" class="LineNr">386 </span> arg1 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v1, y +<span id="L387" class="LineNr">387 </span> arg2 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v2, y +<span id="L388" class="LineNr">388 </span> result <span class="Special"><-</span> copy *arg1 +<span id="L389" class="LineNr">389 </span> result <span class="Special"><-</span> add *arg2 +<span id="L390" class="LineNr">390 </span> copy-to *arg1, result +<span id="L391" class="LineNr">391 </span> <span class="muComment"># v1.z += v2.z</span> +<span id="L392" class="LineNr">392 </span> arg1 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v1, z +<span id="L393" class="LineNr">393 </span> arg2 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v2, z +<span id="L394" class="LineNr">394 </span> result <span class="Special"><-</span> copy *arg1 +<span id="L395" class="LineNr">395 </span> result <span class="Special"><-</span> add *arg2 +<span id="L396" class="LineNr">396 </span> copy-to *arg1, result +<span id="L397" class="LineNr">397 </span><span class="Delimiter">}</span> +<span id="L398" class="LineNr">398 </span> +<span id="L399" class="LineNr">399 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-subtract-from</span> v1: (addr vec3), v2: (addr vec3) <span class="Delimiter">{</span> +<span id="L400" class="LineNr">400 </span> <span class="PreProc">var</span> tmp-storage: vec3 +<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> tmp/eax: (addr vec3) <span class="Special"><-</span> address tmp-storage +<span id="L402" class="LineNr">402 </span> copy-object v2, tmp +<span id="L403" class="LineNr">403 </span> vec3-negate tmp +<span id="L404" class="LineNr">404 </span> vec3-add-to v1, tmp +<span id="L405" class="LineNr">405 </span><span class="Delimiter">}</span> +<span id="L406" class="LineNr">406 </span> +<span id="L407" class="LineNr">407 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-negate</span> v: (addr vec3) <span class="Delimiter">{</span> +<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> negative-one/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L409" class="LineNr">409 </span> <span class="PreProc">var</span> negative-one-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert negative-one +<span id="L410" class="LineNr">410 </span> vec3-scale-up v, negative-one-f +<span id="L411" class="LineNr">411 </span><span class="Delimiter">}</span> +<span id="L412" class="LineNr">412 </span> +<span id="L413" class="LineNr">413 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-scale-up</span> _v: (addr vec3), f: float <span class="Delimiter">{</span> +<span id="L414" class="LineNr">414 </span> <span class="PreProc">var</span> v/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v +<span id="L415" class="LineNr">415 </span> <span class="muComment"># v.x *= f</span> +<span id="L416" class="LineNr">416 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, x +<span id="L417" class="LineNr">417 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest +<span id="L418" class="LineNr">418 </span> result <span class="Special"><-</span> multiply f +<span id="L419" class="LineNr">419 </span> copy-to *dest, result +<span id="L420" class="LineNr">420 </span> <span class="muComment"># v.y *= f</span> +<span id="L421" class="LineNr">421 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, y +<span id="L422" class="LineNr">422 </span> result <span class="Special"><-</span> copy *dest +<span id="L423" class="LineNr">423 </span> result <span class="Special"><-</span> multiply f +<span id="L424" class="LineNr">424 </span> copy-to *dest, result +<span id="L425" class="LineNr">425 </span> <span class="muComment"># v.z *= f</span> +<span id="L426" class="LineNr">426 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, z +<span id="L427" class="LineNr">427 </span> result <span class="Special"><-</span> copy *dest +<span id="L428" class="LineNr">428 </span> result <span class="Special"><-</span> multiply f +<span id="L429" class="LineNr">429 </span> copy-to *dest, result +<span id="L430" class="LineNr">430 </span><span class="Delimiter">}</span> +<span id="L431" class="LineNr">431 </span> +<span id="L432" class="LineNr">432 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-scale-down</span> _v: (addr vec3), f: float <span class="Delimiter">{</span> +<span id="L433" class="LineNr">433 </span> <span class="PreProc">var</span> v/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v +<span id="L434" class="LineNr">434 </span> <span class="muComment"># v.x /= f</span> +<span id="L435" class="LineNr">435 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, x +<span id="L436" class="LineNr">436 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest +<span id="L437" class="LineNr">437 </span> result <span class="Special"><-</span> divide f +<span id="L438" class="LineNr">438 </span> copy-to *dest, result +<span id="L439" class="LineNr">439 </span> <span class="muComment"># v.y /= f</span> +<span id="L440" class="LineNr">440 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, y +<span id="L441" class="LineNr">441 </span> result <span class="Special"><-</span> copy *dest +<span id="L442" class="LineNr">442 </span> result <span class="Special"><-</span> divide f +<span id="L443" class="LineNr">443 </span> copy-to *dest, result +<span id="L444" class="LineNr">444 </span> <span class="muComment"># v.z /= f</span> +<span id="L445" class="LineNr">445 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, z +<span id="L446" class="LineNr">446 </span> result <span class="Special"><-</span> copy *dest +<span id="L447" class="LineNr">447 </span> result <span class="Special"><-</span> divide f +<span id="L448" class="LineNr">448 </span> copy-to *dest, result +<span id="L449" class="LineNr">449 </span><span class="Delimiter">}</span> +<span id="L450" class="LineNr">450 </span> +<span id="L451" class="LineNr">451 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-unit</span> in: (addr vec3), out: (addr vec3) <span class="Delimiter">{</span> +<span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> len/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> vec3-length in +<span id="L453" class="LineNr">453 </span><span class="CommentedCode">#? print-string 0, "len: "</span> +<span id="L454" class="LineNr">454 </span><span class="CommentedCode">#? print-float-hex 0, len</span> +<span id="L455" class="LineNr">455 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L456" class="LineNr">456 </span> copy-object in, out +<span id="L457" class="LineNr">457 </span> vec3-scale-down out, len +<span id="L458" class="LineNr">458 </span><span class="Delimiter">}</span> +<span id="L459" class="LineNr">459 </span> +<span id="L460" class="LineNr">460 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-length</span> v: (addr vec3)<span class="PreProc"> -> </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span> +<span id="L461" class="LineNr">461 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> vec3-length-squared v +<span id="L462" class="LineNr">462 </span> result <span class="Special"><-</span> square-root result +<span id="L463" class="LineNr">463 </span> <span class="PreProc">return</span> result +<span id="L464" class="LineNr">464 </span><span class="Delimiter">}</span> +<span id="L465" class="LineNr">465 </span> +<span id="L466" class="LineNr">466 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-length-squared</span> _v: (addr vec3)<span class="PreProc"> -> </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span> +<span id="L467" class="LineNr">467 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v +<span id="L468" class="LineNr">468 </span> <span class="muComment"># result = v.x * v.x</span> +<span id="L469" class="LineNr">469 </span> <span class="PreProc">var</span> src/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, x +<span id="L470" class="LineNr">470 </span> <span class="PreProc">var</span> tmp/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy *src +<span id="L471" class="LineNr">471 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L472" class="LineNr">472 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy tmp +<span id="L473" class="LineNr">473 </span> <span class="muComment"># result += v.y * v.y</span> +<span id="L474" class="LineNr">474 </span> src <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, y +<span id="L475" class="LineNr">475 </span> tmp <span class="Special"><-</span> copy *src +<span id="L476" class="LineNr">476 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L477" class="LineNr">477 </span> result <span class="Special"><-</span> add tmp +<span id="L478" class="LineNr">478 </span> <span class="muComment"># result += v.z * v.z</span> +<span id="L479" class="LineNr">479 </span> src <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, z +<span id="L480" class="LineNr">480 </span> tmp <span class="Special"><-</span> copy *src +<span id="L481" class="LineNr">481 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L482" class="LineNr">482 </span> result <span class="Special"><-</span> add tmp +<span id="L483" class="LineNr">483 </span> <span class="PreProc">return</span> result +<span id="L484" class="LineNr">484 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/raytracing/color.mu.html b/html/linux/apps/raytracing/color.mu.html new file mode 100644 index 00000000..dc60a456 --- /dev/null +++ b/html/linux/apps/raytracing/color.mu.html @@ -0,0 +1,100 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/raytracing/color.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } +.LineNr { } +.muRegEsi { color: #005faf; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.Special { color: #ff6060; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/color.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/color.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="PreProc">type</span> rgb <span class="Delimiter">{</span> +<span id="L2" class="LineNr"> 2 </span> <span class="muComment"># components normalized to within [0.0, 1.0]</span> +<span id="L3" class="LineNr"> 3 </span> r: float +<span id="L4" class="LineNr"> 4 </span> g: float +<span id="L5" class="LineNr"> 5 </span> b: float +<span id="L6" class="LineNr"> 6 </span><span class="Delimiter">}</span> +<span id="L7" class="LineNr"> 7 </span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># print translating to [0, 256)</span> +<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction">print-rgb</span> <a href='../../405screen.mu.html#L9'>screen</a>: (addr <a href='../../405screen.mu.html#L9'>screen</a>), _c: (addr rgb) <span class="Delimiter">{</span> +<span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> c/<span class="muRegEsi">esi</span>: (addr rgb) <span class="Special"><-</span> copy _c +<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> xn: float +<span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> xn-addr/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> address xn +<span id="L13" class="LineNr">13 </span> <a href='../../408float.mu.html#L3'>fill-in-rational</a> xn-addr, <span class="Constant">0x3e7ff</span>, <span class="Constant">0x3e8</span> <span class="muComment"># 255999 / 1000</span> +<span id="L14" class="LineNr">14 </span> <span class="muComment"># print 255.999 * c->r</span> +<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy xn +<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> src-addr/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, r +<span id="L17" class="LineNr">17 </span> result <span class="Special"><-</span> multiply *src-addr +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> result-int/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> truncate result +<span id="L19" class="LineNr">19 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int +<span id="L20" class="LineNr">20 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">" "</span> +<span id="L21" class="LineNr">21 </span> <span class="muComment"># print 255.999 * c->g</span> +<span id="L22" class="LineNr">22 </span> src-addr <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, g +<span id="L23" class="LineNr">23 </span> result <span class="Special"><-</span> copy xn +<span id="L24" class="LineNr">24 </span> result <span class="Special"><-</span> multiply *src-addr +<span id="L25" class="LineNr">25 </span> result-int <span class="Special"><-</span> truncate result +<span id="L26" class="LineNr">26 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int +<span id="L27" class="LineNr">27 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">" "</span> +<span id="L28" class="LineNr">28 </span> <span class="muComment"># print 255.999 * c->b</span> +<span id="L29" class="LineNr">29 </span> src-addr <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, b +<span id="L30" class="LineNr">30 </span> result <span class="Special"><-</span> copy xn +<span id="L31" class="LineNr">31 </span> result <span class="Special"><-</span> multiply *src-addr +<span id="L32" class="LineNr">32 </span> result-int <span class="Special"><-</span> truncate result +<span id="L33" class="LineNr">33 </span> <a href='../../405screen.mu.html#L484'>print-int32-decimal</a> <a href='../../405screen.mu.html#L9'>screen</a>, result-int +<span id="L34" class="LineNr">34 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">"\n"</span> +<span id="L35" class="LineNr">35 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/raytracing/ray.mu.html b/html/linux/apps/raytracing/ray.mu.html new file mode 100644 index 00000000..5400c1f2 --- /dev/null +++ b/html/linux/apps/raytracing/ray.mu.html @@ -0,0 +1,86 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/raytracing/ray.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.Special { color: #ff6060; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/ray.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/ray.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="PreProc">type</span> ray <span class="Delimiter">{</span> +<span id="L2" class="LineNr"> 2 </span> orig: vec3 <span class="muComment"># point</span> +<span id="L3" class="LineNr"> 3 </span> dir: vec3 +<span id="L4" class="LineNr"> 4 </span><span class="Delimiter">}</span> +<span id="L5" class="LineNr"> 5 </span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># A little different from the constructor at <a href="https://raytracing.github.io/books/RayTracingInOneWeekend.html">https://raytracing.github.io/books/RayTracingInOneWeekend.html</a></span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># We immediately normalize the direction vector so we don't have to keep doing</span> +<span id="L8" class="LineNr"> 8 </span><span class="muComment"># so.</span> +<span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction">initialize-ray</span> _self: (addr ray), o: (addr vec3), d: (addr vec3) <span class="Delimiter">{</span> +<span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _self +<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> dest/eax: (addr vec3) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> self, orig +<span id="L12" class="LineNr">12 </span> copy-object o, dest +<span id="L13" class="LineNr">13 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> self, dir +<span id="L14" class="LineNr">14 </span> vec3-unit d, dest +<span id="L15" class="LineNr">15 </span><span class="Delimiter">}</span> +<span id="L16" class="LineNr">16 </span> +<span id="L17" class="LineNr">17 </span><span class="PreProc">fn</span> <span class="muFunction">ray-at</span> _self: (addr ray), t: float, out: (addr vec3) <span class="Delimiter">{</span> +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _self +<span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> src/eax: (addr vec3) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> self, dir +<span id="L20" class="LineNr">20 </span> copy-object src, out +<span id="L21" class="LineNr">21 </span> vec3-scale-up out, t +<span id="L22" class="LineNr">22 </span> src <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> self, orig +<span id="L23" class="LineNr">23 </span> vec3-add-to out, src +<span id="L24" class="LineNr">24 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/apps/raytracing/vec.mu.html b/html/linux/apps/raytracing/vec.mu.html new file mode 100644 index 00000000..9fe5b990 --- /dev/null +++ b/html/linux/apps/raytracing/vec.mu.html @@ -0,0 +1,201 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/raytracing/vec.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.LineNr { } +.muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.Special { color: #ff6060; } +.muComment { color: #005faf; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/vec.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/raytracing/vec.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="PreProc">type</span> vec3 <span class="Delimiter">{</span> +<span id="L2" class="LineNr"> 2 </span> x: float +<span id="L3" class="LineNr"> 3 </span> y: float +<span id="L4" class="LineNr"> 4 </span> z: float +<span id="L5" class="LineNr"> 5 </span><span class="Delimiter">}</span> +<span id="L6" class="LineNr"> 6 </span> +<span id="L7" class="LineNr"> 7 </span><span class="PreProc">fn</span> <span class="muFunction">print-vec3</span> <a href='../../405screen.mu.html#L9'>screen</a>: (addr <a href='../../405screen.mu.html#L9'>screen</a>), _v: (addr vec3) <span class="Delimiter">{</span> +<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v +<span id="L9" class="LineNr"> 9 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">"("</span> +<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> tmp/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, x +<span id="L11" class="LineNr"> 11 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L12" class="LineNr"> 12 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> +<span id="L13" class="LineNr"> 13 </span> tmp <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, y +<span id="L14" class="LineNr"> 14 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L15" class="LineNr"> 15 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> +<span id="L16" class="LineNr"> 16 </span> tmp <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, z +<span id="L17" class="LineNr"> 17 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L18" class="LineNr"> 18 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">")"</span> +<span id="L19" class="LineNr"> 19 </span><span class="Delimiter">}</span> +<span id="L20" class="LineNr"> 20 </span> +<span id="L21" class="LineNr"> 21 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-add-to</span> _v1: (addr vec3), _v2: (addr vec3) <span class="Delimiter">{</span> +<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> v1/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v1 +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> v2/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v2 +<span id="L24" class="LineNr"> 24 </span> <span class="muComment"># v1.x += v2.x</span> +<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> arg1/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v1, x +<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> arg2/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v2, x +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *arg1 +<span id="L28" class="LineNr"> 28 </span> result <span class="Special"><-</span> add *arg2 +<span id="L29" class="LineNr"> 29 </span> copy-to *arg1, result +<span id="L30" class="LineNr"> 30 </span> <span class="muComment"># v1.y += v2.y</span> +<span id="L31" class="LineNr"> 31 </span> arg1 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v1, y +<span id="L32" class="LineNr"> 32 </span> arg2 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v2, y +<span id="L33" class="LineNr"> 33 </span> result <span class="Special"><-</span> copy *arg1 +<span id="L34" class="LineNr"> 34 </span> result <span class="Special"><-</span> add *arg2 +<span id="L35" class="LineNr"> 35 </span> copy-to *arg1, result +<span id="L36" class="LineNr"> 36 </span> <span class="muComment"># v1.z += v2.z</span> +<span id="L37" class="LineNr"> 37 </span> arg1 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v1, z +<span id="L38" class="LineNr"> 38 </span> arg2 <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v2, z +<span id="L39" class="LineNr"> 39 </span> result <span class="Special"><-</span> copy *arg1 +<span id="L40" class="LineNr"> 40 </span> result <span class="Special"><-</span> add *arg2 +<span id="L41" class="LineNr"> 41 </span> copy-to *arg1, result +<span id="L42" class="LineNr"> 42 </span><span class="Delimiter">}</span> +<span id="L43" class="LineNr"> 43 </span> +<span id="L44" class="LineNr"> 44 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-subtract-from</span> v1: (addr vec3), v2: (addr vec3) <span class="Delimiter">{</span> +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> tmp-storage: vec3 +<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> tmp/eax: (addr vec3) <span class="Special"><-</span> address tmp-storage +<span id="L47" class="LineNr"> 47 </span> copy-object v2, tmp +<span id="L48" class="LineNr"> 48 </span> vec3-negate tmp +<span id="L49" class="LineNr"> 49 </span> vec3-add-to v1, tmp +<span id="L50" class="LineNr"> 50 </span><span class="Delimiter">}</span> +<span id="L51" class="LineNr"> 51 </span> +<span id="L52" class="LineNr"> 52 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-negate</span> v: (addr vec3) <span class="Delimiter">{</span> +<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> negative-one/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> negative-one-f/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert negative-one +<span id="L55" class="LineNr"> 55 </span> vec3-scale-up v, negative-one-f +<span id="L56" class="LineNr"> 56 </span><span class="Delimiter">}</span> +<span id="L57" class="LineNr"> 57 </span> +<span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-scale-up</span> _v: (addr vec3), f: float <span class="Delimiter">{</span> +<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> v/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v +<span id="L60" class="LineNr"> 60 </span> <span class="muComment"># v.x *= f</span> +<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, x +<span id="L62" class="LineNr"> 62 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest +<span id="L63" class="LineNr"> 63 </span> result <span class="Special"><-</span> multiply f +<span id="L64" class="LineNr"> 64 </span> copy-to *dest, result +<span id="L65" class="LineNr"> 65 </span> <span class="muComment"># v.y *= f</span> +<span id="L66" class="LineNr"> 66 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, y +<span id="L67" class="LineNr"> 67 </span> result <span class="Special"><-</span> copy *dest +<span id="L68" class="LineNr"> 68 </span> result <span class="Special"><-</span> multiply f +<span id="L69" class="LineNr"> 69 </span> copy-to *dest, result +<span id="L70" class="LineNr"> 70 </span> <span class="muComment"># v.z *= f</span> +<span id="L71" class="LineNr"> 71 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, z +<span id="L72" class="LineNr"> 72 </span> result <span class="Special"><-</span> copy *dest +<span id="L73" class="LineNr"> 73 </span> result <span class="Special"><-</span> multiply f +<span id="L74" class="LineNr"> 74 </span> copy-to *dest, result +<span id="L75" class="LineNr"> 75 </span><span class="Delimiter">}</span> +<span id="L76" class="LineNr"> 76 </span> +<span id="L77" class="LineNr"> 77 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-scale-down</span> _v: (addr vec3), f: float <span class="Delimiter">{</span> +<span id="L78" class="LineNr"> 78 </span> <span class="PreProc">var</span> v/<span class="muRegEdi">edi</span>: (addr vec3) <span class="Special"><-</span> copy _v +<span id="L79" class="LineNr"> 79 </span> <span class="muComment"># v.x /= f</span> +<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> dest/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, x +<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *dest +<span id="L82" class="LineNr"> 82 </span> result <span class="Special"><-</span> divide f +<span id="L83" class="LineNr"> 83 </span> copy-to *dest, result +<span id="L84" class="LineNr"> 84 </span> <span class="muComment"># v.y /= f</span> +<span id="L85" class="LineNr"> 85 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, y +<span id="L86" class="LineNr"> 86 </span> result <span class="Special"><-</span> copy *dest +<span id="L87" class="LineNr"> 87 </span> result <span class="Special"><-</span> divide f +<span id="L88" class="LineNr"> 88 </span> copy-to *dest, result +<span id="L89" class="LineNr"> 89 </span> <span class="muComment"># v.z /= f</span> +<span id="L90" class="LineNr"> 90 </span> dest <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, z +<span id="L91" class="LineNr"> 91 </span> result <span class="Special"><-</span> copy *dest +<span id="L92" class="LineNr"> 92 </span> result <span class="Special"><-</span> divide f +<span id="L93" class="LineNr"> 93 </span> copy-to *dest, result +<span id="L94" class="LineNr"> 94 </span><span class="Delimiter">}</span> +<span id="L95" class="LineNr"> 95 </span> +<span id="L96" class="LineNr"> 96 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-unit</span> in: (addr vec3), out: (addr vec3) <span class="Delimiter">{</span> +<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> len/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> vec3-length in +<span id="L98" class="LineNr"> 98 </span><span class="CommentedCode">#? print-string 0, "len: "</span> +<span id="L99" class="LineNr"> 99 </span><span class="CommentedCode">#? print-float-hex 0, len</span> +<span id="L100" class="LineNr">100 </span><span class="CommentedCode">#? print-string 0, "\n"</span> +<span id="L101" class="LineNr">101 </span> copy-object in, out +<span id="L102" class="LineNr">102 </span> vec3-scale-down out, len +<span id="L103" class="LineNr">103 </span><span class="Delimiter">}</span> +<span id="L104" class="LineNr">104 </span> +<span id="L105" class="LineNr">105 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-length</span> v: (addr vec3)<span class="PreProc"> -> </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span> +<span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> vec3-length-squared v +<span id="L107" class="LineNr">107 </span> result <span class="Special"><-</span> square-root result +<span id="L108" class="LineNr">108 </span> <span class="PreProc">return</span> result +<span id="L109" class="LineNr">109 </span><span class="Delimiter">}</span> +<span id="L110" class="LineNr">110 </span> +<span id="L111" class="LineNr">111 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-length-squared</span> _v: (addr vec3)<span class="PreProc"> -> </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span> +<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> v/<span class="muRegEsi">esi</span>: (addr vec3) <span class="Special"><-</span> copy _v +<span id="L113" class="LineNr">113 </span> <span class="muComment"># result = v.x * v.x</span> +<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> src/eax: (addr float) <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, x +<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> tmp/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy *src +<span id="L116" class="LineNr">116 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy tmp +<span id="L118" class="LineNr">118 </span> <span class="muComment"># result += v.y * v.y</span> +<span id="L119" class="LineNr">119 </span> src <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, y +<span id="L120" class="LineNr">120 </span> tmp <span class="Special"><-</span> copy *src +<span id="L121" class="LineNr">121 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L122" class="LineNr">122 </span> result <span class="Special"><-</span> add tmp +<span id="L123" class="LineNr">123 </span> <span class="muComment"># result += v.z * v.z</span> +<span id="L124" class="LineNr">124 </span> src <span class="Special"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, z +<span id="L125" class="LineNr">125 </span> tmp <span class="Special"><-</span> copy *src +<span id="L126" class="LineNr">126 </span> tmp <span class="Special"><-</span> multiply tmp +<span id="L127" class="LineNr">127 </span> result <span class="Special"><-</span> add tmp +<span id="L128" class="LineNr">128 </span> <span class="PreProc">return</span> result +<span id="L129" class="LineNr">129 </span><span class="Delimiter">}</span> +<span id="L130" class="LineNr">130 </span> +<span id="L131" class="LineNr">131 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L131'>vec3-dot</a></span> _v1: (addr vec3), _v2: (addr vec3)<span class="PreProc"> -> </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span> +<span id="L132" class="LineNr">132 </span><span class="Delimiter">}</span> +<span id="L133" class="LineNr">133 </span> +<span id="L134" class="LineNr">134 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L134'>vec3-cross</a></span> _v1: (addr vec3), _v2: (addr vec3), out: (addr vec3) <span class="Delimiter">{</span> +<span id="L135" class="LineNr">135 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/rpn.mu.html b/html/linux/apps/rpn.mu.html index 7fc2dc5e..b5aba508 100644 --- a/html/linux/rpn.mu.html +++ b/html/linux/apps/rpn.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/rpn.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/rpn.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.muRegEdx { color: #af5f00; } +.muRegEcx { color: #870000; } .Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -59,7 +59,7 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/rpn.mu'>https://github.com/akkartik/mu/blob/main/linux/rpn.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/rpn.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/rpn.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Integer arithmetic using postfix notation</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> @@ -67,7 +67,7 @@ if ('onhashchange' in window) { <span id="L4" class="LineNr"> 4 </span><span class="muComment"># No division yet.</span> <span id="L5" class="LineNr"> 5 </span><span class="muComment">#</span> <span id="L6" class="LineNr"> 6 </span><span class="muComment"># To build:</span> -<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate rpn.mu</span> +<span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./translate apps/rpn.mu</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment">#</span> <span id="L9" class="LineNr"> 9 </span><span class="muComment"># Example session:</span> <span id="L10" class="LineNr"> 10 </span><span class="muComment"># $ ./a.elf</span> @@ -92,22 +92,22 @@ if ('onhashchange' in window) { <span id="L29" class="LineNr"> 29 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L29'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> in-storage: (stream byte <span class="Constant">0x100</span>) <span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address in-storage -<span id="L32" class="LineNr"> 32 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"press ctrl-c or ctrl-d to exit\n"</span> +<span id="L32" class="LineNr"> 32 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"press ctrl-c or ctrl-d to exit\n"</span> <span id="L33" class="LineNr"> 33 </span> <span class="muComment"># read-eval-print loop</span> <span id="L34" class="LineNr"> 34 </span> <span class="Delimiter">{</span> <span id="L35" class="LineNr"> 35 </span> <span class="muComment"># print prompt</span> -<span id="L36" class="LineNr"> 36 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"> "</span> +<span id="L36" class="LineNr"> 36 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"> "</span> <span id="L37" class="LineNr"> 37 </span> <span class="muComment"># read line</span> -<span id="L38" class="LineNr"> 38 </span> <a href='106stream.subx.html#L17'>clear-stream</a> in -<span id="L39" class="LineNr"> 39 </span> <a href='305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> in -<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in +<span id="L38" class="LineNr"> 38 </span> <a href='../106stream.subx.html#L17'>clear-stream</a> in +<span id="L39" class="LineNr"> 39 </span> <a href='../305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> in +<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> in <span id="L41" class="LineNr"> 41 </span> compare done?, <span class="Constant">0</span> <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">break-if-!=</span> <span id="L43" class="LineNr"> 43 </span> <span class="muComment"># parse and eval</span> <span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> out/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L59'>simplify</a> in <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># print</span> -<span id="L46" class="LineNr"> 46 </span> <a href='405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, out -<span id="L47" class="LineNr"> 47 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> +<span id="L46" class="LineNr"> 46 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, out +<span id="L47" class="LineNr"> 47 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> <span id="L48" class="LineNr"> 48 </span> <span class="muComment">#</span> <span id="L49" class="LineNr"> 49 </span> <span class="PreProc">loop</span> <span id="L50" class="LineNr"> 50 </span> <span class="Delimiter">}</span> @@ -116,7 +116,7 @@ if ('onhashchange' in window) { <span id="L53" class="LineNr"> 53 </span> <span id="L54" class="LineNr"> 54 </span><span class="PreProc">type</span> <a href='rpn.mu.html#L54'>int-stack</a> <span class="Delimiter">{</span> <span id="L55" class="LineNr"> 55 </span> data: (handle array int) -<span id="L56" class="LineNr"> 56 </span> <a href='203stack.subx.html#L338'>top</a>: int +<span id="L56" class="LineNr"> 56 </span> <a href='../203stack.subx.html#L338'>top</a>: int <span id="L57" class="LineNr"> 57 </span><span class="Delimiter">}</span> <span id="L58" class="LineNr"> 58 </span> <span id="L59" class="LineNr"> 59 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L59'>simplify</a></span> in: (addr stream byte)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> @@ -126,13 +126,13 @@ if ('onhashchange' in window) { <span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> stack/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L54'>int-stack</a>) <span class="Special"><-</span> address stack-storage <span id="L64" class="LineNr"> 64 </span> <a href='rpn.mu.html#L113'>initialize-int-stack</a> stack, <span class="Constant">0x10</span> <span id="L65" class="LineNr"> 65 </span> $simplify:word-loop: <span class="Delimiter">{</span> -<span id="L66" class="LineNr"> 66 </span> <a href='127next-word.subx.html#L11'>next-word</a> in, word -<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L9'>slice-empty?</a> word +<span id="L66" class="LineNr"> 66 </span> <a href='../127next-word.subx.html#L11'>next-word</a> in, word +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L9'>slice-empty?</a> word <span id="L68" class="LineNr"> 68 </span> compare done?, <span class="Constant">0</span> <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">break-if-!=</span> <span id="L70" class="LineNr"> 70 </span> <span class="muComment"># if word is an operator, perform it</span> <span id="L71" class="LineNr"> 71 </span> <span class="Delimiter">{</span> -<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> add?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"+"</span> +<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> add?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"+"</span> <span id="L73" class="LineNr"> 73 </span> compare add?, <span class="Constant">0</span> <span id="L74" class="LineNr"> 74 </span> <span class="PreProc">break-if-=</span> <span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack @@ -143,7 +143,7 @@ if ('onhashchange' in window) { <span id="L80" class="LineNr"> 80 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L81" class="LineNr"> 81 </span> <span class="Delimiter">}</span> <span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">{</span> -<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> sub?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"-"</span> +<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> sub?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"-"</span> <span id="L84" class="LineNr"> 84 </span> compare sub?, <span class="Constant">0</span> <span id="L85" class="LineNr"> 85 </span> <span class="PreProc">break-if-=</span> <span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack @@ -154,7 +154,7 @@ if ('onhashchange' in window) { <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L92" class="LineNr"> 92 </span> <span class="Delimiter">}</span> <span id="L93" class="LineNr"> 93 </span> <span class="Delimiter">{</span> -<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> mul?/eax: boolean <span class="Special"><-</span> <a href='123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"*"</span> +<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> mul?/eax: boolean <span class="Special"><-</span> <a href='../123slice.subx.html#L120'>slice-equal?</a> word, <span class="Constant">"*"</span> <span id="L95" class="LineNr"> 95 </span> compare mul?, <span class="Constant">0</span> <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">break-if-=</span> <span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> _b/eax: int <span class="Special"><-</span> <a href='rpn.mu.html#L133'>pop-int-stack</a> stack @@ -165,7 +165,7 @@ if ('onhashchange' in window) { <span id="L102" class="LineNr">102 </span> <span class="PreProc">loop</span> $simplify:word-loop <span id="L103" class="LineNr">103 </span> <span class="Delimiter">}</span> <span id="L104" class="LineNr">104 </span> <span class="muComment"># otherwise it's an int</span> -<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> word +<span id="L105" class="LineNr">105 </span> <span class="PreProc">var</span> n/eax: int <span class="Special"><-</span> <a href='../311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> word <span id="L106" class="LineNr">106 </span> <a href='rpn.mu.html#L121'>push-int-stack</a> stack, n <span id="L107" class="LineNr">107 </span> <span class="PreProc">loop</span> <span id="L108" class="LineNr">108 </span> <span class="Delimiter">}</span> @@ -175,19 +175,19 @@ if ('onhashchange' in window) { <span id="L112" class="LineNr">112 </span> <span id="L113" class="LineNr">113 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L113'>initialize-int-stack</a></span> _self: (addr <a href='rpn.mu.html#L54'>int-stack</a>), n: int <span class="Delimiter">{</span> <span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L54'>int-stack</a>) <span class="Special"><-</span> copy _self -<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> d/<span class="muRegEdi">edi</span>: (addr handle array int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, data +<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> d/<span class="muRegEdi">edi</span>: (addr handle array int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data <span id="L116" class="LineNr">116 </span> populate d, n -<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> <a href='203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, <a href='203stack.subx.html#L338'>top</a> +<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/eax: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L118" class="LineNr">118 </span> copy-to *top, <span class="Constant">0</span> <span id="L119" class="LineNr">119 </span><span class="Delimiter">}</span> <span id="L120" class="LineNr">120 </span> <span id="L121" class="LineNr">121 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L121'>push-int-stack</a></span> _self: (addr <a href='rpn.mu.html#L54'>int-stack</a>), _val: int <span class="Delimiter">{</span> <span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L54'>int-stack</a>) <span class="Special"><-</span> copy _self -<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, <a href='203stack.subx.html#L338'>top</a> -<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, data -<span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> <a href='203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr -<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> index data, <a href='203stack.subx.html#L338'>top</a> +<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> +<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data +<span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> dest-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> index data, <a href='../203stack.subx.html#L338'>top</a> <span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy _val <span id="L129" class="LineNr">129 </span> copy-to *dest-addr, val <span id="L130" class="LineNr">130 </span> add-to *top-addr, <span class="Constant">1</span> @@ -195,17 +195,17 @@ if ('onhashchange' in window) { <span id="L132" class="LineNr">132 </span> <span id="L133" class="LineNr">133 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='rpn.mu.html#L133'>pop-int-stack</a></span> _self: (addr <a href='rpn.mu.html#L54'>int-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='rpn.mu.html#L54'>int-stack</a>) <span class="Special"><-</span> copy _self -<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, <a href='203stack.subx.html#L338'>top</a> +<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, <a href='../203stack.subx.html#L338'>top</a> <span id="L136" class="LineNr">136 </span> <span class="Delimiter">{</span> <span id="L137" class="LineNr">137 </span> compare *top-addr, <span class="Constant">0</span> <span id="L138" class="LineNr">138 </span> <span class="PreProc">break-if-></span> <span id="L139" class="LineNr">139 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L140" class="LineNr">140 </span> <span class="Delimiter">}</span> <span id="L141" class="LineNr">141 </span> subtract-from *top-addr, <span class="Constant">1</span> -<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> <a href='131table.subx.html#L26'>get</a> self, data -<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='120allocate.subx.html#L258'>lookup</a> *data-ah -<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> <a href='203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr -<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> result-addr/eax: (addr int) <span class="Special"><-</span> index data, <a href='203stack.subx.html#L338'>top</a> +<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array int) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, data +<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> data/eax: (addr array int) <span class="Special"><-</span> <a href='../120allocate.subx.html#L258'>lookup</a> *data-ah +<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> <a href='../203stack.subx.html#L338'>top</a>/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy *top-addr +<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> result-addr/eax: (addr int) <span class="Special"><-</span> index data, <a href='../203stack.subx.html#L338'>top</a> <span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> val/eax: int <span class="Special"><-</span> copy *result-addr <span id="L147" class="LineNr">147 </span> <span class="PreProc">return</span> val <span id="L148" class="LineNr">148 </span><span class="Delimiter">}</span> diff --git a/html/linux/texture.mu.html b/html/linux/apps/texture.mu.html index b8d8d2ff..c3f44607 100644 --- a/html/linux/texture.mu.html +++ b/html/linux/apps/texture.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/texture.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta charset="UTF-8"> +<title>Mu - linux/apps/texture.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.muRegEdx { color: #af5f00; } +.muRegEsi { color: #005faf; } .muRegEcx { color: #870000; } .Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } -.muRegEbx { color: #5f00ff; } -.muRegEsi { color: #005faf; } -.muRegEdi { color: #00af00; } .CommentedCode { color: #8a8a8a; } -.Delimiter { color: #c000c0; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -60,14 +60,14 @@ if ('onhashchange' in window) { </script> </head> <body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/texture.mu'>https://github.com/akkartik/mu/blob/main/linux/texture.mu</a> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/texture.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/texture.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># Playing with emitting cool textures.</span> <span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run (on Linux):</span> <span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span> <span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ cd mu</span> -<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate texture.mu</span> +<span id="L6" class="LineNr"> 6 </span><span class="muComment"># $ ./translate apps/texture.mu</span> <span id="L7" class="LineNr"> 7 </span><span class="muComment"># $ ./a.elf > a.ppm</span> <span id="L8" class="LineNr"> 8 </span> <span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='texture.mu.html#L9'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> @@ -75,12 +75,12 @@ if ('onhashchange' in window) { <span id="L11" class="LineNr">11 </span><span class="CommentedCode">#? var height/edi: int <- copy 0xe1 # 225; aspect ratio 16:9</span> <span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> width/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy <span class="Constant">0xff</span> <span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> height/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0xff</span> -<span id="L14" class="LineNr">14 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"P3\n"</span> -<span id="L15" class="LineNr">15 </span> <a href='405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, width -<span id="L16" class="LineNr">16 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">" "</span> -<span id="L17" class="LineNr">17 </span> <a href='405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, height -<span id="L18" class="LineNr">18 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> -<span id="L19" class="LineNr">19 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"255\n"</span> <span class="muComment"># color depth</span> +<span id="L14" class="LineNr">14 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"P3\n"</span> +<span id="L15" class="LineNr">15 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, width +<span id="L16" class="LineNr">16 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">" "</span> +<span id="L17" class="LineNr">17 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, height +<span id="L18" class="LineNr">18 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> +<span id="L19" class="LineNr">19 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"255\n"</span> <span class="muComment"># color depth</span> <span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> row/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L21" class="LineNr">21 </span> <span class="Delimiter">{</span> <span id="L22" class="LineNr">22 </span> compare row, height @@ -95,23 +95,23 @@ if ('onhashchange' in window) { <span id="L31" class="LineNr">31 </span> tmp <span class="Special"><-</span> and <span class="Constant">0x7f</span> <span id="L32" class="LineNr">32 </span> tmp <span class="Special"><-</span> add <span class="Constant">0x80</span> <span id="L33" class="LineNr">33 </span> tmp <span class="Special"><-</span> copy <span class="Constant">0xff</span> -<span id="L34" class="LineNr">34 </span> <a href='405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, tmp -<span id="L35" class="LineNr">35 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">" "</span> +<span id="L34" class="LineNr">34 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, tmp +<span id="L35" class="LineNr">35 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">" "</span> <span id="L36" class="LineNr">36 </span> <span class="muComment"># g</span> <span id="L37" class="LineNr">37 </span> tmp <span class="Special"><-</span> copy row <span id="L38" class="LineNr">38 </span> tmp <span class="Special"><-</span> multiply col <span id="L39" class="LineNr">39 </span> tmp <span class="Special"><-</span> and <span class="Constant">0x7f</span> <span id="L40" class="LineNr">40 </span> tmp <span class="Special"><-</span> add <span class="Constant">0x80</span> <span id="L41" class="LineNr">41 </span><span class="CommentedCode">#? tmp <- copy 0xcf</span> -<span id="L42" class="LineNr">42 </span> <a href='405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, tmp -<span id="L43" class="LineNr">43 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">" "</span> +<span id="L42" class="LineNr">42 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, tmp +<span id="L43" class="LineNr">43 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">" "</span> <span id="L44" class="LineNr">44 </span> <span class="muComment"># b</span> <span id="L45" class="LineNr">45 </span> tmp <span class="Special"><-</span> copy row <span id="L46" class="LineNr">46 </span> tmp <span class="Special"><-</span> multiply col <span id="L47" class="LineNr">47 </span> tmp <span class="Special"><-</span> and <span class="Constant">0x7f</span> <span id="L48" class="LineNr">48 </span> tmp <span class="Special"><-</span> add <span class="Constant">0x80</span> -<span id="L49" class="LineNr">49 </span> <a href='405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, tmp -<span id="L50" class="LineNr">50 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> +<span id="L49" class="LineNr">49 </span> <a href='../405screen.mu.html#L484'>print-int32-decimal</a> <span class="Constant">0</span>/screen, tmp +<span id="L50" class="LineNr">50 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> <span id="L51" class="LineNr">51 </span> col <span class="Special"><-</span> increment <span id="L52" class="LineNr">52 </span> <span class="PreProc">loop</span> <span id="L53" class="LineNr">53 </span> <span class="Delimiter">}</span> diff --git a/html/linux/apps/tui.mu.html b/html/linux/apps/tui.mu.html new file mode 100644 index 00000000..82681e6a --- /dev/null +++ b/html/linux/apps/tui.mu.html @@ -0,0 +1,98 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>Mu - linux/apps/tui.mu</title> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> +<meta name="syntax" content="none"> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> +<meta name="colorscheme" content="minimal-light"> +<style> +<!-- +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } +a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } +.Special { color: #ff6060; } +.LineNr { } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEbx { color: #5f00ff; } +--> +</style> + +<script> +<!-- + +/* function to open any folds containing a jumped-to line before jumping to it */ +function JumpToLine() +{ + var lineNum; + lineNum = window.location.hash; + lineNum = lineNum.substr(1); /* strip off '#' */ + + if (lineNum.indexOf('L') == -1) { + lineNum = 'L'+lineNum; + } + var lineElem = document.getElementById(lineNum); + /* Always jump to new location even if the line was hidden inside a fold, or + * we corrected the raw number to a line ID. + */ + if (lineElem) { + lineElem.scrollIntoView(true); + } + return true; +} +if ('onhashchange' in window) { + window.onhashchange = JumpToLine; +} + +--> +</script> +</head> +<body onload='JumpToLine();'> +<a href='https://github.com/akkartik/mu/blob/main/linux/apps/tui.mu'>https://github.com/akkartik/mu/blob/main/linux/apps/tui.mu</a> +<pre id='vimCodeElement'> +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Test some primitives for text-mode.</span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> +<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run:</span> +<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate apps/tui.mu</span> +<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./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"><a href='tui.mu.html#L7'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> +<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> nrows/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> ncols/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L10" class="LineNr">10 </span> nrows, ncols <span class="Special"><-</span> <a href='../405screen.mu.html#L60'>screen-size</a> <span class="Constant">0</span> +<span id="L11" class="LineNr">11 </span> <a href='../304screen.subx.html#L6'>enable-screen-grid-mode</a> +<span id="L12" class="LineNr">12 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <span class="Constant">0</span>/screen, <span class="Constant">5</span>/row, <span class="Constant">0x22</span>/col +<span id="L13" class="LineNr">13 </span> <a href='../405screen.mu.html#L523'>start-color</a> <span class="Constant">0</span>/screen, <span class="Constant">1</span>/fg, <span class="Constant">0x7a</span>/bg +<span id="L14" class="LineNr">14 </span> <a href='../405screen.mu.html#L583'>start-blinking</a> <span class="Constant">0</span>/screen +<span id="L15" class="LineNr">15 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"Hello world!"</span> +<span id="L16" class="LineNr">16 </span> <a href='../405screen.mu.html#L506'>reset-formatting</a> <span class="Constant">0</span>/screen +<span id="L17" class="LineNr">17 </span> <a href='../405screen.mu.html#L109'>move-cursor</a> <span class="Constant">0</span>/screen, <span class="Constant">6</span>/row, <span class="Constant">0x22</span>/col +<span id="L18" class="LineNr">18 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"tty dimensions: "</span> +<span id="L19" class="LineNr">19 </span> <a href='../405screen.mu.html#L440'>print-int32-hex</a> <span class="Constant">0</span>/screen, nrows +<span id="L20" class="LineNr">20 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">" rows, "</span> +<span id="L21" class="LineNr">21 </span> <a href='../405screen.mu.html#L440'>print-int32-hex</a> <span class="Constant">0</span>/screen, ncols +<span id="L22" class="LineNr">22 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">" rows\n"</span> +<span id="L23" class="LineNr">23 </span> +<span id="L24" class="LineNr">24 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"press a key to see its code: "</span> +<span id="L25" class="LineNr">25 </span> <a href='../305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a> +<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> x/eax: grapheme <span class="Special"><-</span> <a href='../305keyboard.subx.html#L132'>read-key-from-real-keyboard</a> +<span id="L27" class="LineNr">27 </span> <a href='../305keyboard.subx.html#L72'>enable-keyboard-type-mode</a> +<span id="L28" class="LineNr">28 </span> <a href='../304screen.subx.html#L24'>enable-screen-type-mode</a> +<span id="L29" class="LineNr">29 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"You pressed "</span> +<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> x-int/eax: int <span class="Special"><-</span> copy x +<span id="L31" class="LineNr">31 </span> <a href='../405screen.mu.html#L440'>print-int32-hex</a> <span class="Constant">0</span>/screen, x-int +<span id="L32" class="LineNr">32 </span> <a href='../405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> +<span id="L33" class="LineNr">33 </span> <span class="PreProc">return</span> <span class="Constant">0</span> +<span id="L34" class="LineNr">34 </span><span class="Delimiter">}</span> +</pre> +</body> +</html> +<!-- vim: set foldmethod=manual : --> diff --git a/html/linux/assort.subx.html b/html/linux/assort.subx.html index b4061120..b75d2baa 100644 --- a/html/linux/assort.subx.html +++ b/html/linux/assort.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/assort.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,19 +16,19 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -172,7 +172,7 @@ if ('onhashchange' in window) { <span id="L110" class="LineNr"> 110 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L111" class="LineNr"> 111 </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="L112" class="LineNr"> 112 </span><span class="Constant">$subx-assort:<a href='111read.subx.html#L48'>read</a></span>: -<span id="L113" class="Folded"> 113 </span><span class="Folded">+-- 9 lines: #? # print("read\n") --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L113" class="Folded"> 113 </span><span class="Folded">+-- 9 lines: #? # print("read\n") -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L122" class="LineNr"> 122 </span> <span class="subxComment"># read-segments(in, table)</span> <span id="L123" class="LineNr"> 123 </span> <span class="subxS2Comment"># . . push args</span> <span id="L124" class="LineNr"> 124 </span> 51/push-ecx @@ -182,7 +182,7 @@ if ('onhashchange' in window) { <span id="L128" class="LineNr"> 128 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L129" class="LineNr"> 129 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L130" class="LineNr"> 130 </span><span class="Constant">$subx-assort:<a href='108write.subx.html#L24'>write</a></span>: -<span id="L131" class="Folded"> 131 </span><span class="Folded">+-- 9 lines: #? # print("write\n") -------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L131" class="Folded"> 131 </span><span class="Folded">+-- 9 lines: #? # print("write\n") ------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L140" class="LineNr"> 140 </span> <span class="subxComment"># write-segments(out, table)</span> <span id="L141" class="LineNr"> 141 </span> <span class="subxS2Comment"># . . push args</span> <span id="L142" class="LineNr"> 142 </span> 51/push-ecx @@ -385,7 +385,7 @@ if ('onhashchange' in window) { <span id="L339" class="LineNr"> 339 </span> <span class="subxComment"># 10 11</span> <span id="L340" class="LineNr"> 340 </span> <span class="subxComment"># == data 0x0a000000</span> <span id="L341" class="LineNr"> 341 </span> <span class="subxComment"># 4 5/imm32</span> -<span id="L342" class="Folded"> 342 </span><span class="Folded">+-- 33 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L342" class="Folded"> 342 </span><span class="Folded">+-- 33 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L375" class="LineNr"> 375 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "== code 0x09000000", msg)</span> <span id="L376" class="LineNr"> 376 </span> <span class="subxS2Comment"># . . push args</span> <span id="L377" class="LineNr"> 377 </span> 68/push <span class="Constant">"F - <a href='assort.subx.html#L158'>test-subx-assort</a>/0"</span>/imm32 @@ -537,7 +537,7 @@ if ('onhashchange' in window) { <span id="L523" class="LineNr"> 523 </span> <span class="subxComment"># if (line->write == 0) break</span> <span id="L524" class="LineNr"> 524 </span> 81 7/subop/compare 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># compare *ecx</span> <span id="L525" class="LineNr"> 525 </span> 0f 84/jump-if-= $read-segments:<span class="Constant">break</span>/disp32 -<span id="L526" class="Folded"> 526 </span><span class="Folded">+-- 33 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L526" class="Folded"> 526 </span><span class="Folded">+-- 33 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L559" class="LineNr"> 559 </span> <span class="subxComment"># next-word-or-string(line, word-slice)</span> <span id="L560" class="LineNr"> 560 </span> <span class="subxS2Comment"># . . push args</span> <span id="L561" class="LineNr"> 561 </span> 52/push-edx @@ -547,7 +547,7 @@ if ('onhashchange' in window) { <span id="L565" class="LineNr"> 565 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L566" class="LineNr"> 566 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L567" class="LineNr"> 567 </span><span class="Constant">$read-segments:check1</span>: -<span id="L568" class="Folded"> 568 </span><span class="Folded">+-- 9 lines: #? # print("check1\n") ------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L568" class="Folded"> 568 </span><span class="Folded">+-- 9 lines: #? # print("check1\n") -----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L577" class="LineNr"> 577 </span> <span class="subxComment"># if (slice-empty?(word-slice)) continue</span> <span id="L578" class="LineNr"> 578 </span> <span class="subxS1Comment"># . eax = slice-empty?(word-slice)</span> <span id="L579" class="LineNr"> 579 </span> <span class="subxS2Comment"># . . push args</span> @@ -560,7 +560,7 @@ if ('onhashchange' in window) { <span id="L586" class="LineNr"> 586 </span> 3d/compare-eax-and 0/imm32/false <span id="L587" class="LineNr"> 587 </span> 0f 85/jump-if-!= $read-segments:<span class="Constant">loop</span>/disp32 <span id="L588" class="LineNr"> 588 </span><span class="Constant">$read-segments:check-for-comment</span>: -<span id="L589" class="Folded"> 589 </span><span class="Folded">+-- 9 lines: #? # print("check for comment\n") -------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L589" class="Folded"> 589 </span><span class="Folded">+-- 9 lines: #? # print("check for comment\n") ------------------------------------------------------------------------------------------------------------------------</span> <span id="L598" class="LineNr"> 598 </span> <span class="subxComment"># if (slice-starts-with?(word-slice, "#")) continue</span> <span id="L599" class="LineNr"> 599 </span> <span class="subxS1Comment"># . var start/esi: (addr byte) = word-slice->start</span> <span id="L600" class="LineNr"> 600 </span> 8b/copy 0/mod/indirect 2/rm32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to esi</span> @@ -571,8 +571,8 @@ if ('onhashchange' in window) { <span id="L605" class="LineNr"> 605 </span> 3d/compare-eax-and 0x23/imm32/hash <span id="L606" class="LineNr"> 606 </span> 0f 84/jump-if-= $read-segments:<span class="Constant">loop</span>/disp32 <span id="L607" class="LineNr"> 607 </span><span class="Constant">$read-segments:check-for-segment-header</span>: -<span id="L608" class="Folded"> 608 </span><span class="Folded">+-- 9 lines: #? # print("check for segment header\n") ------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L617" class="Folded"> 617 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L608" class="Folded"> 608 </span><span class="Folded">+-- 9 lines: #? # print("check for segment header\n") -----------------------------------------------------------------------------------------------------------------</span> +<span id="L617" class="Folded"> 617 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L657" class="LineNr"> 657 </span> <span class="subxComment"># if !slice-equal?(word-slice, "==") goto next check</span> <span id="L658" class="LineNr"> 658 </span> <span class="subxS1Comment"># . eax = slice-equal?(word-slice, "==")</span> <span id="L659" class="LineNr"> 659 </span> <span class="subxS2Comment"># . . push args</span> @@ -593,7 +593,7 @@ if ('onhashchange' in window) { <span id="L674" class="LineNr"> 674 </span> e8/call <a href='135next-word-or-string.subx.html#L8'>next-word-or-string</a>/disp32 <span id="L675" class="LineNr"> 675 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L676" class="LineNr"> 676 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L677" class="Folded"> 677 </span><span class="Folded">+-- 40 lines: #? # dump segment name ------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L677" class="Folded"> 677 </span><span class="Folded">+-- 40 lines: #? # dump segment name -----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L717" class="LineNr"> 717 </span> <span class="subxComment"># var segment-slot/edi: (addr handle stream byte) = get-or-insert-slice(table, segment-name, row-size=16, Heap)</span> <span id="L718" class="LineNr"> 718 </span> <span class="subxS1Comment"># . eax = get-or-insert-slice(table, segment-name, row-size=16, Heap)</span> <span id="L719" class="LineNr"> 719 </span> <span class="subxS2Comment"># . . push args</span> @@ -607,7 +607,7 @@ if ('onhashchange' in window) { <span id="L727" class="LineNr"> 727 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> <span id="L728" class="LineNr"> 728 </span> <span class="subxS1Comment"># . edi = eax</span> <span id="L729" class="LineNr"> 729 </span> 89/copy 3/mod/direct 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to edi</span> -<span id="L730" class="Folded"> 730 </span><span class="Folded">+-- 33 lines: #? # print("slot: " segment-slot "\n") --------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L730" class="Folded"> 730 </span><span class="Folded">+-- 33 lines: #? # print("slot: " segment-slot "\n") -------------------------------------------------------------------------------------------------------------------</span> <span id="L763" class="LineNr"> 763 </span> <span class="subxComment"># if (*segment-slot != 0) update curr-segment and continue</span> <span id="L764" class="LineNr"> 764 </span> 81 7/subop/compare 0/mod/indirect 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># compare edi</span> <span id="L765" class="LineNr"> 765 </span> 0f 84/jump-if-= $read-segments:create-segment/disp32 @@ -648,11 +648,11 @@ if ('onhashchange' in window) { <span id="L800" class="LineNr"> 800 </span> 89/copy 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to ebx</span> <span id="L801" class="LineNr"> 801 </span> <span class="subxComment"># fall through</span> <span id="L802" class="LineNr"> 802 </span><span class="Constant">$read-segments:regular-line</span>: -<span id="L803" class="Folded"> 803 </span><span class="Folded">+-- 9 lines: #? # print("regular line\n") ------------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L812" class="Folded"> 812 </span><span class="Folded">+-- 33 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L845" class="Folded"> 845 </span><span class="Folded">+-- 33 lines: #? # print("addr: " curr-segment->write "\n") -------------------------------------------------------------------------------------------------------------------------</span> -<span id="L878" class="Folded"> 878 </span><span class="Folded">+-- 33 lines: #? # print("write: " curr-segment->write "\n") ------------------------------------------------------------------------------------------------------------------------</span> -<span id="L911" class="Folded"> 911 </span><span class="Folded">+-- 33 lines: #? # print("size: " curr-segment->size "\n") --------------------------------------------------------------------------------------------------------------------------</span> +<span id="L803" class="Folded"> 803 </span><span class="Folded">+-- 9 lines: #? # print("regular line\n") -----------------------------------------------------------------------------------------------------------------------------</span> +<span id="L812" class="Folded"> 812 </span><span class="Folded">+-- 33 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L845" class="Folded"> 845 </span><span class="Folded">+-- 33 lines: #? # print("addr: " curr-segment->write "\n") ------------------------------------------------------------------------------------------------------------</span> +<span id="L878" class="Folded"> 878 </span><span class="Folded">+-- 33 lines: #? # print("write: " curr-segment->write "\n") -----------------------------------------------------------------------------------------------------------</span> +<span id="L911" class="Folded"> 911 </span><span class="Folded">+-- 33 lines: #? # print("size: " curr-segment->size "\n") -------------------------------------------------------------------------------------------------------------</span> <span id="L944" class="LineNr"> 944 </span> <span class="subxComment"># rewind-stream(line)</span> <span id="L945" class="LineNr"> 945 </span> <span class="subxS2Comment"># . . push args</span> <span id="L946" class="LineNr"> 946 </span> 51/push-ecx @@ -660,7 +660,7 @@ if ('onhashchange' in window) { <span id="L948" class="LineNr"> 948 </span> e8/call <a href='106stream.subx.html#L56'>rewind-stream</a>/disp32 <span id="L949" class="LineNr"> 949 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L950" class="LineNr"> 950 </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="L951" class="Folded"> 951 </span><span class="Folded">+-- 9 lines: #? # print("write stream\n") ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L951" class="Folded"> 951 </span><span class="Folded">+-- 9 lines: #? # print("write stream\n") -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L960" class="LineNr"> 960 </span> <span class="subxComment"># write-stream(curr-segment, line)</span> <span id="L961" class="LineNr"> 961 </span> <span class="subxS2Comment"># . . push args</span> <span id="L962" class="LineNr"> 962 </span> 51/push-ecx @@ -670,7 +670,7 @@ if ('onhashchange' in window) { <span id="L966" class="LineNr"> 966 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L967" class="LineNr"> 967 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L968" class="LineNr"> 968 </span> <span class="subxComment"># loop</span> -<span id="L969" class="Folded"> 969 </span><span class="Folded">+-- 9 lines: #? # print("loop\n") --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L969" class="Folded"> 969 </span><span class="Folded">+-- 9 lines: #? # print("loop\n") -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L978" class="LineNr"> 978 </span> e9/jump $read-segments:<span class="Constant">loop</span>/disp32 <span id="L979" class="LineNr"> 979 </span><span class="Constant">$read-segments:break</span>: <span id="L980" class="LineNr"> 980 </span><span class="Constant">$read-segments:end</span>: diff --git a/html/linux/braces.subx.html b/html/linux/braces.subx.html index 9ebddb15..034bc356 100644 --- a/html/linux/braces.subx.html +++ b/html/linux/braces.subx.html @@ -1,31 +1,31 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/braces.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } .SpecialChar { color: #d70000; } .Constant { color: #008787; } .Folded { color: #080808; background-color: #949494; } +.subxTest { color: #5f8700; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -328,7 +328,7 @@ if ('onhashchange' in window) { <span id="L269" class="LineNr">269 </span> (<a href='braces.subx.html#L77'>subx-braces</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L270" class="LineNr">270 </span> <span class="subxComment"># check that the line just passed through</span> <span id="L271" class="LineNr">271 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L272" class="Folded">272 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L272" class="Folded">272 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L277" class="LineNr">277 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"== abcd 0x1 \n"</span> <span class="Constant">"F - test-subx-braces-passes-most-words-through"</span>) <span id="L278" class="LineNr">278 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L279" class="LineNr">279 </span> 89/<- %esp 5/r32/ebp @@ -361,7 +361,7 @@ if ('onhashchange' in window) { <span id="L306" class="LineNr">306 </span> (<a href='braces.subx.html#L77'>subx-braces</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L307" class="LineNr">307 </span> <span class="subxComment"># check that the line just passed through</span> <span id="L308" class="LineNr">308 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L309" class="Folded">309 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L309" class="Folded">309 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L314" class="LineNr">314 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"@loop0x00000001:\nab @break0x00000001/imm32 \ncd @loop0x00000001/imm32 \n@break0x00000001:\n"</span> <span class="Constant">"F - test-subx-braces-1"</span>) <span id="L315" class="LineNr">315 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L316" class="LineNr">316 </span> 89/<- %esp 5/r32/ebp @@ -398,7 +398,7 @@ if ('onhashchange' in window) { <span id="L347" class="LineNr">347 </span> (<a href='braces.subx.html#L77'>subx-braces</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L348" class="LineNr">348 </span> <span class="subxComment"># check that the line just passed through</span> <span id="L349" class="LineNr">349 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L350" class="Folded">350 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L350" class="Folded">350 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L355" class="LineNr">355 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"@loop0x00000001:\n@loop0x00000002:\nab @break0x00000002/imm32 \n@break0x00000002:\ncd @loop0x00000001/imm32 \n@break0x00000001:\n"</span> <span class="Constant">"F - test-subx-braces-2"</span>) <span id="L356" class="LineNr">356 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L357" class="LineNr">357 </span> 89/<- %esp 5/r32/ebp diff --git a/html/linux/calls.subx.html b/html/linux/calls.subx.html index fb16e1ac..5624bf96 100644 --- a/html/linux/calls.subx.html +++ b/html/linux/calls.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/calls.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,18 +16,18 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } .SpecialChar { color: #d70000; } .Constant { color: #008787; } .Folded { color: #080808; background-color: #949494; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -332,7 +332,7 @@ if ('onhashchange' in window) { <span id="L271" class="LineNr"> 271 </span> <span class="subxS1Comment"># . if (eax != false) break</span> <span id="L272" class="LineNr"> 272 </span> 3d/compare-eax-and 0/imm32/false <span id="L273" class="LineNr"> 273 </span> 0f 85/jump-if-!= $parse-line:end/disp32 -<span id="L274" class="Folded"> 274 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L274" class="Folded"> 274 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L314" class="LineNr"> 314 </span><span class="Constant">$parse-line:write-word</span>: <span id="L315" class="LineNr"> 315 </span> <span class="subxComment"># write-int(words, word-slice->start)</span> <span id="L316" class="LineNr"> 316 </span> <span class="subxS2Comment"># . . push args</span> @@ -745,7 +745,7 @@ if ('onhashchange' in window) { <span id="L723" class="LineNr"> 723 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L724" class="LineNr"> 724 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L725" class="LineNr"> 725 </span> 81 0/subop/add %esp 4/imm32 -<span id="L726" class="Folded"> 726 </span><span class="Folded">+-- 33 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L726" class="Folded"> 726 </span><span class="Folded">+-- 33 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L759" class="LineNr"> 759 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "# . (foo %eax)", msg)</span> <span id="L760" class="LineNr"> 760 </span> <span class="subxS2Comment"># . . push args</span> <span id="L761" class="LineNr"> 761 </span> 68/push <span class="Constant">"F - <a href='calls.subx.html#L669'>test-subx-calls-processes-calls</a>: comment"</span>/imm32 diff --git a/html/linux/dquotes.subx.html b/html/linux/dquotes.subx.html index 75cba9c3..a8dc5386 100644 --- a/html/linux/dquotes.subx.html +++ b/html/linux/dquotes.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/dquotes.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,20 +16,20 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } .subxMinorFunction { color: #875f5f; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -610,7 +610,7 @@ if ('onhashchange' in window) { <span id="L547" class="LineNr"> 547 </span> <span class="subxComment"># == data 0x2</span> <span id="L548" class="LineNr"> 548 </span> <span class="subxComment"># 4 5/imm32</span> <span id="L549" class="LineNr"> 549 </span> <span class="subxComment"># We don't care right now what exactly happens to comments. Trailing spaces are also minor details.</span> -<span id="L550" class="Folded"> 550 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L550" class="Folded"> 550 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L576" class="LineNr"> 576 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "", msg)</span> <span id="L577" class="LineNr"> 577 </span> <span class="subxS2Comment"># . . push args</span> <span id="L578" class="LineNr"> 578 </span> 68/push <span class="Constant">"F - <a href='dquotes.subx.html#L409'>test-subx-dquotes-is-idempotent-by-default</a>/0"</span>/imm32 @@ -787,7 +787,7 @@ if ('onhashchange' in window) { <span id="L749" class="LineNr"> 749 </span> <span class="subxComment"># called. We just want to make sure instructions using string literals</span> <span id="L750" class="LineNr"> 750 </span> <span class="subxComment"># switch to a string variable with the right value.</span> <span id="L751" class="LineNr"> 751 </span> <span class="subxComment"># (Modifying string literals completely off the radar for now.)</span> -<span id="L752" class="Folded"> 752 </span><span class="Folded">+-- 33 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L752" class="Folded"> 752 </span><span class="Folded">+-- 33 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L785" class="LineNr"> 785 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "== code 0x1 ", msg)</span> <span id="L786" class="LineNr"> 786 </span> <span class="subxS2Comment"># . . push args</span> <span id="L787" class="LineNr"> 787 </span> 68/push <span class="Constant">"F - <a href='dquotes.subx.html#L662'>test-subx-dquotes-processes-string-literals</a>/0"</span>/imm32 @@ -1101,7 +1101,7 @@ if ('onhashchange' in window) { <span id="L1095" class="LineNr">1095 </span> e8/call <a href='dquotes.subx.html#L863'>emit-string-literal-data</a>/disp32 <span id="L1096" class="LineNr">1096 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1097" class="LineNr">1097 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L1098" class="Folded">1098 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1098" class="Folded">1098 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1124" class="LineNr">1124 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "3/imm32 61/a 62/b 63/c ", msg)</span> <span id="L1125" class="LineNr">1125 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1126" class="LineNr">1126 </span> 68/push <span class="Constant">"F - test-emit-string-literal-data"</span>/imm32 @@ -1140,7 +1140,7 @@ if ('onhashchange' in window) { <span id="L1159" class="LineNr">1159 </span> e8/call <a href='dquotes.subx.html#L863'>emit-string-literal-data</a>/disp32 <span id="L1160" class="LineNr">1160 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1161" class="LineNr">1161 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L1162" class="Folded">1162 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1162" class="Folded">1162 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1188" class="LineNr">1188 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "0/imm32 ", msg)</span> <span id="L1189" class="LineNr">1189 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1190" class="LineNr">1190 </span> 68/push <span class="Constant">"F - test-emit-string-literal-data-empty"</span>/imm32 @@ -1180,7 +1180,7 @@ if ('onhashchange' in window) { <span id="L1224" class="LineNr">1224 </span> e8/call <a href='dquotes.subx.html#L863'>emit-string-literal-data</a>/disp32 <span id="L1225" class="LineNr">1225 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1226" class="LineNr">1226 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L1227" class="Folded">1227 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1227" class="Folded">1227 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1253" class="LineNr">1253 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "3/imm32 61/a 20 62/b ", msg) # ideally we'd like to say '20/space' but that requires managing names for codepoints</span> <span id="L1254" class="LineNr">1254 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1255" class="LineNr">1255 </span> 68/push <span class="Constant">"F - test-emit-string-literal-data-no-metadata-for-non-alphanumerics"</span>/imm32 @@ -1219,7 +1219,7 @@ if ('onhashchange' in window) { <span id="L1288" class="LineNr">1288 </span> e8/call <a href='dquotes.subx.html#L863'>emit-string-literal-data</a>/disp32 <span id="L1289" class="LineNr">1289 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1290" class="LineNr">1290 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L1291" class="Folded">1291 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1291" class="Folded">1291 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1317" class="LineNr">1317 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "3/imm32 61/a 22 62/b ", msg)</span> <span id="L1318" class="LineNr">1318 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1319" class="LineNr">1319 </span> 68/push <span class="Constant">"F - test-emit-string-literal-data-handles-escape-sequences"</span>/imm32 @@ -1258,7 +1258,7 @@ if ('onhashchange' in window) { <span id="L1352" class="LineNr">1352 </span> e8/call <a href='dquotes.subx.html#L863'>emit-string-literal-data</a>/disp32 <span id="L1353" class="LineNr">1353 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1354" class="LineNr">1354 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L1355" class="Folded">1355 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1355" class="Folded">1355 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1381" class="LineNr">1381 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "3/imm32 61/a 0a 62/b ", msg)</span> <span id="L1382" class="LineNr">1382 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1383" class="LineNr">1383 </span> 68/push <span class="Constant">"F - test-emit-string-literal-data-handles-newline-escape"</span>/imm32 @@ -1633,7 +1633,7 @@ if ('onhashchange' in window) { <span id="L1752" class="LineNr">1752 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1753" class="LineNr">1753 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1754" class="LineNr">1754 </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="L1755" class="Folded">1755 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1755" class="Folded">1755 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1781" class="LineNr">1781 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "/ghi", msg) # important that there's no leading space</span> <span id="L1782" class="LineNr">1782 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1783" class="LineNr">1783 </span> 68/push <span class="Constant">"F - test-emit-metadata-in-string-literal"</span>/imm32 diff --git a/html/linux/hex.subx.html b/html/linux/hex.subx.html index cf871dbf..dc0487af 100644 --- a/html/linux/hex.subx.html +++ b/html/linux/hex.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/hex.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,18 +16,18 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/labels_baremetal.subx.html b/html/linux/labels_baremetal.subx.html index 581b6622..28dde60d 100644 --- a/html/linux/labels_baremetal.subx.html +++ b/html/linux/labels_baremetal.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/labels_baremetal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,20 +16,20 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .CommentedCode { color: #8a8a8a; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -321,7 +321,7 @@ if ('onhashchange' in window) { <span id="L258" class="LineNr"> 258 </span> e8/call <a href='122read-line.subx.html#L9'>read-line-buffered</a>/disp32 <span id="L259" class="LineNr"> 259 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L260" class="LineNr"> 260 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L261" class="Folded"> 261 </span><span class="Folded">+-- 33 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L261" class="Folded"> 261 </span><span class="Folded">+-- 33 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L294" class="LineNr"> 294 </span> <span class="subxComment"># if (line->write == 0) break</span> <span id="L295" class="LineNr"> 295 </span> 81 7/subop/compare 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># compare *ecx</span> <span id="L296" class="LineNr"> 296 </span> 0f 84/jump-if-= $load-labels:end/disp32 @@ -333,7 +333,7 @@ if ('onhashchange' in window) { <span id="L302" class="LineNr"> 302 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L303" class="LineNr"> 303 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L304" class="LineNr"> 304 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L305" class="Folded"> 305 </span><span class="Folded">+-- 33 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L305" class="Folded"> 305 </span><span class="Folded">+-- 33 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L338" class="LineNr"> 338 </span> <span class="subxComment"># var dest/edi: (addr int) = get-or-insert-slice(labels, word-slice, 12 bytes/row, Heap)</span> <span id="L339" class="LineNr"> 339 </span> <span class="subxS1Comment"># . eax = get-or-insert-slice(labels, word-slice, 12 bytes/row, Heap)</span> <span id="L340" class="LineNr"> 340 </span> <span class="subxS2Comment"># . . push args</span> @@ -493,7 +493,7 @@ if ('onhashchange' in window) { <span id="L494" class="LineNr"> 494 </span> e8/call <a href='122read-line.subx.html#L218'>read-line</a>/disp32 <span id="L495" class="LineNr"> 495 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L496" class="LineNr"> 496 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L497" class="Folded"> 497 </span><span class="Folded">+-- 33 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L497" class="Folded"> 497 </span><span class="Folded">+-- 33 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L530" class="LineNr"> 530 </span><span class="Constant">$emit-output:check-for-end-of-input</span>: <span id="L531" class="LineNr"> 531 </span> <span class="subxComment"># if (line->write == 0) break</span> <span id="L532" class="LineNr"> 532 </span> 81 7/subop/compare 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># compare *ecx</span> @@ -531,7 +531,7 @@ if ('onhashchange' in window) { <span id="L564" class="LineNr"> 564 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L565" class="LineNr"> 565 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L566" class="LineNr"> 566 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L567" class="Folded"> 567 </span><span class="Folded">+-- 33 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L567" class="Folded"> 567 </span><span class="Folded">+-- 33 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L600" class="LineNr"> 600 </span><span class="Constant">$emit-output:check-for-end-of-line</span>: <span id="L601" class="LineNr"> 601 </span> <span class="subxComment"># if (slice-empty?(word-slice)) break</span> <span id="L602" class="LineNr"> 602 </span> <span class="subxS1Comment"># . eax = slice-empty?(word-slice)</span> @@ -745,7 +745,7 @@ if ('onhashchange' in window) { <span id="L810" class="LineNr"> 810 </span> e8/call <a href='124next-token.subx.html#L163'>next-token-from-slice</a>/disp32 <span id="L811" class="LineNr"> 811 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L812" class="LineNr"> 812 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> -<span id="L813" class="Folded"> 813 </span><span class="Folded">+-- 33 lines: #? # dump datum -------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L813" class="Folded"> 813 </span><span class="Folded">+-- 33 lines: #? # dump datum ------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L846" class="LineNr"> 846 </span> <span class="subxComment"># address/esi: (addr int) = get-slice(labels, datum, row-size=12, "label table")</span> <span id="L847" class="LineNr"> 847 </span> <span class="subxS1Comment"># . eax = get-slice(labels, datum, row-size=24, "label table")</span> <span id="L848" class="LineNr"> 848 </span> <span class="subxS2Comment"># . . push args</span> @@ -797,7 +797,7 @@ if ('onhashchange' in window) { <span id="L894" class="LineNr"> 894 </span> <span class="subxS1Comment"># . if (eax == false) goto next check</span> <span id="L895" class="LineNr"> 895 </span> 3d/compare-eax-and 0/imm32/false <span id="L896" class="LineNr"> 896 </span> 74/jump-if-= $emit-output:check-imm32/disp8 -<span id="L897" class="Folded"> 897 </span><span class="Folded">+-- 33 lines: #? # dump *address ----------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L897" class="Folded"> 897 </span><span class="Folded">+-- 33 lines: #? # dump *address ---------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L930" class="LineNr"> 930 </span><span class="Constant">$emit-output:emit-imm16</span>: <span id="L931" class="LineNr"> 931 </span> <span class="subxComment"># emit-hex(out, *address, 2)</span> <span id="L932" class="LineNr"> 932 </span> <span class="subxS2Comment"># . . push args</span> @@ -824,7 +824,7 @@ if ('onhashchange' in window) { <span id="L953" class="LineNr"> 953 </span> <span class="subxS1Comment"># . if (eax == false) goto next check</span> <span id="L954" class="LineNr"> 954 </span> 3d/compare-eax-and 0/imm32/false <span id="L955" class="LineNr"> 955 </span> 74/jump-if-= $emit-output:check-disp8/disp8 -<span id="L956" class="Folded"> 956 </span><span class="Folded">+-- 33 lines: #? # dump *address ----------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L956" class="Folded"> 956 </span><span class="Folded">+-- 33 lines: #? # dump *address ---------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L989" class="LineNr"> 989 </span><span class="Constant">$emit-output:emit-imm32</span>: <span id="L990" class="LineNr"> 990 </span> <span class="subxComment"># emit-hex(out, *address, 4)</span> <span id="L991" class="LineNr"> 991 </span> <span class="subxS2Comment"># . . push args</span> @@ -1117,7 +1117,7 @@ if ('onhashchange' in window) { <span id="L1278" class="LineNr">1278 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1279" class="LineNr">1279 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1280" class="LineNr">1280 </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="L1281" class="Folded">1281 </span><span class="Folded">+-- 33 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1281" class="Folded">1281 </span><span class="Folded">+-- 33 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1314" class="LineNr">1314 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "# 0x00007c00", msg)</span> <span id="L1315" class="LineNr">1315 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1316" class="LineNr">1316 </span> 68/push <span class="Constant">"F - <a href='labels_baremetal.subx.html#L1143'>test-emit-output-non-far-control-flow</a>/0"</span>/imm32 @@ -1281,7 +1281,7 @@ if ('onhashchange' in window) { <span id="L1474" class="LineNr">1474 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1475" class="LineNr">1475 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1476" class="LineNr">1476 </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="L1477" class="Folded">1477 </span><span class="Folded">+-- 33 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1477" class="Folded">1477 </span><span class="Folded">+-- 33 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1510" class="LineNr">1510 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "# 0x00007c00", msg)</span> <span id="L1511" class="LineNr">1511 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1512" class="LineNr">1512 </span> 68/push <span class="Constant">"F - <a href='labels_baremetal.subx.html#L1373'>test-emit-output-with-padding</a>/0"</span>/imm32 @@ -1469,7 +1469,7 @@ if ('onhashchange' in window) { <span id="L1694" class="LineNr">1694 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1695" class="LineNr">1695 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1696" class="LineNr">1696 </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="L1697" class="Folded">1697 </span><span class="Folded">+-- 33 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1697" class="Folded">1697 </span><span class="Folded">+-- 33 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1730" class="LineNr">1730 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "# 0x00007c00", msg)</span> <span id="L1731" class="LineNr">1731 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1732" class="LineNr">1732 </span> 68/push <span class="Constant">"F - <a href='labels_baremetal.subx.html#L1578'>test-emit-output-code-label</a>/0"</span>/imm32 @@ -1630,7 +1630,7 @@ if ('onhashchange' in window) { <span id="L1887" class="LineNr">1887 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1888" class="LineNr">1888 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1889" class="LineNr">1889 </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="L1890" class="Folded">1890 </span><span class="Folded">+-- 33 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1890" class="Folded">1890 </span><span class="Folded">+-- 33 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1923" class="LineNr">1923 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "# 0x00007c00", msg)</span> <span id="L1924" class="LineNr">1924 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1925" class="LineNr">1925 </span> 68/push <span class="Constant">"F - <a href='labels_baremetal.subx.html#L1771'>test-emit-output-code-label-absolute</a>/0"</span>/imm32 @@ -1962,7 +1962,7 @@ if ('onhashchange' in window) { <span id="L2251" class="LineNr">2251 </span> e8/call <a href='labels_baremetal.subx.html#L2177'>trace-slsns</a>/disp32 <span id="L2252" class="LineNr">2252 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2253" class="LineNr">2253 </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> 0x14/imm32 <span class="subxComment"># add to esp</span> -<span id="L2254" class="Folded">2254 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2254" class="Folded">2254 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2280" class="LineNr">2280 </span> <span class="subxComment"># check-trace-contains("Abc 0x00000003 e")</span> <span id="L2281" class="LineNr">2281 </span> <span class="subxS2Comment"># . . push args</span> <span id="L2282" class="LineNr">2282 </span> 68/push <span class="Constant">"F - test-trace-slsls"</span>/imm32 @@ -2005,7 +2005,7 @@ if ('onhashchange' in window) { <span id="L2319" class="LineNr">2319 </span> 68/push 0/imm32/end <span id="L2320" class="LineNr">2320 </span> 68/push 0/imm32/start <span id="L2321" class="LineNr">2321 </span> 89/copy 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ecx</span> -<span id="L2322" class="Folded">2322 </span><span class="Folded">+-- 26 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2322" class="Folded">2322 </span><span class="Folded">+-- 26 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2348" class="LineNr">2348 </span> <span class="subxS1Comment"># . rewind-stream(line)</span> <span id="L2349" class="LineNr">2349 </span> <span class="subxS2Comment"># . . push args</span> <span id="L2350" class="LineNr">2350 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> @@ -2022,7 +2022,7 @@ if ('onhashchange' in window) { <span id="L2361" class="LineNr">2361 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L2362" class="LineNr">2362 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2363" class="LineNr">2363 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L2364" class="Folded">2364 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2364" class="Folded">2364 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2404" class="LineNr">2404 </span><span class="Constant">$num-bytes:check0</span>: <span id="L2405" class="LineNr">2405 </span> <span class="subxComment"># if (slice-empty?(word-slice)) break</span> <span id="L2406" class="LineNr">2406 </span> <span class="subxS1Comment"># . save result</span> diff --git a/html/linux/mu-init-test.subx.html b/html/linux/mu-init-test.subx.html index 6b2837a1..cd8f9bb0 100644 --- a/html/linux/mu-init-test.subx.html +++ b/html/linux/mu-init-test.subx.html @@ -1,29 +1,29 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/mu-init-test.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } +.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.SpecialChar { color: #d70000; } .subxS1Comment { color: #0000af; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.SpecialChar { color: #d70000; } .Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/mu-init.subx.html b/html/linux/mu-init.subx.html index da60c666..3c1ea974 100644 --- a/html/linux/mu-init.subx.html +++ b/html/linux/mu-init.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/mu-init.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -22,7 +22,7 @@ a { color:inherit; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/mu.subx.html b/html/linux/mu.subx.html index c4cbbaf6..be2bf838 100644 --- a/html/linux/mu.subx.html +++ b/html/linux/mu.subx.html @@ -1,34 +1,34 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/mu.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxFunction { color: #af5f00; text-decoration: underline; } +.Folded { color: #080808; background-color: #949494; } +.subxH1Comment { color: #005faf; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } .SpecialChar { color: #d70000; } -.subxMinorFunction { color: #875f5f; } -.Folded { color: #080808; background-color: #949494; } .Constant { color: #008787; } -.subxH1Comment { color: #005faf; text-decoration: underline; } +.subxMinorFunction { color: #875f5f; } +.subxTest { color: #5f8700; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -632,7 +632,7 @@ if ('onhashchange' in window) { <span id="L570" class="LineNr"> 570 </span> <span class="subxComment"># convert</span> <span id="L571" class="LineNr"> 571 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L572" class="LineNr"> 572 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L573" class="Folded"> 573 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L573" class="Folded"> 573 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L579" class="LineNr"> 579 </span> <span class="subxComment"># check output</span> <span id="L580" class="LineNr"> 580 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L558'>test-convert-function-skeleton</a>/0"</span>) <span id="L581" class="LineNr"> 581 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-skeleton/1"</span>) @@ -664,7 +664,7 @@ if ('onhashchange' in window) { <span id="L607" class="LineNr"> 607 </span> <span class="subxComment"># convert</span> <span id="L608" class="LineNr"> 608 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L609" class="LineNr"> 609 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L610" class="Folded"> 610 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L610" class="Folded"> 610 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L616" class="LineNr"> 616 </span> <span class="subxComment"># check first function</span> <span id="L617" class="LineNr"> 617 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L593'>test-convert-multiple-function-skeletons</a>/0"</span>) <span id="L618" class="LineNr"> 618 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-multiple-function-skeletons/1"</span>) @@ -703,7 +703,7 @@ if ('onhashchange' in window) { <span id="L651" class="LineNr"> 651 </span> <span class="subxComment"># convert</span> <span id="L652" class="LineNr"> 652 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L653" class="LineNr"> 653 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L654" class="Folded"> 654 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L654" class="Folded"> 654 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L660" class="LineNr"> 660 </span> <span class="subxComment"># check output</span> <span id="L661" class="LineNr"> 661 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L639'>test-convert-function-with-arg</a>/0"</span>) <span id="L662" class="LineNr"> 662 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-arg/1"</span>) @@ -746,7 +746,7 @@ if ('onhashchange' in window) { <span id="L699" class="LineNr"> 699 </span> 89/<- %edx 4/r32/esp <span id="L700" class="LineNr"> 700 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L701" class="LineNr"> 701 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L702" class="Folded"> 702 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L702" class="Folded"> 702 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L708" class="LineNr"> 708 </span> <span class="subxComment"># check output</span> <span id="L709" class="LineNr"> 709 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L674'>test-function-with-redefined-name</a>: output should be empty"</span>) <span id="L710" class="LineNr"> 710 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo defined more than once"</span> <span class="Constant">"F - <a href='mu.subx.html#L674'>test-function-with-redefined-name</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -785,7 +785,7 @@ if ('onhashchange' in window) { <span id="L743" class="LineNr"> 743 </span> 89/<- %edx 4/r32/esp <span id="L744" class="LineNr"> 744 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L745" class="LineNr"> 745 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L746" class="Folded"> 746 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L746" class="Folded"> 746 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L752" class="LineNr"> 752 </span> <span class="subxComment"># check output</span> <span id="L753" class="LineNr"> 753 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L719'>test-function-with-redefined-name-2</a>: output should be empty"</span>) <span id="L754" class="LineNr"> 754 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo defined more than once"</span> <span class="Constant">"F - <a href='mu.subx.html#L719'>test-function-with-redefined-name-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -824,7 +824,7 @@ if ('onhashchange' in window) { <span id="L787" class="LineNr"> 787 </span> 89/<- %edx 4/r32/esp <span id="L788" class="LineNr"> 788 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L789" class="LineNr"> 789 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L790" class="Folded"> 790 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L790" class="Folded"> 790 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L796" class="LineNr"> 796 </span> <span class="subxComment"># check output</span> <span id="L797" class="LineNr"> 797 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L763'>test-function-with-redefined-name-3</a>: output should be empty"</span>) <span id="L798" class="LineNr"> 798 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo defined more than once"</span> <span class="Constant">"F - <a href='mu.subx.html#L763'>test-function-with-redefined-name-3</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -862,7 +862,7 @@ if ('onhashchange' in window) { <span id="L830" class="LineNr"> 830 </span> 89/<- %edx 4/r32/esp <span id="L831" class="LineNr"> 831 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L832" class="LineNr"> 832 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L833" class="Folded"> 833 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L833" class="Folded"> 833 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L839" class="LineNr"> 839 </span> <span class="subxComment"># check output</span> <span id="L840" class="LineNr"> 840 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L807'>test-function-with-inout-in-register</a>: output should be empty"</span>) <span id="L841" class="LineNr"> 841 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: function inout 'x' cannot be in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L807'>test-function-with-inout-in-register</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -900,7 +900,7 @@ if ('onhashchange' in window) { <span id="L873" class="LineNr"> 873 </span> 89/<- %edx 4/r32/esp <span id="L874" class="LineNr"> 874 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L875" class="LineNr"> 875 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L876" class="Folded"> 876 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L876" class="Folded"> 876 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L882" class="LineNr"> 882 </span> <span class="subxComment"># check output</span> <span id="L883" class="LineNr"> 883 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L850'>test-function-with-addr-output</a>: output should be empty"</span>) <span id="L884" class="LineNr"> 884 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: output cannot have an addr type; that could allow unsafe addresses to escape the function"</span> <span class="Constant">"F - <a href='mu.subx.html#L850'>test-function-with-addr-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -938,7 +938,7 @@ if ('onhashchange' in window) { <span id="L916" class="LineNr"> 916 </span> 89/<- %edx 4/r32/esp <span id="L917" class="LineNr"> 917 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L918" class="LineNr"> 918 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L919" class="Folded"> 919 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L919" class="Folded"> 919 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L925" class="LineNr"> 925 </span> <span class="subxComment"># check output</span> <span id="L926" class="LineNr"> 926 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L893'>test-function-with-addr-inout</a>: output should be empty"</span>) <span id="L927" class="LineNr"> 927 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: inout 'a' cannot contain 'addr' anywhere in the type except the first word; that could allow unsafe addresses to escape the function"</span> <span class="Constant">"F - <a href='mu.subx.html#L893'>test-function-with-addr-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -976,7 +976,7 @@ if ('onhashchange' in window) { <span id="L959" class="LineNr"> 959 </span> 89/<- %edx 4/r32/esp <span id="L960" class="LineNr"> 960 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L961" class="LineNr"> 961 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L962" class="Folded"> 962 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L962" class="Folded"> 962 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L968" class="LineNr"> 968 </span> <span class="subxComment"># check output</span> <span id="L969" class="LineNr"> 969 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L936'>test-function-with-addr-inout-2</a>: output should be empty"</span>) <span id="L970" class="LineNr"> 970 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: inout 'a' cannot contain 'addr' anywhere in the type except the first word; that could allow unsafe addresses to escape the function"</span> <span class="Constant">"F - <a href='mu.subx.html#L936'>test-function-with-addr-inout-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1014,7 +1014,7 @@ if ('onhashchange' in window) { <span id="L1002" class="LineNr"> 1002 </span> 89/<- %edx 4/r32/esp <span id="L1003" class="LineNr"> 1003 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1004" class="LineNr"> 1004 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1005" class="Folded"> 1005 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1005" class="Folded"> 1005 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1011" class="LineNr"> 1011 </span> <span class="subxComment"># check output</span> <span id="L1012" class="LineNr"> 1012 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L979'>test-function-with-addr-inout-3</a>: output should be empty"</span>) <span id="L1013" class="LineNr"> 1013 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: inout 'a' cannot contain 'addr' anywhere in the type except the first word; that could allow unsafe addresses to escape the function"</span> <span class="Constant">"F - <a href='mu.subx.html#L979'>test-function-with-addr-inout-3</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1052,7 +1052,7 @@ if ('onhashchange' in window) { <span id="L1045" class="LineNr"> 1045 </span> 89/<- %edx 4/r32/esp <span id="L1046" class="LineNr"> 1046 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1047" class="LineNr"> 1047 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1048" class="Folded"> 1048 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1048" class="Folded"> 1048 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1054" class="LineNr"> 1054 </span> <span class="subxComment"># check output</span> <span id="L1055" class="LineNr"> 1055 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1022'>test-function-with-addr-inout-4</a>: output should be empty"</span>) <span id="L1056" class="LineNr"> 1056 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: inout 'a' cannot contain 'addr' anywhere in the type except the first word; that could allow unsafe addresses to escape the function"</span> <span class="Constant">"F - <a href='mu.subx.html#L1022'>test-function-with-addr-inout-4</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1123,7 +1123,7 @@ if ('onhashchange' in window) { <span id="L1121" class="LineNr"> 1121 </span> <span class="subxComment"># convert</span> <span id="L1122" class="LineNr"> 1122 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L1123" class="LineNr"> 1123 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L1124" class="Folded"> 1124 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1124" class="Folded"> 1124 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1130" class="LineNr"> 1130 </span> <span class="subxComment"># check output</span> <span id="L1131" class="LineNr"> 1131 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L1108'>test-convert-function-with-arg-and-body</a>/0"</span>) <span id="L1132" class="LineNr"> 1132 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-arg-and-body/1"</span>) @@ -1159,7 +1159,7 @@ if ('onhashchange' in window) { <span id="L1162" class="LineNr"> 1162 </span> <span class="subxComment"># convert</span> <span id="L1163" class="LineNr"> 1163 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L1164" class="LineNr"> 1164 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L1165" class="Folded"> 1165 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1165" class="Folded"> 1165 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1171" class="LineNr"> 1171 </span> <span class="subxComment"># check output</span> <span id="L1172" class="LineNr"> 1172 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L1149'>test-convert-function-distinguishes-args</a>/0"</span>) <span id="L1173" class="LineNr"> 1173 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-distinguishes-args/1"</span>) @@ -1195,7 +1195,7 @@ if ('onhashchange' in window) { <span id="L1203" class="LineNr"> 1203 </span> <span class="subxComment"># convert</span> <span id="L1204" class="LineNr"> 1204 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L1205" class="LineNr"> 1205 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L1206" class="Folded"> 1206 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1206" class="Folded"> 1206 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1212" class="LineNr"> 1212 </span> <span class="subxComment"># check output</span> <span id="L1213" class="LineNr"> 1213 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L1190'>test-convert-function-with-return-literal</a>/0"</span>) <span id="L1214" class="LineNr"> 1214 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-return-literal/1"</span>) @@ -1233,7 +1233,7 @@ if ('onhashchange' in window) { <span id="L1246" class="LineNr"> 1246 </span> <span class="subxComment"># convert</span> <span id="L1247" class="LineNr"> 1247 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L1248" class="LineNr"> 1248 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L1249" class="Folded"> 1249 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1249" class="Folded"> 1249 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1255" class="LineNr"> 1255 </span> <span class="subxComment"># check output</span> <span id="L1256" class="LineNr"> 1256 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L1232'>test-convert-function-with-return</a>/0"</span>) <span id="L1257" class="LineNr"> 1257 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-return/1"</span>) @@ -1273,7 +1273,7 @@ if ('onhashchange' in window) { <span id="L1291" class="LineNr"> 1291 </span> <span class="subxComment"># convert</span> <span id="L1292" class="LineNr"> 1292 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L1293" class="LineNr"> 1293 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L1294" class="Folded"> 1294 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1294" class="Folded"> 1294 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1300" class="LineNr"> 1300 </span> <span class="subxComment"># check output</span> <span id="L1301" class="LineNr"> 1301 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L1232'>test-convert-function-with-return</a>/0"</span>) <span id="L1302" class="LineNr"> 1302 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-return/1"</span>) @@ -1313,7 +1313,7 @@ if ('onhashchange' in window) { <span id="L1336" class="LineNr"> 1336 </span> <span class="subxComment"># convert</span> <span id="L1337" class="LineNr"> 1337 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L1338" class="LineNr"> 1338 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L1339" class="Folded"> 1339 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1339" class="Folded"> 1339 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1345" class="LineNr"> 1345 </span> <span class="subxComment"># check output</span> <span id="L1346" class="LineNr"> 1346 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L1322'>test-convert-function-with-return-register</a>/0"</span>) <span id="L1347" class="LineNr"> 1347 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-return-register/1"</span>) @@ -1363,7 +1363,7 @@ if ('onhashchange' in window) { <span id="L1391" class="LineNr"> 1391 </span> 89/<- %edx 4/r32/esp <span id="L1392" class="LineNr"> 1392 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1393" class="LineNr"> 1393 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1394" class="Folded"> 1394 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1394" class="Folded"> 1394 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1400" class="LineNr"> 1400 </span> <span class="subxComment"># check output</span> <span id="L1401" class="LineNr"> 1401 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1368'>test-function-with-output-without-register</a>: output should be empty"</span>) <span id="L1402" class="LineNr"> 1402 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: function output '_' must be in a register, in instruction 'fn foo -> _: int {"</span> <span class="Constant">"F - test-function-with-output-without-register: error message"</span>) @@ -1401,7 +1401,7 @@ if ('onhashchange' in window) { <span id="L1434" class="LineNr"> 1434 </span> 89/<- %edx 4/r32/esp <span id="L1435" class="LineNr"> 1435 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1436" class="LineNr"> 1436 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1437" class="Folded"> 1437 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1437" class="Folded"> 1437 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1443" class="LineNr"> 1443 </span> <span class="subxComment"># check output</span> <span id="L1444" class="LineNr"> 1444 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1411'>test-function-with-outputs-in-conflicting-registers</a>: output should be empty"</span>) <span id="L1445" class="LineNr"> 1445 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: outputs must be in unique registers"</span> <span class="Constant">"F - <a href='mu.subx.html#L1411'>test-function-with-outputs-in-conflicting-registers</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1440,7 +1440,7 @@ if ('onhashchange' in window) { <span id="L1478" class="LineNr"> 1478 </span> 89/<- %edx 4/r32/esp <span id="L1479" class="LineNr"> 1479 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1480" class="LineNr"> 1480 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1481" class="Folded"> 1481 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1481" class="Folded"> 1481 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1487" class="LineNr"> 1487 </span> <span class="subxComment"># check output</span> <span id="L1488" class="LineNr"> 1488 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1454'>test-function-with-named-output</a>: output should be empty"</span>) <span id="L1489" class="LineNr"> 1489 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: function outputs cannot be named; rename 'x' in the header to '_'"</span> <span class="Constant">"F - <a href='mu.subx.html#L1454'>test-function-with-named-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1480,7 +1480,7 @@ if ('onhashchange' in window) { <span id="L1523" class="LineNr"> 1523 </span> 89/<- %edx 4/r32/esp <span id="L1524" class="LineNr"> 1524 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1525" class="LineNr"> 1525 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1526" class="Folded"> 1526 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1526" class="Folded"> 1526 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1532" class="LineNr"> 1532 </span> <span class="subxComment"># check output</span> <span id="L1533" class="LineNr"> 1533 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1498'>test-return-with-wrong-type</a>: output should be empty"</span>) <span id="L1534" class="LineNr"> 1534 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: return: 'x' has the wrong type"</span> <span class="Constant">"F - <a href='mu.subx.html#L1498'>test-return-with-wrong-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1519,7 +1519,7 @@ if ('onhashchange' in window) { <span id="L1567" class="LineNr"> 1567 </span> 89/<- %edx 4/r32/esp <span id="L1568" class="LineNr"> 1568 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1569" class="LineNr"> 1569 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1570" class="Folded"> 1570 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1570" class="Folded"> 1570 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1576" class="LineNr"> 1576 </span> <span class="subxComment"># check output</span> <span id="L1577" class="LineNr"> 1577 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1543'>test-missing-return</a>: output should be empty"</span>) <span id="L1578" class="LineNr"> 1578 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: final statement should be a 'return'"</span> <span class="Constant">"F - <a href='mu.subx.html#L1543'>test-missing-return</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1557,7 +1557,7 @@ if ('onhashchange' in window) { <span id="L1610" class="LineNr"> 1610 </span> 89/<- %edx 4/r32/esp <span id="L1611" class="LineNr"> 1611 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1612" class="LineNr"> 1612 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1613" class="Folded"> 1613 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1613" class="Folded"> 1613 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1619" class="LineNr"> 1619 </span> <span class="subxComment"># check output</span> <span id="L1620" class="LineNr"> 1620 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1587'>test-missing-return-2</a>: output should be empty"</span>) <span id="L1621" class="LineNr"> 1621 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: final statement should be a 'return'"</span> <span class="Constant">"F - <a href='mu.subx.html#L1587'>test-missing-return-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1597,7 +1597,7 @@ if ('onhashchange' in window) { <span id="L1655" class="LineNr"> 1655 </span> 89/<- %edx 4/r32/esp <span id="L1656" class="LineNr"> 1656 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1657" class="LineNr"> 1657 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1658" class="Folded"> 1658 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1658" class="Folded"> 1658 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1664" class="LineNr"> 1664 </span> <span class="subxComment"># check output</span> <span id="L1665" class="LineNr"> 1665 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1630'>test-early-exit-without-return</a>: output should be empty"</span>) <span id="L1666" class="LineNr"> 1666 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo has outputs, so you cannot 'break' out of the outermost block. Use 'return'."</span> <span class="Constant">"F - <a href='mu.subx.html#L1630'>test-early-exit-without-return</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1636,7 +1636,7 @@ if ('onhashchange' in window) { <span id="L1699" class="LineNr"> 1699 </span> 89/<- %edx 4/r32/esp <span id="L1700" class="LineNr"> 1700 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1701" class="LineNr"> 1701 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1702" class="Folded"> 1702 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1702" class="Folded"> 1702 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1708" class="LineNr"> 1708 </span> <span class="subxComment"># check output</span> <span id="L1709" class="LineNr"> 1709 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1675'>test-return-with-too-few-inouts</a>: output should be empty"</span>) <span id="L1710" class="LineNr"> 1710 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: return: too few inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L1675'>test-return-with-too-few-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1675,7 +1675,7 @@ if ('onhashchange' in window) { <span id="L1743" class="LineNr"> 1743 </span> 89/<- %edx 4/r32/esp <span id="L1744" class="LineNr"> 1744 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1745" class="LineNr"> 1745 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1746" class="Folded"> 1746 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1746" class="Folded"> 1746 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1752" class="LineNr"> 1752 </span> <span class="subxComment"># check output</span> <span id="L1753" class="LineNr"> 1753 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1719'>test-return-with-too-many-inouts</a>: output should be empty"</span>) <span id="L1754" class="LineNr"> 1754 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: return: too many inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L1719'>test-return-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1716,7 +1716,7 @@ if ('onhashchange' in window) { <span id="L1789" class="LineNr"> 1789 </span> 89/<- %edx 4/r32/esp <span id="L1790" class="LineNr"> 1790 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1791" class="LineNr"> 1791 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1792" class="Folded"> 1792 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1792" class="Folded"> 1792 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1798" class="LineNr"> 1798 </span> <span class="subxComment"># check output</span> <span id="L1799" class="LineNr"> 1799 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1763'>test-return-unavailable-value</a>: output should be empty"</span>) <span id="L1800" class="LineNr"> 1800 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: return: 'x' is no longer available"</span> <span class="Constant">"F - <a href='mu.subx.html#L1763'>test-return-unavailable-value</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1755,7 +1755,7 @@ if ('onhashchange' in window) { <span id="L1833" class="LineNr"> 1833 </span> 89/<- %edx 4/r32/esp <span id="L1834" class="LineNr"> 1834 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1835" class="LineNr"> 1835 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1836" class="Folded"> 1836 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1836" class="Folded"> 1836 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1842" class="LineNr"> 1842 </span> <span class="subxComment"># check output</span> <span id="L1843" class="LineNr"> 1843 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1809'>test-return-literal-to-float</a>: output should be empty"</span>) <span id="L1844" class="LineNr"> 1844 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: return: cannot copy literal '0' to float"</span> <span class="Constant">"F - <a href='mu.subx.html#L1809'>test-return-literal-to-float</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1784,7 +1784,7 @@ if ('onhashchange' in window) { <span id="L1867" class="LineNr"> 1867 </span> <span class="subxComment"># convert</span> <span id="L1868" class="LineNr"> 1868 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L1869" class="LineNr"> 1869 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L1870" class="Folded"> 1870 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1870" class="Folded"> 1870 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1876" class="LineNr"> 1876 </span> <span class="subxComment"># check output</span> <span id="L1877" class="LineNr"> 1877 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L1853'>test-convert-return-with-duplicate-values</a>/0"</span>) <span id="L1878" class="LineNr"> 1878 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-return-with-duplicate-values/1"</span>) @@ -1826,7 +1826,7 @@ if ('onhashchange' in window) { <span id="L1914" class="LineNr"> 1914 </span> <span class="subxComment"># convert</span> <span id="L1915" class="LineNr"> 1915 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L1916" class="LineNr"> 1916 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L1917" class="Folded"> 1917 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1917" class="Folded"> 1917 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1923" class="LineNr"> 1923 </span> <span class="subxComment"># check output</span> <span id="L1924" class="LineNr"> 1924 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L1900'>test-convert-return-with-duplicate-values-2</a>/0"</span>) <span id="L1925" class="LineNr"> 1925 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-return-with-duplicate-values-2/1"</span>) @@ -1878,7 +1878,7 @@ if ('onhashchange' in window) { <span id="L1971" class="LineNr"> 1971 </span> 89/<- %edx 4/r32/esp <span id="L1972" class="LineNr"> 1972 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L1973" class="LineNr"> 1973 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L1974" class="Folded"> 1974 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1974" class="Folded"> 1974 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1980" class="LineNr"> 1980 </span> <span class="subxComment"># check output</span> <span id="L1981" class="LineNr"> 1981 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1947'>test-stmt-with-unknown-var</a>: output should be empty"</span>) <span id="L1982" class="LineNr"> 1982 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: unknown variable 'x'"</span> <span class="Constant">"F - <a href='mu.subx.html#L1947'>test-stmt-with-unknown-var</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1917,7 +1917,7 @@ if ('onhashchange' in window) { <span id="L2015" class="LineNr"> 2015 </span> 89/<- %edx 4/r32/esp <span id="L2016" class="LineNr"> 2016 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L2017" class="LineNr"> 2017 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L2018" class="Folded"> 2018 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2018" class="Folded"> 2018 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2024" class="LineNr"> 2024 </span> <span class="subxComment"># check output</span> <span id="L2025" class="LineNr"> 2025 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L1991'>test-stmt-with-invalid-identifier</a>: output should be empty"</span>) <span id="L2026" class="LineNr"> 2026 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: invalid identifier '1'"</span> <span class="Constant">"F - <a href='mu.subx.html#L1991'>test-stmt-with-invalid-identifier</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1956,7 +1956,7 @@ if ('onhashchange' in window) { <span id="L2059" class="LineNr"> 2059 </span> 89/<- %edx 4/r32/esp <span id="L2060" class="LineNr"> 2060 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L2061" class="LineNr"> 2061 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L2062" class="Folded"> 2062 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2062" class="Folded"> 2062 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2068" class="LineNr"> 2068 </span> <span class="subxComment"># check output</span> <span id="L2069" class="LineNr"> 2069 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L2035'>test-stmt-with-deref-var</a>: output should be empty"</span>) <span id="L2070" class="LineNr"> 2070 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: output '*x' should <a href='108write.subx.html#L24'>write</a> to a register, and therefore cannot be dereferenced"</span> <span class="Constant">"F - <a href='mu.subx.html#L2035'>test-stmt-with-deref-var</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -1986,7 +1986,7 @@ if ('onhashchange' in window) { <span id="L2094" class="LineNr"> 2094 </span> <span class="subxComment"># convert</span> <span id="L2095" class="LineNr"> 2095 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2096" class="LineNr"> 2096 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2097" class="Folded"> 2097 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2097" class="Folded"> 2097 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2103" class="LineNr"> 2103 </span> <span class="subxComment"># check output</span> <span id="L2104" class="LineNr"> 2104 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2079'>test-convert-function-with-literal-arg</a>/0"</span>) <span id="L2105" class="LineNr"> 2105 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-literal-arg/1"</span>) @@ -2029,7 +2029,7 @@ if ('onhashchange' in window) { <span id="L2142" class="LineNr"> 2142 </span> <span class="subxComment"># convert</span> <span id="L2143" class="LineNr"> 2143 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2144" class="LineNr"> 2144 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2145" class="Folded"> 2145 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2145" class="Folded"> 2145 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2151" class="LineNr"> 2151 </span> <span class="subxComment"># check output</span> <span id="L2152" class="LineNr"> 2152 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2127'>test-convert-function-with-literal-arg-2</a>/0"</span>) <span id="L2153" class="LineNr"> 2153 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-literal-arg-2/1"</span>) @@ -2076,7 +2076,7 @@ if ('onhashchange' in window) { <span id="L2194" class="LineNr"> 2194 </span> <span class="subxComment"># convert</span> <span id="L2195" class="LineNr"> 2195 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2196" class="LineNr"> 2196 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2197" class="Folded"> 2197 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2197" class="Folded"> 2197 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2203" class="LineNr"> 2203 </span> <span class="subxComment"># check output</span> <span id="L2204" class="LineNr"> 2204 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"main:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2175'>test-convert-function-call-with-literal-arg</a>/0"</span>) <span id="L2205" class="LineNr"> 2205 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-call-with-literal-arg/1"</span>) @@ -2205,7 +2205,7 @@ if ('onhashchange' in window) { <span id="L2328" class="LineNr"> 2328 </span> <span class="subxComment"># convert</span> <span id="L2329" class="LineNr"> 2329 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2330" class="LineNr"> 2330 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2331" class="Folded"> 2331 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2331" class="Folded"> 2331 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2337" class="LineNr"> 2337 </span> <span class="subxComment"># check output</span> <span id="L2338" class="LineNr"> 2338 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"main:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2313'>test-convert-function-call-with-signature</a>/0"</span>) <span id="L2339" class="LineNr"> 2339 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-call-with-signature/1"</span>) @@ -2246,7 +2246,7 @@ if ('onhashchange' in window) { <span id="L2374" class="LineNr"> 2374 </span> <span class="subxComment"># convert</span> <span id="L2375" class="LineNr"> 2375 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2376" class="LineNr"> 2376 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2377" class="Folded"> 2377 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2377" class="Folded"> 2377 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2383" class="LineNr"> 2383 </span> <span class="subxComment"># check output</span> <span id="L2384" class="LineNr"> 2384 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2360'>test-convert-function-with-local-var-in-mem</a>/0"</span>) <span id="L2385" class="LineNr"> 2385 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-in-mem/1"</span>) @@ -2295,7 +2295,7 @@ if ('onhashchange' in window) { <span id="L2428" class="LineNr"> 2428 </span> 89/<- %edx 4/r32/esp <span id="L2429" class="LineNr"> 2429 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L2430" class="LineNr"> 2430 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L2431" class="Folded"> 2431 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2431" class="Folded"> 2431 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2437" class="LineNr"> 2437 </span> <span class="subxComment"># check output</span> <span id="L2438" class="LineNr"> 2438 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L2404'>test-convert-invalid-literal</a>: output should be empty"</span>) <span id="L2439" class="LineNr"> 2439 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: variable '1n' cannot begin with a digit (or do you have a typo in a number?)"</span> <span class="Constant">"F - <a href='mu.subx.html#L2404'>test-convert-invalid-literal</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -2323,7 +2323,7 @@ if ('onhashchange' in window) { <span id="L2461" class="LineNr"> 2461 </span> <span class="subxComment"># convert</span> <span id="L2462" class="LineNr"> 2462 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2463" class="LineNr"> 2463 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2464" class="Folded"> 2464 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2464" class="Folded"> 2464 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2470" class="LineNr"> 2470 </span> <span class="subxComment"># no errors</span> <span id="L2471" class="LineNr"> 2471 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L2472" class="LineNr"> 2472 </span> 89/<- %esp 5/r32/ebp @@ -2358,7 +2358,7 @@ if ('onhashchange' in window) { <span id="L2501" class="LineNr"> 2501 </span> 89/<- %edx 4/r32/esp <span id="L2502" class="LineNr"> 2502 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L2503" class="LineNr"> 2503 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L2504" class="Folded"> 2504 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2504" class="Folded"> 2504 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2510" class="LineNr"> 2510 </span> <span class="subxComment"># check output</span> <span id="L2511" class="LineNr"> 2511 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - test-var-in-mem-has-no-initializer: output should be empty"</span>) <span id="L2512" class="LineNr"> 2512 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: var x: variables on the stack can't take an initializer"</span> <span class="Constant">"F - test-var-in-mem-has-no-initializer: error message"</span>) @@ -2387,7 +2387,7 @@ if ('onhashchange' in window) { <span id="L2535" class="LineNr"> 2535 </span> <span class="subxComment"># convert</span> <span id="L2536" class="LineNr"> 2536 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2537" class="LineNr"> 2537 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2538" class="Folded"> 2538 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2538" class="Folded"> 2538 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2544" class="LineNr"> 2544 </span> <span class="subxComment"># check output</span> <span id="L2545" class="LineNr"> 2545 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2521'>test-convert-function-with-local-var-with-compound-type-in-mem</a>/0"</span>) <span id="L2546" class="LineNr"> 2546 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-with-compound-type-in-mem/1"</span>) @@ -2426,7 +2426,7 @@ if ('onhashchange' in window) { <span id="L2579" class="LineNr"> 2579 </span> <span class="subxComment"># convert</span> <span id="L2580" class="LineNr"> 2580 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2581" class="LineNr"> 2581 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2582" class="Folded"> 2582 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2582" class="Folded"> 2582 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2588" class="LineNr"> 2588 </span> <span class="subxComment"># check output</span> <span id="L2589" class="LineNr"> 2589 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2565'>test-convert-function-with-local-var-in-reg</a>/0"</span>) <span id="L2590" class="LineNr"> 2590 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-in-reg/1"</span>) @@ -2466,7 +2466,7 @@ if ('onhashchange' in window) { <span id="L2624" class="LineNr"> 2624 </span> <span class="subxComment"># convert</span> <span id="L2625" class="LineNr"> 2625 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2626" class="LineNr"> 2626 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2627" class="Folded"> 2627 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2627" class="Folded"> 2627 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2633" class="LineNr"> 2633 </span> <span class="subxComment"># check output</span> <span id="L2634" class="LineNr"> 2634 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2610'>test-convert-function-with-local-var-in-same-reg</a>/0"</span>) <span id="L2635" class="LineNr"> 2635 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-in-same-reg/1"</span>) @@ -2506,7 +2506,7 @@ if ('onhashchange' in window) { <span id="L2669" class="LineNr"> 2669 </span> <span class="subxComment"># convert</span> <span id="L2670" class="LineNr"> 2670 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2671" class="LineNr"> 2671 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2672" class="Folded"> 2672 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2672" class="Folded"> 2672 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2678" class="LineNr"> 2678 </span> <span class="subxComment"># check output</span> <span id="L2679" class="LineNr"> 2679 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2655'>test-convert-function-with-local-var-in-same-reg-dereferenced</a>/0"</span>) <span id="L2680" class="LineNr"> 2680 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-in-same-reg-dereferenced/1"</span>) @@ -2557,7 +2557,7 @@ if ('onhashchange' in window) { <span id="L2725" class="LineNr"> 2725 </span> 89/<- %edx 4/r32/esp <span id="L2726" class="LineNr"> 2726 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L2727" class="LineNr"> 2727 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L2728" class="Folded"> 2728 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2728" class="Folded"> 2728 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2734" class="LineNr"> 2734 </span> <span class="subxComment"># check output</span> <span id="L2735" class="LineNr"> 2735 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L2700'>test-float-var-in-wrong-register</a>: output should be empty"</span>) <span id="L2736" class="LineNr"> 2736 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: float var 'y' should be in a floating-point register"</span> <span class="Constant">"F - <a href='mu.subx.html#L2700'>test-float-var-in-wrong-register</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -2596,7 +2596,7 @@ if ('onhashchange' in window) { <span id="L2769" class="LineNr"> 2769 </span> 89/<- %edx 4/r32/esp <span id="L2770" class="LineNr"> 2770 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L2771" class="LineNr"> 2771 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L2772" class="Folded"> 2772 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2772" class="Folded"> 2772 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2778" class="LineNr"> 2778 </span> <span class="subxComment"># check output</span> <span id="L2779" class="LineNr"> 2779 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L2745'>test-non-float-var-in-wrong-register</a>: output should be empty"</span>) <span id="L2780" class="LineNr"> 2780 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: non-float var 'x' should be in an integer register"</span> <span class="Constant">"F - <a href='mu.subx.html#L2745'>test-non-float-var-in-wrong-register</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -2625,7 +2625,7 @@ if ('onhashchange' in window) { <span id="L2803" class="LineNr"> 2803 </span> <span class="subxComment"># convert</span> <span id="L2804" class="LineNr"> 2804 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2805" class="LineNr"> 2805 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2806" class="Folded"> 2806 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2806" class="Folded"> 2806 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2812" class="LineNr"> 2812 </span> <span class="subxComment"># check output</span> <span id="L2813" class="LineNr"> 2813 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2789'>test-convert-function-with-allocate</a>/0"</span>) <span id="L2814" class="LineNr"> 2814 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-allocate/1"</span>) @@ -2675,7 +2675,7 @@ if ('onhashchange' in window) { <span id="L2858" class="LineNr"> 2858 </span> 89/<- %edx 4/r32/esp <span id="L2859" class="LineNr"> 2859 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L2860" class="LineNr"> 2860 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L2861" class="Folded"> 2861 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2861" class="Folded"> 2861 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2867" class="LineNr"> 2867 </span> <span class="subxComment"># check output</span> <span id="L2868" class="LineNr"> 2868 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L2834'>test-initializer-in-hex</a>: output should be empty"</span>) <span id="L2869" class="LineNr"> 2869 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"literal integers are always hex in Mu; start '10' with a '0x' to be unambiguous, converting it to hexadecimal as necessary."</span> <span class="Constant">"F - <a href='mu.subx.html#L2834'>test-initializer-in-hex</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -2705,7 +2705,7 @@ if ('onhashchange' in window) { <span id="L2893" class="LineNr"> 2893 </span> <span class="subxComment"># convert</span> <span id="L2894" class="LineNr"> 2894 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L2895" class="LineNr"> 2895 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L2896" class="Folded"> 2896 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2896" class="Folded"> 2896 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2902" class="LineNr"> 2902 </span> <span class="subxComment"># check output</span> <span id="L2903" class="LineNr"> 2903 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L2878'>test-convert-function-with-second-local-var-in-same-reg</a>/0"</span>) <span id="L2904" class="LineNr"> 2904 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-second-local-var-in-same-reg/1"</span>) @@ -2758,7 +2758,7 @@ if ('onhashchange' in window) { <span id="L2951" class="LineNr"> 2951 </span> 89/<- %edx 4/r32/esp <span id="L2952" class="LineNr"> 2952 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L2953" class="LineNr"> 2953 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L2954" class="Folded"> 2954 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2954" class="Folded"> 2954 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L2960" class="LineNr"> 2960 </span> <span class="subxComment"># check output</span> <span id="L2961" class="LineNr"> 2961 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L2925'>test-read-clobbered-reg-var</a>: output should be empty"</span>) <span id="L2962" class="LineNr"> 2962 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: register ecx reads var 'x' after writing var 'y'"</span> <span class="Constant">"F - <a href='mu.subx.html#L2925'>test-read-clobbered-reg-var</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -2799,7 +2799,7 @@ if ('onhashchange' in window) { <span id="L2997" class="LineNr"> 2997 </span> 89/<- %edx 4/r32/esp <span id="L2998" class="LineNr"> 2998 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L2999" class="LineNr"> 2999 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3000" class="Folded"> 3000 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3000" class="Folded"> 3000 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3006" class="LineNr"> 3006 </span> <span class="subxComment"># no errors</span> <span id="L3007" class="LineNr"> 3007 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L2971'>test-overlapping-int-fp-registers</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) <span id="L3008" class="LineNr"> 3008 </span> <span class="subxComment"># don't bother checking the generated code</span> @@ -2830,7 +2830,7 @@ if ('onhashchange' in window) { <span id="L3033" class="LineNr"> 3033 </span> <span class="subxComment"># convert</span> <span id="L3034" class="LineNr"> 3034 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L3035" class="LineNr"> 3035 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L3036" class="Folded"> 3036 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3036" class="Folded"> 3036 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3042" class="LineNr"> 3042 </span> <span class="subxComment"># check output</span> <span id="L3043" class="LineNr"> 3043 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"main:"</span> <span class="Constant">"F - <a href='mu.subx.html#L3015'>test-convert-function-call</a>/0"</span>) <span id="L3044" class="LineNr"> 3044 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-call/1"</span>) @@ -2890,7 +2890,7 @@ if ('onhashchange' in window) { <span id="L3098" class="LineNr"> 3098 </span> <span class="subxComment"># convert</span> <span id="L3099" class="LineNr"> 3099 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L3100" class="LineNr"> 3100 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L3101" class="Folded"> 3101 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3101" class="Folded"> 3101 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3107" class="LineNr"> 3107 </span> <span class="subxComment"># check output</span> <span id="L3108" class="LineNr"> 3108 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"f:"</span> <span class="Constant">"F - <a href='mu.subx.html#L3082'>test-convert-function-call-with-inout-with-compound-type</a>/0"</span>) <span id="L3109" class="LineNr"> 3109 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-call-with-inout-with-compound-type/1"</span>) @@ -2950,7 +2950,7 @@ if ('onhashchange' in window) { <span id="L3163" class="LineNr"> 3163 </span> 89/<- %edx 4/r32/esp <span id="L3164" class="LineNr"> 3164 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3165" class="LineNr"> 3165 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3166" class="Folded"> 3166 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3166" class="Folded"> 3166 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3172" class="LineNr"> 3172 </span> <span class="subxComment"># no error; types matched</span> <span id="L3173" class="LineNr"> 3173 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3136'>test-convert-function-call-with-inout-with-type-parameter</a>: <a href='114error.subx.html#L9'>error</a> stream should be empty"</span>) <span id="L3174" class="LineNr"> 3174 </span> <span class="subxComment"># don't bother checking the generated code; that's in the test 'test-local-clobbered-by-fn-output' below</span> @@ -2990,7 +2990,7 @@ if ('onhashchange' in window) { <span id="L3208" class="LineNr"> 3208 </span> 89/<- %edx 4/r32/esp <span id="L3209" class="LineNr"> 3209 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3210" class="LineNr"> 3210 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3211" class="Folded"> 3211 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3211" class="Folded"> 3211 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3217" class="LineNr"> 3217 </span> <span class="subxComment"># check output</span> <span id="L3218" class="LineNr"> 3218 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3181'>test-convert-function-call-with-incorrect-inout-type</a>: output should be empty"</span>) <span id="L3219" class="LineNr"> 3219 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn f: call g: type for inout 'x' is not right"</span> <span class="Constant">"F - <a href='mu.subx.html#L3181'>test-convert-function-call-with-incorrect-inout-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3031,7 +3031,7 @@ if ('onhashchange' in window) { <span id="L3254" class="LineNr"> 3254 </span> 89/<- %edx 4/r32/esp <span id="L3255" class="LineNr"> 3255 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3256" class="LineNr"> 3256 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3257" class="Folded"> 3257 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3257" class="Folded"> 3257 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3263" class="LineNr"> 3263 </span> <span class="subxComment"># check output</span> <span id="L3264" class="LineNr"> 3264 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3227'>test-convert-function-call-with-inout-with-incorrect-compound-type</a>: output should be empty"</span>) <span id="L3265" class="LineNr"> 3265 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn f: call g: type for inout 'x' is not right"</span> <span class="Constant">"F - <a href='mu.subx.html#L3227'>test-convert-function-call-with-inout-with-incorrect-compound-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3072,7 +3072,7 @@ if ('onhashchange' in window) { <span id="L3300" class="LineNr"> 3300 </span> 89/<- %edx 4/r32/esp <span id="L3301" class="LineNr"> 3301 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3302" class="LineNr"> 3302 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3303" class="Folded"> 3303 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3303" class="Folded"> 3303 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3309" class="LineNr"> 3309 </span> <span class="subxComment"># no errors</span> <span id="L3310" class="LineNr"> 3310 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3272'>test-convert-function-call-with-inout-with-multiple-type-parameters</a>: <a href='114error.subx.html#L9'>error</a> stream should be empty"</span>) <span id="L3311" class="LineNr"> 3311 </span> <span class="subxComment"># don't bother checking the generated code</span> @@ -3112,7 +3112,7 @@ if ('onhashchange' in window) { <span id="L3345" class="LineNr"> 3345 </span> 89/<- %edx 4/r32/esp <span id="L3346" class="LineNr"> 3346 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3347" class="LineNr"> 3347 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3348" class="Folded"> 3348 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3348" class="Folded"> 3348 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3354" class="LineNr"> 3354 </span> <span class="subxComment"># no errors</span> <span id="L3355" class="LineNr"> 3355 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3318'>test-type-parameter-matches-rest-of-type</a>: <a href='114error.subx.html#L9'>error</a> stream should be empty"</span>) <span id="L3356" class="LineNr"> 3356 </span> <span class="subxComment"># don't bother checking the generated code</span> @@ -3153,7 +3153,7 @@ if ('onhashchange' in window) { <span id="L3391" class="LineNr"> 3391 </span> 89/<- %edx 4/r32/esp <span id="L3392" class="LineNr"> 3392 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3393" class="LineNr"> 3393 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3394" class="Folded"> 3394 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3394" class="Folded"> 3394 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3400" class="LineNr"> 3400 </span> <span class="subxComment"># check output</span> <span id="L3401" class="LineNr"> 3401 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3363'>test-convert-function-call-with-inout-with-incompatible-type-parameters</a>: output should be empty"</span>) <span id="L3402" class="LineNr"> 3402 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn f: call g: type for inout 'y' is not right"</span> <span class="Constant">"F - <a href='mu.subx.html#L3363'>test-convert-function-call-with-inout-with-incompatible-type-parameters</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3192,7 +3192,7 @@ if ('onhashchange' in window) { <span id="L3435" class="LineNr"> 3435 </span> 89/<- %edx 4/r32/esp <span id="L3436" class="LineNr"> 3436 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3437" class="LineNr"> 3437 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3438" class="Folded"> 3438 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3438" class="Folded"> 3438 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3444" class="LineNr"> 3444 </span> <span class="subxComment"># check output</span> <span id="L3445" class="LineNr"> 3445 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3409'>test-convert-function-call-with-too-few-inouts</a>: output should be empty"</span>) <span id="L3446" class="LineNr"> 3446 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn f: call g: too few inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L3409'>test-convert-function-call-with-too-few-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3233,7 +3233,7 @@ if ('onhashchange' in window) { <span id="L3481" class="LineNr"> 3481 </span> 89/<- %edx 4/r32/esp <span id="L3482" class="LineNr"> 3482 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3483" class="LineNr"> 3483 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3484" class="Folded"> 3484 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3484" class="Folded"> 3484 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3490" class="LineNr"> 3490 </span> <span class="subxComment"># check output</span> <span id="L3491" class="LineNr"> 3491 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3454'>test-convert-function-call-with-too-many-inouts</a>: output should be empty"</span>) <span id="L3492" class="LineNr"> 3492 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn f: call g: too many inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L3454'>test-convert-function-call-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3273,7 +3273,7 @@ if ('onhashchange' in window) { <span id="L3526" class="LineNr"> 3526 </span> 89/<- %edx 4/r32/esp <span id="L3527" class="LineNr"> 3527 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3528" class="LineNr"> 3528 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3529" class="Folded"> 3529 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3529" class="Folded"> 3529 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3535" class="LineNr"> 3535 </span> <span class="subxComment"># check output</span> <span id="L3536" class="LineNr"> 3536 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3500'>test-convert-function-call-with-incorrect-output-type</a>: output should be empty"</span>) <span id="L3537" class="LineNr"> 3537 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn f: call g: type for output 'x' is not right"</span> <span class="Constant">"F - <a href='mu.subx.html#L3500'>test-convert-function-call-with-incorrect-output-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3313,7 +3313,7 @@ if ('onhashchange' in window) { <span id="L3571" class="LineNr"> 3571 </span> 89/<- %edx 4/r32/esp <span id="L3572" class="LineNr"> 3572 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3573" class="LineNr"> 3573 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3574" class="Folded"> 3574 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3574" class="Folded"> 3574 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3580" class="LineNr"> 3580 </span> <span class="subxComment"># check output</span> <span id="L3581" class="LineNr"> 3581 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3545'>test-convert-function-call-with-too-few-outputs</a>: output should be empty"</span>) <span id="L3582" class="LineNr"> 3582 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn f: call g: too few outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L3545'>test-convert-function-call-with-too-few-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3353,7 +3353,7 @@ if ('onhashchange' in window) { <span id="L3616" class="LineNr"> 3616 </span> 89/<- %edx 4/r32/esp <span id="L3617" class="LineNr"> 3617 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3618" class="LineNr"> 3618 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3619" class="Folded"> 3619 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3619" class="Folded"> 3619 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3625" class="LineNr"> 3625 </span> <span class="subxComment"># check output</span> <span id="L3626" class="LineNr"> 3626 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3590'>test-convert-function-call-with-too-many-outputs</a>: output should be empty"</span>) <span id="L3627" class="LineNr"> 3627 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn f: call g: too many outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L3590'>test-convert-function-call-with-too-many-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3394,7 +3394,7 @@ if ('onhashchange' in window) { <span id="L3662" class="LineNr"> 3662 </span> 89/<- %edx 4/r32/esp <span id="L3663" class="LineNr"> 3663 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3664" class="LineNr"> 3664 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3665" class="Folded"> 3665 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3665" class="Folded"> 3665 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3671" class="LineNr"> 3671 </span> <span class="subxComment"># check output</span> <span id="L3672" class="LineNr"> 3672 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3635'>test-convert-function-call-with-missing-output-register</a>: output should be empty"</span>) <span id="L3673" class="LineNr"> 3673 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn f: call g: output 'x' is not in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L3635'>test-convert-function-call-with-missing-output-register</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3434,7 +3434,7 @@ if ('onhashchange' in window) { <span id="L3707" class="LineNr"> 3707 </span> 89/<- %edx 4/r32/esp <span id="L3708" class="LineNr"> 3708 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3709" class="LineNr"> 3709 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3710" class="Folded"> 3710 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3710" class="Folded"> 3710 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3716" class="LineNr"> 3716 </span> <span class="subxComment"># check output</span> <span id="L3717" class="LineNr"> 3717 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3681'>test-convert-function-call-with-incorrect-output-register</a>: output should be empty"</span>) <span id="L3718" class="LineNr"> 3718 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn f: call g: register for output 'x' is not right"</span> <span class="Constant">"F - <a href='mu.subx.html#L3681'>test-convert-function-call-with-incorrect-output-register</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3462,7 +3462,7 @@ if ('onhashchange' in window) { <span id="L3740" class="LineNr"> 3740 </span> <span class="subxComment"># convert</span> <span id="L3741" class="LineNr"> 3741 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L3742" class="LineNr"> 3742 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L3743" class="Folded"> 3743 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3743" class="Folded"> 3743 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3749" class="LineNr"> 3749 </span> <span class="subxComment"># check output</span> <span id="L3750" class="LineNr"> 3750 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L3726'>test-convert-function-with-local-var-dereferenced</a>/0"</span>) <span id="L3751" class="LineNr"> 3751 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-dereferenced/1"</span>) @@ -3513,7 +3513,7 @@ if ('onhashchange' in window) { <span id="L3796" class="LineNr"> 3796 </span> 89/<- %edx 4/r32/esp <span id="L3797" class="LineNr"> 3797 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3798" class="LineNr"> 3798 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3799" class="Folded"> 3799 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3799" class="Folded"> 3799 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3805" class="LineNr"> 3805 </span> <span class="subxComment"># check output</span> <span id="L3806" class="LineNr"> 3806 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3771'>test-dereference-of-var-on-stack</a>: output should be empty"</span>) <span id="L3807" class="LineNr"> 3807 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: cannot dereference var 'x' on stack"</span> <span class="Constant">"F - <a href='mu.subx.html#L3771'>test-dereference-of-var-on-stack</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3546,7 +3546,7 @@ if ('onhashchange' in window) { <span id="L3834" class="LineNr"> 3834 </span> <span class="subxComment"># convert</span> <span id="L3835" class="LineNr"> 3835 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L3836" class="LineNr"> 3836 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L3837" class="Folded"> 3837 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3837" class="Folded"> 3837 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3843" class="LineNr"> 3843 </span> <span class="subxComment"># check output</span> <span id="L3844" class="LineNr"> 3844 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L3816'>test-convert-function-with-byte-operations</a>/0"</span>) <span id="L3845" class="LineNr"> 3845 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-byte-operations/1"</span>) @@ -3607,7 +3607,7 @@ if ('onhashchange' in window) { <span id="L3900" class="LineNr"> 3900 </span> 89/<- %edx 4/r32/esp <span id="L3901" class="LineNr"> 3901 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3902" class="LineNr"> 3902 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3903" class="Folded"> 3903 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3903" class="Folded"> 3903 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3909" class="LineNr"> 3909 </span> <span class="subxComment"># check output</span> <span id="L3910" class="LineNr"> 3910 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3876'>test-byte-values-on-stack</a>: output should be empty"</span>) <span id="L3911" class="LineNr"> 3911 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: var 'x' of type 'byte' cannot be on the stack"</span> <span class="Constant">"F - <a href='mu.subx.html#L3876'>test-byte-values-on-stack</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3647,7 +3647,7 @@ if ('onhashchange' in window) { <span id="L3945" class="LineNr"> 3945 </span> 89/<- %edx 4/r32/esp <span id="L3946" class="LineNr"> 3946 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L3947" class="LineNr"> 3947 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L3948" class="Folded"> 3948 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3948" class="Folded"> 3948 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3954" class="LineNr"> 3954 </span> <span class="subxComment"># check output</span> <span id="L3955" class="LineNr"> 3955 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L3921'>test-byte-values-in-unsupported-registers</a>: output should be empty"</span>) <span id="L3956" class="LineNr"> 3956 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: var 'x' of type 'byte' cannot be in esi or edi"</span> <span class="Constant">"F - <a href='mu.subx.html#L3921'>test-byte-values-in-unsupported-registers</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3677,7 +3677,7 @@ if ('onhashchange' in window) { <span id="L3980" class="LineNr"> 3980 </span> <span class="subxComment"># convert</span> <span id="L3981" class="LineNr"> 3981 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L3982" class="LineNr"> 3982 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L3983" class="Folded"> 3983 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3983" class="Folded"> 3983 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L3989" class="LineNr"> 3989 </span> <span class="subxComment"># check output</span> <span id="L3990" class="LineNr"> 3990 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - test-copy-byte-from-fn-arg/0"</span>) <span id="L3991" class="LineNr"> 3991 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-copy-byte-from-fn-arg/1"</span>) @@ -3717,7 +3717,7 @@ if ('onhashchange' in window) { <span id="L4025" class="LineNr"> 4025 </span> <span class="subxComment"># convert</span> <span id="L4026" class="LineNr"> 4026 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4027" class="LineNr"> 4027 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4028" class="Folded"> 4028 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4028" class="Folded"> 4028 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4034" class="LineNr"> 4034 </span> <span class="subxComment"># check output</span> <span id="L4035" class="LineNr"> 4035 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4011'>test-convert-compare-register-with-literal</a>/0"</span>) <span id="L4036" class="LineNr"> 4036 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-compare-register-with-literal/1"</span>) @@ -3757,7 +3757,7 @@ if ('onhashchange' in window) { <span id="L4070" class="LineNr"> 4070 </span> <span class="subxComment"># convert</span> <span id="L4071" class="LineNr"> 4071 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4072" class="LineNr"> 4072 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4073" class="Folded"> 4073 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4073" class="Folded"> 4073 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4079" class="LineNr"> 4079 </span> <span class="subxComment"># no errors; output is identical to test-convert-compare-register-with-literal</span> <span id="L4080" class="LineNr"> 4080 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L4081" class="LineNr"> 4081 </span> 89/<- %esp 5/r32/ebp @@ -3791,7 +3791,7 @@ if ('onhashchange' in window) { <span id="L4109" class="LineNr"> 4109 </span> 89/<- %edx 4/r32/esp <span id="L4110" class="LineNr"> 4110 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L4111" class="LineNr"> 4111 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L4112" class="Folded"> 4112 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4112" class="Folded"> 4112 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4118" class="LineNr"> 4118 </span> <span class="subxComment"># check output</span> <span id="L4119" class="LineNr"> 4119 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L4085'>test-unknown-variable</a>: output should be empty"</span>) <span id="L4120" class="LineNr"> 4120 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: unknown variable 'x'"</span> <span class="Constant">"F - <a href='mu.subx.html#L4085'>test-unknown-variable</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3822,7 +3822,7 @@ if ('onhashchange' in window) { <span id="L4145" class="LineNr"> 4145 </span> <span class="subxComment"># convert</span> <span id="L4146" class="LineNr"> 4146 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4147" class="LineNr"> 4147 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4148" class="Folded"> 4148 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4148" class="Folded"> 4148 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4154" class="LineNr"> 4154 </span> <span class="subxComment"># check output</span> <span id="L4155" class="LineNr"> 4155 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4129'>test-convert-function-with-local-var-in-block</a>/0"</span>) <span id="L4156" class="LineNr"> 4156 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-in-block/1"</span>) @@ -3868,7 +3868,7 @@ if ('onhashchange' in window) { <span id="L4196" class="LineNr"> 4196 </span> <span class="subxComment"># convert</span> <span id="L4197" class="LineNr"> 4197 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4198" class="LineNr"> 4198 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4199" class="Folded"> 4199 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4199" class="Folded"> 4199 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4205" class="LineNr"> 4205 </span> <span class="subxComment"># check output</span> <span id="L4206" class="LineNr"> 4206 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4179'>test-convert-function-with-local-var-in-mem-after-block</a>/0"</span>) <span id="L4207" class="LineNr"> 4207 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-in-mem-after-block/1"</span>) @@ -3915,7 +3915,7 @@ if ('onhashchange' in window) { <span id="L4248" class="LineNr"> 4248 </span> <span class="subxComment"># convert</span> <span id="L4249" class="LineNr"> 4249 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4250" class="LineNr"> 4250 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4251" class="Folded"> 4251 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4251" class="Folded"> 4251 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4257" class="LineNr"> 4257 </span> <span class="subxComment"># check output</span> <span id="L4258" class="LineNr"> 4258 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4232'>test-convert-function-with-local-var-in-named-block</a>/0"</span>) <span id="L4259" class="LineNr"> 4259 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-in-named-block/1"</span>) @@ -3970,7 +3970,7 @@ if ('onhashchange' in window) { <span id="L4308" class="LineNr"> 4308 </span> 89/<- %edx 4/r32/esp <span id="L4309" class="LineNr"> 4309 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L4310" class="LineNr"> 4310 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L4311" class="Folded"> 4311 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4311" class="Folded"> 4311 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4317" class="LineNr"> 4317 </span> <span class="subxComment"># check output</span> <span id="L4318" class="LineNr"> 4318 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L4282'>test-unknown-variable-in-named-block</a>: output should be empty"</span>) <span id="L4319" class="LineNr"> 4319 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: unknown variable 'x'"</span> <span class="Constant">"F - <a href='mu.subx.html#L4282'>test-unknown-variable-in-named-block</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -3998,7 +3998,7 @@ if ('onhashchange' in window) { <span id="L4341" class="LineNr"> 4341 </span> <span class="subxComment"># convert</span> <span id="L4342" class="LineNr"> 4342 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4343" class="LineNr"> 4343 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4344" class="Folded"> 4344 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4344" class="Folded"> 4344 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4350" class="LineNr"> 4350 </span> <span class="subxComment"># check output</span> <span id="L4351" class="LineNr"> 4351 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4328'>test-always-shadow-outermost-reg-vars-in-function</a>/0"</span>) <span id="L4352" class="LineNr"> 4352 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-always-shadow-outermost-reg-vars-in-function/1"</span>) @@ -4040,7 +4040,7 @@ if ('onhashchange' in window) { <span id="L4388" class="LineNr"> 4388 </span> <span class="subxComment"># convert</span> <span id="L4389" class="LineNr"> 4389 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4390" class="LineNr"> 4390 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4391" class="Folded"> 4391 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4391" class="Folded"> 4391 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4397" class="LineNr"> 4397 </span> <span class="subxComment"># check output</span> <span id="L4398" class="LineNr"> 4398 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4371'>test-shadow-local</a>/0"</span>) <span id="L4399" class="LineNr"> 4399 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-shadow-local/1"</span>) @@ -4090,7 +4090,7 @@ if ('onhashchange' in window) { <span id="L4443" class="LineNr"> 4443 </span> <span class="subxComment"># convert</span> <span id="L4444" class="LineNr"> 4444 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4445" class="LineNr"> 4445 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4446" class="Folded"> 4446 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4446" class="Folded"> 4446 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4452" class="LineNr"> 4452 </span> <span class="subxComment"># check output</span> <span id="L4453" class="LineNr"> 4453 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4426'>test-shadow-name</a>/0"</span>) <span id="L4454" class="LineNr"> 4454 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-shadow-name/1"</span>) @@ -4141,7 +4141,7 @@ if ('onhashchange' in window) { <span id="L4499" class="LineNr"> 4499 </span> <span class="subxComment"># convert</span> <span id="L4500" class="LineNr"> 4500 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4501" class="LineNr"> 4501 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4502" class="Folded"> 4502 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4502" class="Folded"> 4502 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4508" class="LineNr"> 4508 </span> <span class="subxComment"># check output</span> <span id="L4509" class="LineNr"> 4509 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4481'>test-shadow-name-2</a>/0"</span>) <span id="L4510" class="LineNr"> 4510 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-shadow-name-2/1"</span>) @@ -4192,7 +4192,7 @@ if ('onhashchange' in window) { <span id="L4555" class="LineNr"> 4555 </span> <span class="subxComment"># convert</span> <span id="L4556" class="LineNr"> 4556 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4557" class="LineNr"> 4557 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4558" class="Folded"> 4558 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4558" class="Folded"> 4558 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4564" class="LineNr"> 4564 </span> <span class="subxComment"># check output</span> <span id="L4565" class="LineNr"> 4565 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4540'>test-do-not-spill-same-register-in-block</a>/0"</span>) <span id="L4566" class="LineNr"> 4566 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-do-not-spill-same-register-in-block/1"</span>) @@ -4234,7 +4234,7 @@ if ('onhashchange' in window) { <span id="L4602" class="LineNr"> 4602 </span> <span class="subxComment"># convert</span> <span id="L4603" class="LineNr"> 4603 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4604" class="LineNr"> 4604 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4605" class="Folded"> 4605 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4605" class="Folded"> 4605 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4611" class="LineNr"> 4611 </span> <span class="subxComment"># check output</span> <span id="L4612" class="LineNr"> 4612 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4587'>test-spill-different-register-in-block</a>/0"</span>) <span id="L4613" class="LineNr"> 4613 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-spill-different-register-in-block/1"</span>) @@ -4281,7 +4281,7 @@ if ('onhashchange' in window) { <span id="L4654" class="LineNr"> 4654 </span> <span class="subxComment"># convert</span> <span id="L4655" class="LineNr"> 4655 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4656" class="LineNr"> 4656 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4657" class="Folded"> 4657 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4657" class="Folded"> 4657 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4663" class="LineNr"> 4663 </span> <span class="subxComment"># check output</span> <span id="L4664" class="LineNr"> 4664 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4636'>test-convert-function-with-branches-in-block</a>/0"</span>) <span id="L4665" class="LineNr"> 4665 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-branches-in-block/1"</span>) @@ -4335,7 +4335,7 @@ if ('onhashchange' in window) { <span id="L4713" class="LineNr"> 4713 </span> <span class="subxComment"># convert</span> <span id="L4714" class="LineNr"> 4714 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4715" class="LineNr"> 4715 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4716" class="Folded"> 4716 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4716" class="Folded"> 4716 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4722" class="LineNr"> 4722 </span> <span class="subxComment"># check output</span> <span id="L4723" class="LineNr"> 4723 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4636'>test-convert-function-with-branches-in-block</a>/0"</span>) <span id="L4724" class="LineNr"> 4724 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-branches-in-block/1"</span>) @@ -4389,7 +4389,7 @@ if ('onhashchange' in window) { <span id="L4772" class="LineNr"> 4772 </span> <span class="subxComment"># convert</span> <span id="L4773" class="LineNr"> 4773 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4774" class="LineNr"> 4774 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4775" class="Folded"> 4775 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4775" class="Folded"> 4775 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4781" class="LineNr"> 4781 </span> <span class="subxComment"># check output</span> <span id="L4782" class="LineNr"> 4782 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4754'>test-convert-function-with-branches-in-named-block</a>/0"</span>) <span id="L4783" class="LineNr"> 4783 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-branches-in-named-block/1"</span>) @@ -4443,7 +4443,7 @@ if ('onhashchange' in window) { <span id="L4831" class="LineNr"> 4831 </span> <span class="subxComment"># convert</span> <span id="L4832" class="LineNr"> 4832 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4833" class="LineNr"> 4833 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4834" class="Folded"> 4834 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4834" class="Folded"> 4834 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4840" class="LineNr"> 4840 </span> <span class="subxComment"># check output</span> <span id="L4841" class="LineNr"> 4841 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4813'>test-convert-function-with-var-in-nested-block</a>/0"</span>) <span id="L4842" class="LineNr"> 4842 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-var-in-nested-block/1"</span>) @@ -4495,7 +4495,7 @@ if ('onhashchange' in window) { <span id="L4888" class="LineNr"> 4888 </span> <span class="subxComment"># convert</span> <span id="L4889" class="LineNr"> 4889 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4890" class="LineNr"> 4890 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4891" class="Folded"> 4891 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4891" class="Folded"> 4891 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4897" class="LineNr"> 4897 </span> <span class="subxComment"># check output</span> <span id="L4898" class="LineNr"> 4898 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4869'>test-convert-function-with-multiple-vars-in-nested-blocks</a>/0"</span>) <span id="L4899" class="LineNr"> 4899 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-multiple-vars-in-nested-blocks/1"</span>) @@ -4551,7 +4551,7 @@ if ('onhashchange' in window) { <span id="L4949" class="LineNr"> 4949 </span> <span class="subxComment"># convert</span> <span id="L4950" class="LineNr"> 4950 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L4951" class="LineNr"> 4951 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L4952" class="Folded"> 4952 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4952" class="Folded"> 4952 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L4958" class="LineNr"> 4958 </span> <span class="subxComment"># check output</span> <span id="L4959" class="LineNr"> 4959 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4929'>test-convert-function-with-branches-and-local-vars</a>/0"</span>) <span id="L4960" class="LineNr"> 4960 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-branches-and-local-vars/1"</span>) @@ -4605,7 +4605,7 @@ if ('onhashchange' in window) { <span id="L5008" class="LineNr"> 5008 </span> <span class="subxComment"># convert</span> <span id="L5009" class="LineNr"> 5009 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5010" class="LineNr"> 5010 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5011" class="Folded"> 5011 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5011" class="Folded"> 5011 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5017" class="LineNr"> 5017 </span> <span class="subxComment"># check output</span> <span id="L5018" class="LineNr"> 5018 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L4988'>test-convert-function-with-conditional-loops-and-local-vars</a>/0"</span>) <span id="L5019" class="LineNr"> 5019 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-conditional-loops-and-local-vars/1"</span>) @@ -4659,7 +4659,7 @@ if ('onhashchange' in window) { <span id="L5067" class="LineNr"> 5067 </span> <span class="subxComment"># convert</span> <span id="L5068" class="LineNr"> 5068 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5069" class="LineNr"> 5069 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5070" class="Folded"> 5070 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5070" class="Folded"> 5070 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5076" class="LineNr"> 5076 </span> <span class="subxComment"># check output</span> <span id="L5077" class="LineNr"> 5077 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5047'>test-convert-function-with-unconditional-loops-and-local-vars</a>/0"</span>) <span id="L5078" class="LineNr"> 5078 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-unconditional-loops-and-local-vars/1"</span>) @@ -4707,7 +4707,7 @@ if ('onhashchange' in window) { <span id="L5120" class="LineNr"> 5120 </span> <span class="subxComment"># convert</span> <span id="L5121" class="LineNr"> 5121 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5122" class="LineNr"> 5122 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5123" class="Folded"> 5123 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5123" class="Folded"> 5123 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5129" class="LineNr"> 5129 </span> <span class="subxComment"># check output</span> <span id="L5130" class="LineNr"> 5130 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5102'>test-convert-function-with-branches-and-loops-and-local-vars</a>/0"</span>) <span id="L5131" class="LineNr"> 5131 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-branches-and-loops-and-local-vars/1"</span>) @@ -4763,7 +4763,7 @@ if ('onhashchange' in window) { <span id="L5181" class="LineNr"> 5181 </span> <span class="subxComment"># convert</span> <span id="L5182" class="LineNr"> 5182 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5183" class="LineNr"> 5183 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5184" class="Folded"> 5184 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5184" class="Folded"> 5184 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5190" class="LineNr"> 5190 </span> <span class="subxComment"># check output</span> <span id="L5191" class="LineNr"> 5191 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5160'>test-convert-function-with-nonlocal-branches-and-loops-and-local-vars</a>/0"</span>) <span id="L5192" class="LineNr"> 5192 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-nonlocal-branches-and-loops-and-local-vars/1"</span>) @@ -4824,7 +4824,7 @@ if ('onhashchange' in window) { <span id="L5247" class="LineNr"> 5247 </span> <span class="subxComment"># convert</span> <span id="L5248" class="LineNr"> 5248 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5249" class="LineNr"> 5249 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5250" class="Folded"> 5250 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5250" class="Folded"> 5250 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5256" class="LineNr"> 5256 </span> <span class="subxComment"># check output</span> <span id="L5257" class="LineNr"> 5257 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5228'>test-convert-function-with-nonlocal-branches-and-loops-and-local-vars-2</a>/0"</span>) <span id="L5258" class="LineNr"> 5258 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-nonlocal-branches-and-loops-and-local-vars-2/1"</span>) @@ -4880,7 +4880,7 @@ if ('onhashchange' in window) { <span id="L5308" class="LineNr"> 5308 </span> <span class="subxComment"># convert</span> <span id="L5309" class="LineNr"> 5309 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5310" class="LineNr"> 5310 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5311" class="Folded"> 5311 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5311" class="Folded"> 5311 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5317" class="LineNr"> 5317 </span> <span class="subxComment"># check output</span> <span id="L5318" class="LineNr"> 5318 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5289'>test-convert-function-with-nonlocal-branches-and-loops-and-local-vars-3</a>/0"</span>) <span id="L5319" class="LineNr"> 5319 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-nonlocal-branches-and-loops-and-local-vars-3/1"</span>) @@ -4932,7 +4932,7 @@ if ('onhashchange' in window) { <span id="L5365" class="LineNr"> 5365 </span> <span class="subxComment"># convert</span> <span id="L5366" class="LineNr"> 5366 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5367" class="LineNr"> 5367 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5368" class="Folded"> 5368 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5368" class="Folded"> 5368 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5374" class="LineNr"> 5374 </span> <span class="subxComment"># check output</span> <span id="L5375" class="LineNr"> 5375 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5347'>test-convert-function-with-nonlocal-branches-and-loops-and-local-vars-4</a>/0"</span>) <span id="L5376" class="LineNr"> 5376 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-nonlocal-branches-and-loops-and-local-vars-4/1"</span>) @@ -4987,7 +4987,7 @@ if ('onhashchange' in window) { <span id="L5425" class="LineNr"> 5425 </span> <span class="subxComment"># convert</span> <span id="L5426" class="LineNr"> 5426 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5427" class="LineNr"> 5427 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5428" class="Folded"> 5428 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5428" class="Folded"> 5428 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5434" class="LineNr"> 5434 </span> <span class="subxComment"># check output</span> <span id="L5435" class="LineNr"> 5435 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5405'>test-convert-function-with-nonlocal-unconditional-break-and-local-vars</a>/0"</span>) <span id="L5436" class="LineNr"> 5436 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-nonlocal-unconditional-break-and-local-vars/1"</span>) @@ -5043,7 +5043,7 @@ if ('onhashchange' in window) { <span id="L5486" class="LineNr"> 5486 </span> <span class="subxComment"># convert</span> <span id="L5487" class="LineNr"> 5487 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5488" class="LineNr"> 5488 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5489" class="Folded"> 5489 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5489" class="Folded"> 5489 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5495" class="LineNr"> 5495 </span> <span class="subxComment"># check output</span> <span id="L5496" class="LineNr"> 5496 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5466'>test-convert-function-with-unconditional-break-and-local-vars</a>/0"</span>) <span id="L5497" class="LineNr"> 5497 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-unconditional-break-and-local-vars/1"</span>) @@ -5097,7 +5097,7 @@ if ('onhashchange' in window) { <span id="L5545" class="LineNr"> 5545 </span> <span class="subxComment"># convert</span> <span id="L5546" class="LineNr"> 5546 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5547" class="LineNr"> 5547 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5548" class="Folded"> 5548 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5548" class="Folded"> 5548 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5554" class="LineNr"> 5554 </span> <span class="subxComment"># check output</span> <span id="L5555" class="LineNr"> 5555 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5525'>test-convert-function-with-nonlocal-unconditional-loop-and-local-vars</a>/0"</span>) <span id="L5556" class="LineNr"> 5556 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-nonlocal-unconditional-loop-and-local-vars/1"</span>) @@ -5146,7 +5146,7 @@ if ('onhashchange' in window) { <span id="L5599" class="LineNr"> 5599 </span> <span class="subxComment"># convert</span> <span id="L5600" class="LineNr"> 5600 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5601" class="LineNr"> 5601 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5602" class="Folded"> 5602 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5602" class="Folded"> 5602 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5608" class="LineNr"> 5608 </span> <span class="subxComment"># check output</span> <span id="L5609" class="LineNr"> 5609 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5586'>test-convert-function-with-local-array-var-in-mem</a>/0"</span>) <span id="L5610" class="LineNr"> 5610 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-array-var-in-mem/1"</span>) @@ -5198,7 +5198,7 @@ if ('onhashchange' in window) { <span id="L5656" class="LineNr"> 5656 </span> 89/<- %edx 4/r32/esp <span id="L5657" class="LineNr"> 5657 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L5658" class="LineNr"> 5658 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L5659" class="Folded"> 5659 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5659" class="Folded"> 5659 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5665" class="LineNr"> 5665 </span> <span class="subxComment"># check output</span> <span id="L5666" class="LineNr"> 5666 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L5632'>test-array-size-in-hex</a>: output should be empty"</span>) <span id="L5667" class="LineNr"> 5667 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"literal integers are always hex in Mu; start '10' with a '0x' to be unambiguous, converting it to hexadecimal as necessary."</span> <span class="Constant">"F - <a href='mu.subx.html#L5632'>test-array-size-in-hex</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -5226,7 +5226,7 @@ if ('onhashchange' in window) { <span id="L5689" class="LineNr"> 5689 </span> <span class="subxComment"># convert</span> <span id="L5690" class="LineNr"> 5690 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5691" class="LineNr"> 5691 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5692" class="Folded"> 5692 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5692" class="Folded"> 5692 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5698" class="LineNr"> 5698 </span> <span class="subxComment"># no errors</span> <span id="L5699" class="LineNr"> 5699 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L5700" class="LineNr"> 5700 </span> 89/<- %esp 5/r32/ebp @@ -5250,7 +5250,7 @@ if ('onhashchange' in window) { <span id="L5718" class="LineNr"> 5718 </span> <span class="subxComment"># convert</span> <span id="L5719" class="LineNr"> 5719 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5720" class="LineNr"> 5720 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5721" class="Folded"> 5721 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5721" class="Folded"> 5721 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5727" class="LineNr"> 5727 </span> <span class="subxComment"># check output</span> <span id="L5728" class="LineNr"> 5728 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5704'>test-convert-function-with-populate</a>/0"</span>) <span id="L5729" class="LineNr"> 5729 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-populate/1"</span>) @@ -5290,7 +5290,7 @@ if ('onhashchange' in window) { <span id="L5763" class="LineNr"> 5763 </span> <span class="subxComment"># convert</span> <span id="L5764" class="LineNr"> 5764 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5765" class="LineNr"> 5765 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5766" class="Folded"> 5766 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5766" class="Folded"> 5766 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5772" class="LineNr"> 5772 </span> <span class="subxComment"># check output</span> <span id="L5773" class="LineNr"> 5773 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5750'>test-convert-function-with-local-array-of-bytes-in-mem</a>/0"</span>) <span id="L5774" class="LineNr"> 5774 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-array-of-bytes-in-mem/1"</span>) @@ -5332,7 +5332,7 @@ if ('onhashchange' in window) { <span id="L5810" class="LineNr"> 5810 </span> <span class="subxComment"># convert</span> <span id="L5811" class="LineNr"> 5811 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5812" class="LineNr"> 5812 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5813" class="Folded"> 5813 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5813" class="Folded"> 5813 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5819" class="LineNr"> 5819 </span> <span class="subxComment"># check output</span> <span id="L5820" class="LineNr"> 5820 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5796'>test-convert-address</a>/0"</span>) <span id="L5821" class="LineNr"> 5821 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-address/1"</span>) @@ -5373,7 +5373,7 @@ if ('onhashchange' in window) { <span id="L5856" class="LineNr"> 5856 </span> <span class="subxComment"># convert</span> <span id="L5857" class="LineNr"> 5857 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5858" class="LineNr"> 5858 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5859" class="Folded"> 5859 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5859" class="Folded"> 5859 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5865" class="LineNr"> 5865 </span> <span class="subxComment"># check output</span> <span id="L5866" class="LineNr"> 5866 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5842'>test-convert-floating-point-convert</a>/0"</span>) <span id="L5867" class="LineNr"> 5867 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-floating-point-convert/1"</span>) @@ -5418,7 +5418,7 @@ if ('onhashchange' in window) { <span id="L5906" class="LineNr"> 5906 </span> <span class="subxComment"># convert</span> <span id="L5907" class="LineNr"> 5907 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5908" class="LineNr"> 5908 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5909" class="Folded"> 5909 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5909" class="Folded"> 5909 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5915" class="LineNr"> 5915 </span> <span class="subxComment"># check output</span> <span id="L5916" class="LineNr"> 5916 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5891'>test-convert-floating-point-convert-2</a>/0"</span>) <span id="L5917" class="LineNr"> 5917 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-floating-point-convert-2/1"</span>) @@ -5486,7 +5486,7 @@ if ('onhashchange' in window) { <span id="L5979" class="LineNr"> 5979 </span> <span class="subxComment"># convert</span> <span id="L5980" class="LineNr"> 5980 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L5981" class="LineNr"> 5981 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L5982" class="Folded"> 5982 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5982" class="Folded"> 5982 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L5988" class="LineNr"> 5988 </span> <span class="subxComment"># check output</span> <span id="L5989" class="LineNr"> 5989 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"f:"</span> <span class="Constant">"F - <a href='mu.subx.html#L5942'>test-convert-floating-point-operation</a>/0"</span>) <span id="L5990" class="LineNr"> 5990 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-floating-point-operation/1"</span>) @@ -5558,7 +5558,7 @@ if ('onhashchange' in window) { <span id="L6056" class="LineNr"> 6056 </span> <span class="subxComment"># convert</span> <span id="L6057" class="LineNr"> 6057 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6058" class="LineNr"> 6058 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6059" class="Folded"> 6059 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6059" class="Folded"> 6059 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6065" class="LineNr"> 6065 </span> <span class="subxComment"># check output</span> <span id="L6066" class="LineNr"> 6066 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"f:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6040'>test-convert-floating-point-dereferenced</a>/0"</span>) <span id="L6067" class="LineNr"> 6067 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-floating-point-dereferenced/1"</span>) @@ -5605,7 +5605,7 @@ if ('onhashchange' in window) { <span id="L6108" class="LineNr"> 6108 </span> <span class="subxComment"># convert</span> <span id="L6109" class="LineNr"> 6109 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6110" class="LineNr"> 6110 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6111" class="Folded"> 6111 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6111" class="Folded"> 6111 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6117" class="LineNr"> 6117 </span> <span class="subxComment"># check output</span> <span id="L6118" class="LineNr"> 6118 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6094'>test-convert-length-of-array</a>/0"</span>) <span id="L6119" class="LineNr"> 6119 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-length-of-array/1"</span>) @@ -5647,7 +5647,7 @@ if ('onhashchange' in window) { <span id="L6155" class="LineNr"> 6155 </span> <span class="subxComment"># convert</span> <span id="L6156" class="LineNr"> 6156 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6157" class="LineNr"> 6157 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6158" class="Folded"> 6158 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6158" class="Folded"> 6158 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6164" class="LineNr"> 6164 </span> <span class="subxComment"># check output</span> <span id="L6165" class="LineNr"> 6165 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6141'>test-convert-length-of-array-of-bytes</a>/0"</span>) <span id="L6166" class="LineNr"> 6166 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-length-of-array-of-bytes/1"</span>) @@ -5687,7 +5687,7 @@ if ('onhashchange' in window) { <span id="L6200" class="LineNr"> 6200 </span> <span class="subxComment"># convert</span> <span id="L6201" class="LineNr"> 6201 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6202" class="LineNr"> 6202 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6203" class="Folded"> 6203 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6203" class="Folded"> 6203 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6209" class="LineNr"> 6209 </span> <span class="subxComment"># check output</span> <span id="L6210" class="LineNr"> 6210 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6186'>test-convert-length-of-array-on-stack</a>/0"</span>) <span id="L6211" class="LineNr"> 6211 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-length-of-array-on-stack/1"</span>) @@ -5742,8 +5742,8 @@ if ('onhashchange' in window) { <span id="L6260" class="LineNr"> 6260 </span> 89/<- %edx 4/r32/esp <span id="L6261" class="LineNr"> 6261 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L6262" class="LineNr"> 6262 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L6263" class="Folded"> 6263 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L6269" class="Folded"> 6269 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6263" class="Folded"> 6263 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6269" class="Folded"> 6269 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6275" class="LineNr"> 6275 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L6235'>test-reg-var-def-with-read-of-same-register</a>: <a href='114error.subx.html#L9'>error</a> stream should be empty"</span>) <span id="L6276" class="LineNr"> 6276 </span> <span class="subxComment"># check output</span> <span id="L6277" class="LineNr"> 6277 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6235'>test-reg-var-def-with-read-of-same-register</a>/0"</span>) @@ -5786,7 +5786,7 @@ if ('onhashchange' in window) { <span id="L6314" class="LineNr"> 6314 </span> <span class="subxComment"># convert</span> <span id="L6315" class="LineNr"> 6315 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6316" class="LineNr"> 6316 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6317" class="Folded"> 6317 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6317" class="Folded"> 6317 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6323" class="LineNr"> 6323 </span> <span class="subxComment"># check output</span> <span id="L6324" class="LineNr"> 6324 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6299'>test-convert-index-into-array</a>/0"</span>) <span id="L6325" class="LineNr"> 6325 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array/1"</span>) @@ -5833,7 +5833,7 @@ if ('onhashchange' in window) { <span id="L6366" class="LineNr"> 6366 </span> <span class="subxComment"># convert</span> <span id="L6367" class="LineNr"> 6367 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6368" class="LineNr"> 6368 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6369" class="Folded"> 6369 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6369" class="Folded"> 6369 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6375" class="LineNr"> 6375 </span> <span class="subxComment"># check output</span> <span id="L6376" class="LineNr"> 6376 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6351'>test-convert-index-into-array-of-bytes</a>/0"</span>) <span id="L6377" class="LineNr"> 6377 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array-of-bytes/1"</span>) @@ -5879,7 +5879,7 @@ if ('onhashchange' in window) { <span id="L6417" class="LineNr"> 6417 </span> <span class="subxComment"># convert</span> <span id="L6418" class="LineNr"> 6418 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6419" class="LineNr"> 6419 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6420" class="Folded"> 6420 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6420" class="Folded"> 6420 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6426" class="LineNr"> 6426 </span> <span class="subxComment"># check output</span> <span id="L6427" class="LineNr"> 6427 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6403'>test-convert-index-into-array-with-literal</a>/0"</span>) <span id="L6428" class="LineNr"> 6428 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array-with-literal/1"</span>) @@ -5923,7 +5923,7 @@ if ('onhashchange' in window) { <span id="L6466" class="LineNr"> 6466 </span> <span class="subxComment"># convert</span> <span id="L6467" class="LineNr"> 6467 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6468" class="LineNr"> 6468 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6469" class="Folded"> 6469 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6469" class="Folded"> 6469 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6475" class="LineNr"> 6475 </span> <span class="subxComment"># check output</span> <span id="L6476" class="LineNr"> 6476 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6452'>test-convert-index-into-array-of-bytes-with-literal</a>/0"</span>) <span id="L6477" class="LineNr"> 6477 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array-of-bytes-with-literal/1"</span>) @@ -5968,7 +5968,7 @@ if ('onhashchange' in window) { <span id="L6516" class="LineNr"> 6516 </span> <span class="subxComment"># convert</span> <span id="L6517" class="LineNr"> 6517 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6518" class="LineNr"> 6518 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6519" class="Folded"> 6519 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6519" class="Folded"> 6519 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6525" class="LineNr"> 6525 </span> <span class="subxComment"># check output</span> <span id="L6526" class="LineNr"> 6526 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6501'>test-convert-index-into-array-on-stack</a>/0"</span>) <span id="L6527" class="LineNr"> 6527 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array-on-stack/1"</span>) @@ -6018,7 +6018,7 @@ if ('onhashchange' in window) { <span id="L6571" class="LineNr"> 6571 </span> <span class="subxComment"># convert</span> <span id="L6572" class="LineNr"> 6572 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6573" class="LineNr"> 6573 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6574" class="Folded"> 6574 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6574" class="Folded"> 6574 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6580" class="LineNr"> 6580 </span> <span class="subxComment"># check output</span> <span id="L6581" class="LineNr"> 6581 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6557'>test-convert-index-into-array-on-stack-with-literal</a>/0"</span>) <span id="L6582" class="LineNr"> 6582 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array-on-stack-with-literal/1"</span>) @@ -6067,7 +6067,7 @@ if ('onhashchange' in window) { <span id="L6625" class="LineNr"> 6625 </span> <span class="subxComment"># convert</span> <span id="L6626" class="LineNr"> 6626 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6627" class="LineNr"> 6627 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6628" class="Folded"> 6628 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6628" class="Folded"> 6628 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6634" class="LineNr"> 6634 </span> <span class="subxComment"># check output</span> <span id="L6635" class="LineNr"> 6635 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6611'>test-convert-index-into-array-of-bytes-on-stack-with-literal</a>/0"</span>) <span id="L6636" class="LineNr"> 6636 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array-of-bytes-on-stack-with-literal/1"</span>) @@ -6118,7 +6118,7 @@ if ('onhashchange' in window) { <span id="L6681" class="LineNr"> 6681 </span> <span class="subxComment"># convert</span> <span id="L6682" class="LineNr"> 6682 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6683" class="LineNr"> 6683 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6684" class="Folded"> 6684 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6684" class="Folded"> 6684 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6690" class="LineNr"> 6690 </span> <span class="subxComment"># check output</span> <span id="L6691" class="LineNr"> 6691 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6665'>test-convert-index-into-array-using-offset</a>/0"</span>) <span id="L6692" class="LineNr"> 6692 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array-using-offset/1"</span>) @@ -6167,7 +6167,7 @@ if ('onhashchange' in window) { <span id="L6735" class="LineNr"> 6735 </span> <span class="subxComment"># convert</span> <span id="L6736" class="LineNr"> 6736 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6737" class="LineNr"> 6737 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6738" class="Folded"> 6738 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6738" class="Folded"> 6738 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6744" class="LineNr"> 6744 </span> <span class="subxComment"># check output</span> <span id="L6745" class="LineNr"> 6745 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6719'>test-convert-index-into-array-of-bytes-using-offset</a>/0"</span>) <span id="L6746" class="LineNr"> 6746 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array-of-bytes-using-offset/1"</span>) @@ -6216,7 +6216,7 @@ if ('onhashchange' in window) { <span id="L6789" class="LineNr"> 6789 </span> <span class="subxComment"># convert</span> <span id="L6790" class="LineNr"> 6790 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6791" class="LineNr"> 6791 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6792" class="Folded"> 6792 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6792" class="Folded"> 6792 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6798" class="LineNr"> 6798 </span> <span class="subxComment"># check output</span> <span id="L6799" class="LineNr"> 6799 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6773'>test-convert-index-into-array-using-offset-on-stack</a>/0"</span>) <span id="L6800" class="LineNr"> 6800 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array-using-offset-on-stack/1"</span>) @@ -6266,7 +6266,7 @@ if ('onhashchange' in window) { <span id="L6844" class="LineNr"> 6844 </span> <span class="subxComment"># convert</span> <span id="L6845" class="LineNr"> 6845 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6846" class="LineNr"> 6846 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6847" class="Folded"> 6847 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6847" class="Folded"> 6847 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6853" class="LineNr"> 6853 </span> <span class="subxComment"># check output</span> <span id="L6854" class="LineNr"> 6854 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6828'>test-convert-index-into-array-of-bytes-using-offset-on-stack</a>/0"</span>) <span id="L6855" class="LineNr"> 6855 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-index-into-array-of-bytes-using-offset-on-stack/1"</span>) @@ -6319,7 +6319,7 @@ if ('onhashchange' in window) { <span id="L6902" class="LineNr"> 6902 </span> <span class="subxComment"># convert</span> <span id="L6903" class="LineNr"> 6903 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L6904" class="LineNr"> 6904 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L6905" class="Folded"> 6905 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6905" class="Folded"> 6905 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6911" class="LineNr"> 6911 </span> <span class="subxComment"># check output</span> <span id="L6912" class="LineNr"> 6912 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L6883'>test-convert-function-and-type-definition</a>/0"</span>) <span id="L6913" class="LineNr"> 6913 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-and-type-definition/1"</span>) @@ -6376,7 +6376,7 @@ if ('onhashchange' in window) { <span id="L6964" class="LineNr"> 6964 </span> 89/<- %edx 4/r32/esp <span id="L6965" class="LineNr"> 6965 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L6966" class="LineNr"> 6966 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L6967" class="Folded"> 6967 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6967" class="Folded"> 6967 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L6973" class="LineNr"> 6973 </span> <span class="subxComment"># check output</span> <span id="L6974" class="LineNr"> 6974 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L6940'>test-type-definition-with-array</a>: output should be empty"</span>) <span id="L6975" class="LineNr"> 6975 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"type t: 'array' elements not allowed for now"</span> <span class="Constant">"F - <a href='mu.subx.html#L6940'>test-type-definition-with-array</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -6415,7 +6415,7 @@ if ('onhashchange' in window) { <span id="L7008" class="LineNr"> 7008 </span> 89/<- %edx 4/r32/esp <span id="L7009" class="LineNr"> 7009 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7010" class="LineNr"> 7010 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7011" class="Folded"> 7011 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7011" class="Folded"> 7011 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7017" class="LineNr"> 7017 </span> <span class="subxComment"># check output</span> <span id="L7018" class="LineNr"> 7018 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L6984'>test-type-definition-with-addr</a>: output should be empty"</span>) <span id="L7019" class="LineNr"> 7019 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"type t: 'addr' elements not allowed"</span> <span class="Constant">"F - <a href='mu.subx.html#L6984'>test-type-definition-with-addr</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -6447,7 +6447,7 @@ if ('onhashchange' in window) { <span id="L7045" class="LineNr"> 7045 </span> <span class="subxComment"># convert</span> <span id="L7046" class="LineNr"> 7046 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L7047" class="LineNr"> 7047 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L7048" class="Folded"> 7048 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7048" class="Folded"> 7048 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7054" class="LineNr"> 7054 </span> <span class="subxComment"># check output</span> <span id="L7055" class="LineNr"> 7055 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L7028'>test-convert-function-with-local-var-with-user-defined-type</a>/0"</span>) <span id="L7056" class="LineNr"> 7056 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-with-user-defined-type/1"</span>) @@ -6491,7 +6491,7 @@ if ('onhashchange' in window) { <span id="L7094" class="LineNr"> 7094 </span> <span class="subxComment"># convert</span> <span id="L7095" class="LineNr"> 7095 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L7096" class="LineNr"> 7096 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L7097" class="Folded"> 7097 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7097" class="Folded"> 7097 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7103" class="LineNr"> 7103 </span> <span class="subxComment"># check output</span> <span id="L7104" class="LineNr"> 7104 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L7075'>test-convert-function-with-local-var-with-user-defined-type-containing-user-defined-type</a>/0"</span>) <span id="L7105" class="LineNr"> 7105 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-local-var-with-user-defined-type-containing-user-defined-type/1"</span>) @@ -6535,7 +6535,7 @@ if ('onhashchange' in window) { <span id="L7143" class="LineNr"> 7143 </span> <span class="subxComment"># convert</span> <span id="L7144" class="LineNr"> 7144 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L7145" class="LineNr"> 7145 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L7146" class="Folded"> 7146 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7146" class="Folded"> 7146 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7152" class="LineNr"> 7152 </span> <span class="subxComment"># check output</span> <span id="L7153" class="LineNr"> 7153 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"f:"</span> <span class="Constant">"F - <a href='mu.subx.html#L7123'>test-convert-function-call-with-arg-of-user-defined-type</a>/0"</span>) <span id="L7154" class="LineNr"> 7154 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-call-with-arg-of-user-defined-type/1"</span>) @@ -6592,7 +6592,7 @@ if ('onhashchange' in window) { <span id="L7205" class="LineNr"> 7205 </span> <span class="subxComment"># convert</span> <span id="L7206" class="LineNr"> 7206 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L7207" class="LineNr"> 7207 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L7208" class="Folded"> 7208 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7208" class="Folded"> 7208 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7214" class="LineNr"> 7214 </span> <span class="subxComment"># check output</span> <span id="L7215" class="LineNr"> 7215 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"f:"</span> <span class="Constant">"F - <a href='mu.subx.html#L7123'>test-convert-function-call-with-arg-of-user-defined-type</a>/0"</span>) <span id="L7216" class="LineNr"> 7216 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-call-with-arg-of-user-defined-type/1"</span>) @@ -6653,7 +6653,7 @@ if ('onhashchange' in window) { <span id="L7271" class="LineNr"> 7271 </span> <span class="subxComment"># convert</span> <span id="L7272" class="LineNr"> 7272 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L7273" class="LineNr"> 7273 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L7274" class="Folded"> 7274 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7274" class="Folded"> 7274 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7280" class="LineNr"> 7280 </span> <span class="subxComment"># check output</span> <span id="L7281" class="LineNr"> 7281 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"f:"</span> <span class="Constant">"F - <a href='mu.subx.html#L7249'>test-convert-function-call-with-arg-of-user-defined-type-by-reference</a>/0"</span>) <span id="L7282" class="LineNr"> 7282 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-call-with-arg-of-user-defined-type-by-reference/1"</span>) @@ -6719,7 +6719,7 @@ if ('onhashchange' in window) { <span id="L7342" class="LineNr"> 7342 </span> <span class="subxComment"># convert</span> <span id="L7343" class="LineNr"> 7343 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L7344" class="LineNr"> 7344 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L7345" class="Folded"> 7345 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7345" class="Folded"> 7345 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7351" class="LineNr"> 7351 </span> <span class="subxComment"># check output</span> <span id="L7352" class="LineNr"> 7352 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L7324'>test-convert-get-on-local-variable</a>/0"</span>) <span id="L7353" class="LineNr"> 7353 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-get-on-local-variable/1"</span>) @@ -6769,7 +6769,7 @@ if ('onhashchange' in window) { <span id="L7397" class="LineNr"> 7397 </span> <span class="subxComment"># convert</span> <span id="L7398" class="LineNr"> 7398 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L7399" class="LineNr"> 7399 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L7400" class="Folded"> 7400 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7400" class="Folded"> 7400 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7406" class="LineNr"> 7406 </span> <span class="subxComment"># check output</span> <span id="L7407" class="LineNr"> 7407 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L7380'>test-convert-get-on-function-argument</a>/0"</span>) <span id="L7408" class="LineNr"> 7408 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-get-on-function-argument/1"</span>) @@ -6814,7 +6814,7 @@ if ('onhashchange' in window) { <span id="L7447" class="LineNr"> 7447 </span> <span class="subxComment"># convert</span> <span id="L7448" class="LineNr"> 7448 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L7449" class="LineNr"> 7449 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L7450" class="Folded"> 7450 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7450" class="Folded"> 7450 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7456" class="LineNr"> 7456 </span> <span class="subxComment"># check output</span> <span id="L7457" class="LineNr"> 7457 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L7430'>test-convert-get-on-function-argument-with-known-type</a>/0"</span>) <span id="L7458" class="LineNr"> 7458 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-get-on-function-argument-with-known-type/1"</span>) @@ -6867,7 +6867,7 @@ if ('onhashchange' in window) { <span id="L7505" class="LineNr"> 7505 </span> 89/<- %edx 4/r32/esp <span id="L7506" class="LineNr"> 7506 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7507" class="LineNr"> 7507 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7508" class="Folded"> 7508 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7508" class="Folded"> 7508 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7514" class="LineNr"> 7514 </span> <span class="subxComment"># check output</span> <span id="L7515" class="LineNr"> 7515 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L7480'>test-add-with-too-many-inouts</a>: output should be empty"</span>) <span id="L7516" class="LineNr"> 7516 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt add: too many inouts; most primitives support at most two arguments, across inouts and outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L7480'>test-add-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -6907,7 +6907,7 @@ if ('onhashchange' in window) { <span id="L7550" class="LineNr"> 7550 </span> 89/<- %edx 4/r32/esp <span id="L7551" class="LineNr"> 7551 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7552" class="LineNr"> 7552 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7553" class="Folded"> 7553 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7553" class="Folded"> 7553 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7559" class="LineNr"> 7559 </span> <span class="subxComment"># check output</span> <span id="L7560" class="LineNr"> 7560 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L7525'>test-add-with-too-many-inouts-2</a>: output should be empty"</span>) <span id="L7561" class="LineNr"> 7561 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt add-to: too many inouts; most primitives support at most two arguments, across inouts and outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L7525'>test-add-with-too-many-inouts-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -6949,7 +6949,7 @@ if ('onhashchange' in window) { <span id="L7597" class="LineNr"> 7597 </span> 89/<- %edx 4/r32/esp <span id="L7598" class="LineNr"> 7598 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7599" class="LineNr"> 7599 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7600" class="Folded"> 7600 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7600" class="Folded"> 7600 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7606" class="LineNr"> 7606 </span> <span class="subxComment"># check output</span> <span id="L7607" class="LineNr"> 7607 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L7570'>test-add-with-too-many-outputs</a>: output should be empty"</span>) <span id="L7608" class="LineNr"> 7608 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt add: too many outputs; most primitives support at most one output"</span> <span class="Constant">"F - <a href='mu.subx.html#L7570'>test-add-with-too-many-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -6989,7 +6989,7 @@ if ('onhashchange' in window) { <span id="L7642" class="LineNr"> 7642 </span> 89/<- %edx 4/r32/esp <span id="L7643" class="LineNr"> 7643 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7644" class="LineNr"> 7644 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7645" class="Folded"> 7645 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7645" class="Folded"> 7645 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7651" class="LineNr"> 7651 </span> <span class="subxComment"># check output</span> <span id="L7652" class="LineNr"> 7652 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L7617'>test-add-with-non-number</a>: output should be empty"</span>) <span id="L7653" class="LineNr"> 7653 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt add: 'b' must be a non-addr non-offset scalar"</span> <span class="Constant">"F - <a href='mu.subx.html#L7617'>test-add-with-non-number</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7051,7 +7051,7 @@ if ('onhashchange' in window) { <span id="L7709" class="LineNr"> 7709 </span> 89/<- %edx 4/r32/esp <span id="L7710" class="LineNr"> 7710 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7711" class="LineNr"> 7711 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7712" class="Folded"> 7712 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7712" class="Folded"> 7712 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7718" class="LineNr"> 7718 </span> <span class="subxComment"># check output</span> <span id="L7719" class="LineNr"> 7719 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L7685'>test-copy-with-no-inout</a>: output should be empty"</span>) <span id="L7720" class="LineNr"> 7720 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy' expects an inout"</span> <span class="Constant">"F - <a href='mu.subx.html#L7685'>test-copy-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7090,7 +7090,7 @@ if ('onhashchange' in window) { <span id="L7753" class="LineNr"> 7753 </span> 89/<- %edx 4/r32/esp <span id="L7754" class="LineNr"> 7754 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7755" class="LineNr"> 7755 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7756" class="Folded"> 7756 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7756" class="Folded"> 7756 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7762" class="LineNr"> 7762 </span> <span class="subxComment"># check output</span> <span id="L7763" class="LineNr"> 7763 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L7729'>test-copy-with-multiple-inouts</a>: output should be empty"</span>) <span id="L7764" class="LineNr"> 7764 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy' must have just one inout"</span> <span class="Constant">"F - <a href='mu.subx.html#L7729'>test-copy-with-multiple-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7129,7 +7129,7 @@ if ('onhashchange' in window) { <span id="L7797" class="LineNr"> 7797 </span> 89/<- %edx 4/r32/esp <span id="L7798" class="LineNr"> 7798 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7799" class="LineNr"> 7799 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7800" class="Folded"> 7800 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7800" class="Folded"> 7800 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7806" class="LineNr"> 7806 </span> <span class="subxComment"># check output</span> <span id="L7807" class="LineNr"> 7807 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L7773'>test-copy-with-no-output</a>: output should be empty"</span>) <span id="L7808" class="LineNr"> 7808 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy' expects an output"</span> <span class="Constant">"F - <a href='mu.subx.html#L7773'>test-copy-with-no-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7170,7 +7170,7 @@ if ('onhashchange' in window) { <span id="L7843" class="LineNr"> 7843 </span> 89/<- %edx 4/r32/esp <span id="L7844" class="LineNr"> 7844 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7845" class="LineNr"> 7845 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7846" class="Folded"> 7846 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7846" class="Folded"> 7846 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7852" class="LineNr"> 7852 </span> <span class="subxComment"># check output</span> <span id="L7853" class="LineNr"> 7853 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L7817'>test-copy-with-multiple-outputs</a>: output should be empty"</span>) <span id="L7854" class="LineNr"> 7854 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy' must have just one output"</span> <span class="Constant">"F - <a href='mu.subx.html#L7817'>test-copy-with-multiple-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7210,7 +7210,7 @@ if ('onhashchange' in window) { <span id="L7888" class="LineNr"> 7888 </span> 89/<- %edx 4/r32/esp <span id="L7889" class="LineNr"> 7889 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7890" class="LineNr"> 7890 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7891" class="Folded"> 7891 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7891" class="Folded"> 7891 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7897" class="LineNr"> 7897 </span> <span class="subxComment"># check output</span> <span id="L7898" class="LineNr"> 7898 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L7863'>test-copy-invalid-value-to-address</a>: output should be empty"</span>) <span id="L7899" class="LineNr"> 7899 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy: 'y' must be a non-addr non-offset scalar"</span> <span class="Constant">"F - <a href='mu.subx.html#L7863'>test-copy-invalid-value-to-address</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7272,7 +7272,7 @@ if ('onhashchange' in window) { <span id="L7955" class="LineNr"> 7955 </span> 89/<- %edx 4/r32/esp <span id="L7956" class="LineNr"> 7956 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L7957" class="LineNr"> 7957 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L7958" class="Folded"> 7958 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7958" class="Folded"> 7958 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7964" class="LineNr"> 7964 </span> <span class="subxComment"># check output</span> <span id="L7965" class="LineNr"> 7965 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L7863'>test-copy-invalid-value-to-address</a>: output should be empty"</span>) <span id="L7966" class="LineNr"> 7966 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy: 'y' must be a non-addr non-offset scalar"</span> <span class="Constant">"F - <a href='mu.subx.html#L7863'>test-copy-invalid-value-to-address</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7300,7 +7300,7 @@ if ('onhashchange' in window) { <span id="L7988" class="LineNr"> 7988 </span> <span class="subxComment"># convert</span> <span id="L7989" class="LineNr"> 7989 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L7990" class="LineNr"> 7990 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L7991" class="Folded"> 7991 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L7991" class="Folded"> 7991 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L7997" class="LineNr"> 7997 </span> <span class="subxComment"># no errors</span> <span id="L7998" class="LineNr"> 7998 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L7999" class="LineNr"> 7999 </span> 89/<- %esp 5/r32/ebp @@ -7335,7 +7335,7 @@ if ('onhashchange' in window) { <span id="L8028" class="LineNr"> 8028 </span> 89/<- %edx 4/r32/esp <span id="L8029" class="LineNr"> 8029 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8030" class="LineNr"> 8030 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8031" class="Folded"> 8031 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8031" class="Folded"> 8031 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8037" class="LineNr"> 8037 </span> <span class="subxComment"># check output</span> <span id="L8038" class="LineNr"> 8038 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8003'>test-copy-non-literal-to-byte</a>: output should be empty"</span>) <span id="L8039" class="LineNr"> 8039 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy: cannot copy non-literal to 'y' of type byte; use copy-byte"</span> <span class="Constant">"F - <a href='mu.subx.html#L8003'>test-copy-non-literal-to-byte</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7397,7 +7397,7 @@ if ('onhashchange' in window) { <span id="L8095" class="LineNr"> 8095 </span> 89/<- %edx 4/r32/esp <span id="L8096" class="LineNr"> 8096 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8097" class="LineNr"> 8097 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8098" class="Folded"> 8098 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8098" class="Folded"> 8098 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8104" class="LineNr"> 8104 </span> <span class="subxComment"># check output</span> <span id="L8105" class="LineNr"> 8105 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8070'>test-copy-to-non-register</a>: output should be empty"</span>) <span id="L8106" class="LineNr"> 8106 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy: output 'x' not in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L8070'>test-copy-to-non-register</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7437,7 +7437,7 @@ if ('onhashchange' in window) { <span id="L8140" class="LineNr"> 8140 </span> 89/<- %edx 4/r32/esp <span id="L8141" class="LineNr"> 8141 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8142" class="LineNr"> 8142 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8143" class="Folded"> 8143 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8143" class="Folded"> 8143 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8149" class="LineNr"> 8149 </span> <span class="subxComment"># check output</span> <span id="L8150" class="LineNr"> 8150 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8115'>test-copy-from-non-scalar-inout</a>: output should be empty"</span>) <span id="L8151" class="LineNr"> 8151 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy: 'x' is too large to fit in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L8115'>test-copy-from-non-scalar-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7476,7 +7476,7 @@ if ('onhashchange' in window) { <span id="L8184" class="LineNr"> 8184 </span> 89/<- %edx 4/r32/esp <span id="L8185" class="LineNr"> 8185 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8186" class="LineNr"> 8186 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8187" class="Folded"> 8187 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8187" class="Folded"> 8187 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8193" class="LineNr"> 8193 </span> <span class="subxComment"># check output</span> <span id="L8194" class="LineNr"> 8194 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8160'>test-copy-to-with-no-inout</a>: output should be empty"</span>) <span id="L8195" class="LineNr"> 8195 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-to' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L8160'>test-copy-to-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7516,7 +7516,7 @@ if ('onhashchange' in window) { <span id="L8229" class="LineNr"> 8229 </span> 89/<- %edx 4/r32/esp <span id="L8230" class="LineNr"> 8230 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8231" class="LineNr"> 8231 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8232" class="Folded"> 8232 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8232" class="Folded"> 8232 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8238" class="LineNr"> 8238 </span> <span class="subxComment"># check output</span> <span id="L8239" class="LineNr"> 8239 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8204'>test-copy-to-with-no-source</a>: output should be empty"</span>) <span id="L8240" class="LineNr"> 8240 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-to' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L8204'>test-copy-to-with-no-source</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7556,7 +7556,7 @@ if ('onhashchange' in window) { <span id="L8274" class="LineNr"> 8274 </span> 89/<- %edx 4/r32/esp <span id="L8275" class="LineNr"> 8275 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8276" class="LineNr"> 8276 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8277" class="Folded"> 8277 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8277" class="Folded"> 8277 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8283" class="LineNr"> 8283 </span> <span class="subxComment"># check output</span> <span id="L8284" class="LineNr"> 8284 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8249'>test-copy-to-with-no-register</a>: output should be empty"</span>) <span id="L8285" class="LineNr"> 8285 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-to: source (second inout) is in memory"</span> <span class="Constant">"F - <a href='mu.subx.html#L8249'>test-copy-to-with-no-register</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7596,7 +7596,7 @@ if ('onhashchange' in window) { <span id="L8319" class="LineNr"> 8319 </span> 89/<- %edx 4/r32/esp <span id="L8320" class="LineNr"> 8320 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8321" class="LineNr"> 8321 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8322" class="Folded"> 8322 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8322" class="Folded"> 8322 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8328" class="LineNr"> 8328 </span> <span class="subxComment"># check output</span> <span id="L8329" class="LineNr"> 8329 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8294'>test-copy-to-with-too-many-inouts</a>: output should be empty"</span>) <span id="L8330" class="LineNr"> 8330 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-to' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L8294'>test-copy-to-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7637,7 +7637,7 @@ if ('onhashchange' in window) { <span id="L8365" class="LineNr"> 8365 </span> 89/<- %edx 4/r32/esp <span id="L8366" class="LineNr"> 8366 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8367" class="LineNr"> 8367 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8368" class="Folded"> 8368 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8368" class="Folded"> 8368 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8374" class="LineNr"> 8374 </span> <span class="subxComment"># check output</span> <span id="L8375" class="LineNr"> 8375 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8339'>test-copy-to-with-output</a>: output should be empty"</span>) <span id="L8376" class="LineNr"> 8376 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-to' must not have any outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L8339'>test-copy-to-with-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7678,7 +7678,7 @@ if ('onhashchange' in window) { <span id="L8411" class="LineNr"> 8411 </span> 89/<- %edx 4/r32/esp <span id="L8412" class="LineNr"> 8412 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8413" class="LineNr"> 8413 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8414" class="Folded"> 8414 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8414" class="Folded"> 8414 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8420" class="LineNr"> 8420 </span> <span class="subxComment"># check output</span> <span id="L8421" class="LineNr"> 8421 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8385'>test-copy-to-invalid-value-to-address</a>: output should be empty"</span>) <span id="L8422" class="LineNr"> 8422 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-to: 'y' must be a non-addr non-offset scalar"</span> <span class="Constant">"F - <a href='mu.subx.html#L8385'>test-copy-to-invalid-value-to-address</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7742,7 +7742,7 @@ if ('onhashchange' in window) { <span id="L8480" class="LineNr"> 8480 </span> 89/<- %edx 4/r32/esp <span id="L8481" class="LineNr"> 8481 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8482" class="LineNr"> 8482 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8483" class="Folded"> 8483 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8483" class="Folded"> 8483 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8489" class="LineNr"> 8489 </span> <span class="subxComment"># check output</span> <span id="L8490" class="LineNr"> 8490 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8454'>test-copy-to-invalid-value-to-offset</a>: output should be empty"</span>) <span id="L8491" class="LineNr"> 8491 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-to: 'y' must be a non-addr non-offset scalar"</span> <span class="Constant">"F - <a href='mu.subx.html#L8454'>test-copy-to-invalid-value-to-offset</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7806,7 +7806,7 @@ if ('onhashchange' in window) { <span id="L8549" class="LineNr"> 8549 </span> 89/<- %edx 4/r32/esp <span id="L8550" class="LineNr"> 8550 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8551" class="LineNr"> 8551 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8552" class="Folded"> 8552 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8552" class="Folded"> 8552 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8558" class="LineNr"> 8558 </span> <span class="subxComment"># check output</span> <span id="L8559" class="LineNr"> 8559 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8523'>test-copy-to-non-literal-to-byte</a>: output should be empty"</span>) <span id="L8560" class="LineNr"> 8560 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-to: cannot copy non-literal to type byte; use copy-byte-to"</span> <span class="Constant">"F - <a href='mu.subx.html#L8523'>test-copy-to-non-literal-to-byte</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7870,7 +7870,7 @@ if ('onhashchange' in window) { <span id="L8618" class="LineNr"> 8618 </span> 89/<- %edx 4/r32/esp <span id="L8619" class="LineNr"> 8619 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8620" class="LineNr"> 8620 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8621" class="Folded"> 8621 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8621" class="Folded"> 8621 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8627" class="LineNr"> 8627 </span> <span class="subxComment"># check output</span> <span id="L8628" class="LineNr"> 8628 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8592'>test-copy-to-from-non-scalar-inout</a>: output should be empty"</span>) <span id="L8629" class="LineNr"> 8629 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-to: 'x' is too large to copy"</span> <span class="Constant">"F - <a href='mu.subx.html#L8592'>test-copy-to-from-non-scalar-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7909,7 +7909,7 @@ if ('onhashchange' in window) { <span id="L8662" class="LineNr"> 8662 </span> 89/<- %edx 4/r32/esp <span id="L8663" class="LineNr"> 8663 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8664" class="LineNr"> 8664 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8665" class="Folded"> 8665 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8665" class="Folded"> 8665 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8671" class="LineNr"> 8671 </span> <span class="subxComment"># check output</span> <span id="L8672" class="LineNr"> 8672 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8638'>test-copy-byte-with-no-inout</a>: output should be empty"</span>) <span id="L8673" class="LineNr"> 8673 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-byte' expects an inout"</span> <span class="Constant">"F - <a href='mu.subx.html#L8638'>test-copy-byte-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7948,7 +7948,7 @@ if ('onhashchange' in window) { <span id="L8706" class="LineNr"> 8706 </span> 89/<- %edx 4/r32/esp <span id="L8707" class="LineNr"> 8707 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8708" class="LineNr"> 8708 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8709" class="Folded"> 8709 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8709" class="Folded"> 8709 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8715" class="LineNr"> 8715 </span> <span class="subxComment"># check output</span> <span id="L8716" class="LineNr"> 8716 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8682'>test-copy-byte-with-multiple-inouts</a>: output should be empty"</span>) <span id="L8717" class="LineNr"> 8717 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-byte' must have just one inout"</span> <span class="Constant">"F - <a href='mu.subx.html#L8682'>test-copy-byte-with-multiple-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -7987,7 +7987,7 @@ if ('onhashchange' in window) { <span id="L8750" class="LineNr"> 8750 </span> 89/<- %edx 4/r32/esp <span id="L8751" class="LineNr"> 8751 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8752" class="LineNr"> 8752 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8753" class="Folded"> 8753 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8753" class="Folded"> 8753 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8759" class="LineNr"> 8759 </span> <span class="subxComment"># check output</span> <span id="L8760" class="LineNr"> 8760 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8726'>test-copy-byte-with-no-output</a>: output should be empty"</span>) <span id="L8761" class="LineNr"> 8761 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-byte' expects an output"</span> <span class="Constant">"F - <a href='mu.subx.html#L8726'>test-copy-byte-with-no-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8028,7 +8028,7 @@ if ('onhashchange' in window) { <span id="L8796" class="LineNr"> 8796 </span> 89/<- %edx 4/r32/esp <span id="L8797" class="LineNr"> 8797 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8798" class="LineNr"> 8798 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8799" class="Folded"> 8799 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8799" class="Folded"> 8799 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8805" class="LineNr"> 8805 </span> <span class="subxComment"># check output</span> <span id="L8806" class="LineNr"> 8806 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8770'>test-copy-byte-with-multiple-outputs</a>: output should be empty"</span>) <span id="L8807" class="LineNr"> 8807 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-byte' must have just one output"</span> <span class="Constant">"F - <a href='mu.subx.html#L8770'>test-copy-byte-with-multiple-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8057,7 +8057,7 @@ if ('onhashchange' in window) { <span id="L8830" class="LineNr"> 8830 </span> <span class="subxComment"># convert</span> <span id="L8831" class="LineNr"> 8831 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L8832" class="LineNr"> 8832 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L8833" class="Folded"> 8833 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8833" class="Folded"> 8833 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8839" class="LineNr"> 8839 </span> <span class="subxComment"># not bothering checking output</span> <span id="L8840" class="LineNr"> 8840 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8816'>test-copy-byte-deref-address</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) <span id="L8841" class="LineNr"> 8841 </span> <span class="subxS1Comment"># . epilogue</span> @@ -8092,7 +8092,7 @@ if ('onhashchange' in window) { <span id="L8870" class="LineNr"> 8870 </span> 89/<- %edx 4/r32/esp <span id="L8871" class="LineNr"> 8871 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8872" class="LineNr"> 8872 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8873" class="Folded"> 8873 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8873" class="Folded"> 8873 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8879" class="LineNr"> 8879 </span> <span class="subxComment"># check output</span> <span id="L8880" class="LineNr"> 8880 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8845'>test-copy-byte-with-invalid-output-type</a>: output should be empty"</span>) <span id="L8881" class="LineNr"> 8881 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-byte' must <a href='108write.subx.html#L24'>write</a> to output of type byte"</span> <span class="Constant">"F - <a href='mu.subx.html#L8845'>test-copy-byte-with-invalid-output-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8132,7 +8132,7 @@ if ('onhashchange' in window) { <span id="L8915" class="LineNr"> 8915 </span> 89/<- %edx 4/r32/esp <span id="L8916" class="LineNr"> 8916 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8917" class="LineNr"> 8917 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8918" class="Folded"> 8918 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8918" class="Folded"> 8918 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8924" class="LineNr"> 8924 </span> <span class="subxComment"># check output</span> <span id="L8925" class="LineNr"> 8925 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8890'>test-copy-byte-from-non-scalar-inout</a>: output should be empty"</span>) <span id="L8926" class="LineNr"> 8926 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-byte: 'x' is too large to fit in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L8890'>test-copy-byte-from-non-scalar-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8171,7 +8171,7 @@ if ('onhashchange' in window) { <span id="L8959" class="LineNr"> 8959 </span> 89/<- %edx 4/r32/esp <span id="L8960" class="LineNr"> 8960 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L8961" class="LineNr"> 8961 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L8962" class="Folded"> 8962 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L8962" class="Folded"> 8962 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L8968" class="LineNr"> 8968 </span> <span class="subxComment"># check output</span> <span id="L8969" class="LineNr"> 8969 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8935'>test-copy-byte-to-with-no-inout</a>: output should be empty"</span>) <span id="L8970" class="LineNr"> 8970 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-byte-to' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L8935'>test-copy-byte-to-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8211,7 +8211,7 @@ if ('onhashchange' in window) { <span id="L9004" class="LineNr"> 9004 </span> 89/<- %edx 4/r32/esp <span id="L9005" class="LineNr"> 9005 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9006" class="LineNr"> 9006 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9007" class="Folded"> 9007 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9007" class="Folded"> 9007 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9013" class="LineNr"> 9013 </span> <span class="subxComment"># check output</span> <span id="L9014" class="LineNr"> 9014 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L8979'>test-copy-byte-to-with-no-source</a>: output should be empty"</span>) <span id="L9015" class="LineNr"> 9015 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-byte-to' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L8979'>test-copy-byte-to-with-no-source</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8251,7 +8251,7 @@ if ('onhashchange' in window) { <span id="L9049" class="LineNr"> 9049 </span> 89/<- %edx 4/r32/esp <span id="L9050" class="LineNr"> 9050 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9051" class="LineNr"> 9051 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9052" class="Folded"> 9052 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9052" class="Folded"> 9052 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9058" class="LineNr"> 9058 </span> <span class="subxComment"># check output</span> <span id="L9059" class="LineNr"> 9059 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9024'>test-copy-byte-to-with-too-many-inouts</a>: output should be empty"</span>) <span id="L9060" class="LineNr"> 9060 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-byte-to' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L9024'>test-copy-byte-to-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8292,7 +8292,7 @@ if ('onhashchange' in window) { <span id="L9095" class="LineNr"> 9095 </span> 89/<- %edx 4/r32/esp <span id="L9096" class="LineNr"> 9096 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9097" class="LineNr"> 9097 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9098" class="Folded"> 9098 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9098" class="Folded"> 9098 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9104" class="LineNr"> 9104 </span> <span class="subxComment"># check output</span> <span id="L9105" class="LineNr"> 9105 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9069'>test-copy-byte-to-with-output</a>: output should be empty"</span>) <span id="L9106" class="LineNr"> 9106 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-byte-to' must not have any outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L9069'>test-copy-byte-to-with-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8333,7 +8333,7 @@ if ('onhashchange' in window) { <span id="L9141" class="LineNr"> 9141 </span> 89/<- %edx 4/r32/esp <span id="L9142" class="LineNr"> 9142 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9143" class="LineNr"> 9143 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9144" class="Folded"> 9144 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9144" class="Folded"> 9144 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9150" class="LineNr"> 9150 </span> <span class="subxComment"># check output</span> <span id="L9151" class="LineNr"> 9151 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9115'>test-copy-byte-to-with-invalid-output-type</a>: output should be empty"</span>) <span id="L9152" class="LineNr"> 9152 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-byte-to: 'y' must be a byte"</span> <span class="Constant">"F - <a href='mu.subx.html#L9115'>test-copy-byte-to-with-invalid-output-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8373,7 +8373,7 @@ if ('onhashchange' in window) { <span id="L9186" class="LineNr"> 9186 </span> 89/<- %edx 4/r32/esp <span id="L9187" class="LineNr"> 9187 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9188" class="LineNr"> 9188 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9189" class="Folded"> 9189 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9189" class="Folded"> 9189 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9195" class="LineNr"> 9195 </span> <span class="subxComment"># check output</span> <span id="L9196" class="LineNr"> 9196 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9161'>test-copy-byte-to-with-literal-inout</a>: output should be empty"</span>) <span id="L9197" class="LineNr"> 9197 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-byte-to: source (second inout) must be in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L9161'>test-copy-byte-to-with-literal-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8437,7 +8437,7 @@ if ('onhashchange' in window) { <span id="L9255" class="LineNr"> 9255 </span> 89/<- %edx 4/r32/esp <span id="L9256" class="LineNr"> 9256 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9257" class="LineNr"> 9257 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9258" class="Folded"> 9258 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9258" class="Folded"> 9258 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9264" class="LineNr"> 9264 </span> <span class="subxComment"># check output</span> <span id="L9265" class="LineNr"> 9265 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9229'>test-copy-byte-to-from-non-scalar-inout</a>: output should be empty"</span>) <span id="L9266" class="LineNr"> 9266 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-byte-to: 'x' is too large to copy"</span> <span class="Constant">"F - <a href='mu.subx.html#L9229'>test-copy-byte-to-from-non-scalar-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8477,7 +8477,7 @@ if ('onhashchange' in window) { <span id="L9300" class="LineNr"> 9300 </span> 89/<- %edx 4/r32/esp <span id="L9301" class="LineNr"> 9301 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9302" class="LineNr"> 9302 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9303" class="Folded"> 9303 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9303" class="Folded"> 9303 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9309" class="LineNr"> 9309 </span> <span class="subxComment"># check output</span> <span id="L9310" class="LineNr"> 9310 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9275'>test-compare-with-no-inout</a>: output should be empty"</span>) <span id="L9311" class="LineNr"> 9311 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'compare' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L9275'>test-compare-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8517,7 +8517,7 @@ if ('onhashchange' in window) { <span id="L9345" class="LineNr"> 9345 </span> 89/<- %edx 4/r32/esp <span id="L9346" class="LineNr"> 9346 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9347" class="LineNr"> 9347 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9348" class="Folded"> 9348 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9348" class="Folded"> 9348 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9354" class="LineNr"> 9354 </span> <span class="subxComment"># check output</span> <span id="L9355" class="LineNr"> 9355 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9320'>test-compare-with-just-one-inout</a>: output should be empty"</span>) <span id="L9356" class="LineNr"> 9356 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'compare' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L9320'>test-compare-with-just-one-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8557,7 +8557,7 @@ if ('onhashchange' in window) { <span id="L9390" class="LineNr"> 9390 </span> 89/<- %edx 4/r32/esp <span id="L9391" class="LineNr"> 9391 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9392" class="LineNr"> 9392 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9393" class="Folded"> 9393 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9393" class="Folded"> 9393 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9399" class="LineNr"> 9399 </span> <span class="subxComment"># check output</span> <span id="L9400" class="LineNr"> 9400 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9365'>test-compare-with-too-many-inouts</a>: output should be empty"</span>) <span id="L9401" class="LineNr"> 9401 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'compare' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L9365'>test-compare-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8598,7 +8598,7 @@ if ('onhashchange' in window) { <span id="L9436" class="LineNr"> 9436 </span> 89/<- %edx 4/r32/esp <span id="L9437" class="LineNr"> 9437 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9438" class="LineNr"> 9438 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9439" class="Folded"> 9439 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9439" class="Folded"> 9439 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9445" class="LineNr"> 9445 </span> <span class="subxComment"># check output</span> <span id="L9446" class="LineNr"> 9446 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9410'>test-compare-with-output</a>: output should be empty"</span>) <span id="L9447" class="LineNr"> 9447 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'compare' must not have any outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L9410'>test-compare-with-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8639,7 +8639,7 @@ if ('onhashchange' in window) { <span id="L9482" class="LineNr"> 9482 </span> 89/<- %edx 4/r32/esp <span id="L9483" class="LineNr"> 9483 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9484" class="LineNr"> 9484 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9485" class="Folded"> 9485 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9485" class="Folded"> 9485 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9491" class="LineNr"> 9491 </span> <span class="subxComment"># check output</span> <span id="L9492" class="LineNr"> 9492 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9456'>test-compare-invalid-value-to-address</a>: output should be empty"</span>) <span id="L9493" class="LineNr"> 9493 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compare: 'y' must be a non-addr non-offset scalar"</span> <span class="Constant">"F - <a href='mu.subx.html#L9456'>test-compare-invalid-value-to-address</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8725,7 +8725,7 @@ if ('onhashchange' in window) { <span id="L9573" class="LineNr"> 9573 </span> 89/<- %edx 4/r32/esp <span id="L9574" class="LineNr"> 9574 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9575" class="LineNr"> 9575 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9576" class="Folded"> 9576 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9576" class="Folded"> 9576 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9582" class="LineNr"> 9582 </span> <span class="subxComment"># check output</span> <span id="L9583" class="LineNr"> 9583 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9548'>test-compare-two-vars-in-memory</a>: output should be empty"</span>) <span id="L9584" class="LineNr"> 9584 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compare: both inouts are in memory"</span> <span class="Constant">"F - <a href='mu.subx.html#L9548'>test-compare-two-vars-in-memory</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8766,7 +8766,7 @@ if ('onhashchange' in window) { <span id="L9619" class="LineNr"> 9619 </span> 89/<- %edx 4/r32/esp <span id="L9620" class="LineNr"> 9620 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9621" class="LineNr"> 9621 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9622" class="Folded"> 9622 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9622" class="Folded"> 9622 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9628" class="LineNr"> 9628 </span> <span class="subxComment"># check output</span> <span id="L9629" class="LineNr"> 9629 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9593'>test-compare-non-scalar</a>: output should be empty"</span>) <span id="L9630" class="LineNr"> 9630 </span><span class="CommentedCode">#? (check-next-stream-line-equal _test-error-stream "fn foo: stmt compare: 'x' is too large to compare" "F - test-compare-non-scalar: error message")</span> @@ -8807,7 +8807,7 @@ if ('onhashchange' in window) { <span id="L9665" class="LineNr"> 9665 </span> 89/<- %edx 4/r32/esp <span id="L9666" class="LineNr"> 9666 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9667" class="LineNr"> 9667 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9668" class="Folded"> 9668 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9668" class="Folded"> 9668 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9674" class="LineNr"> 9674 </span> <span class="subxComment"># check output</span> <span id="L9675" class="LineNr"> 9675 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9640'>test-compare-with-string-literal</a>: output should be empty"</span>) <span id="L9676" class="LineNr"> 9676 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compare: string literal \"</span>abc\<span class="Constant">" is not supported; use the <a href='105string-equal.subx.html#L15'>string-equal?</a> function"</span> <span class="Constant">"F - <a href='mu.subx.html#L9640'>test-compare-with-string-literal</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8846,7 +8846,7 @@ if ('onhashchange' in window) { <span id="L9709" class="LineNr"> 9709 </span> 89/<- %edx 4/r32/esp <span id="L9710" class="LineNr"> 9710 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9711" class="LineNr"> 9711 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9712" class="Folded"> 9712 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9712" class="Folded"> 9712 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9718" class="LineNr"> 9718 </span> <span class="subxComment"># check output</span> <span id="L9719" class="LineNr"> 9719 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9685'>test-address-with-no-inout</a>: output should be empty"</span>) <span id="L9720" class="LineNr"> 9720 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'address' expects an inout"</span> <span class="Constant">"F - <a href='mu.subx.html#L9685'>test-address-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8885,7 +8885,7 @@ if ('onhashchange' in window) { <span id="L9753" class="LineNr"> 9753 </span> 89/<- %edx 4/r32/esp <span id="L9754" class="LineNr"> 9754 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9755" class="LineNr"> 9755 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9756" class="Folded"> 9756 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9756" class="Folded"> 9756 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9762" class="LineNr"> 9762 </span> <span class="subxComment"># check output</span> <span id="L9763" class="LineNr"> 9763 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9729'>test-address-with-multiple-inouts</a>: output should be empty"</span>) <span id="L9764" class="LineNr"> 9764 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'address' must have just one inout"</span> <span class="Constant">"F - <a href='mu.subx.html#L9729'>test-address-with-multiple-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8924,7 +8924,7 @@ if ('onhashchange' in window) { <span id="L9797" class="LineNr"> 9797 </span> 89/<- %edx 4/r32/esp <span id="L9798" class="LineNr"> 9798 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9799" class="LineNr"> 9799 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9800" class="Folded"> 9800 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9800" class="Folded"> 9800 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9806" class="LineNr"> 9806 </span> <span class="subxComment"># check output</span> <span id="L9807" class="LineNr"> 9807 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9773'>test-address-with-no-output</a>: output should be empty"</span>) <span id="L9808" class="LineNr"> 9808 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'address' expects an output"</span> <span class="Constant">"F - <a href='mu.subx.html#L9773'>test-address-with-no-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -8965,7 +8965,7 @@ if ('onhashchange' in window) { <span id="L9843" class="LineNr"> 9843 </span> 89/<- %edx 4/r32/esp <span id="L9844" class="LineNr"> 9844 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9845" class="LineNr"> 9845 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9846" class="Folded"> 9846 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9846" class="Folded"> 9846 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9852" class="LineNr"> 9852 </span> <span class="subxComment"># check output</span> <span id="L9853" class="LineNr"> 9853 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9817'>test-address-with-multiple-outputs</a>: output should be empty"</span>) <span id="L9854" class="LineNr"> 9854 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'address' must have just one output"</span> <span class="Constant">"F - <a href='mu.subx.html#L9817'>test-address-with-multiple-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9028,7 +9028,7 @@ if ('onhashchange' in window) { <span id="L9911" class="LineNr"> 9911 </span> 89/<- %edx 4/r32/esp <span id="L9912" class="LineNr"> 9912 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9913" class="LineNr"> 9913 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9914" class="Folded"> 9914 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9914" class="Folded"> 9914 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9920" class="LineNr"> 9920 </span> <span class="subxComment"># check output</span> <span id="L9921" class="LineNr"> 9921 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9886'>test-address-to-non-register</a>: output should be empty"</span>) <span id="L9922" class="LineNr"> 9922 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt address: output 'x' not in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L9886'>test-address-to-non-register</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9068,7 +9068,7 @@ if ('onhashchange' in window) { <span id="L9956" class="LineNr"> 9956 </span> 89/<- %edx 4/r32/esp <span id="L9957" class="LineNr"> 9957 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L9958" class="LineNr"> 9958 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L9959" class="Folded"> 9959 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L9959" class="Folded"> 9959 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L9965" class="LineNr"> 9965 </span> <span class="subxComment"># check output</span> <span id="L9966" class="LineNr"> 9966 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L9931'>test-address-with-wrong-type</a>: output should be empty"</span>) <span id="L9967" class="LineNr"> 9967 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt address: output 'y' cannot hold address of 'x'"</span> <span class="Constant">"F - <a href='mu.subx.html#L9931'>test-address-with-wrong-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9157,7 +9157,7 @@ if ('onhashchange' in window) { <span id="L10050" class="LineNr">10050 </span> 89/<- %edx 4/r32/esp <span id="L10051" class="LineNr">10051 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10052" class="LineNr">10052 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10053" class="Folded">10053 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10053" class="Folded">10053 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10059" class="LineNr">10059 </span> <span class="subxComment"># check output</span> <span id="L10060" class="LineNr">10060 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10022'>test-get-with-wrong-field</a>: output should be empty"</span>) <span id="L10061" class="LineNr">10061 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: type 't' has no member called 'y'"</span> <span class="Constant">"F - <a href='mu.subx.html#L10022'>test-get-with-wrong-field</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9197,7 +9197,7 @@ if ('onhashchange' in window) { <span id="L10095" class="LineNr">10095 </span> 89/<- %edx 4/r32/esp <span id="L10096" class="LineNr">10096 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10097" class="LineNr">10097 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10098" class="Folded">10098 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10098" class="Folded">10098 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10104" class="LineNr">10104 </span> <span class="subxComment"># check output</span> <span id="L10105" class="LineNr">10105 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10070'>test-get-with-wrong-base-type</a>: output should be empty"</span>) <span id="L10106" class="LineNr">10106 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: var 'a' must have a 'type' definition"</span> <span class="Constant">"F - <a href='mu.subx.html#L10070'>test-get-with-wrong-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9240,7 +9240,7 @@ if ('onhashchange' in window) { <span id="L10143" class="LineNr">10143 </span> 89/<- %edx 4/r32/esp <span id="L10144" class="LineNr">10144 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10145" class="LineNr">10145 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10146" class="Folded">10146 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10146" class="Folded">10146 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10152" class="LineNr">10152 </span> <span class="subxComment"># check output</span> <span id="L10153" class="LineNr">10153 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10115'>test-get-with-wrong-base-type-2</a>: output should be empty"</span>) <span id="L10154" class="LineNr">10154 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: var 'a' is an 'addr' type, and so must live in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L10115'>test-get-with-wrong-base-type-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9280,7 +9280,7 @@ if ('onhashchange' in window) { <span id="L10188" class="LineNr">10188 </span> 89/<- %edx 4/r32/esp <span id="L10189" class="LineNr">10189 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10190" class="LineNr">10190 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10191" class="Folded">10191 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10191" class="Folded">10191 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10197" class="LineNr">10197 </span> <span class="subxComment"># check output</span> <span id="L10198" class="LineNr">10198 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10163'>test-get-with-wrong-base-type-3</a>: output should be empty"</span>) <span id="L10199" class="LineNr">10199 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: var 'a' must have a 'type' definition"</span> <span class="Constant">"F - <a href='mu.subx.html#L10163'>test-get-with-wrong-base-type-3</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9324,7 +9324,7 @@ if ('onhashchange' in window) { <span id="L10237" class="LineNr">10237 </span> 89/<- %edx 4/r32/esp <span id="L10238" class="LineNr">10238 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10239" class="LineNr">10239 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10240" class="Folded">10240 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10240" class="Folded">10240 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10246" class="LineNr">10246 </span> <span class="subxComment"># check output</span> <span id="L10247" class="LineNr">10247 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10208'>test-get-with-wrong-offset-type</a>: output should be empty"</span>) <span id="L10248" class="LineNr">10248 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: type 't' has no member called 'b'"</span> <span class="Constant">"F - <a href='mu.subx.html#L10208'>test-get-with-wrong-offset-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9368,7 +9368,7 @@ if ('onhashchange' in window) { <span id="L10286" class="LineNr">10286 </span> 89/<- %edx 4/r32/esp <span id="L10287" class="LineNr">10287 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10288" class="LineNr">10288 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10289" class="Folded">10289 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10289" class="Folded">10289 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10295" class="LineNr">10295 </span> <span class="subxComment"># check output</span> <span id="L10296" class="LineNr">10296 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10257'>test-get-with-wrong-output-type</a>: output should be empty"</span>) <span id="L10297" class="LineNr">10297 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: output 'c' is not in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L10257'>test-get-with-wrong-output-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9411,7 +9411,7 @@ if ('onhashchange' in window) { <span id="L10334" class="LineNr">10334 </span> 89/<- %edx 4/r32/esp <span id="L10335" class="LineNr">10335 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10336" class="LineNr">10336 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10337" class="Folded">10337 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10337" class="Folded">10337 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10343" class="LineNr">10343 </span> <span class="subxComment"># check output</span> <span id="L10344" class="LineNr">10344 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10306'>test-get-with-wrong-output-type-2</a>: output should be empty"</span>) <span id="L10345" class="LineNr">10345 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: output must be an addr"</span> <span class="Constant">"F - <a href='mu.subx.html#L10306'>test-get-with-wrong-output-type-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9454,7 +9454,7 @@ if ('onhashchange' in window) { <span id="L10382" class="LineNr">10382 </span> 89/<- %edx 4/r32/esp <span id="L10383" class="LineNr">10383 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10384" class="LineNr">10384 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10385" class="Folded">10385 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10385" class="Folded">10385 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10391" class="LineNr">10391 </span> <span class="subxComment"># check output</span> <span id="L10392" class="LineNr">10392 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10354'>test-get-with-wrong-output-type-3</a>: output should be empty"</span>) <span id="L10393" class="LineNr">10393 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: output must be an addr"</span> <span class="Constant">"F - <a href='mu.subx.html#L10354'>test-get-with-wrong-output-type-3</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9497,7 +9497,7 @@ if ('onhashchange' in window) { <span id="L10430" class="LineNr">10430 </span> 89/<- %edx 4/r32/esp <span id="L10431" class="LineNr">10431 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10432" class="LineNr">10432 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10433" class="Folded">10433 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10433" class="Folded">10433 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10439" class="LineNr">10439 </span> <span class="subxComment"># check output</span> <span id="L10440" class="LineNr">10440 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10402'>test-get-with-wrong-output-type-4</a>: output should be empty"</span>) <span id="L10441" class="LineNr">10441 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: wrong output type for member 'x' of type 't'"</span> <span class="Constant">"F - <a href='mu.subx.html#L10402'>test-get-with-wrong-output-type-4</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9566,7 +9566,7 @@ if ('onhashchange' in window) { <span id="L10504" class="LineNr">10504 </span> 89/<- %edx 4/r32/esp <span id="L10505" class="LineNr">10505 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10506" class="LineNr">10506 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10507" class="Folded">10507 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10507" class="Folded">10507 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10513" class="LineNr">10513 </span> <span class="subxComment"># check output</span> <span id="L10514" class="LineNr">10514 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10476'>test-get-with-too-few-inouts</a>: output should be empty"</span>) <span id="L10515" class="LineNr">10515 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: too few inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L10476'>test-get-with-too-few-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9609,7 +9609,7 @@ if ('onhashchange' in window) { <span id="L10552" class="LineNr">10552 </span> 89/<- %edx 4/r32/esp <span id="L10553" class="LineNr">10553 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10554" class="LineNr">10554 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10555" class="Folded">10555 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10555" class="Folded">10555 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10561" class="LineNr">10561 </span> <span class="subxComment"># check output</span> <span id="L10562" class="LineNr">10562 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10524'>test-get-with-too-many-inouts</a>: output should be empty"</span>) <span id="L10563" class="LineNr">10563 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: too many inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L10524'>test-get-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9652,7 +9652,7 @@ if ('onhashchange' in window) { <span id="L10600" class="LineNr">10600 </span> 89/<- %edx 4/r32/esp <span id="L10601" class="LineNr">10601 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10602" class="LineNr">10602 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10603" class="Folded">10603 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10603" class="Folded">10603 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10609" class="LineNr">10609 </span> <span class="subxComment"># check output</span> <span id="L10610" class="LineNr">10610 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10572'>test-get-with-no-output</a>: output should be empty"</span>) <span id="L10611" class="LineNr">10611 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: must have an output"</span> <span class="Constant">"F - <a href='mu.subx.html#L10572'>test-get-with-no-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9697,7 +9697,7 @@ if ('onhashchange' in window) { <span id="L10650" class="LineNr">10650 </span> 89/<- %edx 4/r32/esp <span id="L10651" class="LineNr">10651 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L10652" class="LineNr">10652 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L10653" class="Folded">10653 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10653" class="Folded">10653 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10659" class="LineNr">10659 </span> <span class="subxComment"># check output</span> <span id="L10660" class="LineNr">10660 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10620'>test-get-with-too-many-outputs</a>: output should be empty"</span>) <span id="L10661" class="LineNr">10661 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='131table.subx.html#L26'>get</a>: too many outputs (1 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L10620'>test-get-with-too-many-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -9731,7 +9731,7 @@ if ('onhashchange' in window) { <span id="L10689" class="LineNr">10689 </span> <span class="subxComment"># convert</span> <span id="L10690" class="LineNr">10690 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L10691" class="LineNr">10691 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L10692" class="Folded">10692 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10692" class="Folded">10692 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10698" class="LineNr">10698 </span> <span class="subxComment"># check output</span> <span id="L10699" class="LineNr">10699 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L10670'>test-convert-array-of-user-defined-types</a>/0"</span>) <span id="L10700" class="LineNr">10700 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-array-of-user-defined-types/1"</span>) @@ -9782,7 +9782,7 @@ if ('onhashchange' in window) { <span id="L10745" class="LineNr">10745 </span> <span class="subxComment"># convert</span> <span id="L10746" class="LineNr">10746 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L10747" class="LineNr">10747 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L10748" class="Folded">10748 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10748" class="Folded">10748 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10754" class="LineNr">10754 </span> <span class="subxComment"># check output</span> <span id="L10755" class="LineNr">10755 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L10726'>test-convert-length-of-array-of-user-defined-types-to-eax</a>/0"</span>) <span id="L10756" class="LineNr">10756 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-length-of-array-of-user-defined-types-to-eax/1"</span>) @@ -9838,7 +9838,7 @@ if ('onhashchange' in window) { <span id="L10806" class="LineNr">10806 </span> <span class="subxComment"># convert</span> <span id="L10807" class="LineNr">10807 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L10808" class="LineNr">10808 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L10809" class="Folded">10809 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10809" class="Folded">10809 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10815" class="LineNr">10815 </span> <span class="subxComment"># check output</span> <span id="L10816" class="LineNr">10816 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L10787'>test-convert-length-of-array-of-user-defined-types-to-ecx</a>/0"</span>) <span id="L10817" class="LineNr">10817 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-length-of-array-of-user-defined-types-to-ecx/1"</span>) @@ -9899,7 +9899,7 @@ if ('onhashchange' in window) { <span id="L10872" class="LineNr">10872 </span> <span class="subxComment"># convert</span> <span id="L10873" class="LineNr">10873 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L10874" class="LineNr">10874 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L10875" class="Folded">10875 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10875" class="Folded">10875 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10881" class="LineNr">10881 </span> <span class="subxComment"># check output</span> <span id="L10882" class="LineNr">10882 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L10853'>test-convert-length-of-array-of-user-defined-types-to-edx</a>/0"</span>) <span id="L10883" class="LineNr">10883 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-length-of-array-of-user-defined-types-to-edx/1"</span>) @@ -9960,7 +9960,7 @@ if ('onhashchange' in window) { <span id="L10938" class="LineNr">10938 </span> <span class="subxComment"># convert</span> <span id="L10939" class="LineNr">10939 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L10940" class="LineNr">10940 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L10941" class="Folded">10941 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L10941" class="Folded">10941 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L10947" class="LineNr">10947 </span> <span class="subxComment"># check output</span> <span id="L10948" class="LineNr">10948 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L10919'>test-convert-length-of-array-of-user-defined-types</a>/0"</span>) <span id="L10949" class="LineNr">10949 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-length-of-array-of-user-defined-types/1"</span>) @@ -10023,7 +10023,7 @@ if ('onhashchange' in window) { <span id="L11006" class="LineNr">11006 </span> 89/<- %edx 4/r32/esp <span id="L11007" class="LineNr">11007 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11008" class="LineNr">11008 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11009" class="Folded">11009 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11009" class="Folded">11009 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11015" class="LineNr">11015 </span> <span class="subxComment"># check output</span> <span id="L11016" class="LineNr">11016 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L10981'>test-index-with-non-array-atom-base-type</a>: output should be empty"</span>) <span id="L11017" class="LineNr">11017 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: var 'a' is not an array"</span> <span class="Constant">"F - <a href='mu.subx.html#L10981'>test-index-with-non-array-atom-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10063,7 +10063,7 @@ if ('onhashchange' in window) { <span id="L11051" class="LineNr">11051 </span> 89/<- %edx 4/r32/esp <span id="L11052" class="LineNr">11052 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11053" class="LineNr">11053 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11054" class="Folded">11054 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11054" class="Folded">11054 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11060" class="LineNr">11060 </span> <span class="subxComment"># check output</span> <span id="L11061" class="LineNr">11061 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11026'>test-index-with-non-array-compound-base-type</a>: output should be empty"</span>) <span id="L11062" class="LineNr">11062 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: var 'a' is not an array"</span> <span class="Constant">"F - <a href='mu.subx.html#L11026'>test-index-with-non-array-compound-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10103,7 +10103,7 @@ if ('onhashchange' in window) { <span id="L11096" class="LineNr">11096 </span> 89/<- %edx 4/r32/esp <span id="L11097" class="LineNr">11097 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11098" class="LineNr">11098 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11099" class="Folded">11099 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11099" class="Folded">11099 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11105" class="LineNr">11105 </span> <span class="subxComment"># check output</span> <span id="L11106" class="LineNr">11106 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11071'>test-index-with-non-array-compound-base-type-2</a>: output should be empty"</span>) <span id="L11107" class="LineNr">11107 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: var 'a' is not an array"</span> <span class="Constant">"F - <a href='mu.subx.html#L11071'>test-index-with-non-array-compound-base-type-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10143,7 +10143,7 @@ if ('onhashchange' in window) { <span id="L11141" class="LineNr">11141 </span> 89/<- %edx 4/r32/esp <span id="L11142" class="LineNr">11142 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11143" class="LineNr">11143 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11144" class="Folded">11144 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11144" class="Folded">11144 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11150" class="LineNr">11150 </span> <span class="subxComment"># check output</span> <span id="L11151" class="LineNr">11151 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11116'>test-index-with-array-atom-base-type</a>: output should be empty"</span>) <span id="L11152" class="LineNr">11152 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: array 'a' must specify the type of its elements"</span> <span class="Constant">"F - <a href='mu.subx.html#L11116'>test-index-with-array-atom-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10183,7 +10183,7 @@ if ('onhashchange' in window) { <span id="L11186" class="LineNr">11186 </span> 89/<- %edx 4/r32/esp <span id="L11187" class="LineNr">11187 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11188" class="LineNr">11188 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11189" class="Folded">11189 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11189" class="Folded">11189 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11195" class="LineNr">11195 </span> <span class="subxComment"># check output</span> <span id="L11196" class="LineNr">11196 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11161'>test-index-with-addr-base-on-stack</a>: output should be empty"</span>) <span id="L11197" class="LineNr">11197 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: var 'a' is an addr to an array, and so must live in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L11161'>test-index-with-addr-base-on-stack</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10224,7 +10224,7 @@ if ('onhashchange' in window) { <span id="L11232" class="LineNr">11232 </span> 89/<- %edx 4/r32/esp <span id="L11233" class="LineNr">11233 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11234" class="LineNr">11234 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11235" class="Folded">11235 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11235" class="Folded">11235 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11241" class="LineNr">11241 </span> <span class="subxComment"># check output</span> <span id="L11242" class="LineNr">11242 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11206'>test-index-with-wrong-index-type</a>: output should be empty"</span>) <span id="L11243" class="LineNr">11243 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: second argument 'b' must be an int or offset"</span> <span class="Constant">"F - <a href='mu.subx.html#L11206'>test-index-with-wrong-index-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10265,7 +10265,7 @@ if ('onhashchange' in window) { <span id="L11278" class="LineNr">11278 </span> 89/<- %edx 4/r32/esp <span id="L11279" class="LineNr">11279 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11280" class="LineNr">11280 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11281" class="Folded">11281 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11281" class="Folded">11281 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11287" class="LineNr">11287 </span> <span class="subxComment"># check output</span> <span id="L11288" class="LineNr">11288 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11252'>test-index-with-offset-atom-index-type</a>: output should be empty"</span>) <span id="L11289" class="LineNr">11289 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: offset 'b' must specify the type of array elements"</span> <span class="Constant">"F - <a href='mu.subx.html#L11252'>test-index-with-offset-atom-index-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10306,7 +10306,7 @@ if ('onhashchange' in window) { <span id="L11324" class="LineNr">11324 </span> 89/<- %edx 4/r32/esp <span id="L11325" class="LineNr">11325 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11326" class="LineNr">11326 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11327" class="Folded">11327 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11327" class="Folded">11327 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11333" class="LineNr">11333 </span> <span class="subxComment"># check output</span> <span id="L11334" class="LineNr">11334 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11298'>test-index-with-offset-on-stack</a>: output should be empty"</span>) <span id="L11335" class="LineNr">11335 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: second argument 'b' must be in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L11298'>test-index-with-offset-on-stack</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10352,7 +10352,7 @@ if ('onhashchange' in window) { <span id="L11375" class="LineNr">11375 </span> 89/<- %edx 4/r32/esp <span id="L11376" class="LineNr">11376 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11377" class="LineNr">11377 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11378" class="Folded">11378 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11378" class="Folded">11378 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11384" class="LineNr">11384 </span> <span class="subxComment"># check output</span> <span id="L11385" class="LineNr">11385 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11344'>test-index-needs-offset-type</a>: output should be empty"</span>) <span id="L11386" class="LineNr">11386 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: cannot take an int for array 'a'; create an offset instead. See mu.md for details."</span> <span class="Constant">"F - <a href='mu.subx.html#L11344'>test-index-needs-offset-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10392,7 +10392,7 @@ if ('onhashchange' in window) { <span id="L11420" class="LineNr">11420 </span> 89/<- %edx 4/r32/esp <span id="L11421" class="LineNr">11421 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11422" class="LineNr">11422 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11423" class="Folded">11423 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11423" class="Folded">11423 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11429" class="LineNr">11429 </span> <span class="subxComment"># check output</span> <span id="L11430" class="LineNr">11430 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11395'>test-index-with-output-not-address</a>: output should be empty"</span>) <span id="L11431" class="LineNr">11431 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: output 'o' must be an addr"</span> <span class="Constant">"F - <a href='mu.subx.html#L11395'>test-index-with-output-not-address</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10432,7 +10432,7 @@ if ('onhashchange' in window) { <span id="L11465" class="LineNr">11465 </span> 89/<- %edx 4/r32/esp <span id="L11466" class="LineNr">11466 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11467" class="LineNr">11467 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11468" class="Folded">11468 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11468" class="Folded">11468 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11474" class="LineNr">11474 </span> <span class="subxComment"># check output</span> <span id="L11475" class="LineNr">11475 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11440'>test-index-with-output-not-address-2</a>: output should be empty"</span>) <span id="L11476" class="LineNr">11476 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: output 'o' must be an addr"</span> <span class="Constant">"F - <a href='mu.subx.html#L11440'>test-index-with-output-not-address-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10472,7 +10472,7 @@ if ('onhashchange' in window) { <span id="L11510" class="LineNr">11510 </span> 89/<- %edx 4/r32/esp <span id="L11511" class="LineNr">11511 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11512" class="LineNr">11512 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11513" class="Folded">11513 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11513" class="Folded">11513 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11519" class="LineNr">11519 </span> <span class="subxComment"># check output</span> <span id="L11520" class="LineNr">11520 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11485'>test-index-with-wrong-output-type</a>: output should be empty"</span>) <span id="L11521" class="LineNr">11521 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: output 'o' does not have the right type"</span> <span class="Constant">"F - <a href='mu.subx.html#L11485'>test-index-with-wrong-output-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10512,7 +10512,7 @@ if ('onhashchange' in window) { <span id="L11555" class="LineNr">11555 </span> 89/<- %edx 4/r32/esp <span id="L11556" class="LineNr">11556 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11557" class="LineNr">11557 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11558" class="Folded">11558 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11558" class="Folded">11558 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11564" class="LineNr">11564 </span> <span class="subxComment"># check output</span> <span id="L11565" class="LineNr">11565 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11530'>test-index-with-wrong-output-compound-type</a>: output should be empty"</span>) <span id="L11566" class="LineNr">11566 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: output 'o' does not have the right type"</span> <span class="Constant">"F - <a href='mu.subx.html#L11530'>test-index-with-wrong-output-compound-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10551,7 +10551,7 @@ if ('onhashchange' in window) { <span id="L11599" class="LineNr">11599 </span> 89/<- %edx 4/r32/esp <span id="L11600" class="LineNr">11600 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11601" class="LineNr">11601 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11602" class="Folded">11602 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11602" class="Folded">11602 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11608" class="LineNr">11608 </span> <span class="subxComment"># check output</span> <span id="L11609" class="LineNr">11609 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11575'>test-index-with-no-inouts</a>: output should be empty"</span>) <span id="L11610" class="LineNr">11610 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: too few inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L11575'>test-index-with-no-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10591,7 +10591,7 @@ if ('onhashchange' in window) { <span id="L11644" class="LineNr">11644 </span> 89/<- %edx 4/r32/esp <span id="L11645" class="LineNr">11645 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11646" class="LineNr">11646 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11647" class="Folded">11647 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11647" class="Folded">11647 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11653" class="LineNr">11653 </span> <span class="subxComment"># check output</span> <span id="L11654" class="LineNr">11654 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11619'>test-index-with-too-few-inouts</a>: output should be empty"</span>) <span id="L11655" class="LineNr">11655 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: too few inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L11619'>test-index-with-too-few-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10631,7 +10631,7 @@ if ('onhashchange' in window) { <span id="L11689" class="LineNr">11689 </span> 89/<- %edx 4/r32/esp <span id="L11690" class="LineNr">11690 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11691" class="LineNr">11691 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11692" class="Folded">11692 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11692" class="Folded">11692 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11698" class="LineNr">11698 </span> <span class="subxComment"># check output</span> <span id="L11699" class="LineNr">11699 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11664'>test-index-with-too-many-inouts</a>: output should be empty"</span>) <span id="L11700" class="LineNr">11700 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: too many inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L11664'>test-index-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10671,7 +10671,7 @@ if ('onhashchange' in window) { <span id="L11734" class="LineNr">11734 </span> 89/<- %edx 4/r32/esp <span id="L11735" class="LineNr">11735 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11736" class="LineNr">11736 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11737" class="Folded">11737 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11737" class="Folded">11737 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11743" class="LineNr">11743 </span> <span class="subxComment"># check output</span> <span id="L11744" class="LineNr">11744 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11709'>test-index-with-no-output</a>: output should be empty"</span>) <span id="L11745" class="LineNr">11745 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: must have an output"</span> <span class="Constant">"F - <a href='mu.subx.html#L11709'>test-index-with-no-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10713,7 +10713,7 @@ if ('onhashchange' in window) { <span id="L11781" class="LineNr">11781 </span> 89/<- %edx 4/r32/esp <span id="L11782" class="LineNr">11782 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11783" class="LineNr">11783 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11784" class="Folded">11784 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11784" class="Folded">11784 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11790" class="LineNr">11790 </span> <span class="subxComment"># check output</span> <span id="L11791" class="LineNr">11791 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11754'>test-index-with-too-many-outputs</a>: output should be empty"</span>) <span id="L11792" class="LineNr">11792 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt index: too many outputs (1 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L11754'>test-index-with-too-many-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10753,7 +10753,7 @@ if ('onhashchange' in window) { <span id="L11826" class="LineNr">11826 </span> 89/<- %edx 4/r32/esp <span id="L11827" class="LineNr">11827 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11828" class="LineNr">11828 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11829" class="Folded">11829 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11829" class="Folded">11829 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11835" class="LineNr">11835 </span> <span class="subxComment"># check output</span> <span id="L11836" class="LineNr">11836 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11801'>test-compute-offset-with-non-array-atom-base-type</a>: output should be empty"</span>) <span id="L11837" class="LineNr">11837 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: var 'a' is not an array"</span> <span class="Constant">"F - <a href='mu.subx.html#L11801'>test-compute-offset-with-non-array-atom-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10793,7 +10793,7 @@ if ('onhashchange' in window) { <span id="L11871" class="LineNr">11871 </span> 89/<- %edx 4/r32/esp <span id="L11872" class="LineNr">11872 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11873" class="LineNr">11873 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11874" class="Folded">11874 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11874" class="Folded">11874 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11880" class="LineNr">11880 </span> <span class="subxComment"># check output</span> <span id="L11881" class="LineNr">11881 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11846'>test-compute-offset-with-non-array-compound-base-type</a>: output should be empty"</span>) <span id="L11882" class="LineNr">11882 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: var 'a' is not an array"</span> <span class="Constant">"F - <a href='mu.subx.html#L11846'>test-compute-offset-with-non-array-compound-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10833,7 +10833,7 @@ if ('onhashchange' in window) { <span id="L11916" class="LineNr">11916 </span> 89/<- %edx 4/r32/esp <span id="L11917" class="LineNr">11917 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11918" class="LineNr">11918 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11919" class="Folded">11919 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11919" class="Folded">11919 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11925" class="LineNr">11925 </span> <span class="subxComment"># check output</span> <span id="L11926" class="LineNr">11926 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11891'>test-compute-offset-with-non-array-compound-base-type-2</a>: output should be empty"</span>) <span id="L11927" class="LineNr">11927 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: var 'a' is not an array"</span> <span class="Constant">"F - <a href='mu.subx.html#L11891'>test-compute-offset-with-non-array-compound-base-type-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10873,7 +10873,7 @@ if ('onhashchange' in window) { <span id="L11961" class="LineNr">11961 </span> 89/<- %edx 4/r32/esp <span id="L11962" class="LineNr">11962 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L11963" class="LineNr">11963 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L11964" class="Folded">11964 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L11964" class="Folded">11964 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L11970" class="LineNr">11970 </span> <span class="subxComment"># check output</span> <span id="L11971" class="LineNr">11971 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11936'>test-compute-offset-with-array-atom-base-type</a>: output should be empty"</span>) <span id="L11972" class="LineNr">11972 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: array 'a' must specify the type of its elements"</span> <span class="Constant">"F - <a href='mu.subx.html#L11936'>test-compute-offset-with-array-atom-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10914,7 +10914,7 @@ if ('onhashchange' in window) { <span id="L12007" class="LineNr">12007 </span> 89/<- %edx 4/r32/esp <span id="L12008" class="LineNr">12008 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12009" class="LineNr">12009 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12010" class="Folded">12010 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12010" class="Folded">12010 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12016" class="LineNr">12016 </span> <span class="subxComment"># check output</span> <span id="L12017" class="LineNr">12017 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L11981'>test-compute-offset-with-wrong-index-type</a>: output should be empty"</span>) <span id="L12018" class="LineNr">12018 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: second argument 'b' must be an int"</span> <span class="Constant">"F - <a href='mu.subx.html#L11981'>test-compute-offset-with-wrong-index-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10954,7 +10954,7 @@ if ('onhashchange' in window) { <span id="L12052" class="LineNr">12052 </span> 89/<- %edx 4/r32/esp <span id="L12053" class="LineNr">12053 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12054" class="LineNr">12054 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12055" class="Folded">12055 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12055" class="Folded">12055 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12061" class="LineNr">12061 </span> <span class="subxComment"># check output</span> <span id="L12062" class="LineNr">12062 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12027'>test-compute-offset-with-output-not-offset</a>: output should be empty"</span>) <span id="L12063" class="LineNr">12063 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: output 'o' must be an offset"</span> <span class="Constant">"F - <a href='mu.subx.html#L12027'>test-compute-offset-with-output-not-offset</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -10994,7 +10994,7 @@ if ('onhashchange' in window) { <span id="L12097" class="LineNr">12097 </span> 89/<- %edx 4/r32/esp <span id="L12098" class="LineNr">12098 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12099" class="LineNr">12099 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12100" class="Folded">12100 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12100" class="Folded">12100 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12106" class="LineNr">12106 </span> <span class="subxComment"># check output</span> <span id="L12107" class="LineNr">12107 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12072'>test-compute-offset-with-output-not-address-2</a>: output should be empty"</span>) <span id="L12108" class="LineNr">12108 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: output 'o' must be an offset"</span> <span class="Constant">"F - <a href='mu.subx.html#L12072'>test-compute-offset-with-output-not-address-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11034,7 +11034,7 @@ if ('onhashchange' in window) { <span id="L12142" class="LineNr">12142 </span> 89/<- %edx 4/r32/esp <span id="L12143" class="LineNr">12143 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12144" class="LineNr">12144 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12145" class="Folded">12145 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12145" class="Folded">12145 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12151" class="LineNr">12151 </span> <span class="subxComment"># check output</span> <span id="L12152" class="LineNr">12152 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12117'>test-compute-offset-with-wrong-output-type</a>: output should be empty"</span>) <span id="L12153" class="LineNr">12153 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: output 'o' does not have the right type"</span> <span class="Constant">"F - <a href='mu.subx.html#L12117'>test-compute-offset-with-wrong-output-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11074,7 +11074,7 @@ if ('onhashchange' in window) { <span id="L12187" class="LineNr">12187 </span> 89/<- %edx 4/r32/esp <span id="L12188" class="LineNr">12188 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12189" class="LineNr">12189 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12190" class="Folded">12190 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12190" class="Folded">12190 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12196" class="LineNr">12196 </span> <span class="subxComment"># check output</span> <span id="L12197" class="LineNr">12197 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12162'>test-compute-offset-with-wrong-output-compound-type</a>: output should be empty"</span>) <span id="L12198" class="LineNr">12198 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: output 'o' does not have the right type"</span> <span class="Constant">"F - <a href='mu.subx.html#L12162'>test-compute-offset-with-wrong-output-compound-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11113,7 +11113,7 @@ if ('onhashchange' in window) { <span id="L12231" class="LineNr">12231 </span> 89/<- %edx 4/r32/esp <span id="L12232" class="LineNr">12232 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12233" class="LineNr">12233 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12234" class="Folded">12234 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12234" class="Folded">12234 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12240" class="LineNr">12240 </span> <span class="subxComment"># check output</span> <span id="L12241" class="LineNr">12241 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12207'>test-compute-offset-with-no-inouts</a>: output should be empty"</span>) <span id="L12242" class="LineNr">12242 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: too few inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L12207'>test-compute-offset-with-no-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11153,7 +11153,7 @@ if ('onhashchange' in window) { <span id="L12276" class="LineNr">12276 </span> 89/<- %edx 4/r32/esp <span id="L12277" class="LineNr">12277 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12278" class="LineNr">12278 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12279" class="Folded">12279 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12279" class="Folded">12279 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12285" class="LineNr">12285 </span> <span class="subxComment"># check output</span> <span id="L12286" class="LineNr">12286 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12251'>test-compute-offset-with-too-few-inouts</a>: output should be empty"</span>) <span id="L12287" class="LineNr">12287 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: too few inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L12251'>test-compute-offset-with-too-few-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11193,7 +11193,7 @@ if ('onhashchange' in window) { <span id="L12321" class="LineNr">12321 </span> 89/<- %edx 4/r32/esp <span id="L12322" class="LineNr">12322 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12323" class="LineNr">12323 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12324" class="Folded">12324 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12324" class="Folded">12324 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12330" class="LineNr">12330 </span> <span class="subxComment"># check output</span> <span id="L12331" class="LineNr">12331 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12296'>test-compute-offset-with-too-many-inouts</a>: output should be empty"</span>) <span id="L12332" class="LineNr">12332 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: too many inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L12296'>test-compute-offset-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11233,7 +11233,7 @@ if ('onhashchange' in window) { <span id="L12366" class="LineNr">12366 </span> 89/<- %edx 4/r32/esp <span id="L12367" class="LineNr">12367 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12368" class="LineNr">12368 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12369" class="Folded">12369 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12369" class="Folded">12369 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12375" class="LineNr">12375 </span> <span class="subxComment"># check output</span> <span id="L12376" class="LineNr">12376 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12341'>test-compute-offset-with-no-output</a>: output should be empty"</span>) <span id="L12377" class="LineNr">12377 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: must have an output"</span> <span class="Constant">"F - <a href='mu.subx.html#L12341'>test-compute-offset-with-no-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11275,7 +11275,7 @@ if ('onhashchange' in window) { <span id="L12413" class="LineNr">12413 </span> 89/<- %edx 4/r32/esp <span id="L12414" class="LineNr">12414 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12415" class="LineNr">12415 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12416" class="Folded">12416 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12416" class="Folded">12416 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12422" class="LineNr">12422 </span> <span class="subxComment"># check output</span> <span id="L12423" class="LineNr">12423 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12386'>test-compute-offset-with-too-many-outputs</a>: output should be empty"</span>) <span id="L12424" class="LineNr">12424 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt compute-offset: too many outputs (1 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L12386'>test-compute-offset-with-too-many-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11309,7 +11309,7 @@ if ('onhashchange' in window) { <span id="L12452" class="LineNr">12452 </span> 89/<- %edx 4/r32/esp <span id="L12453" class="LineNr">12453 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12454" class="LineNr">12454 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12455" class="Folded">12455 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12455" class="Folded">12455 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12461" class="LineNr">12461 </span> <span class="subxComment"># check output</span> <span id="L12462" class="LineNr">12462 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L12433'>test-convert-read-from-stream</a>/0"</span>) <span id="L12463" class="LineNr">12463 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-read-from-stream/1"</span>) @@ -11357,7 +11357,7 @@ if ('onhashchange' in window) { <span id="L12505" class="LineNr">12505 </span> 89/<- %edx 4/r32/esp <span id="L12506" class="LineNr">12506 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12507" class="LineNr">12507 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12508" class="Folded">12508 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12508" class="Folded">12508 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12514" class="LineNr">12514 </span> <span class="subxComment"># check output</span> <span id="L12515" class="LineNr">12515 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L12486'>test-convert-read-from-stream-with-correct-payload-size</a>/0"</span>) <span id="L12516" class="LineNr">12516 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-read-from-stream-with-correct-payload-size/1"</span>) @@ -11411,7 +11411,7 @@ if ('onhashchange' in window) { <span id="L12564" class="LineNr">12564 </span> 89/<- %edx 4/r32/esp <span id="L12565" class="LineNr">12565 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12566" class="LineNr">12566 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12567" class="Folded">12567 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12567" class="Folded">12567 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12573" class="LineNr">12573 </span> <span class="subxComment"># check output</span> <span id="L12574" class="LineNr">12574 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12539'>test-read-from-stream-with-non-stream-atom-base-type</a>: output should be empty"</span>) <span id="L12575" class="LineNr">12575 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L107'>read-from-stream</a>: var 'a' must be an addr to a stream"</span> <span class="Constant">"F - <a href='mu.subx.html#L12539'>test-read-from-stream-with-non-stream-atom-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11451,7 +11451,7 @@ if ('onhashchange' in window) { <span id="L12609" class="LineNr">12609 </span> 89/<- %edx 4/r32/esp <span id="L12610" class="LineNr">12610 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12611" class="LineNr">12611 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12612" class="Folded">12612 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12612" class="Folded">12612 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12618" class="LineNr">12618 </span> <span class="subxComment"># check output</span> <span id="L12619" class="LineNr">12619 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12584'>test-read-from-stream-with-non-stream-compound-base-type</a>: output should be empty"</span>) <span id="L12620" class="LineNr">12620 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L107'>read-from-stream</a>: var 'a' must be an addr to a stream"</span> <span class="Constant">"F - <a href='mu.subx.html#L12584'>test-read-from-stream-with-non-stream-compound-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11491,7 +11491,7 @@ if ('onhashchange' in window) { <span id="L12654" class="LineNr">12654 </span> 89/<- %edx 4/r32/esp <span id="L12655" class="LineNr">12655 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12656" class="LineNr">12656 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12657" class="Folded">12657 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12657" class="Folded">12657 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12663" class="LineNr">12663 </span> <span class="subxComment"># check output</span> <span id="L12664" class="LineNr">12664 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12629'>test-read-from-stream-with-non-stream-compound-base-type-2</a>: output should be empty"</span>) <span id="L12665" class="LineNr">12665 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L107'>read-from-stream</a>: var 'a' must be an addr to a stream"</span> <span class="Constant">"F - <a href='mu.subx.html#L12629'>test-read-from-stream-with-non-stream-compound-base-type-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11531,7 +11531,7 @@ if ('onhashchange' in window) { <span id="L12699" class="LineNr">12699 </span> 89/<- %edx 4/r32/esp <span id="L12700" class="LineNr">12700 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12701" class="LineNr">12701 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12702" class="Folded">12702 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12702" class="Folded">12702 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12708" class="LineNr">12708 </span> <span class="subxComment"># check output</span> <span id="L12709" class="LineNr">12709 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12674'>test-read-from-stream-with-stream-atom-base-type</a>: output should be empty"</span>) <span id="L12710" class="LineNr">12710 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L107'>read-from-stream</a>: var 'a' must be an addr to a stream"</span> <span class="Constant">"F - <a href='mu.subx.html#L12674'>test-read-from-stream-with-stream-atom-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11572,7 +11572,7 @@ if ('onhashchange' in window) { <span id="L12745" class="LineNr">12745 </span> 89/<- %edx 4/r32/esp <span id="L12746" class="LineNr">12746 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12747" class="LineNr">12747 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12748" class="Folded">12748 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12748" class="Folded">12748 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12754" class="LineNr">12754 </span> <span class="subxComment"># check output</span> <span id="L12755" class="LineNr">12755 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12719'>test-read-from-stream-with-wrong-index-type</a>: output should be empty"</span>) <span id="L12756" class="LineNr">12756 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L107'>read-from-stream</a>: target 'b' must be an addr"</span> <span class="Constant">"F - <a href='mu.subx.html#L12719'>test-read-from-stream-with-wrong-index-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11611,7 +11611,7 @@ if ('onhashchange' in window) { <span id="L12789" class="LineNr">12789 </span> 89/<- %edx 4/r32/esp <span id="L12790" class="LineNr">12790 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12791" class="LineNr">12791 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12792" class="Folded">12792 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12792" class="Folded">12792 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12798" class="LineNr">12798 </span> <span class="subxComment"># check output</span> <span id="L12799" class="LineNr">12799 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12765'>test-read-from-stream-with-no-inouts</a>: output should be empty"</span>) <span id="L12800" class="LineNr">12800 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L107'>read-from-stream</a>: too few inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L12765'>test-read-from-stream-with-no-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11651,7 +11651,7 @@ if ('onhashchange' in window) { <span id="L12834" class="LineNr">12834 </span> 89/<- %edx 4/r32/esp <span id="L12835" class="LineNr">12835 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12836" class="LineNr">12836 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12837" class="Folded">12837 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12837" class="Folded">12837 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12843" class="LineNr">12843 </span> <span class="subxComment"># check output</span> <span id="L12844" class="LineNr">12844 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12809'>test-read-from-stream-with-too-few-inouts</a>: output should be empty"</span>) <span id="L12845" class="LineNr">12845 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L107'>read-from-stream</a>: too few inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L12809'>test-read-from-stream-with-too-few-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11692,7 +11692,7 @@ if ('onhashchange' in window) { <span id="L12880" class="LineNr">12880 </span> 89/<- %edx 4/r32/esp <span id="L12881" class="LineNr">12881 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12882" class="LineNr">12882 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12883" class="Folded">12883 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12883" class="Folded">12883 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12889" class="LineNr">12889 </span> <span class="subxComment"># check output</span> <span id="L12890" class="LineNr">12890 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12854'>test-read-from-stream-with-too-many-inouts</a>: output should be empty"</span>) <span id="L12891" class="LineNr">12891 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L107'>read-from-stream</a>: too many inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L12854'>test-read-from-stream-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11733,7 +11733,7 @@ if ('onhashchange' in window) { <span id="L12926" class="LineNr">12926 </span> 89/<- %edx 4/r32/esp <span id="L12927" class="LineNr">12927 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12928" class="LineNr">12928 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12929" class="Folded">12929 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12929" class="Folded">12929 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12935" class="LineNr">12935 </span> <span class="subxComment"># check output</span> <span id="L12936" class="LineNr">12936 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L12900'>test-read-from-stream-with-output</a>: output should be empty"</span>) <span id="L12937" class="LineNr">12937 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L107'>read-from-stream</a>: unexpected output"</span> <span class="Constant">"F - <a href='mu.subx.html#L12900'>test-read-from-stream-with-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11767,7 +11767,7 @@ if ('onhashchange' in window) { <span id="L12965" class="LineNr">12965 </span> 89/<- %edx 4/r32/esp <span id="L12966" class="LineNr">12966 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L12967" class="LineNr">12967 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L12968" class="Folded">12968 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L12968" class="Folded">12968 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L12974" class="LineNr">12974 </span> <span class="subxComment"># check output</span> <span id="L12975" class="LineNr">12975 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L12946'>test-convert-write-to-stream</a>/0"</span>) <span id="L12976" class="LineNr">12976 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-write-to-stream/1"</span>) @@ -11815,7 +11815,7 @@ if ('onhashchange' in window) { <span id="L13018" class="LineNr">13018 </span> 89/<- %edx 4/r32/esp <span id="L13019" class="LineNr">13019 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13020" class="LineNr">13020 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13021" class="Folded">13021 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13021" class="Folded">13021 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13027" class="LineNr">13027 </span> <span class="subxComment"># check output</span> <span id="L13028" class="LineNr">13028 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L12999'>test-convert-write-to-stream-with-correct-payload-size</a>/0"</span>) <span id="L13029" class="LineNr">13029 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-write-to-stream-with-correct-payload-size/1"</span>) @@ -11869,7 +11869,7 @@ if ('onhashchange' in window) { <span id="L13077" class="LineNr">13077 </span> 89/<- %edx 4/r32/esp <span id="L13078" class="LineNr">13078 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13079" class="LineNr">13079 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13080" class="Folded">13080 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13080" class="Folded">13080 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13086" class="LineNr">13086 </span> <span class="subxComment"># check output</span> <span id="L13087" class="LineNr">13087 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13052'>test-write-to-stream-with-non-stream-atom-base-type</a>: output should be empty"</span>) <span id="L13088" class="LineNr">13088 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L54'>write-to-stream</a>: var 'a' must be an addr to a stream"</span> <span class="Constant">"F - <a href='mu.subx.html#L13052'>test-write-to-stream-with-non-stream-atom-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11909,7 +11909,7 @@ if ('onhashchange' in window) { <span id="L13122" class="LineNr">13122 </span> 89/<- %edx 4/r32/esp <span id="L13123" class="LineNr">13123 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13124" class="LineNr">13124 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13125" class="Folded">13125 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13125" class="Folded">13125 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13131" class="LineNr">13131 </span> <span class="subxComment"># check output</span> <span id="L13132" class="LineNr">13132 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13097'>test-write-to-stream-with-non-stream-compound-base-type</a>: output should be empty"</span>) <span id="L13133" class="LineNr">13133 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L54'>write-to-stream</a>: var 'a' must be an addr to a stream"</span> <span class="Constant">"F - <a href='mu.subx.html#L13097'>test-write-to-stream-with-non-stream-compound-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11949,7 +11949,7 @@ if ('onhashchange' in window) { <span id="L13167" class="LineNr">13167 </span> 89/<- %edx 4/r32/esp <span id="L13168" class="LineNr">13168 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13169" class="LineNr">13169 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13170" class="Folded">13170 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13170" class="Folded">13170 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13176" class="LineNr">13176 </span> <span class="subxComment"># check output</span> <span id="L13177" class="LineNr">13177 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13142'>test-write-to-stream-with-non-stream-compound-base-type-2</a>: output should be empty"</span>) <span id="L13178" class="LineNr">13178 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L54'>write-to-stream</a>: var 'a' must be an addr to a stream"</span> <span class="Constant">"F - <a href='mu.subx.html#L13142'>test-write-to-stream-with-non-stream-compound-base-type-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -11989,7 +11989,7 @@ if ('onhashchange' in window) { <span id="L13212" class="LineNr">13212 </span> 89/<- %edx 4/r32/esp <span id="L13213" class="LineNr">13213 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13214" class="LineNr">13214 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13215" class="Folded">13215 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13215" class="Folded">13215 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13221" class="LineNr">13221 </span> <span class="subxComment"># check output</span> <span id="L13222" class="LineNr">13222 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13187'>test-write-to-stream-with-stream-atom-base-type</a>: output should be empty"</span>) <span id="L13223" class="LineNr">13223 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L54'>write-to-stream</a>: var 'a' must be an addr to a stream"</span> <span class="Constant">"F - <a href='mu.subx.html#L13187'>test-write-to-stream-with-stream-atom-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12030,7 +12030,7 @@ if ('onhashchange' in window) { <span id="L13258" class="LineNr">13258 </span> 89/<- %edx 4/r32/esp <span id="L13259" class="LineNr">13259 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13260" class="LineNr">13260 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13261" class="Folded">13261 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13261" class="Folded">13261 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13267" class="LineNr">13267 </span> <span class="subxComment"># check output</span> <span id="L13268" class="LineNr">13268 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13232'>test-write-to-stream-with-wrong-index-type</a>: output should be empty"</span>) <span id="L13269" class="LineNr">13269 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L54'>write-to-stream</a>: target 'b' must be an addr"</span> <span class="Constant">"F - <a href='mu.subx.html#L13232'>test-write-to-stream-with-wrong-index-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12069,7 +12069,7 @@ if ('onhashchange' in window) { <span id="L13302" class="LineNr">13302 </span> 89/<- %edx 4/r32/esp <span id="L13303" class="LineNr">13303 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13304" class="LineNr">13304 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13305" class="Folded">13305 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13305" class="Folded">13305 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13311" class="LineNr">13311 </span> <span class="subxComment"># check output</span> <span id="L13312" class="LineNr">13312 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13278'>test-write-to-stream-with-no-inouts</a>: output should be empty"</span>) <span id="L13313" class="LineNr">13313 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L54'>write-to-stream</a>: too few inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L13278'>test-write-to-stream-with-no-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12109,7 +12109,7 @@ if ('onhashchange' in window) { <span id="L13347" class="LineNr">13347 </span> 89/<- %edx 4/r32/esp <span id="L13348" class="LineNr">13348 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13349" class="LineNr">13349 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13350" class="Folded">13350 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13350" class="Folded">13350 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13356" class="LineNr">13356 </span> <span class="subxComment"># check output</span> <span id="L13357" class="LineNr">13357 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13322'>test-write-to-stream-with-too-few-inouts</a>: output should be empty"</span>) <span id="L13358" class="LineNr">13358 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L54'>write-to-stream</a>: too few inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L13322'>test-write-to-stream-with-too-few-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12150,7 +12150,7 @@ if ('onhashchange' in window) { <span id="L13393" class="LineNr">13393 </span> 89/<- %edx 4/r32/esp <span id="L13394" class="LineNr">13394 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13395" class="LineNr">13395 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13396" class="Folded">13396 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13396" class="Folded">13396 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13402" class="LineNr">13402 </span> <span class="subxComment"># check output</span> <span id="L13403" class="LineNr">13403 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13367'>test-write-to-stream-with-too-many-inouts</a>: output should be empty"</span>) <span id="L13404" class="LineNr">13404 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L54'>write-to-stream</a>: too many inouts (2 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L13367'>test-write-to-stream-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12191,7 +12191,7 @@ if ('onhashchange' in window) { <span id="L13439" class="LineNr">13439 </span> 89/<- %edx 4/r32/esp <span id="L13440" class="LineNr">13440 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13441" class="LineNr">13441 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13442" class="Folded">13442 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13442" class="Folded">13442 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13448" class="LineNr">13448 </span> <span class="subxComment"># check output</span> <span id="L13449" class="LineNr">13449 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13413'>test-write-to-stream-with-output</a>: output should be empty"</span>) <span id="L13450" class="LineNr">13450 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='309stream.subx.html#L54'>write-to-stream</a>: unexpected output"</span> <span class="Constant">"F - <a href='mu.subx.html#L13413'>test-write-to-stream-with-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12231,7 +12231,7 @@ if ('onhashchange' in window) { <span id="L13484" class="LineNr">13484 </span> 89/<- %edx 4/r32/esp <span id="L13485" class="LineNr">13485 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13486" class="LineNr">13486 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13487" class="Folded">13487 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13487" class="Folded">13487 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13493" class="LineNr">13493 </span> <span class="subxComment"># check output</span> <span id="L13494" class="LineNr">13494 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13459'>test-length-with-non-array-atom-base-type</a>: output should be empty"</span>) <span id="L13495" class="LineNr">13495 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: var 'a' is not an array"</span> <span class="Constant">"F - <a href='mu.subx.html#L13459'>test-length-with-non-array-atom-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12271,7 +12271,7 @@ if ('onhashchange' in window) { <span id="L13529" class="LineNr">13529 </span> 89/<- %edx 4/r32/esp <span id="L13530" class="LineNr">13530 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13531" class="LineNr">13531 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13532" class="Folded">13532 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13532" class="Folded">13532 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13538" class="LineNr">13538 </span> <span class="subxComment"># check output</span> <span id="L13539" class="LineNr">13539 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13504'>test-length-with-non-array-compound-base-type</a>: output should be empty"</span>) <span id="L13540" class="LineNr">13540 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: var 'a' is not an array"</span> <span class="Constant">"F - <a href='mu.subx.html#L13504'>test-length-with-non-array-compound-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12311,7 +12311,7 @@ if ('onhashchange' in window) { <span id="L13574" class="LineNr">13574 </span> 89/<- %edx 4/r32/esp <span id="L13575" class="LineNr">13575 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13576" class="LineNr">13576 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13577" class="Folded">13577 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13577" class="Folded">13577 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13583" class="LineNr">13583 </span> <span class="subxComment"># check output</span> <span id="L13584" class="LineNr">13584 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13549'>test-length-with-non-array-compound-base-type-2</a>: output should be empty"</span>) <span id="L13585" class="LineNr">13585 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: var 'a' is not an array"</span> <span class="Constant">"F - <a href='mu.subx.html#L13549'>test-length-with-non-array-compound-base-type-2</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12351,7 +12351,7 @@ if ('onhashchange' in window) { <span id="L13619" class="LineNr">13619 </span> 89/<- %edx 4/r32/esp <span id="L13620" class="LineNr">13620 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13621" class="LineNr">13621 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13622" class="Folded">13622 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13622" class="Folded">13622 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13628" class="LineNr">13628 </span> <span class="subxComment"># check output</span> <span id="L13629" class="LineNr">13629 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13594'>test-length-with-array-atom-base-type</a>: output should be empty"</span>) <span id="L13630" class="LineNr">13630 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: array 'a' must specify the type of its elements"</span> <span class="Constant">"F - <a href='mu.subx.html#L13594'>test-length-with-array-atom-base-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12391,7 +12391,7 @@ if ('onhashchange' in window) { <span id="L13664" class="LineNr">13664 </span> 89/<- %edx 4/r32/esp <span id="L13665" class="LineNr">13665 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13666" class="LineNr">13666 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13667" class="Folded">13667 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13667" class="Folded">13667 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13673" class="LineNr">13673 </span> <span class="subxComment"># check output</span> <span id="L13674" class="LineNr">13674 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13639'>test-length-with-addr-base-on-stack</a>: output should be empty"</span>) <span id="L13675" class="LineNr">13675 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: var 'a' is an addr to an array, and so must live in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L13639'>test-length-with-addr-base-on-stack</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12431,7 +12431,7 @@ if ('onhashchange' in window) { <span id="L13709" class="LineNr">13709 </span> 89/<- %edx 4/r32/esp <span id="L13710" class="LineNr">13710 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13711" class="LineNr">13711 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13712" class="Folded">13712 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13712" class="Folded">13712 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13718" class="LineNr">13718 </span> <span class="subxComment"># check output</span> <span id="L13719" class="LineNr">13719 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13684'>test-length-with-wrong-output-type</a>: output should be empty"</span>) <span id="L13720" class="LineNr">13720 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: output 'o' does not have the right type"</span> <span class="Constant">"F - <a href='mu.subx.html#L13684'>test-length-with-wrong-output-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12471,7 +12471,7 @@ if ('onhashchange' in window) { <span id="L13754" class="LineNr">13754 </span> 89/<- %edx 4/r32/esp <span id="L13755" class="LineNr">13755 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13756" class="LineNr">13756 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13757" class="Folded">13757 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13757" class="Folded">13757 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13763" class="LineNr">13763 </span> <span class="subxComment"># check output</span> <span id="L13764" class="LineNr">13764 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13729'>test-length-with-wrong-output-compound-type</a>: output should be empty"</span>) <span id="L13765" class="LineNr">13765 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: output 'o' does not have the right type"</span> <span class="Constant">"F - <a href='mu.subx.html#L13729'>test-length-with-wrong-output-compound-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12510,7 +12510,7 @@ if ('onhashchange' in window) { <span id="L13798" class="LineNr">13798 </span> 89/<- %edx 4/r32/esp <span id="L13799" class="LineNr">13799 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13800" class="LineNr">13800 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13801" class="Folded">13801 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13801" class="Folded">13801 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13807" class="LineNr">13807 </span> <span class="subxComment"># check output</span> <span id="L13808" class="LineNr">13808 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13774'>test-length-with-no-inouts</a>: output should be empty"</span>) <span id="L13809" class="LineNr">13809 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: too few inouts (1 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L13774'>test-length-with-no-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12550,7 +12550,7 @@ if ('onhashchange' in window) { <span id="L13843" class="LineNr">13843 </span> 89/<- %edx 4/r32/esp <span id="L13844" class="LineNr">13844 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13845" class="LineNr">13845 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13846" class="Folded">13846 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13846" class="Folded">13846 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13852" class="LineNr">13852 </span> <span class="subxComment"># check output</span> <span id="L13853" class="LineNr">13853 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13818'>test-length-with-too-many-inouts</a>: output should be empty"</span>) <span id="L13854" class="LineNr">13854 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: too many inouts (1 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L13818'>test-length-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12590,7 +12590,7 @@ if ('onhashchange' in window) { <span id="L13888" class="LineNr">13888 </span> 89/<- %edx 4/r32/esp <span id="L13889" class="LineNr">13889 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13890" class="LineNr">13890 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13891" class="Folded">13891 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13891" class="Folded">13891 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13897" class="LineNr">13897 </span> <span class="subxComment"># check output</span> <span id="L13898" class="LineNr">13898 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13863'>test-length-with-no-output</a>: output should be empty"</span>) <span id="L13899" class="LineNr">13899 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: must have an output"</span> <span class="Constant">"F - <a href='mu.subx.html#L13863'>test-length-with-no-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12632,7 +12632,7 @@ if ('onhashchange' in window) { <span id="L13935" class="LineNr">13935 </span> 89/<- %edx 4/r32/esp <span id="L13936" class="LineNr">13936 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L13937" class="LineNr">13937 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L13938" class="Folded">13938 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13938" class="Folded">13938 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13944" class="LineNr">13944 </span> <span class="subxComment"># check output</span> <span id="L13945" class="LineNr">13945 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L13908'>test-length-with-too-many-outputs</a>: output should be empty"</span>) <span id="L13946" class="LineNr">13946 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt length: too many outputs (1 required)"</span> <span class="Constant">"F - <a href='mu.subx.html#L13908'>test-length-with-too-many-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12662,7 +12662,7 @@ if ('onhashchange' in window) { <span id="L13970" class="LineNr">13970 </span> <span class="subxComment"># convert</span> <span id="L13971" class="LineNr">13971 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L13972" class="LineNr">13972 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L13973" class="Folded">13973 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L13973" class="Folded">13973 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L13979" class="LineNr">13979 </span> <span class="subxComment"># check output</span> <span id="L13980" class="LineNr">13980 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L13955'>test-convert-function-with-return-register-and-local</a>/0"</span>) <span id="L13981" class="LineNr">13981 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-return-register-and-local/1"</span>) @@ -12707,7 +12707,7 @@ if ('onhashchange' in window) { <span id="L14020" class="LineNr">14020 </span> <span class="subxComment"># convert</span> <span id="L14021" class="LineNr">14021 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L14022" class="LineNr">14022 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L14023" class="Folded">14023 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14023" class="Folded">14023 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14029" class="LineNr">14029 </span> <span class="subxComment"># check output</span> <span id="L14030" class="LineNr">14030 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L14005'>test-convert-function-with-return-register-and-local-2</a>/0"</span>) <span id="L14031" class="LineNr">14031 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-return-register-and-local-2/1"</span>) @@ -12753,7 +12753,7 @@ if ('onhashchange' in window) { <span id="L14071" class="LineNr">14071 </span> <span class="subxComment"># convert</span> <span id="L14072" class="LineNr">14072 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L14073" class="LineNr">14073 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L14074" class="Folded">14074 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14074" class="Folded">14074 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14080" class="LineNr">14080 </span> <span class="subxComment"># check output</span> <span id="L14081" class="LineNr">14081 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L14055'>test-convert-function-with-return-float-register-and-local</a>/0"</span>) <span id="L14082" class="LineNr">14082 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-return-float-register-and-local/1"</span>) @@ -12810,7 +12810,7 @@ if ('onhashchange' in window) { <span id="L14133" class="LineNr">14133 </span> <span class="subxComment"># convert</span> <span id="L14134" class="LineNr">14134 </span> (<a href='mu.subx.html#L509'>convert-mu</a> <a href='112read-byte.subx.html#L405'>_test-input-buffered-file</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L14135" class="LineNr">14135 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L14136" class="Folded">14136 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14136" class="Folded">14136 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14142" class="LineNr">14142 </span> <span class="subxComment"># check output</span> <span id="L14143" class="LineNr">14143 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"foo:"</span> <span class="Constant">"F - <a href='mu.subx.html#L14112'>test-convert-function-with-return-and-local-vars</a>/0"</span>) <span id="L14144" class="LineNr">14144 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">" # . prologue"</span> <span class="Constant">"F - test-convert-function-with-return-and-local-vars/1"</span>) @@ -12873,7 +12873,7 @@ if ('onhashchange' in window) { <span id="L14201" class="LineNr">14201 </span> 89/<- %edx 4/r32/esp <span id="L14202" class="LineNr">14202 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14203" class="LineNr">14203 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14204" class="Folded">14204 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14204" class="Folded">14204 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14210" class="LineNr">14210 </span> <span class="subxComment"># check output</span> <span id="L14211" class="LineNr">14211 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14177'>test-copy-object-with-no-inout</a>: output should be empty"</span>) <span id="L14212" class="LineNr">14212 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-object' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L14177'>test-copy-object-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12913,7 +12913,7 @@ if ('onhashchange' in window) { <span id="L14246" class="LineNr">14246 </span> 89/<- %edx 4/r32/esp <span id="L14247" class="LineNr">14247 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14248" class="LineNr">14248 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14249" class="Folded">14249 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14249" class="Folded">14249 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14255" class="LineNr">14255 </span> <span class="subxComment"># check output</span> <span id="L14256" class="LineNr">14256 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14221'>test-copy-object-with-no-source</a>: output should be empty"</span>) <span id="L14257" class="LineNr">14257 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-object' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L14221'>test-copy-object-with-no-source</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12953,7 +12953,7 @@ if ('onhashchange' in window) { <span id="L14291" class="LineNr">14291 </span> 89/<- %edx 4/r32/esp <span id="L14292" class="LineNr">14292 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14293" class="LineNr">14293 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14294" class="Folded">14294 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14294" class="Folded">14294 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14300" class="LineNr">14300 </span> <span class="subxComment"># check output</span> <span id="L14301" class="LineNr">14301 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14266'>test-copy-object-with-too-many-inouts</a>: output should be empty"</span>) <span id="L14302" class="LineNr">14302 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-object' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L14266'>test-copy-object-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -12994,7 +12994,7 @@ if ('onhashchange' in window) { <span id="L14337" class="LineNr">14337 </span> 89/<- %edx 4/r32/esp <span id="L14338" class="LineNr">14338 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14339" class="LineNr">14339 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14340" class="Folded">14340 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14340" class="Folded">14340 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14346" class="LineNr">14346 </span> <span class="subxComment"># check output</span> <span id="L14347" class="LineNr">14347 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14311'>test-copy-object-with-output</a>: output should be empty"</span>) <span id="L14348" class="LineNr">14348 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'copy-object' must not have any outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L14311'>test-copy-object-with-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13058,7 +13058,7 @@ if ('onhashchange' in window) { <span id="L14406" class="LineNr">14406 </span> 89/<- %edx 4/r32/esp <span id="L14407" class="LineNr">14407 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14408" class="LineNr">14408 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14409" class="Folded">14409 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14409" class="Folded">14409 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14415" class="LineNr">14415 </span> <span class="subxComment"># check output</span> <span id="L14416" class="LineNr">14416 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14380'>test-copy-object-non-addr</a>: output should be empty"</span>) <span id="L14417" class="LineNr">14417 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-object: two inouts with identical addr types expected"</span> <span class="Constant">"F - <a href='mu.subx.html#L14380'>test-copy-object-non-addr</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13099,7 +13099,7 @@ if ('onhashchange' in window) { <span id="L14452" class="LineNr">14452 </span> 89/<- %edx 4/r32/esp <span id="L14453" class="LineNr">14453 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14454" class="LineNr">14454 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14455" class="Folded">14455 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14455" class="Folded">14455 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14461" class="LineNr">14461 </span> <span class="subxComment"># check output</span> <span id="L14462" class="LineNr">14462 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14426'>test-copy-object-non-equal</a>: output should be empty"</span>) <span id="L14463" class="LineNr">14463 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt copy-object: two inouts with identical addr types expected"</span> <span class="Constant">"F - <a href='mu.subx.html#L14426'>test-copy-object-non-equal</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13138,7 +13138,7 @@ if ('onhashchange' in window) { <span id="L14496" class="LineNr">14496 </span> 89/<- %edx 4/r32/esp <span id="L14497" class="LineNr">14497 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14498" class="LineNr">14498 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14499" class="Folded">14499 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14499" class="Folded">14499 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14505" class="LineNr">14505 </span> <span class="subxComment"># check output</span> <span id="L14506" class="LineNr">14506 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14472'>test-allocate-with-no-inout</a>: output should be empty"</span>) <span id="L14507" class="LineNr">14507 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'allocate' must have a single inout"</span> <span class="Constant">"F - <a href='mu.subx.html#L14472'>test-allocate-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13178,7 +13178,7 @@ if ('onhashchange' in window) { <span id="L14541" class="LineNr">14541 </span> 89/<- %edx 4/r32/esp <span id="L14542" class="LineNr">14542 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14543" class="LineNr">14543 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14544" class="Folded">14544 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14544" class="Folded">14544 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14550" class="LineNr">14550 </span> <span class="subxComment"># check output</span> <span id="L14551" class="LineNr">14551 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14516'>test-allocate-with-too-many-inouts</a>: output should be empty"</span>) <span id="L14552" class="LineNr">14552 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'allocate' must have a single inout"</span> <span class="Constant">"F - <a href='mu.subx.html#L14516'>test-allocate-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13219,7 +13219,7 @@ if ('onhashchange' in window) { <span id="L14587" class="LineNr">14587 </span> 89/<- %edx 4/r32/esp <span id="L14588" class="LineNr">14588 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14589" class="LineNr">14589 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14590" class="Folded">14590 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14590" class="Folded">14590 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14596" class="LineNr">14596 </span> <span class="subxComment"># check output</span> <span id="L14597" class="LineNr">14597 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14561'>test-allocate-with-output</a>: output should be empty"</span>) <span id="L14598" class="LineNr">14598 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'allocate' must not have any outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L14561'>test-allocate-with-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13259,7 +13259,7 @@ if ('onhashchange' in window) { <span id="L14632" class="LineNr">14632 </span> 89/<- %edx 4/r32/esp <span id="L14633" class="LineNr">14633 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14634" class="LineNr">14634 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14635" class="Folded">14635 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14635" class="Folded">14635 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14641" class="LineNr">14641 </span> <span class="subxComment"># check output</span> <span id="L14642" class="LineNr">14642 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14607'>test-allocate-non-addr</a>: output must be empty"</span>) <span id="L14643" class="LineNr">14643 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='120allocate.subx.html#L66'>allocate</a>: inout 'y' must have type (addr handle ...)"</span> <span class="Constant">"F - <a href='mu.subx.html#L14607'>test-allocate-non-addr</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13299,7 +13299,7 @@ if ('onhashchange' in window) { <span id="L14677" class="LineNr">14677 </span> 89/<- %edx 4/r32/esp <span id="L14678" class="LineNr">14678 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14679" class="LineNr">14679 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14680" class="Folded">14680 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14680" class="Folded">14680 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14686" class="LineNr">14686 </span> <span class="subxComment"># check output</span> <span id="L14687" class="LineNr">14687 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14652'>test-allocate-non-addr-handle</a>: output should be empty"</span>) <span id="L14688" class="LineNr">14688 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt <a href='120allocate.subx.html#L66'>allocate</a>: inout 'y' must have type (addr handle ...)"</span> <span class="Constant">"F - <a href='mu.subx.html#L14652'>test-allocate-non-addr-handle</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13360,7 +13360,7 @@ if ('onhashchange' in window) { <span id="L14743" class="LineNr">14743 </span> 89/<- %edx 4/r32/esp <span id="L14744" class="LineNr">14744 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14745" class="LineNr">14745 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14746" class="Folded">14746 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14746" class="Folded">14746 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14752" class="LineNr">14752 </span> <span class="subxComment"># check output</span> <span id="L14753" class="LineNr">14753 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14719'>test-populate-with-no-inout</a>: output should be empty"</span>) <span id="L14754" class="LineNr">14754 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'populate' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L14719'>test-populate-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13400,7 +13400,7 @@ if ('onhashchange' in window) { <span id="L14788" class="LineNr">14788 </span> 89/<- %edx 4/r32/esp <span id="L14789" class="LineNr">14789 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14790" class="LineNr">14790 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14791" class="Folded">14791 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14791" class="Folded">14791 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14797" class="LineNr">14797 </span> <span class="subxComment"># check output</span> <span id="L14798" class="LineNr">14798 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14763'>test-populate-with-too-many-inouts</a>: output should be empty"</span>) <span id="L14799" class="LineNr">14799 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'populate' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L14763'>test-populate-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13441,7 +13441,7 @@ if ('onhashchange' in window) { <span id="L14834" class="LineNr">14834 </span> 89/<- %edx 4/r32/esp <span id="L14835" class="LineNr">14835 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14836" class="LineNr">14836 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14837" class="Folded">14837 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14837" class="Folded">14837 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14843" class="LineNr">14843 </span> <span class="subxComment"># check output</span> <span id="L14844" class="LineNr">14844 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14808'>test-populate-with-output</a>: output should be empty"</span>) <span id="L14845" class="LineNr">14845 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'populate' must not have any outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L14808'>test-populate-with-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13481,7 +13481,7 @@ if ('onhashchange' in window) { <span id="L14879" class="LineNr">14879 </span> 89/<- %edx 4/r32/esp <span id="L14880" class="LineNr">14880 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14881" class="LineNr">14881 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14882" class="Folded">14882 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14882" class="Folded">14882 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14888" class="LineNr">14888 </span> <span class="subxComment"># check output</span> <span id="L14889" class="LineNr">14889 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14854'>test-populate-non-addr</a>: output must be empty"</span>) <span id="L14890" class="LineNr">14890 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt populate: first inout 'y' must have type (addr handle array ...)"</span> <span class="Constant">"F - <a href='mu.subx.html#L14854'>test-populate-non-addr</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13521,7 +13521,7 @@ if ('onhashchange' in window) { <span id="L14924" class="LineNr">14924 </span> 89/<- %edx 4/r32/esp <span id="L14925" class="LineNr">14925 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14926" class="LineNr">14926 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14927" class="Folded">14927 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14927" class="Folded">14927 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14933" class="LineNr">14933 </span> <span class="subxComment"># check output</span> <span id="L14934" class="LineNr">14934 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14899'>test-populate-non-addr-handle</a>: output should be empty"</span>) <span id="L14935" class="LineNr">14935 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt populate: first inout 'y' must have type (addr handle array ...)"</span> <span class="Constant">"F - <a href='mu.subx.html#L14899'>test-populate-non-addr-handle</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13561,7 +13561,7 @@ if ('onhashchange' in window) { <span id="L14969" class="LineNr">14969 </span> 89/<- %edx 4/r32/esp <span id="L14970" class="LineNr">14970 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L14971" class="LineNr">14971 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L14972" class="Folded">14972 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L14972" class="Folded">14972 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L14978" class="LineNr">14978 </span> <span class="subxComment"># check output</span> <span id="L14979" class="LineNr">14979 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L14944'>test-populate-non-addr-handle-array</a>: output should be empty"</span>) <span id="L14980" class="LineNr">14980 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt populate: first inout 'y' must have type (addr handle array ...)"</span> <span class="Constant">"F - <a href='mu.subx.html#L14944'>test-populate-non-addr-handle-array</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13622,7 +13622,7 @@ if ('onhashchange' in window) { <span id="L15035" class="LineNr">15035 </span> 89/<- %edx 4/r32/esp <span id="L15036" class="LineNr">15036 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15037" class="LineNr">15037 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15038" class="Folded">15038 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15038" class="Folded">15038 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15044" class="LineNr">15044 </span> <span class="subxComment"># check output</span> <span id="L15045" class="LineNr">15045 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15011'>test-populate-stream-with-no-inout</a>: output should be empty"</span>) <span id="L15046" class="LineNr">15046 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'populate-stream' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L15011'>test-populate-stream-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13662,7 +13662,7 @@ if ('onhashchange' in window) { <span id="L15080" class="LineNr">15080 </span> 89/<- %edx 4/r32/esp <span id="L15081" class="LineNr">15081 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15082" class="LineNr">15082 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15083" class="Folded">15083 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15083" class="Folded">15083 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15089" class="LineNr">15089 </span> <span class="subxComment"># check output</span> <span id="L15090" class="LineNr">15090 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15055'>test-populate-stream-with-too-many-inouts</a>: output should be empty"</span>) <span id="L15091" class="LineNr">15091 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'populate-stream' must have two inouts"</span> <span class="Constant">"F - <a href='mu.subx.html#L15055'>test-populate-stream-with-too-many-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13703,7 +13703,7 @@ if ('onhashchange' in window) { <span id="L15126" class="LineNr">15126 </span> 89/<- %edx 4/r32/esp <span id="L15127" class="LineNr">15127 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15128" class="LineNr">15128 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15129" class="Folded">15129 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15129" class="Folded">15129 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15135" class="LineNr">15135 </span> <span class="subxComment"># check output</span> <span id="L15136" class="LineNr">15136 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15100'>test-populate-stream-with-output</a>: output should be empty"</span>) <span id="L15137" class="LineNr">15137 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'populate-stream' must not have any outputs"</span> <span class="Constant">"F - <a href='mu.subx.html#L15100'>test-populate-stream-with-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13743,7 +13743,7 @@ if ('onhashchange' in window) { <span id="L15171" class="LineNr">15171 </span> 89/<- %edx 4/r32/esp <span id="L15172" class="LineNr">15172 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15173" class="LineNr">15173 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15174" class="Folded">15174 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15174" class="Folded">15174 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15180" class="LineNr">15180 </span> <span class="subxComment"># check output</span> <span id="L15181" class="LineNr">15181 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15146'>test-populate-stream-non-addr</a>: output must be empty"</span>) <span id="L15182" class="LineNr">15182 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt populate-stream: first inout 'y' must have type (addr handle stream ...)"</span> <span class="Constant">"F - <a href='mu.subx.html#L15146'>test-populate-stream-non-addr</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13783,7 +13783,7 @@ if ('onhashchange' in window) { <span id="L15216" class="LineNr">15216 </span> 89/<- %edx 4/r32/esp <span id="L15217" class="LineNr">15217 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15218" class="LineNr">15218 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15219" class="Folded">15219 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15219" class="Folded">15219 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15225" class="LineNr">15225 </span> <span class="subxComment"># check output</span> <span id="L15226" class="LineNr">15226 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15191'>test-populate-stream-non-addr-handle</a>: output should be empty"</span>) <span id="L15227" class="LineNr">15227 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt populate-stream: first inout 'y' must have type (addr handle stream ...)"</span> <span class="Constant">"F - <a href='mu.subx.html#L15191'>test-populate-stream-non-addr-handle</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13823,7 +13823,7 @@ if ('onhashchange' in window) { <span id="L15261" class="LineNr">15261 </span> 89/<- %edx 4/r32/esp <span id="L15262" class="LineNr">15262 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15263" class="LineNr">15263 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15264" class="Folded">15264 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15264" class="Folded">15264 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15270" class="LineNr">15270 </span> <span class="subxComment"># check output</span> <span id="L15271" class="LineNr">15271 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15236'>test-populate-stream-non-addr-handle-stream</a>: output should be empty"</span>) <span id="L15272" class="LineNr">15272 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt populate-stream: first inout 'y' must have type (addr handle stream ...)"</span> <span class="Constant">"F - <a href='mu.subx.html#L15236'>test-populate-stream-non-addr-handle-stream</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13884,7 +13884,7 @@ if ('onhashchange' in window) { <span id="L15327" class="LineNr">15327 </span> 89/<- %edx 4/r32/esp <span id="L15328" class="LineNr">15328 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15329" class="LineNr">15329 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15330" class="Folded">15330 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15330" class="Folded">15330 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15336" class="LineNr">15336 </span> <span class="subxComment"># check output</span> <span id="L15337" class="LineNr">15337 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15303'>test-convert-with-no-inout</a>: output should be empty"</span>) <span id="L15338" class="LineNr">15338 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'convert' expects an inout"</span> <span class="Constant">"F - <a href='mu.subx.html#L15303'>test-convert-with-no-inout</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13923,7 +13923,7 @@ if ('onhashchange' in window) { <span id="L15371" class="LineNr">15371 </span> 89/<- %edx 4/r32/esp <span id="L15372" class="LineNr">15372 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15373" class="LineNr">15373 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15374" class="Folded">15374 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15374" class="Folded">15374 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15380" class="LineNr">15380 </span> <span class="subxComment"># check output</span> <span id="L15381" class="LineNr">15381 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15347'>test-convert-with-multiple-inouts</a>: output should be empty"</span>) <span id="L15382" class="LineNr">15382 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'convert' must have just one inout"</span> <span class="Constant">"F - <a href='mu.subx.html#L15347'>test-convert-with-multiple-inouts</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -13962,7 +13962,7 @@ if ('onhashchange' in window) { <span id="L15415" class="LineNr">15415 </span> 89/<- %edx 4/r32/esp <span id="L15416" class="LineNr">15416 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15417" class="LineNr">15417 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15418" class="Folded">15418 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15418" class="Folded">15418 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15424" class="LineNr">15424 </span> <span class="subxComment"># check output</span> <span id="L15425" class="LineNr">15425 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15391'>test-convert-with-no-output</a>: output should be empty"</span>) <span id="L15426" class="LineNr">15426 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'convert' expects an output"</span> <span class="Constant">"F - <a href='mu.subx.html#L15391'>test-convert-with-no-output</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -14003,7 +14003,7 @@ if ('onhashchange' in window) { <span id="L15461" class="LineNr">15461 </span> 89/<- %edx 4/r32/esp <span id="L15462" class="LineNr">15462 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15463" class="LineNr">15463 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15464" class="Folded">15464 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15464" class="Folded">15464 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15470" class="LineNr">15470 </span> <span class="subxComment"># check output</span> <span id="L15471" class="LineNr">15471 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15435'>test-convert-with-multiple-outputs</a>: output should be empty"</span>) <span id="L15472" class="LineNr">15472 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt 'convert' must have just one output"</span> <span class="Constant">"F - <a href='mu.subx.html#L15435'>test-convert-with-multiple-outputs</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -14066,7 +14066,7 @@ if ('onhashchange' in window) { <span id="L15529" class="LineNr">15529 </span> 89/<- %edx 4/r32/esp <span id="L15530" class="LineNr">15530 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15531" class="LineNr">15531 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15532" class="Folded">15532 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15532" class="Folded">15532 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15538" class="LineNr">15538 </span> <span class="subxComment"># check output</span> <span id="L15539" class="LineNr">15539 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15503'>test-convert-to-non-register</a>: output should be empty"</span>) <span id="L15540" class="LineNr">15540 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt convert: output 'x' not in a register"</span> <span class="Constant">"F - <a href='mu.subx.html#L15503'>test-convert-to-non-register</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -14106,7 +14106,7 @@ if ('onhashchange' in window) { <span id="L15574" class="LineNr">15574 </span> 89/<- %edx 4/r32/esp <span id="L15575" class="LineNr">15575 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15576" class="LineNr">15576 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15577" class="Folded">15577 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15577" class="Folded">15577 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15583" class="LineNr">15583 </span> <span class="subxComment"># check output</span> <span id="L15584" class="LineNr">15584 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15549'>test-convert-invalid-inout-type</a>: output should be empty"</span>) <span id="L15585" class="LineNr">15585 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt convert: inout 'x' must be an int or float"</span> <span class="Constant">"F - <a href='mu.subx.html#L15549'>test-convert-invalid-inout-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -14146,7 +14146,7 @@ if ('onhashchange' in window) { <span id="L15619" class="LineNr">15619 </span> 89/<- %edx 4/r32/esp <span id="L15620" class="LineNr">15620 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15621" class="LineNr">15621 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15622" class="Folded">15622 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15622" class="Folded">15622 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15628" class="LineNr">15628 </span> <span class="subxComment"># check output</span> <span id="L15629" class="LineNr">15629 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15594'>test-convert-invalid-output-type</a>: output should be empty"</span>) <span id="L15630" class="LineNr">15630 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt convert: output 'y' must be an int or float"</span> <span class="Constant">"F - <a href='mu.subx.html#L15594'>test-convert-invalid-output-type</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -14186,7 +14186,7 @@ if ('onhashchange' in window) { <span id="L15664" class="LineNr">15664 </span> 89/<- %edx 4/r32/esp <span id="L15665" class="LineNr">15665 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15666" class="LineNr">15666 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15667" class="Folded">15667 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15667" class="Folded">15667 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15673" class="LineNr">15673 </span> <span class="subxComment"># check output</span> <span id="L15674" class="LineNr">15674 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15639'>test-convert-int-to-int</a>: output should be empty"</span>) <span id="L15675" class="LineNr">15675 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt convert: no need to convert int to int"</span> <span class="Constant">"F - <a href='mu.subx.html#L15639'>test-convert-int-to-int</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -14226,7 +14226,7 @@ if ('onhashchange' in window) { <span id="L15709" class="LineNr">15709 </span> 89/<- %edx 4/r32/esp <span id="L15710" class="LineNr">15710 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) <span id="L15711" class="LineNr">15711 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L464'>_test-error-buffered-file</a>) -<span id="L15712" class="Folded">15712 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15712" class="Folded">15712 </span><span class="Folded">+-- 6 lines: #? # dump _test-error-stream -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L15718" class="LineNr">15718 </span> <span class="subxComment"># check output</span> <span id="L15719" class="LineNr">15719 </span> (<a href='109stream-equal.subx.html#L194'>check-stream-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">""</span> <span class="Constant">"F - <a href='mu.subx.html#L15684'>test-convert-float-to-float</a>: output should be empty"</span>) <span id="L15720" class="LineNr">15720 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L438'>_test-error-stream</a> <span class="Constant">"fn foo: stmt convert: no need to convert float to float"</span> <span class="Constant">"F - <a href='mu.subx.html#L15684'>test-convert-float-to-float</a>: <a href='114error.subx.html#L9'>error</a> message"</span>) @@ -14327,7 +14327,7 @@ if ('onhashchange' in window) { <span id="L15815" class="LineNr">15815 </span> <span class="subxComment"># if (line->write == 0) break</span> <span id="L15816" class="LineNr">15816 </span> 81 7/subop/compare *ecx 0/imm32 <span id="L15817" class="LineNr">15817 </span> 0f 84/jump-if-= <span class="Constant">break</span>/disp32 -<span id="L15818" class="Folded">15818 </span><span class="Folded">+-- 6 lines: #? # dump line ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L15818" class="Folded">15818 </span><span class="Folded">+-- 6 lines: #? # dump line -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L15824" class="LineNr">15824 </span> (<a href='mu.subx.html#L17328'>next-mu-token</a> %ecx %edx) <span id="L15825" class="LineNr">15825 </span> <span class="subxComment"># if slice-empty?(word-slice) continue</span> <span id="L15826" class="LineNr">15826 </span> (<a href='123slice.subx.html#L9'>slice-empty?</a> %edx) <span class="subxComment"># => eax</span> @@ -19090,7 +19090,7 @@ if ('onhashchange' in window) { <span id="L20583" class="LineNr">20583 </span> <span class="subxComment"># if (line->write == 0) abort</span> <span id="L20584" class="LineNr">20584 </span> 81 7/subop/compare *ecx 0/imm32 <span id="L20585" class="LineNr">20585 </span> 0f 84/jump-if-= $populate-mu-type:error1/disp32 -<span id="L20586" class="Folded">20586 </span><span class="Folded">+-- 6 lines: #? # dump line ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L20586" class="Folded">20586 </span><span class="Folded">+-- 6 lines: #? # dump line -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L20592" class="LineNr">20592 </span> (<a href='mu.subx.html#L17328'>next-mu-token</a> %ecx %edx) <span id="L20593" class="LineNr">20593 </span> <span class="subxComment"># if slice-empty?(word-slice) continue</span> <span id="L20594" class="LineNr">20594 </span> (<a href='123slice.subx.html#L9'>slice-empty?</a> %edx) <span class="subxComment"># => eax</span> @@ -19833,7 +19833,7 @@ if ('onhashchange' in window) { <span id="L21331" class="LineNr">21331 </span> <span class="subxComment"># if (curr == null) break</span> <span id="L21332" class="LineNr">21332 </span> 3d/compare-eax-and 0/imm32 <span id="L21333" class="LineNr">21333 </span> 0f 84/jump-if-= <span class="Constant">break</span>/disp32 -<span id="L21334" class="Folded">21334 </span><span class="Folded">+-- 8 lines: #? # dump curr->name ------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L21334" class="Folded">21334 </span><span class="Folded">+-- 8 lines: #? # dump curr->name -----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L21342" class="LineNr">21342 </span> (<a href='mu.subx.html#L21355'>check-mu-function</a> %eax *(ebp+8) *(ebp+0xc)) <span id="L21343" class="LineNr">21343 </span> <span class="subxComment"># curr = lookup(curr->next)</span> <span id="L21344" class="LineNr">21344 </span> (<a href='120allocate.subx.html#L258'>lookup</a> *(eax+0x20) *(eax+0x24)) <span class="subxComment"># Function-next Function-next => eax</span> @@ -25661,11 +25661,11 @@ if ('onhashchange' in window) { <span id="L27166" class="LineNr">27166 </span> 3d/compare-eax-and 0/imm32/false <span id="L27167" class="LineNr">27167 </span> 0f 84/jump-if-= <span class="Constant">break</span>/disp32 <span id="L27168" class="LineNr">27168 </span><span class="Constant">$emit-subx-stmt-list:branch-stmt</span>: -<span id="L27169" class="Folded">27169 </span><span class="Folded">+-- 25 lines: # unconditional return ----------------------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L27194" class="Folded">27194 </span><span class="Folded">+-- 27 lines: # unconditional loops -----------------------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L27221" class="Folded">27221 </span><span class="Folded">+-- 16 lines: # unconditional breaks ----------------------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L27237" class="Folded">27237 </span><span class="Folded">+-- 38 lines: # simple conditional branches without a target ----------------------------------------------------------------------------------------------------------------------------</span> -<span id="L27275" class="Folded">27275 </span><span class="Folded">+-- 19 lines: # conditional branches with an explicit target ----------------------------------------------------------------------------------------------------------------------------</span> +<span id="L27169" class="Folded">27169 </span><span class="Folded">+-- 25 lines: # unconditional return ---------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L27194" class="Folded">27194 </span><span class="Folded">+-- 27 lines: # unconditional loops ----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L27221" class="Folded">27221 </span><span class="Folded">+-- 16 lines: # unconditional breaks ---------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L27237" class="Folded">27237 </span><span class="Folded">+-- 38 lines: # simple conditional branches without a target ---------------------------------------------------------------------------------------------------------------</span> +<span id="L27275" class="Folded">27275 </span><span class="Folded">+-- 19 lines: # conditional branches with an explicit target ---------------------------------------------------------------------------------------------------------------</span> <span id="L27294" class="LineNr">27294 </span> } <span id="L27295" class="LineNr">27295 </span><span class="Constant">$emit-subx-stmt-list:1-to-1</span>: <span id="L27296" class="LineNr">27296 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> *(ebp+8) %ecx <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> *(ebp+0x14) *(ebp+0x18) *(ebp+0x1c)) @@ -34873,7 +34873,7 @@ if ('onhashchange' in window) { <span id="L36498" class="LineNr">36498 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L36499" class="LineNr">36499 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi %ebx 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L36500" class="LineNr">36500 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L36501" class="Folded">36501 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L36501" class="Folded">36501 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L36507" class="LineNr">36507 </span> <span class="subxComment"># check output</span> <span id="L36508" class="LineNr">36508 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"ff 0/subop/increment *(ebp+0xfffffff8)"</span> <span class="Constant">"F - test-emit-subx-stmt-primitive"</span>) <span id="L36509" class="LineNr">36509 </span> <span class="subxS1Comment"># . epilogue</span> @@ -35014,7 +35014,7 @@ if ('onhashchange' in window) { <span id="L36644" class="LineNr">36644 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L36645" class="LineNr">36645 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi %ebx 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L36646" class="LineNr">36646 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L36647" class="Folded">36647 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L36647" class="Folded">36647 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L36653" class="LineNr">36653 </span> <span class="subxComment"># check output</span> <span id="L36654" class="LineNr">36654 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"ff 0/subop/increment %eax"</span> <span class="Constant">"F - test-emit-subx-stmt-primitive-register"</span>) <span id="L36655" class="LineNr">36655 </span> <span class="subxS1Comment"># . epilogue</span> @@ -35187,7 +35187,7 @@ if ('onhashchange' in window) { <span id="L36822" class="LineNr">36822 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L36823" class="LineNr">36823 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi %ebx 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L36824" class="LineNr">36824 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L36825" class="Folded">36825 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L36825" class="Folded">36825 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L36831" class="LineNr">36831 </span> <span class="subxComment"># check output</span> <span id="L36832" class="LineNr">36832 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"ff 0/subop/increment %eax"</span> <span class="Constant">"F - test-emit-subx-stmt-select-primitive"</span>) <span id="L36833" class="LineNr">36833 </span> <span class="subxS1Comment"># . epilogue</span> @@ -35360,7 +35360,7 @@ if ('onhashchange' in window) { <span id="L37000" class="LineNr">37000 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L37001" class="LineNr">37001 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi %ebx 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L37002" class="LineNr">37002 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L37003" class="Folded">37003 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L37003" class="Folded">37003 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L37009" class="LineNr">37009 </span> <span class="subxComment"># check output</span> <span id="L37010" class="LineNr">37010 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"ff 0/subop/increment %eax"</span> <span class="Constant">"F - test-emit-subx-stmt-select-primitive-2"</span>) <span id="L37011" class="LineNr">37011 </span> <span class="subxS1Comment"># . epilogue</span> @@ -35443,7 +35443,7 @@ if ('onhashchange' in window) { <span id="L37088" class="LineNr">37088 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L37089" class="LineNr">37089 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L37090" class="LineNr">37090 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L37091" class="Folded">37091 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L37091" class="Folded">37091 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L37097" class="LineNr">37097 </span> <span class="subxComment"># check output</span> <span id="L37098" class="LineNr">37098 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"40/increment-eax"</span> <span class="Constant">"F - test-increment-register"</span>) <span id="L37099" class="LineNr">37099 </span> <span class="subxS1Comment"># . epilogue</span> @@ -35549,7 +35549,7 @@ if ('onhashchange' in window) { <span id="L37199" class="LineNr">37199 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L37200" class="LineNr">37200 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L37201" class="LineNr">37201 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L37202" class="Folded">37202 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L37202" class="Folded">37202 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L37208" class="LineNr">37208 </span> <span class="subxComment"># check output</span> <span id="L37209" class="LineNr">37209 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"01/add-to %eax 0x00000001/r32"</span> <span class="Constant">"F - test-add-reg-to-reg"</span>) <span id="L37210" class="LineNr">37210 </span> <span class="subxS1Comment"># . epilogue</span> @@ -35650,7 +35650,7 @@ if ('onhashchange' in window) { <span id="L37305" class="LineNr">37305 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L37306" class="LineNr">37306 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L37307" class="LineNr">37307 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L37308" class="Folded">37308 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L37308" class="Folded">37308 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L37314" class="LineNr">37314 </span> <span class="subxComment"># check output</span> <span id="L37315" class="LineNr">37315 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"01/add-to *(ebp+0x00000008) 0x00000001/r32"</span> <span class="Constant">"F - test-add-reg-to-mem"</span>) <span id="L37316" class="LineNr">37316 </span> <span class="subxS1Comment"># . epilogue</span> @@ -35752,7 +35752,7 @@ if ('onhashchange' in window) { <span id="L37412" class="LineNr">37412 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L37413" class="LineNr">37413 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L37414" class="LineNr">37414 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L37415" class="Folded">37415 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L37415" class="Folded">37415 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L37421" class="LineNr">37421 </span> <span class="subxComment"># check output</span> <span id="L37422" class="LineNr">37422 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"03/add *(ebp+0x00000008) 0x00000000/r32"</span> <span class="Constant">"F - test-add-mem-to-reg"</span>) <span id="L37423" class="LineNr">37423 </span> <span class="subxS1Comment"># . epilogue</span> @@ -35863,7 +35863,7 @@ if ('onhashchange' in window) { <span id="L37528" class="LineNr">37528 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L37529" class="LineNr">37529 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L37530" class="LineNr">37530 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L37531" class="Folded">37531 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L37531" class="Folded">37531 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L37537" class="LineNr">37537 </span> <span class="subxComment"># check output</span> <span id="L37538" class="LineNr">37538 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"05/add-to-eax 0x34/imm32"</span> <span class="Constant">"F - test-add-literal-to-eax"</span>) <span id="L37539" class="LineNr">37539 </span> <span class="subxS1Comment"># . epilogue</span> @@ -35974,7 +35974,7 @@ if ('onhashchange' in window) { <span id="L37644" class="LineNr">37644 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L37645" class="LineNr">37645 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L37646" class="LineNr">37646 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L37647" class="Folded">37647 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L37647" class="Folded">37647 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L37653" class="LineNr">37653 </span> <span class="subxComment"># check output</span> <span id="L37654" class="LineNr">37654 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"81 0/subop/add %ecx 0x34/imm32"</span> <span class="Constant">"F - test-add-literal-to-reg"</span>) <span id="L37655" class="LineNr">37655 </span> <span class="subxS1Comment"># . epilogue</span> @@ -36080,7 +36080,7 @@ if ('onhashchange' in window) { <span id="L37755" class="LineNr">37755 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L37756" class="LineNr">37756 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L37757" class="LineNr">37757 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L37758" class="Folded">37758 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L37758" class="Folded">37758 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L37764" class="LineNr">37764 </span> <span class="subxComment"># check output</span> <span id="L37765" class="LineNr">37765 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"81 0/subop/add *(ebp+0x00000008) 0x34/imm32"</span> <span class="Constant">"F - test-add-literal-to-mem"</span>) <span id="L37766" class="LineNr">37766 </span> <span class="subxS1Comment"># . epilogue</span> @@ -36191,7 +36191,7 @@ if ('onhashchange' in window) { <span id="L37871" class="LineNr">37871 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L37872" class="LineNr">37872 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L37873" class="LineNr">37873 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L37874" class="Folded">37874 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L37874" class="Folded">37874 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L37880" class="LineNr">37880 </span> <span class="subxComment"># check output</span> <span id="L37881" class="LineNr">37881 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"c1/shift 4/subop/left %ecx 2/imm8"</span> <span class="Constant">"F - test-shift-reg-by-literal"</span>) <span id="L37882" class="LineNr">37882 </span> <span class="subxS1Comment"># . epilogue</span> @@ -36297,7 +36297,7 @@ if ('onhashchange' in window) { <span id="L37982" class="LineNr">37982 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L37983" class="LineNr">37983 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L37984" class="LineNr">37984 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L37985" class="Folded">37985 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L37985" class="Folded">37985 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L37991" class="LineNr">37991 </span> <span class="subxComment"># check output</span> <span id="L37992" class="LineNr">37992 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"c1/shift 4/subop/left *(ebp+0x00000008) 3/imm8"</span> <span class="Constant">"F - test-shift-mem-by-literal"</span>) <span id="L37993" class="LineNr">37993 </span> <span class="subxS1Comment"># . epilogue</span> @@ -36402,7 +36402,7 @@ if ('onhashchange' in window) { <span id="L38092" class="LineNr">38092 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L38093" class="LineNr">38093 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L38094" class="LineNr">38094 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L38095" class="Folded">38095 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L38095" class="Folded">38095 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L38101" class="LineNr">38101 </span> <span class="subxComment"># check output</span> <span id="L38102" class="LineNr">38102 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"39/compare-> %ecx 0x00000000/r32"</span> <span class="Constant">"F - test-compare-reg-with-reg"</span>) <span id="L38103" class="LineNr">38103 </span> <span class="subxS1Comment"># . epilogue</span> @@ -36503,7 +36503,7 @@ if ('onhashchange' in window) { <span id="L38198" class="LineNr">38198 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L38199" class="LineNr">38199 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L38200" class="LineNr">38200 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L38201" class="Folded">38201 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L38201" class="Folded">38201 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L38207" class="LineNr">38207 </span> <span class="subxComment"># check output</span> <span id="L38208" class="LineNr">38208 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"39/compare-> *(ebp+0x00000008) 0x00000000/r32"</span> <span class="Constant">"F - test-compare-mem-with-reg"</span>) <span id="L38209" class="LineNr">38209 </span> <span class="subxS1Comment"># . epilogue</span> @@ -36604,7 +36604,7 @@ if ('onhashchange' in window) { <span id="L38304" class="LineNr">38304 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L38305" class="LineNr">38305 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L38306" class="LineNr">38306 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L38307" class="Folded">38307 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L38307" class="Folded">38307 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L38313" class="LineNr">38313 </span> <span class="subxComment"># check output</span> <span id="L38314" class="LineNr">38314 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"3b/compare<- *(ebp+0x00000008) 0x00000000/r32"</span> <span class="Constant">"F - test-compare-reg-with-mem"</span>) <span id="L38315" class="LineNr">38315 </span> <span class="subxS1Comment"># . epilogue</span> @@ -36710,7 +36710,7 @@ if ('onhashchange' in window) { <span id="L38415" class="LineNr">38415 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L38416" class="LineNr">38416 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L38417" class="LineNr">38417 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L38418" class="Folded">38418 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L38418" class="Folded">38418 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L38424" class="LineNr">38424 </span> <span class="subxComment"># check output</span> <span id="L38425" class="LineNr">38425 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"81 7/subop/compare *(ebp+0x00000008) 0x34/imm32"</span> <span class="Constant">"F - test-compare-mem-with-literal"</span>) <span id="L38426" class="LineNr">38426 </span> <span class="subxS1Comment"># . epilogue</span> @@ -36820,7 +36820,7 @@ if ('onhashchange' in window) { <span id="L38530" class="LineNr">38530 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L38531" class="LineNr">38531 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L38532" class="LineNr">38532 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L38533" class="Folded">38533 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L38533" class="Folded">38533 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L38539" class="LineNr">38539 </span> <span class="subxComment"># check output</span> <span id="L38540" class="LineNr">38540 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"3d/compare-eax-with 0x34/imm32"</span> <span class="Constant">"F - test-compare-eax-with-literal"</span>) <span id="L38541" class="LineNr">38541 </span> <span class="subxS1Comment"># . epilogue</span> @@ -36930,7 +36930,7 @@ if ('onhashchange' in window) { <span id="L38645" class="LineNr">38645 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L38646" class="LineNr">38646 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi <span class="SpecialChar"><a href='mu.subx.html#L30469'>Primitives</a></span> 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L38647" class="LineNr">38647 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L38648" class="Folded">38648 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L38648" class="Folded">38648 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L38654" class="LineNr">38654 </span> <span class="subxComment"># check output</span> <span id="L38655" class="LineNr">38655 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"81 7/subop/compare %ecx 0x34/imm32"</span> <span class="Constant">"F - test-compare-reg-with-literal"</span>) <span id="L38656" class="LineNr">38656 </span> <span class="subxS1Comment"># . epilogue</span> @@ -37013,7 +37013,7 @@ if ('onhashchange' in window) { <span id="L38733" class="LineNr">38733 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L38734" class="LineNr">38734 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi 0 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L38735" class="LineNr">38735 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L38736" class="Folded">38736 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L38736" class="Folded">38736 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L38742" class="LineNr">38742 </span> <span class="subxComment"># check output</span> <span id="L38743" class="LineNr">38743 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"(f *(ebp+0xfffffff8))"</span> <span class="Constant">"F - test-emit-subx-stmt-function-call"</span>) <span id="L38744" class="LineNr">38744 </span> <span class="subxS1Comment"># . epilogue</span> @@ -37085,7 +37085,7 @@ if ('onhashchange' in window) { <span id="L38810" class="LineNr">38810 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='mu.subx.html#L15739'>Curr-block-depth</a></span> 0/imm32 <span id="L38811" class="LineNr">38811 </span> (<a href='mu.subx.html#L28680'>emit-subx-stmt</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a> %esi 0 %ebx 0 <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> 0) <span id="L38812" class="LineNr">38812 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>) -<span id="L38813" class="Folded">38813 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L38813" class="Folded">38813 </span><span class="Folded">+-- 6 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L38819" class="LineNr">38819 </span> <span class="subxComment"># check output</span> <span id="L38820" class="LineNr">38820 </span> (<a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> <a href='115write-byte.subx.html#L287'>_test-output-stream</a> <span class="Constant">"(f 0x34)"</span> <span class="Constant">"F - test-emit-subx-stmt-function-call-with-literal-arg"</span>) <span id="L38821" class="LineNr">38821 </span> <span class="subxS1Comment"># . epilogue</span> diff --git a/html/linux/pack.subx.html b/html/linux/pack.subx.html index c04ed03d..7c2b5c30 100644 --- a/html/linux/pack.subx.html +++ b/html/linux/pack.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/pack.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,19 +16,19 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -213,7 +213,7 @@ if ('onhashchange' in window) { <span id="L151" class="LineNr"> 151 </span> <span class="subxComment"># if (line->write == 0) break</span> <span id="L152" class="LineNr"> 152 </span> 81 7/subop/compare 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># compare *ecx</span> <span id="L153" class="LineNr"> 153 </span> 0f 84/jump-if-= $subx-pack:<span class="Constant">break</span>/disp32 -<span id="L154" class="Folded"> 154 </span><span class="Folded">+-- 26 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L154" class="Folded"> 154 </span><span class="Folded">+-- 26 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L180" class="LineNr"> 180 </span> <span class="subxComment"># next-word(line, word-slice)</span> <span id="L181" class="LineNr"> 181 </span> <span class="subxS2Comment"># . . push args</span> <span id="L182" class="LineNr"> 182 </span> 52/push-edx @@ -235,7 +235,7 @@ if ('onhashchange' in window) { <span id="L198" class="LineNr"> 198 </span> 3d/compare-eax-and 0/imm32/false <span id="L199" class="LineNr"> 199 </span> 0f 85/jump-if-!= $subx-pack:pass-through/disp32 <span id="L200" class="LineNr"> 200 </span><span class="Constant">$subx-pack:check2</span>: -<span id="L201" class="Folded"> 201 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L201" class="Folded"> 201 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L241" class="LineNr"> 241 </span> <span class="subxComment"># if (!slice-equal?(word-slice, "==")) goto next check</span> <span id="L242" class="LineNr"> 242 </span> <span class="subxS1Comment"># . eax = slice-equal?(word-slice, "==")</span> <span id="L243" class="LineNr"> 243 </span> <span class="subxS2Comment"># . . push args</span> @@ -256,7 +256,7 @@ if ('onhashchange' in window) { <span id="L258" class="LineNr"> 258 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L259" class="LineNr"> 259 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L260" class="LineNr"> 260 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L261" class="Folded"> 261 </span><span class="Folded">+-- 40 lines: #? # dump segment name ------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L261" class="Folded"> 261 </span><span class="Folded">+-- 40 lines: #? # dump segment name -----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L301" class="LineNr"> 301 </span> <span class="subxComment"># in-code? = slice-equal?(word-slice, "code")</span> <span id="L302" class="LineNr"> 302 </span> <span class="subxS2Comment"># . . push args</span> <span id="L303" class="LineNr"> 303 </span> 68/push <span class="Constant">"code"</span>/imm32 @@ -617,7 +617,7 @@ if ('onhashchange' in window) { <span id="L658" class="LineNr"> 658 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L659" class="LineNr"> 659 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L660" class="LineNr"> 660 </span> <span class="subxComment"># check output</span> -<span id="L661" class="Folded"> 661 </span><span class="Folded">+-- 26 lines: #? # debug print ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L661" class="Folded"> 661 </span><span class="Folded">+-- 26 lines: #? # debug print -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L687" class="LineNr"> 687 </span> <span class="subxS1Comment"># . flush(_test-output-buffered-file)</span> <span id="L688" class="LineNr"> 688 </span> <span class="subxS2Comment"># . . push args</span> <span id="L689" class="LineNr"> 689 </span> 68/push <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>/imm32 @@ -751,7 +751,7 @@ if ('onhashchange' in window) { <span id="L817" class="LineNr"> 817 </span> <span class="subxComment"># 68 20 # 68/push 0x20/imm8</span> <span id="L818" class="LineNr"> 818 </span> <span class="subxComment"># == data 0x2</span> <span id="L819" class="LineNr"> 819 </span> <span class="subxComment"># 03 04 00 00 00</span> -<span id="L820" class="Folded"> 820 </span><span class="Folded">+-- 26 lines: #? # debug print ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L820" class="Folded"> 820 </span><span class="Folded">+-- 26 lines: #? # debug print -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L846" class="LineNr"> 846 </span> <span class="subxS1Comment"># . flush(_test-output-buffered-file)</span> <span id="L847" class="LineNr"> 847 </span> <span class="subxS2Comment"># . . push args</span> <span id="L848" class="LineNr"> 848 </span> 68/push <a href='115write-byte.subx.html#L425'>_test-output-buffered-file</a>/imm32 @@ -841,7 +841,7 @@ if ('onhashchange' in window) { <span id="L932" class="LineNr"> 932 </span> 68/push 0/imm32/end <span id="L933" class="LineNr"> 933 </span> 68/push 0/imm32/start <span id="L934" class="LineNr"> 934 </span> 89/copy 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ecx</span> -<span id="L935" class="Folded"> 935 </span><span class="Folded">+-- 26 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L935" class="Folded"> 935 </span><span class="Folded">+-- 26 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L961" class="LineNr"> 961 </span><span class="Constant">$convert-data:loop</span>: <span id="L962" class="LineNr"> 962 </span> <span class="subxComment"># next-word(line, word-slice)</span> <span id="L963" class="LineNr"> 963 </span> <span class="subxS2Comment"># . . push args</span> @@ -851,7 +851,7 @@ if ('onhashchange' in window) { <span id="L967" class="LineNr"> 967 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L968" class="LineNr"> 968 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L969" class="LineNr"> 969 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L970" class="Folded"> 970 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L970" class="Folded"> 970 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1010" class="LineNr">1010 </span><span class="Constant">$convert-data:check0</span>: <span id="L1011" class="LineNr">1011 </span> <span class="subxComment"># if (slice-empty?(word-slice)) break</span> <span id="L1012" class="LineNr">1012 </span> <span class="subxS1Comment"># . eax = slice-empty?(word-slice)</span> @@ -1038,7 +1038,7 @@ if ('onhashchange' in window) { <span id="L1193" class="LineNr">1193 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1194" class="LineNr">1194 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1195" class="LineNr">1195 </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="L1196" class="Folded">1196 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1196" class="Folded">1196 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1222" class="LineNr">1222 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "# abcd", msg)</span> <span id="L1223" class="LineNr">1223 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1224" class="LineNr">1224 </span> 68/push <span class="Constant">"F - test-convert-data-passes-comments-through"</span>/imm32 @@ -1566,7 +1566,7 @@ if ('onhashchange' in window) { <span id="L1746" class="LineNr">1746 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1747" class="LineNr">1747 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1748" class="LineNr">1748 </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="L1749" class="Folded">1749 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1749" class="Folded">1749 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1775" class="LineNr">1775 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "30 abcd/o 42 e1 00 00 \n", msg)</span> <span id="L1776" class="LineNr">1776 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1777" class="LineNr">1777 </span> 68/push <span class="Constant">"F - test-convert-data-multiple-words"</span>/imm32 @@ -1633,7 +1633,7 @@ if ('onhashchange' in window) { <span id="L1838" class="LineNr">1838 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1839" class="LineNr">1839 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1840" class="LineNr">1840 </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="L1841" class="Folded">1841 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1841" class="Folded">1841 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1867" class="LineNr">1867 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "30 00 00 00 # comment", msg)</span> <span id="L1868" class="LineNr">1868 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1869" class="LineNr">1869 </span> 68/push <span class="Constant">"F - test-convert-data-trailing-comment"</span>/imm32 @@ -2179,7 +2179,7 @@ if ('onhashchange' in window) { <span id="L2409" class="LineNr">2409 </span> e8/call <a href='106stream.subx.html#L56'>rewind-stream</a>/disp32 <span id="L2410" class="LineNr">2410 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2411" class="LineNr">2411 </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="L2412" class="Folded">2412 </span><span class="Folded">+-- 33 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2412" class="Folded">2412 </span><span class="Folded">+-- 33 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2445" class="LineNr">2445 </span><span class="Constant">$emit-modrm:loop</span>: <span id="L2446" class="LineNr">2446 </span> <span class="subxComment"># next-word(line, word-slice)</span> <span id="L2447" class="LineNr">2447 </span> <span class="subxS2Comment"># . . push args</span> @@ -2189,7 +2189,7 @@ if ('onhashchange' in window) { <span id="L2451" class="LineNr">2451 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L2452" class="LineNr">2452 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2453" class="LineNr">2453 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L2454" class="Folded">2454 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2454" class="Folded">2454 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2494" class="LineNr">2494 </span><span class="Constant">$emit-modrm:check0</span>: <span id="L2495" class="LineNr">2495 </span> <span class="subxComment"># if (slice-empty?(word-slice)) break</span> <span id="L2496" class="LineNr">2496 </span> <span class="subxS1Comment"># . eax = slice-empty?(word-slice)</span> @@ -2481,7 +2481,7 @@ if ('onhashchange' in window) { <span id="L2782" class="LineNr">2782 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2783" class="LineNr">2783 </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="L2784" class="LineNr">2784 </span><span class="Constant">$emit-sib:loop</span>: -<span id="L2785" class="Folded">2785 </span><span class="Folded">+-- 26 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2785" class="Folded">2785 </span><span class="Folded">+-- 26 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2811" class="LineNr">2811 </span> <span class="subxComment"># next-word(line, word-slice)</span> <span id="L2812" class="LineNr">2812 </span> <span class="subxS2Comment"># . . push args</span> <span id="L2813" class="LineNr">2813 </span> 51/push-ecx @@ -2490,7 +2490,7 @@ if ('onhashchange' in window) { <span id="L2816" class="LineNr">2816 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L2817" class="LineNr">2817 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2818" class="LineNr">2818 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L2819" class="Folded">2819 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2819" class="Folded">2819 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2859" class="LineNr">2859 </span><span class="Constant">$emit-sib:check0</span>: <span id="L2860" class="LineNr">2860 </span> <span class="subxComment"># if (slice-empty?(word-slice)) break</span> <span id="L2861" class="LineNr">2861 </span> <span class="subxS1Comment"># . eax = slice-empty?(word-slice)</span> @@ -2679,7 +2679,7 @@ if ('onhashchange' in window) { <span id="L3044" class="LineNr">3044 </span> e8/call <a href='106stream.subx.html#L56'>rewind-stream</a>/disp32 <span id="L3045" class="LineNr">3045 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3046" class="LineNr">3046 </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="L3047" class="Folded">3047 </span><span class="Folded">+-- 26 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3047" class="Folded">3047 </span><span class="Folded">+-- 26 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3073" class="LineNr">3073 </span><span class="Constant">$emit-disp:loop</span>: <span id="L3074" class="LineNr">3074 </span> <span class="subxComment"># next-word(line, word-slice)</span> <span id="L3075" class="LineNr">3075 </span> <span class="subxS2Comment"># . . push args</span> @@ -2689,7 +2689,7 @@ if ('onhashchange' in window) { <span id="L3079" class="LineNr">3079 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L3080" class="LineNr">3080 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3081" class="LineNr">3081 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L3082" class="Folded">3082 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3082" class="Folded">3082 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3122" class="LineNr">3122 </span><span class="Constant">$emit-disp:check0</span>: <span id="L3123" class="LineNr">3123 </span> <span class="subxComment"># if (slice-empty?(word-slice)) break</span> <span id="L3124" class="LineNr">3124 </span> <span class="subxS1Comment"># . eax = slice-empty?(word-slice)</span> @@ -2834,7 +2834,7 @@ if ('onhashchange' in window) { <span id="L3263" class="LineNr">3263 </span> e8/call <a href='106stream.subx.html#L56'>rewind-stream</a>/disp32 <span id="L3264" class="LineNr">3264 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3265" class="LineNr">3265 </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="L3266" class="Folded">3266 </span><span class="Folded">+-- 26 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3266" class="Folded">3266 </span><span class="Folded">+-- 26 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3292" class="LineNr">3292 </span><span class="Constant">$emit-imm:loop</span>: <span id="L3293" class="LineNr">3293 </span> <span class="subxComment"># next-word(line, word-slice)</span> <span id="L3294" class="LineNr">3294 </span> <span class="subxS2Comment"># . . push args</span> @@ -2844,7 +2844,7 @@ if ('onhashchange' in window) { <span id="L3298" class="LineNr">3298 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L3299" class="LineNr">3299 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3300" class="LineNr">3300 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L3301" class="Folded">3301 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3301" class="Folded">3301 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3341" class="LineNr">3341 </span><span class="Constant">$emit-imm:check0</span>: <span id="L3342" class="LineNr">3342 </span> <span class="subxComment"># if (slice-empty?(word-slice)) break</span> <span id="L3343" class="LineNr">3343 </span> <span class="subxS1Comment"># . eax = slice-empty?(word-slice)</span> @@ -3163,7 +3163,7 @@ if ('onhashchange' in window) { <span id="L3656" class="LineNr">3656 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3657" class="LineNr">3657 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3658" class="LineNr">3658 </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="L3659" class="Folded">3659 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3659" class="Folded">3659 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3685" class="LineNr">3685 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "ab # ab/cd # comment", msg)</span> <span id="L3686" class="LineNr">3686 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3687" class="LineNr">3687 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-single-opcode"</span>/imm32 @@ -3230,7 +3230,7 @@ if ('onhashchange' in window) { <span id="L3748" class="LineNr">3748 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3749" class="LineNr">3749 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3750" class="LineNr">3750 </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="L3751" class="Folded">3751 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3751" class="Folded">3751 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3777" class="LineNr">3777 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "0f ab # 0f/m1 ab/m2 # comment", msg)</span> <span id="L3778" class="LineNr">3778 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3779" class="LineNr">3779 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-0f-opcode"</span>/imm32 @@ -3297,7 +3297,7 @@ if ('onhashchange' in window) { <span id="L3840" class="LineNr">3840 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3841" class="LineNr">3841 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3842" class="LineNr">3842 </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="L3843" class="Folded">3843 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3843" class="Folded">3843 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3869" class="LineNr">3869 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "f2 ab # f2/m1 ab/m2 # comment", msg)</span> <span id="L3870" class="LineNr">3870 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3871" class="LineNr">3871 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-f2-opcode"</span>/imm32 @@ -3364,7 +3364,7 @@ if ('onhashchange' in window) { <span id="L3932" class="LineNr">3932 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3933" class="LineNr">3933 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3934" class="LineNr">3934 </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="L3935" class="Folded">3935 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3935" class="Folded">3935 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3961" class="LineNr">3961 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "f3 ab # f3/m1 ab/m2 # comment", msg)</span> <span id="L3962" class="LineNr">3962 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3963" class="LineNr">3963 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-f3-opcode"</span>/imm32 @@ -3431,7 +3431,7 @@ if ('onhashchange' in window) { <span id="L4024" class="LineNr">4024 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4025" class="LineNr">4025 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4026" class="LineNr">4026 </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="L4027" class="Folded">4027 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4027" class="Folded">4027 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4053" class="LineNr">4053 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "f2 0f ab # f2/m1 0f/m2 ab/m3 # comment", msg)</span> <span id="L4054" class="LineNr">4054 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4055" class="LineNr">4055 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-f2-0f-opcode"</span>/imm32 @@ -3498,7 +3498,7 @@ if ('onhashchange' in window) { <span id="L4116" class="LineNr">4116 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4117" class="LineNr">4117 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4118" class="LineNr">4118 </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="L4119" class="Folded">4119 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4119" class="Folded">4119 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4145" class="LineNr">4145 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "f3 0f ab # f3/m1 0f/m2 ab/m3 # comment", msg)</span> <span id="L4146" class="LineNr">4146 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4147" class="LineNr">4147 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-f3-0f-opcode"</span>/imm32 @@ -3565,7 +3565,7 @@ if ('onhashchange' in window) { <span id="L4208" class="LineNr">4208 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4209" class="LineNr">4209 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4210" class="LineNr">4210 </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="L4211" class="Folded">4211 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4211" class="Folded">4211 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4237" class="LineNr">4237 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "ab # f3/m1 0f/m2 ab/m3 # comment", msg)</span> <span id="L4238" class="LineNr">4238 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4239" class="LineNr">4239 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-unused-opcodes"</span>/imm32 @@ -3632,7 +3632,7 @@ if ('onhashchange' in window) { <span id="L4300" class="LineNr">4300 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4301" class="LineNr">4301 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4302" class="LineNr">4302 </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="L4303" class="Folded">4303 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4303" class="Folded">4303 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4329" class="LineNr">4329 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "f2 ab # f2/m1 ab/m2 cd/m3 # comment", msg)</span> <span id="L4330" class="LineNr">4330 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4331" class="LineNr">4331 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-unused-second-opcodes"</span>/imm32 @@ -3699,7 +3699,7 @@ if ('onhashchange' in window) { <span id="L4392" class="LineNr">4392 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4393" class="LineNr">4393 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4394" class="LineNr">4394 </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="L4395" class="Folded">4395 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4395" class="Folded">4395 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4421" class="LineNr">4421 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "f3 ab # f3/m1 ab/m2 cd/m3 # comment", msg)</span> <span id="L4422" class="LineNr">4422 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4423" class="LineNr">4423 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-unused-second-opcodes"</span>/imm32 @@ -3766,7 +3766,7 @@ if ('onhashchange' in window) { <span id="L4484" class="LineNr">4484 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4485" class="LineNr">4485 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4486" class="LineNr">4486 </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="L4487" class="Folded">4487 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4487" class="Folded">4487 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4513" class="LineNr">4513 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "8b 08 # 8b/copy 0/mod 0/rm32 1/r32", msg)</span> <span id="L4514" class="LineNr">4514 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4515" class="LineNr">4515 </span> 68/push <span class="Constant">"F - test-convert-instruction-emits-modrm-byte"</span>/imm32 @@ -3831,7 +3831,7 @@ if ('onhashchange' in window) { <span id="L4574" class="LineNr">4574 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4575" class="LineNr">4575 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4576" class="LineNr">4576 </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="L4577" class="Folded">4577 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4577" class="Folded">4577 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4603" class="LineNr">4603 </span> <span class="subxComment"># check output</span> <span id="L4604" class="LineNr">4604 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "# abcd", msg)</span> <span id="L4605" class="LineNr">4605 </span> <span class="subxS2Comment"># . . push args</span> @@ -3899,7 +3899,7 @@ if ('onhashchange' in window) { <span id="L4667" class="LineNr">4667 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4668" class="LineNr">4668 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4669" class="LineNr">4669 </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="L4670" class="Folded">4670 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4670" class="Folded">4670 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4696" class="LineNr">4696 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "ff 30 # ff 6/subop/push 0/mod 0/rm32", msg)</span> <span id="L4697" class="LineNr">4697 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4698" class="LineNr">4698 </span> 68/push <span class="Constant">"F - test-convert-instruction-emits-modrm-byte-from-subop"</span>/imm32 @@ -3966,7 +3966,7 @@ if ('onhashchange' in window) { <span id="L4759" class="LineNr">4759 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4760" class="LineNr">4760 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4761" class="LineNr">4761 </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="L4762" class="Folded">4762 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4762" class="Folded">4762 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4788" class="LineNr">4788 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "8b 08 # 8b/copy 0/rm32 1/r32", msg)</span> <span id="L4789" class="LineNr">4789 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4790" class="LineNr">4790 </span> 68/push <span class="Constant">"F - test-convert-instruction-emits-modrm-byte-with-missing-mod"</span>/imm32 @@ -4033,7 +4033,7 @@ if ('onhashchange' in window) { <span id="L4851" class="LineNr">4851 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4852" class="LineNr">4852 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4853" class="LineNr">4853 </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="L4854" class="Folded">4854 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4854" class="Folded">4854 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4880" class="LineNr">4880 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "8b 08 # 8b/copy 0/mod 1/r32", msg)</span> <span id="L4881" class="LineNr">4881 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4882" class="LineNr">4882 </span> 68/push <span class="Constant">"F - test-convert-instruction-emits-modrm-byte-with-missing-rm32"</span>/imm32 @@ -4100,7 +4100,7 @@ if ('onhashchange' in window) { <span id="L4943" class="LineNr">4943 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L4944" class="LineNr">4944 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4945" class="LineNr">4945 </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="L4946" class="Folded">4946 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4946" class="Folded">4946 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4972" class="LineNr">4972 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "8b 00 # 8b/copy 0/mod 0/rm32", msg)</span> <span id="L4973" class="LineNr">4973 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4974" class="LineNr">4974 </span> 68/push <span class="Constant">"F - test-convert-instruction-emits-modrm-byte-with-missing-r32"</span>/imm32 @@ -4167,7 +4167,7 @@ if ('onhashchange' in window) { <span id="L5035" class="LineNr">5035 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5036" class="LineNr">5036 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5037" class="LineNr">5037 </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="L5038" class="Folded">5038 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5038" class="Folded">5038 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5064" class="LineNr">5064 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "8b 08 # 8b/copy 0/mod 4/rm32 1/r32 0/base 1/index 0/scale", msg)</span> <span id="L5065" class="LineNr">5065 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5066" class="LineNr">5066 </span> 68/push <span class="Constant">"F - test-convert-instruction-emits-sib-byte"</span>/imm32 @@ -4234,7 +4234,7 @@ if ('onhashchange' in window) { <span id="L5127" class="LineNr">5127 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5128" class="LineNr">5128 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5129" class="LineNr">5129 </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="L5130" class="Folded">5130 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5130" class="Folded">5130 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5156" class="LineNr">5156 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "8b 04 40 # 8b/copy 0/mod 4/rm32 1/scale", msg)</span> <span id="L5157" class="LineNr">5157 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5158" class="LineNr">5158 </span> 68/push <span class="Constant">"F - test-convert-instruction-emits-scale"</span>/imm32 @@ -4301,7 +4301,7 @@ if ('onhashchange' in window) { <span id="L5219" class="LineNr">5219 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5220" class="LineNr">5220 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5221" class="LineNr">5221 </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="L5222" class="Folded">5222 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5222" class="Folded">5222 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5248" class="LineNr">5248 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "8b 0c 08 # 8b/copy 0/mod 4/rm32 1/r32 1/index 0/scale", msg)</span> <span id="L5249" class="LineNr">5249 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5250" class="LineNr">5250 </span> 68/push <span class="Constant">"F - test-convert-instruction-emits-sib-byte-with-missing-base"</span>/imm32 @@ -4368,7 +4368,7 @@ if ('onhashchange' in window) { <span id="L5311" class="LineNr">5311 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5312" class="LineNr">5312 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5313" class="LineNr">5313 </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="L5314" class="Folded">5314 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5314" class="Folded">5314 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5340" class="LineNr">5340 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "8b 0c 08 # 8b/copy 0/mod 4/rm32 1/r32 0/base 0/scale", msg)</span> <span id="L5341" class="LineNr">5341 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5342" class="LineNr">5342 </span> 68/push <span class="Constant">"F - test-convert-instruction-emits-sib-byte-with-missing-index"</span>/imm32 @@ -4435,7 +4435,7 @@ if ('onhashchange' in window) { <span id="L5403" class="LineNr">5403 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5404" class="LineNr">5404 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5405" class="LineNr">5405 </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="L5406" class="Folded">5406 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5406" class="Folded">5406 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5432" class="LineNr">5432 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "8b 0c 08 # 8b/copy 0/mod 4/rm32 1/r32 0/base 1/index", msg)</span> <span id="L5433" class="LineNr">5433 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5434" class="LineNr">5434 </span> 68/push <span class="Constant">"F - test-convert-instruction-emits-sib-byte-with-missing-scale"</span>/imm32 @@ -4502,7 +4502,7 @@ if ('onhashchange' in window) { <span id="L5495" class="LineNr">5495 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5496" class="LineNr">5496 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5497" class="LineNr">5497 </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="L5498" class="Folded">5498 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5498" class="Folded">5498 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5524" class="LineNr">5524 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "e8 20 00 00 00 # e8/call 20/disp32", msg)</span> <span id="L5525" class="LineNr">5525 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5526" class="LineNr">5526 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-disp32-operand"</span>/imm32 @@ -4569,7 +4569,7 @@ if ('onhashchange' in window) { <span id="L5587" class="LineNr">5587 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5588" class="LineNr">5588 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5589" class="LineNr">5589 </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="L5590" class="Folded">5590 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5590" class="Folded">5590 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5616" class="LineNr">5616 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "e8 20 00 # e8/call 20/disp16", msg)</span> <span id="L5617" class="LineNr">5617 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5618" class="LineNr">5618 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-disp16-operand"</span>/imm32 @@ -4636,7 +4636,7 @@ if ('onhashchange' in window) { <span id="L5679" class="LineNr">5679 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5680" class="LineNr">5680 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5681" class="LineNr">5681 </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="L5682" class="Folded">5682 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5682" class="Folded">5682 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5708" class="LineNr">5708 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "eb 20 # eb/jump 20/disp8", msg)</span> <span id="L5709" class="LineNr">5709 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5710" class="LineNr">5710 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-disp8-operand"</span>/imm32 @@ -4703,7 +4703,7 @@ if ('onhashchange' in window) { <span id="L5771" class="LineNr">5771 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5772" class="LineNr">5772 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5773" class="LineNr">5773 </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="L5774" class="Folded">5774 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5774" class="Folded">5774 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5800" class="LineNr">5800 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "eb xyz/disp8 # eb/jump xyz/disp8", msg)</span> <span id="L5801" class="LineNr">5801 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5802" class="LineNr">5802 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-disp8-name"</span>/imm32 @@ -4770,7 +4770,7 @@ if ('onhashchange' in window) { <span id="L5863" class="LineNr">5863 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5864" class="LineNr">5864 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5865" class="LineNr">5865 </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="L5866" class="Folded">5866 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5866" class="Folded">5866 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5892" class="LineNr">5892 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "68 20 00 00 00 # 68/push 0x20/imm32", msg)</span> <span id="L5893" class="LineNr">5893 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5894" class="LineNr">5894 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-imm32-operand"</span>/imm32 @@ -4838,7 +4838,7 @@ if ('onhashchange' in window) { <span id="L5956" class="LineNr">5956 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L5957" class="LineNr">5957 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L5958" class="LineNr">5958 </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="L5959" class="Folded">5959 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L5959" class="Folded">5959 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L5985" class="LineNr">5985 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "68 20 00 # 68/push 0x20/imm16", msg)</span> <span id="L5986" class="LineNr">5986 </span> <span class="subxS2Comment"># . . push args</span> <span id="L5987" class="LineNr">5987 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-imm16-operand"</span>/imm32 @@ -4906,7 +4906,7 @@ if ('onhashchange' in window) { <span id="L6049" class="LineNr">6049 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L6050" class="LineNr">6050 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L6051" class="LineNr">6051 </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="L6052" class="Folded">6052 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L6052" class="Folded">6052 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L6078" class="LineNr">6078 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "68 20 # 68/push 0x20/imm8", msg)</span> <span id="L6079" class="LineNr">6079 </span> <span class="subxS2Comment"># . . push args</span> <span id="L6080" class="LineNr">6080 </span> 68/push <span class="Constant">"F - test-convert-instruction-handles-imm8-operand"</span>/imm32 diff --git a/html/linux/random.subx.html b/html/linux/random.subx.html index b498736b..db841c4e 100644 --- a/html/linux/random.subx.html +++ b/html/linux/random.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/random.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -18,13 +18,13 @@ a { color:inherit; } .subxS2Comment { color: #8a8a8a; } .LineNr { } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.Constant { color: #008787; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/sigils.subx.html b/html/linux/sigils.subx.html index 4cf3df1e..f7a7d6a9 100644 --- a/html/linux/sigils.subx.html +++ b/html/linux/sigils.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/sigils.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,19 +16,19 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -272,7 +272,7 @@ if ('onhashchange' in window) { <span id="L210" class="LineNr"> 210 </span> 3d/compare-eax-and 0x25/imm32/percent <span id="L211" class="LineNr"> 211 </span> 75/jump-if-!= $subx-sigils:check-for-indirect-mode/disp8 <span id="L212" class="LineNr"> 212 </span><span class="Constant">$subx-sigils:direct-mode</span>: -<span id="L213" class="Folded"> 213 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L213" class="Folded"> 213 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L253" class="LineNr"> 253 </span> <span class="subxComment"># emit-direct-mode(out, word-slice)</span> <span id="L254" class="LineNr"> 254 </span> <span class="subxS2Comment"># . . push args</span> <span id="L255" class="LineNr"> 255 </span> 52/push-edx @@ -513,7 +513,7 @@ if ('onhashchange' in window) { <span id="L490" class="LineNr"> 490 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L491" class="LineNr"> 491 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L492" class="LineNr"> 492 </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="L493" class="Folded"> 493 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L493" class="Folded"> 493 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L519" class="LineNr"> 519 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "== abcd 0x1 \n", msg)</span> <span id="L520" class="LineNr"> 520 </span> <span class="subxS2Comment"># . . push args</span> <span id="L521" class="LineNr"> 521 </span> 68/push <span class="Constant">"F - test-subx-sigils-passes-most-words-through"</span>/imm32 @@ -586,7 +586,7 @@ if ('onhashchange' in window) { <span id="L588" class="LineNr"> 588 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L589" class="LineNr"> 589 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L590" class="LineNr"> 590 </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="L591" class="Folded"> 591 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L591" class="Folded"> 591 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L617" class="LineNr"> 617 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "ab 3/mod/direct 0x00000001/rm32 \n", msg)</span> <span id="L618" class="LineNr"> 618 </span> <span class="subxS2Comment"># . . push args</span> <span id="L619" class="LineNr"> 619 </span> 68/push <span class="Constant">"F - test-subx-sigils-direct-mode"</span>/imm32 @@ -731,7 +731,7 @@ if ('onhashchange' in window) { <span id="L758" class="LineNr"> 758 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L759" class="LineNr"> 759 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L760" class="LineNr"> 760 </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="L761" class="Folded"> 761 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L761" class="Folded"> 761 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L787" class="LineNr"> 787 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "ab 0/mod/indirect 0x00000001/rm32 \n", msg)</span> <span id="L788" class="LineNr"> 788 </span> <span class="subxS2Comment"># . . push args</span> <span id="L789" class="LineNr"> 789 </span> 68/push <span class="Constant">"F - test-subx-sigils-register-indirect-mode"</span>/imm32 @@ -876,7 +876,7 @@ if ('onhashchange' in window) { <span id="L928" class="LineNr"> 928 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L929" class="LineNr"> 929 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L930" class="LineNr"> 930 </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="L931" class="Folded"> 931 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L931" class="Folded"> 931 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L957" class="LineNr"> 957 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "ab 0/mod/indirect 1/rm32 \n", msg)</span> <span id="L958" class="LineNr"> 958 </span> <span class="subxS2Comment"># . . push args</span> <span id="L959" class="LineNr"> 959 </span> 68/push <span class="Constant">"F - test-subx-sigils-register-indirect-mode-without-displacement"</span>/imm32 @@ -949,7 +949,7 @@ if ('onhashchange' in window) { <span id="L1026" class="LineNr">1026 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1027" class="LineNr">1027 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1028" class="LineNr">1028 </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="L1029" class="Folded">1029 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1029" class="Folded">1029 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1055" class="LineNr">1055 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "ab 2/mod/*+disp32 1/rm32 4/disp32 \n", msg)</span> <span id="L1056" class="LineNr">1056 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1057" class="LineNr">1057 </span> 68/push <span class="Constant">"F - test-subx-sigils-register-indirect-mode-with-displacement"</span>/imm32 @@ -1023,7 +1023,7 @@ if ('onhashchange' in window) { <span id="L1125" class="LineNr">1125 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1126" class="LineNr">1126 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1127" class="LineNr">1127 </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="L1128" class="Folded">1128 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1128" class="Folded">1128 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1154" class="LineNr">1154 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "ab 2/mod/*+disp32 4/rm32/sib 1/base 2/index 3/scale 4/disp32 \n", msg)</span> <span id="L1155" class="LineNr">1155 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1156" class="LineNr">1156 </span> 68/push <span class="Constant">"F - test-subx-sigils-register-indirect-mode-with-sib-byte"</span>/imm32 @@ -1096,7 +1096,7 @@ if ('onhashchange' in window) { <span id="L1223" class="LineNr">1223 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1224" class="LineNr">1224 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1225" class="LineNr">1225 </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="L1226" class="Folded">1226 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1226" class="Folded">1226 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1252" class="LineNr">1252 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "ab 2/mod/*+disp32 4/rm32/sib 1/base 2/index 3/scale -4/disp32 \n", msg)</span> <span id="L1253" class="LineNr">1253 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1254" class="LineNr">1254 </span> 68/push <span class="Constant">"F - test-subx-sigils-register-indirect-mode-with-sib-byte-negative-displacement"</span>/imm32 @@ -1169,7 +1169,7 @@ if ('onhashchange' in window) { <span id="L1321" class="LineNr">1321 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1322" class="LineNr">1322 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1323" class="LineNr">1323 </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="L1324" class="Folded">1324 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1324" class="Folded">1324 </span><span class="Folded">+-- 26 lines: #? # dump _test-output-stream ----------------------------------------------------------------------------------------------------------------------------</span> <span id="L1350" class="LineNr">1350 </span> <span class="subxS1Comment"># . check-stream-equal(_test-output-stream, "ab 0/mod/indirect 5/rm32/.disp32 Foo/disp32 \n", msg)</span> <span id="L1351" class="LineNr">1351 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1352" class="LineNr">1352 </span> 68/push <span class="Constant">"F - test-subx-sigils-indirect-mode-without-register"</span>/imm32 @@ -1198,7 +1198,7 @@ if ('onhashchange' in window) { <span id="L1375" class="LineNr">1375 </span> <span class="subxComment"># ++local-slice->start to skip '%'</span> <span id="L1376" class="LineNr">1376 </span> <span class="subxS1Comment"># . ++(*eax)</span> <span id="L1377" class="LineNr">1377 </span> ff 0/subop/increment 0/mod/indirect 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># increment *eax</span> -<span id="L1378" class="Folded">1378 </span><span class="Folded">+-- 24 lines: #? # write-slice-buffered(Stderr, word-slice) -------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1378" class="Folded">1378 </span><span class="Folded">+-- 24 lines: #? # write-slice-buffered(Stderr, word-slice) ------------------------------------------------------------------------------------------------------------</span> <span id="L1402" class="LineNr">1402 </span> <span class="subxComment"># local-slice = next-token-from-slice(local-slice->start, local-slice->end, "/")</span> <span id="L1403" class="LineNr">1403 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1404" class="LineNr">1404 </span> 50/push-eax @@ -1296,7 +1296,7 @@ if ('onhashchange' in window) { <span id="L1496" class="LineNr">1496 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1497" class="LineNr">1497 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1498" class="LineNr">1498 </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="L1499" class="Folded">1499 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1499" class="Folded">1499 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1525" class="LineNr">1525 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "3/mod/direct 0/rm32", msg)</span> <span id="L1526" class="LineNr">1526 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1527" class="LineNr">1527 </span> 68/push <span class="Constant">"F - <a href='sigils.subx.html#L1456'>test-emit-direct-mode</a>/0"</span>/imm32 @@ -1354,7 +1354,7 @@ if ('onhashchange' in window) { <span id="L1579" class="LineNr">1579 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L1580" class="LineNr">1580 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1581" class="LineNr">1581 </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="L1582" class="Folded">1582 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1582" class="Folded">1582 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1608" class="LineNr">1608 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "3/mod/direct 7/rm32", msg)</span> <span id="L1609" class="LineNr">1609 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1610" class="LineNr">1610 </span> 68/push <span class="Constant">"F - <a href='sigils.subx.html#L1456'>test-emit-direct-mode</a>/1"</span>/imm32 @@ -3126,7 +3126,7 @@ if ('onhashchange' in window) { <span id="L3376" class="LineNr">3376 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3377" class="LineNr">3377 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3378" class="LineNr">3378 </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="L3379" class="Folded">3379 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3379" class="Folded">3379 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3405" class="LineNr">3405 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "0/mod/indirect 0/rm32", msg)</span> <span id="L3406" class="LineNr">3406 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3407" class="LineNr">3407 </span> 68/push <span class="Constant">"F - test-emit-indirect-mode"</span>/imm32 @@ -3178,7 +3178,7 @@ if ('onhashchange' in window) { <span id="L3453" class="LineNr">3453 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3454" class="LineNr">3454 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3455" class="LineNr">3455 </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="L3456" class="Folded">3456 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3456" class="Folded">3456 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3482" class="LineNr">3482 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "0/mod/indirect 7/rm32", msg)</span> <span id="L3483" class="LineNr">3483 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3484" class="LineNr">3484 </span> 68/push <span class="Constant">"F - test-emit-indirect-mode-2"</span>/imm32 @@ -3230,7 +3230,7 @@ if ('onhashchange' in window) { <span id="L3530" class="LineNr">3530 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3531" class="LineNr">3531 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3532" class="LineNr">3532 </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="L3533" class="Folded">3533 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3533" class="Folded">3533 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3559" class="LineNr">3559 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "2/mod/*+disp32 6/rm32 4/disp32", msg)</span> <span id="L3560" class="LineNr">3560 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3561" class="LineNr">3561 </span> 68/push <span class="Constant">"F - test-emit-indirect-mode-with-disp"</span>/imm32 @@ -3282,7 +3282,7 @@ if ('onhashchange' in window) { <span id="L3607" class="LineNr">3607 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3608" class="LineNr">3608 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3609" class="LineNr">3609 </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="L3610" class="Folded">3610 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3610" class="Folded">3610 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3636" class="LineNr">3636 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "2/mod/*+disp32 6/rm32 -4/disp32", msg)</span> <span id="L3637" class="LineNr">3637 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3638" class="LineNr">3638 </span> 68/push <span class="Constant">"F - test-emit-indirect-mode-with-disp"</span>/imm32 @@ -3334,7 +3334,7 @@ if ('onhashchange' in window) { <span id="L3684" class="LineNr">3684 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3685" class="LineNr">3685 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3686" class="LineNr">3686 </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="L3687" class="Folded">3687 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3687" class="Folded">3687 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3713" class="LineNr">3713 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "2/mod/indirect 4/rm32/sib 6/base 1/index 2/scale 4/disp", msg)</span> <span id="L3714" class="LineNr">3714 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3715" class="LineNr">3715 </span> 68/push <span class="Constant">"F - test-emit-indirect-mode-with-sib"</span>/imm32 @@ -3386,7 +3386,7 @@ if ('onhashchange' in window) { <span id="L3761" class="LineNr">3761 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3762" class="LineNr">3762 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3763" class="LineNr">3763 </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="L3764" class="Folded">3764 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3764" class="Folded">3764 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3790" class="LineNr">3790 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "2/mod/*+disp32 4/rm32/sib 5/base/ebp 0/index 0/scale 0/disp32", msg)</span> <span id="L3791" class="LineNr">3791 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3792" class="LineNr">3792 </span> 68/push <span class="Constant">"F - test-emit-indirect-mode-ebp"</span>/imm32 @@ -3438,7 +3438,7 @@ if ('onhashchange' in window) { <span id="L3838" class="LineNr">3838 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L3839" class="LineNr">3839 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3840" class="LineNr">3840 </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="L3841" class="Folded">3841 </span><span class="Folded">+-- 26 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3841" class="Folded">3841 </span><span class="Folded">+-- 26 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3867" class="LineNr">3867 </span> <span class="subxComment"># check-stream-equal(_test-output-stream, "2/mod/*+disp32 4/rm32/sib 4/base/ebp 0/index 0/scale 0/disp32", msg)</span> <span id="L3868" class="LineNr">3868 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3869" class="LineNr">3869 </span> 68/push <span class="Constant">"F - test-emit-indirect-mode-esp"</span>/imm32 diff --git a/html/linux/stack_array.subx.html b/html/linux/stack_array.subx.html index 709b4919..9f76867f 100644 --- a/html/linux/stack_array.subx.html +++ b/html/linux/stack_array.subx.html @@ -1,31 +1,31 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/stack_array.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } -.CommentedCode { color: #8a8a8a; } +.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .SpecialChar { color: #d70000; } .Constant { color: #008787; } -.Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/subx-params.subx.html b/html/linux/subx-params.subx.html index dc4da4ab..039f136f 100644 --- a/html/linux/subx-params.subx.html +++ b/html/linux/subx-params.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/subx-params.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -20,7 +20,7 @@ a { color:inherit; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/survey_baremetal.subx.html b/html/linux/survey_baremetal.subx.html index bee3ce57..8837d5ee 100644 --- a/html/linux/survey_baremetal.subx.html +++ b/html/linux/survey_baremetal.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/survey_baremetal.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,20 +16,20 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .CommentedCode { color: #8a8a8a; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -335,7 +335,7 @@ if ('onhashchange' in window) { <span id="L272" class="LineNr"> 272 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L273" class="LineNr"> 273 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L274" class="LineNr"> 274 </span> <span class="subxComment"># check trace</span> -<span id="L275" class="Folded"> 275 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L275" class="Folded"> 275 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L301" class="LineNr"> 301 </span> <span class="subxS1Comment"># . check-trace-contains("label 'x' is at address 0x00007c05.", msg)</span> <span id="L302" class="LineNr"> 302 </span> <span class="subxS2Comment"># . . push args</span> <span id="L303" class="LineNr"> 303 </span> 68/push <span class="Constant">"F - <a href='survey_baremetal.subx.html#L182'>test-subx-survey-computes-addresses</a>/0"</span>/imm32 @@ -442,7 +442,7 @@ if ('onhashchange' in window) { <span id="L404" class="LineNr"> 404 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L405" class="LineNr"> 405 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L406" class="LineNr"> 406 </span> <span class="subxComment"># check trace</span> -<span id="L407" class="Folded"> 407 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L407" class="Folded"> 407 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L433" class="LineNr"> 433 </span> <span class="subxS1Comment"># . check-trace-contains("label 'x' is at address 0x00007c10.", msg)</span> <span id="L434" class="LineNr"> 434 </span> <span class="subxS2Comment"># . . push args</span> <span id="L435" class="LineNr"> 435 </span> 68/push <span class="Constant">"F - <a href='survey_baremetal.subx.html#L314'>test-subx-survey-computes-addresses-with-padding</a>/0"</span>/imm32 @@ -531,7 +531,7 @@ if ('onhashchange' in window) { <span id="L518" class="LineNr"> 518 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span> <span id="L519" class="LineNr"> 519 </span> 3d/compare-eax-and 0/imm32 <span id="L520" class="LineNr"> 520 </span> 0f 84/jump-if-= $compute-addresses:end/disp32 -<span id="L521" class="Folded"> 521 </span><span class="Folded">+-- 33 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L521" class="Folded"> 521 </span><span class="Folded">+-- 33 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L554" class="LineNr"> 554 </span><span class="Constant">$compute-addresses:word-loop</span>: <span id="L555" class="LineNr"> 555 </span> <span class="subxComment"># next-word(line, word-slice)</span> <span id="L556" class="LineNr"> 556 </span> <span class="subxS2Comment"># . . push args</span> @@ -679,7 +679,7 @@ if ('onhashchange' in window) { <span id="L698" class="LineNr"> 698 </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="L699" class="LineNr"> 699 </span> <span class="subxComment"># current-address += width</span> <span id="L700" class="LineNr"> 700 </span> 01/add 3/mod/direct 6/rm32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># add eax to *esi</span> -<span id="L701" class="Folded"> 701 </span><span class="Folded">+-- 41 lines: #? # dump segment-offset ----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L701" class="Folded"> 701 </span><span class="Folded">+-- 41 lines: #? # dump segment-offset ---------------------------------------------------------------------------------------------------------------------------------</span> <span id="L742" class="LineNr"> 742 </span> e9/jump $compute-addresses:word-loop/disp32 <span id="L743" class="LineNr"> 743 </span><span class="Constant">$compute-addresses:end</span>: <span id="L744" class="LineNr"> 744 </span> <span class="subxS1Comment"># . reclaim locals</span> @@ -810,7 +810,7 @@ if ('onhashchange' in window) { <span id="L869" class="LineNr"> 869 </span> e8/call <a href='survey_baremetal.subx.html#L446'>compute-addresses</a>/disp32 <span id="L870" class="LineNr"> 870 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L871" class="LineNr"> 871 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L872" class="Folded"> 872 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L872" class="Folded"> 872 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L898" class="LineNr"> 898 </span> <span class="subxS1Comment"># . check-trace-contains("label 'x' is at address 0x00007c06.", msg)</span> <span id="L899" class="LineNr"> 899 </span> <span class="subxS2Comment"># . . push args</span> <span id="L900" class="LineNr"> 900 </span> 68/push <span class="Constant">"F - test-compute-addresses"</span>/imm32 @@ -1018,7 +1018,7 @@ if ('onhashchange' in window) { <span id="L1102" class="LineNr">1102 </span> e8/call <a href='survey_baremetal.subx.html#L1028'>trace-slsns</a>/disp32 <span id="L1103" class="LineNr">1103 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1104" class="LineNr">1104 </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> 0x14/imm32 <span class="subxComment"># add to esp</span> -<span id="L1105" class="Folded">1105 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1105" class="Folded">1105 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1131" class="LineNr">1131 </span> <span class="subxComment"># check-trace-contains("Abc 0x00000003 e")</span> <span id="L1132" class="LineNr">1132 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1133" class="LineNr">1133 </span> 68/push <span class="Constant">"F - test-trace-slsls"</span>/imm32 diff --git a/html/linux/survey_elf.subx.html b/html/linux/survey_elf.subx.html index 83b8eae8..2ff3382e 100644 --- a/html/linux/survey_elf.subx.html +++ b/html/linux/survey_elf.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/survey_elf.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,20 +16,20 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } -.subxTest { color: #5f8700; } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .CommentedCode { color: #8a8a8a; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } .Folded { color: #080808; background-color: #949494; } -.Constant { color: #008787; } +.subxTest { color: #5f8700; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -387,7 +387,7 @@ if ('onhashchange' in window) { <span id="L324" class="LineNr"> 324 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L325" class="LineNr"> 325 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L326" class="LineNr"> 326 </span> <span class="subxComment"># check trace</span> -<span id="L327" class="Folded"> 327 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L327" class="Folded"> 327 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L353" class="LineNr"> 353 </span> <span class="subxS1Comment"># . check-trace-contains("label 'x' is at address 0x00001079.", msg)</span> <span id="L354" class="LineNr"> 354 </span> <span class="subxS2Comment"># . . push args</span> <span id="L355" class="LineNr"> 355 </span> 68/push <span class="Constant">"F - <a href='survey_elf.subx.html#L222'>test-subx-survey-computes-addresses</a>/0"</span>/imm32 @@ -550,7 +550,7 @@ if ('onhashchange' in window) { <span id="L512" class="LineNr"> 512 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span> <span id="L513" class="LineNr"> 513 </span> 3d/compare-eax-and 0/imm32 <span id="L514" class="LineNr"> 514 </span> 0f 84/jump-if-= $compute-offsets:break-line-loop/disp32 -<span id="L515" class="Folded"> 515 </span><span class="Folded">+-- 33 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L515" class="Folded"> 515 </span><span class="Folded">+-- 33 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L548" class="LineNr"> 548 </span><span class="Constant">$compute-offsets:word-loop</span>: <span id="L549" class="LineNr"> 549 </span> <span class="subxComment"># next-word(line, word-slice)</span> <span id="L550" class="LineNr"> 550 </span> <span class="subxS2Comment"># . . push args</span> @@ -828,7 +828,7 @@ if ('onhashchange' in window) { <span id="L822" class="LineNr"> 822 </span> 01/add 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <a href='survey_elf.subx.html#L407'>compute-offsets</a>:segment-offset/disp32 <span class="subxComment"># add eax to *segment-offset</span> <span id="L823" class="LineNr"> 823 </span> <span class="subxComment"># file-offset += width</span> <span id="L824" class="LineNr"> 824 </span> 01/add 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <a href='survey_elf.subx.html#L407'>compute-offsets</a>:file-offset/disp32 <span class="subxComment"># add eax to *file-offset</span> -<span id="L825" class="Folded"> 825 </span><span class="Folded">+-- 41 lines: #? # dump segment-offset ----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L825" class="Folded"> 825 </span><span class="Folded">+-- 41 lines: #? # dump segment-offset ---------------------------------------------------------------------------------------------------------------------------------</span> <span id="L866" class="LineNr"> 866 </span> e9/jump $compute-offsets:word-loop/disp32 <span id="L867" class="LineNr"> 867 </span><span class="Constant">$compute-offsets:break-line-loop</span>: <span id="L868" class="LineNr"> 868 </span> <span class="subxComment"># sinfo/edi = get-or-insert-handle(segments, curr-segment-name, row-size=16)</span> @@ -1004,7 +1004,7 @@ if ('onhashchange' in window) { <span id="L1038" class="LineNr">1038 </span> e8/call <a href='survey_elf.subx.html#L407'>compute-offsets</a>/disp32 <span id="L1039" class="LineNr">1039 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1040" class="LineNr">1040 </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="L1041" class="Folded">1041 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1041" class="Folded">1041 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1067" class="LineNr">1067 </span> <span class="subxComment"># check trace</span> <span id="L1068" class="LineNr">1068 </span> <span class="subxS1Comment"># . check-trace-contains("segment 'code' is at file offset 0x00000000.", msg)</span> <span id="L1069" class="LineNr">1069 </span> <span class="subxS2Comment"># . . push args</span> @@ -1168,7 +1168,7 @@ if ('onhashchange' in window) { <span id="L1227" class="LineNr">1227 </span> 81 0/subop/add 3/mod/direct 6/rm32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x14/imm32 <span class="subxComment"># add to esi</span> <span id="L1228" class="LineNr">1228 </span> eb/jump $compute-addresses:segment-loop/disp8 <span id="L1229" class="LineNr">1229 </span><span class="Constant">$compute-addresses:segment-break</span>: -<span id="L1230" class="Folded">1230 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1230" class="Folded">1230 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1256" class="LineNr">1256 </span> <span class="subxComment"># esi = labels</span> <span id="L1257" class="LineNr">1257 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/esi 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+12) to esi</span> <span id="L1258" class="LineNr">1258 </span> <span class="subxComment"># var max/ecx: (addr byte) = &labels->data[labels->write]</span> @@ -1180,7 +1180,7 @@ if ('onhashchange' in window) { <span id="L1264" class="LineNr">1264 </span> <span class="subxComment"># if (lrow >= max) break</span> <span id="L1265" class="LineNr">1265 </span> 39/compare 3/mod/direct 6/rm32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># compare esi with ecx</span> <span id="L1266" class="LineNr">1266 </span> 0f 83/jump-if-addr>= $compute-addresses:end/disp32 -<span id="L1267" class="Folded">1267 </span><span class="Folded">+-- 26 lines: #? # dump lrow->key ---------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1267" class="Folded">1267 </span><span class="Folded">+-- 26 lines: #? # dump lrow->key --------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1293" class="LineNr">1293 </span> <span class="subxComment"># var seg-name/edx: (addr array byte) = lookup(lrow->segment-name)</span> <span id="L1294" class="LineNr">1294 </span> <span class="subxS1Comment"># . eax = lookup(lrow->segment-name)</span> <span id="L1295" class="LineNr">1295 </span> <span class="subxS2Comment"># . . push args</span> @@ -1192,7 +1192,7 @@ if ('onhashchange' in window) { <span id="L1301" class="LineNr">1301 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L1302" class="LineNr">1302 </span> <span class="subxS1Comment"># . edx = eax</span> <span id="L1303" class="LineNr">1303 </span> 89/copy 3/mod/direct 2/rm32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy eax to edx</span> -<span id="L1304" class="Folded">1304 </span><span class="Folded">+-- 26 lines: #? # dump seg-name ----------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1304" class="Folded">1304 </span><span class="Folded">+-- 26 lines: #? # dump seg-name ---------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1330" class="LineNr">1330 </span> <span class="subxComment"># var label-seg/edx: (addr segment-info) = get(segments, seg-name, row-size=20, "segment table")</span> <span id="L1331" class="LineNr">1331 </span> <span class="subxS1Comment"># . eax = get(segments, seg-name, row-size=20)</span> <span id="L1332" class="LineNr">1332 </span> <span class="subxS2Comment"># . . push args</span> @@ -1409,7 +1409,7 @@ if ('onhashchange' in window) { <span id="L1543" class="LineNr">1543 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1544" class="LineNr">1544 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L1545" class="LineNr">1545 </span> <span class="subxComment"># checks</span> -<span id="L1546" class="Folded">1546 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1546" class="Folded">1546 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1572" class="LineNr">1572 </span> <span class="subxS1Comment"># . check-trace-contains("segment 'a' starts at address 0x00001094.", msg)</span> <span id="L1573" class="LineNr">1573 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1574" class="LineNr">1574 </span> 68/push <span class="Constant">"F - <a href='survey_elf.subx.html#L1385'>test-compute-addresses</a>/0"</span>/imm32 @@ -1572,7 +1572,7 @@ if ('onhashchange' in window) { <span id="L1731" class="LineNr">1731 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1732" class="LineNr">1732 </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> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L1733" class="LineNr">1733 </span> <span class="subxComment"># checks</span> -<span id="L1734" class="Folded">1734 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1734" class="Folded">1734 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1760" class="LineNr">1760 </span> <span class="subxS1Comment"># . check-trace-contains("segment 'a' starts at address 0x00001074.", msg)</span> <span id="L1761" class="LineNr">1761 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1762" class="LineNr">1762 </span> 68/push <span class="Constant">"F - <a href='survey_elf.subx.html#L1626'>test-compute-addresses-large-segments</a>/0"</span>/imm32 @@ -1610,7 +1610,7 @@ if ('onhashchange' in window) { <span id="L1794" class="LineNr">1794 </span> <span class="subxS1Comment"># . prologue</span> <span id="L1795" class="LineNr">1795 </span> 55/push-ebp <span id="L1796" class="LineNr">1796 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> -<span id="L1797" class="Folded">1797 </span><span class="Folded">+-- 9 lines: #? # write(2/stderr, "emit-headers\n") --------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1797" class="Folded">1797 </span><span class="Folded">+-- 9 lines: #? # write(2/stderr, "emit-headers\n") -------------------------------------------------------------------------------------------------------------------</span> <span id="L1806" class="LineNr">1806 </span> <span class="subxComment"># emit-headers(out, segments, labels)</span> <span id="L1807" class="LineNr">1807 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1808" class="LineNr">1808 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x14/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+20)</span> @@ -1620,7 +1620,7 @@ if ('onhashchange' in window) { <span id="L1812" class="LineNr">1812 </span> e8/call <a href='survey_elf.subx.html#L3142'>emit-headers</a>/disp32 <span id="L1813" class="LineNr">1813 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1814" class="LineNr">1814 </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="L1815" class="Folded">1815 </span><span class="Folded">+-- 9 lines: #? # write(2/stderr, "emit-segments\n") -------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1815" class="Folded">1815 </span><span class="Folded">+-- 9 lines: #? # write(2/stderr, "emit-segments\n") ------------------------------------------------------------------------------------------------------------------</span> <span id="L1824" class="LineNr">1824 </span> <span class="subxComment"># emit-segments(in, out, labels)</span> <span id="L1825" class="LineNr">1825 </span> <span class="subxS2Comment"># . . push args</span> <span id="L1826" class="LineNr">1826 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0x14/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+20)</span> @@ -1736,7 +1736,7 @@ if ('onhashchange' in window) { <span id="L1936" class="LineNr">1936 </span> e8/call <a href='122read-line.subx.html#L218'>read-line</a>/disp32 <span id="L1937" class="LineNr">1937 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L1938" class="LineNr">1938 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L1939" class="Folded">1939 </span><span class="Folded">+-- 33 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1939" class="Folded">1939 </span><span class="Folded">+-- 33 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1972" class="LineNr">1972 </span><span class="Constant">$emit-segments:check-for-end-of-input</span>: <span id="L1973" class="LineNr">1973 </span> <span class="subxComment"># if (line->write == 0) break</span> <span id="L1974" class="LineNr">1974 </span> 81 7/subop/compare 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># compare *ecx</span> @@ -1774,7 +1774,7 @@ if ('onhashchange' in window) { <span id="L2006" class="LineNr">2006 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L2007" class="LineNr">2007 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2008" class="LineNr">2008 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L2009" class="Folded">2009 </span><span class="Folded">+-- 33 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2009" class="Folded">2009 </span><span class="Folded">+-- 33 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2042" class="LineNr">2042 </span><span class="Constant">$emit-segments:check-for-end-of-line</span>: <span id="L2043" class="LineNr">2043 </span> <span class="subxComment"># if (slice-empty?(word-slice)) break</span> <span id="L2044" class="LineNr">2044 </span> <span class="subxS1Comment"># . eax = slice-empty?(word-slice)</span> @@ -1860,7 +1860,7 @@ if ('onhashchange' in window) { <span id="L2124" class="LineNr">2124 </span> e8/call <a href='124next-token.subx.html#L163'>next-token-from-slice</a>/disp32 <span id="L2125" class="LineNr">2125 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2126" class="LineNr">2126 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> -<span id="L2127" class="Folded">2127 </span><span class="Folded">+-- 33 lines: #? # dump datum -------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2127" class="Folded">2127 </span><span class="Folded">+-- 33 lines: #? # dump datum ------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2160" class="LineNr">2160 </span> <span class="subxComment"># info/esi = get-slice(labels, datum, row-size=24, "label table")</span> <span id="L2161" class="LineNr">2161 </span> <span class="subxS1Comment"># . eax = get-slice(labels, datum, row-size=24, "label table")</span> <span id="L2162" class="LineNr">2162 </span> <span class="subxS2Comment"># . . push args</span> @@ -1900,7 +1900,7 @@ if ('onhashchange' in window) { <span id="L2196" class="LineNr">2196 </span> <span class="subxS1Comment"># . if (eax == false) goto next check</span> <span id="L2197" class="LineNr">2197 </span> 3d/compare-eax-and 0/imm32/false <span id="L2198" class="LineNr">2198 </span> 74/jump-if-= $emit-segments:check-disp8/disp8 -<span id="L2199" class="Folded">2199 </span><span class="Folded">+-- 33 lines: #? # dump info->address -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2199" class="Folded">2199 </span><span class="Folded">+-- 33 lines: #? # dump info->address ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2232" class="LineNr">2232 </span><span class="Constant">$emit-segments:emit-imm32</span>: <span id="L2233" class="LineNr">2233 </span> <span class="subxComment"># emit-hex(out, info->address, 4)</span> <span id="L2234" class="LineNr">2234 </span> <span class="subxS2Comment"># . . push args</span> @@ -2199,7 +2199,7 @@ if ('onhashchange' in window) { <span id="L2527" class="LineNr">2527 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L2528" class="LineNr">2528 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2529" class="LineNr">2529 </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="L2530" class="Folded">2530 </span><span class="Folded">+-- 33 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2530" class="Folded">2530 </span><span class="Folded">+-- 33 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2563" class="LineNr">2563 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "ab cd ef gh ", msg)</span> <span id="L2564" class="LineNr">2564 </span> <span class="subxS2Comment"># . . push args</span> <span id="L2565" class="LineNr">2565 </span> 68/push <span class="Constant">"F - test-emit-segments-global-variable/0"</span>/imm32 @@ -2378,7 +2378,7 @@ if ('onhashchange' in window) { <span id="L2738" class="LineNr">2738 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L2739" class="LineNr">2739 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2740" class="LineNr">2740 </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="L2741" class="Folded">2741 </span><span class="Folded">+-- 33 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2741" class="Folded">2741 </span><span class="Folded">+-- 33 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2774" class="LineNr">2774 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "ab cd ", msg)</span> <span id="L2775" class="LineNr">2775 </span> <span class="subxS2Comment"># . . push args</span> <span id="L2776" class="LineNr">2776 </span> 68/push <span class="Constant">"F - <a href='survey_elf.subx.html#L2604'>test-emit-segments-code-label</a>/0"</span>/imm32 @@ -2548,7 +2548,7 @@ if ('onhashchange' in window) { <span id="L2940" class="LineNr">2940 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32 <span id="L2941" class="LineNr">2941 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L2942" class="LineNr">2942 </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="L2943" class="Folded">2943 </span><span class="Folded">+-- 33 lines: #? # dump output ------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2943" class="Folded">2943 </span><span class="Folded">+-- 33 lines: #? # dump output -----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L2976" class="LineNr">2976 </span> <span class="subxS1Comment"># . check-next-stream-line-equal(_test-output-stream, "ab cd ", msg)</span> <span id="L2977" class="LineNr">2977 </span> <span class="subxS2Comment"># . . push args</span> <span id="L2978" class="LineNr">2978 </span> 68/push <span class="Constant">"F - <a href='survey_elf.subx.html#L2806'>test-emit-segments-code-label-absolute</a>/0"</span>/imm32 @@ -2752,8 +2752,8 @@ if ('onhashchange' in window) { <span id="L3176" class="LineNr">3176 </span> <span class="subxComment"># if (curr-segment >= max) break</span> <span id="L3177" class="LineNr">3177 </span> 39/compare 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># compare eax with ecx</span> <span id="L3178" class="LineNr">3178 </span> 0f 83/jump-if-addr>= $emit-headers:end/disp32 -<span id="L3179" class="Folded">3179 </span><span class="Folded">+-- 63 lines: #? # dump curr-segment->name ------------------------------------------------------------------------------------------------------------------------------------------</span> -<span id="L3242" class="Folded">3242 </span><span class="Folded">+-- 9 lines: #? # write(2/stderr, "emit-segment-header\n") -------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3179" class="Folded">3179 </span><span class="Folded">+-- 63 lines: #? # dump curr-segment->name -----------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3242" class="Folded">3242 </span><span class="Folded">+-- 9 lines: #? # write(2/stderr, "emit-segment-header\n") ------------------------------------------------------------------------------------------------------------</span> <span id="L3251" class="LineNr">3251 </span> <span class="subxComment"># emit-elf-program-header-entry(out, curr-segment)</span> <span id="L3252" class="LineNr">3252 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3253" class="LineNr">3253 </span> 50/push-eax @@ -3195,7 +3195,7 @@ if ('onhashchange' in window) { <span id="L3689" class="LineNr">3689 </span> e8/call <a href='survey_elf.subx.html#L3624'>trace-sssns</a>/disp32 <span id="L3690" class="LineNr">3690 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3691" class="LineNr">3691 </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> 0x14/imm32 <span class="subxComment"># add to esp</span> -<span id="L3692" class="Folded">3692 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3692" class="Folded">3692 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3718" class="LineNr">3718 </span> <span class="subxComment"># check-trace-contains("Abc 0x00000003 e")</span> <span id="L3719" class="LineNr">3719 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3720" class="LineNr">3720 </span> 68/push <span class="Constant">"F - test-trace-sssns"</span>/imm32 @@ -3295,7 +3295,7 @@ if ('onhashchange' in window) { <span id="L3814" class="LineNr">3814 </span> e8/call <a href='survey_elf.subx.html#L3731'>trace-slsls</a>/disp32 <span id="L3815" class="LineNr">3815 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3816" class="LineNr">3816 </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> 0x14/imm32 <span class="subxComment"># add to esp</span> -<span id="L3817" class="Folded">3817 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3817" class="Folded">3817 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3843" class="LineNr">3843 </span> <span class="subxComment"># check-trace-contains("Abcde")</span> <span id="L3844" class="LineNr">3844 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3845" class="LineNr">3845 </span> 68/push <span class="Constant">"F - test-trace-slsls"</span>/imm32 @@ -3386,7 +3386,7 @@ if ('onhashchange' in window) { <span id="L3930" class="LineNr">3930 </span> e8/call <a href='survey_elf.subx.html#L3856'>trace-slsns</a>/disp32 <span id="L3931" class="LineNr">3931 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L3932" class="LineNr">3932 </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> 0x14/imm32 <span class="subxComment"># add to esp</span> -<span id="L3933" class="Folded">3933 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L3933" class="Folded">3933 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L3959" class="LineNr">3959 </span> <span class="subxComment"># check-trace-contains("Abc 0x00000003 e")</span> <span id="L3960" class="LineNr">3960 </span> <span class="subxS2Comment"># . . push args</span> <span id="L3961" class="LineNr">3961 </span> 68/push <span class="Constant">"F - test-trace-slsls"</span>/imm32 @@ -3477,7 +3477,7 @@ if ('onhashchange' in window) { <span id="L4046" class="LineNr">4046 </span> e8/call <a href='survey_elf.subx.html#L3972'>trace-slsss</a>/disp32 <span id="L4047" class="LineNr">4047 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4048" class="LineNr">4048 </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> 0x14/imm32 <span class="subxComment"># add to esp</span> -<span id="L4049" class="Folded">4049 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4049" class="Folded">4049 </span><span class="Folded">+-- 26 lines: #? # dump *Trace-stream ----------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4075" class="LineNr">4075 </span> <span class="subxComment"># check-trace-contains("Abcde")</span> <span id="L4076" class="LineNr">4076 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4077" class="LineNr">4077 </span> 68/push <span class="Constant">"F - test-trace-slsss"</span>/imm32 @@ -3520,7 +3520,7 @@ if ('onhashchange' in window) { <span id="L4114" class="LineNr">4114 </span> 68/push 0/imm32/end <span id="L4115" class="LineNr">4115 </span> 68/push 0/imm32/start <span id="L4116" class="LineNr">4116 </span> 89/copy 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ecx</span> -<span id="L4117" class="Folded">4117 </span><span class="Folded">+-- 26 lines: #? # dump line --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4117" class="Folded">4117 </span><span class="Folded">+-- 26 lines: #? # dump line -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4143" class="LineNr">4143 </span> <span class="subxS1Comment"># . rewind-stream(line)</span> <span id="L4144" class="LineNr">4144 </span> <span class="subxS2Comment"># . . push args</span> <span id="L4145" class="LineNr">4145 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(ebp+8)</span> @@ -3537,7 +3537,7 @@ if ('onhashchange' in window) { <span id="L4156" class="LineNr">4156 </span> e8/call <a href='127next-word.subx.html#L11'>next-word</a>/disp32 <span id="L4157" class="LineNr">4157 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L4158" class="LineNr">4158 </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> 8/imm32 <span class="subxComment"># add to esp</span> -<span id="L4159" class="Folded">4159 </span><span class="Folded">+-- 40 lines: #? # dump word-slice --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L4159" class="Folded">4159 </span><span class="Folded">+-- 40 lines: #? # dump word-slice -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L4199" class="LineNr">4199 </span><span class="Constant">$num-bytes:check0</span>: <span id="L4200" class="LineNr">4200 </span> <span class="subxComment"># if (slice-empty?(word-slice)) break</span> <span id="L4201" class="LineNr">4201 </span> <span class="subxS1Comment"># . save result</span> diff --git a/html/linux/tests.subx.html b/html/linux/tests.subx.html index e1215211..c78645bd 100644 --- a/html/linux/tests.subx.html +++ b/html/linux/tests.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tests.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,17 +16,17 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } -.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } +.subxFunction { color: #af5f00; text-decoration: underline; } .subxS1Comment { color: #0000af; } +.Constant { color: #008787; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } -.Constant { color: #008787; } .subxH1Comment { color: #005faf; text-decoration: underline; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/box.mu.html b/html/linux/tile/box.mu.html index 1898f0fc..b70352c6 100644 --- a/html/linux/tile/box.mu.html +++ b/html/linux/tile/box.mu.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/box.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .LineNr { } .muRegEsi { color: #005faf; } -.muComment { color: #005faf; } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } +.muComment { color: #005faf; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/data.mu.html b/html/linux/tile/data.mu.html index f12fa880..b69e828e 100644 --- a/html/linux/tile/data.mu.html +++ b/html/linux/tile/data.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/data.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } -.Constant { color: #008787; } .muRegEsi { color: #005faf; } -.CommentedCode { color: #8a8a8a; } -.muFunction { color: #af5f00; text-decoration: underline; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } .Delimiter { color: #c000c0; } -.Special { color: #ff6060; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/environment.mu.html b/html/linux/tile/environment.mu.html index 7436af9b..34efaaa2 100644 --- a/html/linux/tile/environment.mu.html +++ b/html/linux/tile/environment.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/environment.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,22 +16,22 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } +.muFunction { color: #af5f00; text-decoration: underline; } +.muComment { color: #005faf; } .muS2Comment { color: #8a8a8a; } .CommentedCode { color: #8a8a8a; } -.muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/float-stack.mu.html b/html/linux/tile/float-stack.mu.html index e0c25c97..39df3268 100644 --- a/html/linux/tile/float-stack.mu.html +++ b/html/linux/tile/float-stack.mu.html @@ -1,33 +1,33 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/float-stack.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } -.Constant { color: #008787; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/gap-buffer.mu.html b/html/linux/tile/gap-buffer.mu.html index fb081947..c45d7e78 100644 --- a/html/linux/tile/gap-buffer.mu.html +++ b/html/linux/tile/gap-buffer.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/gap-buffer.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.muRegEdx { color: #af5f00; } .muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .LineNr { } -.Constant { color: #008787; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muComment { color: #005faf; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } +.muComment { color: #005faf; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/grapheme-stack.mu.html b/html/linux/tile/grapheme-stack.mu.html index 884021d3..09c487b4 100644 --- a/html/linux/tile/grapheme-stack.mu.html +++ b/html/linux/tile/grapheme-stack.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/grapheme-stack.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,20 +16,20 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } .muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } -.Constant { color: #008787; } -.muComment { color: #005faf; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } +.muComment { color: #005faf; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/main.mu.html b/html/linux/tile/main.mu.html index c317d1dd..f274b46e 100644 --- a/html/linux/tile/main.mu.html +++ b/html/linux/tile/main.mu.html @@ -1,34 +1,34 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/main.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEcx { color: #870000; } .LineNr { } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } -.muComment { color: #005faf; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/rpn.mu.html b/html/linux/tile/rpn.mu.html index f860763d..20de2046 100644 --- a/html/linux/tile/rpn.mu.html +++ b/html/linux/tile/rpn.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/rpn.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,22 +16,22 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/surface.mu.html b/html/linux/tile/surface.mu.html index ed886ff4..6e702b47 100644 --- a/html/linux/tile/surface.mu.html +++ b/html/linux/tile/surface.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/surface.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,22 +16,22 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/table.mu.html b/html/linux/tile/table.mu.html index 6d035787..8f263bfe 100644 --- a/html/linux/tile/table.mu.html +++ b/html/linux/tile/table.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/table.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.muRegEdx { color: #af5f00; } +.muRegEbx { color: #5f00ff; } .muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .LineNr { } -.Constant { color: #008787; } -.muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.CommentedCode { color: #8a8a8a; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muComment { color: #005faf; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/value-stack.mu.html b/html/linux/tile/value-stack.mu.html index b8bd621a..c3ad6071 100644 --- a/html/linux/tile/value-stack.mu.html +++ b/html/linux/tile/value-stack.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/value-stack.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.muRegEbx { color: #5f00ff; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } -.CommentedCode { color: #8a8a8a; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.muRegEbx { color: #5f00ff; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/value.mu.html b/html/linux/tile/value.mu.html index e9b65c35..2aa1a26f 100644 --- a/html/linux/tile/value.mu.html +++ b/html/linux/tile/value.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/value.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } -.Constant { color: #008787; } -.muRegEdi { color: #00af00; } -.muComment { color: #005faf; } .muRegEsi { color: #005faf; } +.muRegEdi { color: #00af00; } +.Constant { color: #008787; } +.muFunction { color: #af5f00; text-decoration: underline; } .muRegEbx { color: #5f00ff; } -.muRegEcx { color: #870000; } .Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } -.CommentedCode { color: #8a8a8a; } .Special { color: #ff6060; } +.muComment { color: #005faf; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tile/word.mu.html b/html/linux/tile/word.mu.html index b86a4a5d..f619aa82 100644 --- a/html/linux/tile/word.mu.html +++ b/html/linux/tile/word.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - linux/tile/word.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.muRegEdx { color: #af5f00; } +.CommentedCode { color: #8a8a8a; } .muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .LineNr { } -.Constant { color: #008787; } -.CommentedCode { color: #8a8a8a; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muComment { color: #005faf; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muRegEbx { color: #5f00ff; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } +.muComment { color: #005faf; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/linux/tui.mu.html b/html/linux/tui.mu.html deleted file mode 100644 index f5486146..00000000 --- a/html/linux/tui.mu.html +++ /dev/null @@ -1,98 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -<html> -<head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - linux/tui.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> -<meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> -<meta name="colorscheme" content="minimal-light"> -<style type="text/css"> -<!-- -pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } -body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } -a { color:inherit; } -* { font-size:12pt; font-size: 1em; } -.PreProc { color: #c000c0; } -.Special { color: #ff6060; } -.LineNr { } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } -.muComment { color: #005faf; } ---> -</style> - -<script type='text/javascript'> -<!-- - -/* function to open any folds containing a jumped-to line before jumping to it */ -function JumpToLine() -{ - var lineNum; - lineNum = window.location.hash; - lineNum = lineNum.substr(1); /* strip off '#' */ - - if (lineNum.indexOf('L') == -1) { - lineNum = 'L'+lineNum; - } - var lineElem = document.getElementById(lineNum); - /* Always jump to new location even if the line was hidden inside a fold, or - * we corrected the raw number to a line ID. - */ - if (lineElem) { - lineElem.scrollIntoView(true); - } - return true; -} -if ('onhashchange' in window) { - window.onhashchange = JumpToLine; -} - ---> -</script> -</head> -<body onload='JumpToLine();'> -<a href='https://github.com/akkartik/mu/blob/main/linux/tui.mu'>https://github.com/akkartik/mu/blob/main/linux/tui.mu</a> -<pre id='vimCodeElement'> -<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Test some primitives for text-mode.</span> -<span id="L2" class="LineNr"> 2 </span><span class="muComment">#</span> -<span id="L3" class="LineNr"> 3 </span><span class="muComment"># To run:</span> -<span id="L4" class="LineNr"> 4 </span><span class="muComment"># $ ./translate tui.mu</span> -<span id="L5" class="LineNr"> 5 </span><span class="muComment"># $ ./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"><a href='tui.mu.html#L7'>main</a></span><span class="PreProc"> -> </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span> -<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> nrows/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> ncols/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L10" class="LineNr">10 </span> nrows, ncols <span class="Special"><-</span> <a href='405screen.mu.html#L60'>screen-size</a> <span class="Constant">0</span> -<span id="L11" class="LineNr">11 </span> <a href='304screen.subx.html#L6'>enable-screen-grid-mode</a> -<span id="L12" class="LineNr">12 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <span class="Constant">0</span>/screen, <span class="Constant">5</span>/row, <span class="Constant">0x22</span>/col -<span id="L13" class="LineNr">13 </span> <a href='405screen.mu.html#L523'>start-color</a> <span class="Constant">0</span>/screen, <span class="Constant">1</span>/fg, <span class="Constant">0x7a</span>/bg -<span id="L14" class="LineNr">14 </span> <a href='405screen.mu.html#L583'>start-blinking</a> <span class="Constant">0</span>/screen -<span id="L15" class="LineNr">15 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"Hello world!"</span> -<span id="L16" class="LineNr">16 </span> <a href='405screen.mu.html#L506'>reset-formatting</a> <span class="Constant">0</span>/screen -<span id="L17" class="LineNr">17 </span> <a href='405screen.mu.html#L109'>move-cursor</a> <span class="Constant">0</span>/screen, <span class="Constant">6</span>/row, <span class="Constant">0x22</span>/col -<span id="L18" class="LineNr">18 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"tty dimensions: "</span> -<span id="L19" class="LineNr">19 </span> <a href='405screen.mu.html#L440'>print-int32-hex</a> <span class="Constant">0</span>/screen, nrows -<span id="L20" class="LineNr">20 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">" rows, "</span> -<span id="L21" class="LineNr">21 </span> <a href='405screen.mu.html#L440'>print-int32-hex</a> <span class="Constant">0</span>/screen, ncols -<span id="L22" class="LineNr">22 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">" rows\n"</span> -<span id="L23" class="LineNr">23 </span> -<span id="L24" class="LineNr">24 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"press a key to see its code: "</span> -<span id="L25" class="LineNr">25 </span> <a href='305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a> -<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> x/eax: grapheme <span class="Special"><-</span> <a href='305keyboard.subx.html#L132'>read-key-from-real-keyboard</a> -<span id="L27" class="LineNr">27 </span> <a href='305keyboard.subx.html#L72'>enable-keyboard-type-mode</a> -<span id="L28" class="LineNr">28 </span> <a href='304screen.subx.html#L24'>enable-screen-type-mode</a> -<span id="L29" class="LineNr">29 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"You pressed "</span> -<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> x-int/eax: int <span class="Special"><-</span> copy x -<span id="L31" class="LineNr">31 </span> <a href='405screen.mu.html#L440'>print-int32-hex</a> <span class="Constant">0</span>/screen, x-int -<span id="L32" class="LineNr">32 </span> <a href='405screen.mu.html#L169'>print-string</a> <span class="Constant">0</span>/screen, <span class="Constant">"\n"</span> -<span id="L33" class="LineNr">33 </span> <span class="PreProc">return</span> <span class="Constant">0</span> -<span id="L34" class="LineNr">34 </span><span class="Delimiter">}</span> -</pre> -</body> -</html> -<!-- vim: set foldmethod=manual : --> diff --git a/html/mu-init.subx.html b/html/mu-init.subx.html index 4af3f5c0..c2a74514 100644 --- a/html/mu-init.subx.html +++ b/html/mu-init.subx.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - mu-init.subx</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,13 +16,13 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .LineNr { } -.CommentedCode { color: #8a8a8a; } .SpecialChar { color: #d70000; } .Constant { color: #008787; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -81,7 +81,7 @@ if ('onhashchange' in window) { <span id="L25" class="LineNr">25 </span> (<a href='500fake-screen.mu.html#L385'>clear-real-screen</a>) <span id="L26" class="LineNr">26 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='103grapheme.subx.html#L231'>Real-screen-cursor-x</a></span> 0/imm32 <span id="L27" class="LineNr">27 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='103grapheme.subx.html#L233'>Real-screen-cursor-y</a></span> 0/imm32 -<span id="L28" class="LineNr">28 </span> (main 0 0 <span class="SpecialChar"><a href='boot.subx.html#L948'>Primary-bus-secondary-drive</a></span>) +<span id="L28" class="LineNr">28 </span> (main 0 0 <span class="SpecialChar"><a href='boot.subx.html#L949'>Primary-bus-secondary-drive</a></span>) <span id="L29" class="LineNr">29 </span> } <span id="L30" class="LineNr">30 </span> <span id="L31" class="LineNr">31 </span> <span class="subxComment"># hang indefinitely</span> diff --git a/html/shell/cell.mu.html b/html/shell/cell.mu.html index e1d417c7..62ecb6ba 100644 --- a/html/shell/cell.mu.html +++ b/html/shell/cell.mu.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/cell.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } +.muRegEcx { color: #870000; } .LineNr { } .muRegEsi { color: #005faf; } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/shell/environment.mu.html b/html/shell/environment.mu.html index 023748ca..1e1e8a4c 100644 --- a/html/shell/environment.mu.html +++ b/html/shell/environment.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/environment.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,7 +16,8 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } @@ -26,12 +27,11 @@ a { color:inherit; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -89,7 +89,7 @@ if ('onhashchange' in window) { <span id="L24" class="LineNr"> 24 </span> <span class="muComment"># setup: screen</span> <span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L27" class="LineNr"> 27 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width=<span class="Constant">72</span>, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L27" class="LineNr"> 27 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x30</span>/height, <span class="Constant">0</span>/no-pixel-graphics <span id="L28" class="LineNr"> 28 </span> <span class="muComment"># type some code into sandbox</span> <span id="L29" class="LineNr"> 29 </span> <a href='environment.mu.html#L84'>type-in</a> env, <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"(+ 3 4)"</span> <span class="muComment"># we don't have any global definitions here, so no macros</span> <span id="L30" class="LineNr"> 30 </span> <span class="muComment"># run code in sandbox</span> @@ -114,7 +114,7 @@ if ('onhashchange' in window) { <span id="L49" class="LineNr"> 49 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xd</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='environment.mu.html#L20'>test-environment</a>/13"</span> <span id="L50" class="LineNr"> 50 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xe</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='environment.mu.html#L20'>test-environment</a>/14"</span> <span id="L51" class="LineNr"> 51 </span> <span class="muComment"># bottom row is for a wordstar-style menu</span> -<span id="L52" class="LineNr"> 52 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/y, <span class="Constant">" ^r run <a href='main.mu.html#L4'>main</a> ^s run <a href='sandbox.mu.html#L1'>sandbox</a> ^g go to ^m to trace ^a << ^b <word ^f word> ^e >> "</span>, <span class="Constant">"F - <a href='environment.mu.html#L20'>test-environment</a>/15"</span> +<span id="L52" class="LineNr"> 52 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2f</span>/y, <span class="Constant">" ^r run <a href='main.mu.html#L4'>main</a> ^s run <a href='sandbox.mu.html#L1'>sandbox</a> ^g go to ^m to trace ^a << ^b <word ^f word> ^e >> "</span>, <span class="Constant">"F - <a href='environment.mu.html#L20'>test-environment</a>/15"</span> <span id="L53" class="LineNr"> 53 </span><span class="Delimiter">}</span> <span id="L54" class="LineNr"> 54 </span> <span id="L55" class="LineNr"> 55 </span><span class="PreProc">fn</span> <span class="muTest"><a href='environment.mu.html#L55'>test-definition-in-environment</a></span> <span class="Delimiter">{</span> @@ -124,7 +124,7 @@ if ('onhashchange' in window) { <span id="L59" class="LineNr"> 59 </span> <span class="muComment"># setup: screen</span> <span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L62" class="LineNr"> 62 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width=<span class="Constant">72</span>, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L62" class="LineNr"> 62 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x30</span>/height, <span class="Constant">0</span>/no-pixel-graphics <span id="L63" class="LineNr"> 63 </span> <span class="muComment"># define a global on the right (sandbox) side</span> <span id="L64" class="LineNr"> 64 </span> <a href='environment.mu.html#L84'>type-in</a> env, <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"(define f 42)"</span> <span id="L65" class="LineNr"> 65 </span> <a href='environment.mu.html#L148'>edit-environment</a> env, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-disk @@ -133,9 +133,9 @@ if ('onhashchange' in window) { <span id="L68" class="LineNr"> 68 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='environment.mu.html#L55'>test-definition-in-environment</a>/0"</span> <span id="L69" class="LineNr"> 69 </span> <span class="muComment"># global definition is now on the left side</span> <span id="L70" class="LineNr"> 70 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" (define f 42) <a href='../500fake-screen.mu.html#L14'>screen</a>: "</span>, <span class="Constant">"F - <a href='environment.mu.html#L55'>test-definition-in-environment</a>/1"</span> -<span id="L71" class="LineNr"> 71 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/bg, <span class="Constant">2</span>/y, <span class="Constant">" ........ "</span>, <span class="Constant">"F - <a href='environment.mu.html#L20'>test-environment</a>/2"</span> -<span id="L72" class="LineNr"> 72 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/bg, <span class="Constant">3</span>/y, <span class="Constant">" ........ "</span>, <span class="Constant">"F - <a href='environment.mu.html#L20'>test-environment</a>/3"</span> -<span id="L73" class="LineNr"> 73 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/bg, <span class="Constant">4</span>/y, <span class="Constant">" ........ "</span>, <span class="Constant">"F - <a href='environment.mu.html#L20'>test-environment</a>/4"</span> +<span id="L71" class="LineNr"> 71 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/bg, <span class="Constant">2</span>/y, <span class="Constant">" ........ "</span>, <span class="Constant">"F - <a href='environment.mu.html#L55'>test-definition-in-environment</a>/2"</span> +<span id="L72" class="LineNr"> 72 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/bg, <span class="Constant">3</span>/y, <span class="Constant">" ........ "</span>, <span class="Constant">"F - <a href='environment.mu.html#L55'>test-definition-in-environment</a>/3"</span> +<span id="L73" class="LineNr"> 73 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/bg, <span class="Constant">4</span>/y, <span class="Constant">" ........ "</span>, <span class="Constant">"F - <a href='environment.mu.html#L55'>test-definition-in-environment</a>/4"</span> <span id="L74" class="LineNr"> 74 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='environment.mu.html#L55'>test-definition-in-environment</a>/4"</span> <span id="L75" class="LineNr"> 75 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">6</span>/y, <span class="Constant">" keyboard: "</span>, <span class="Constant">"F - <a href='environment.mu.html#L55'>test-definition-in-environment</a>/5"</span> <span id="L76" class="LineNr"> 76 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/bg, <span class="Constant">6</span>/y, <span class="Constant">" ................ "</span>, <span class="Constant">"F - <a href='environment.mu.html#L55'>test-definition-in-environment</a>/5-2"</span> @@ -484,7 +484,7 @@ if ('onhashchange' in window) { <span id="L419" class="LineNr"> 419 </span> <span class="muComment"># setup: screen</span> <span id="L420" class="LineNr"> 420 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L421" class="LineNr"> 421 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L422" class="LineNr"> 422 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width=<span class="Constant">72</span>, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L422" class="LineNr"> 422 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics <span id="L423" class="LineNr"> 423 </span> <span class="muComment"># hit ctrl-g</span> <span id="L424" class="LineNr"> 424 </span> <a href='environment.mu.html#L148'>edit-environment</a> env, <span class="Constant">7</span>/ctrl-g, <span class="Constant">0</span>/no-disk <span id="L425" class="LineNr"> 425 </span> <a href='environment.mu.html#L115'>render-environment</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, env @@ -519,7 +519,7 @@ if ('onhashchange' in window) { <span id="L454" class="LineNr"> 454 </span> <span class="muComment"># setup: screen</span> <span id="L455" class="LineNr"> 455 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L456" class="LineNr"> 456 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L457" class="LineNr"> 457 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width=<span class="Constant">72</span>, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L457" class="LineNr"> 457 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics <span id="L458" class="LineNr"> 458 </span> <span class="muComment"># hit ctrl-g</span> <span id="L459" class="LineNr"> 459 </span> <a href='environment.mu.html#L148'>edit-environment</a> env, <span class="Constant">7</span>/ctrl-g, <span class="Constant">0</span>/no-disk <span id="L460" class="LineNr"> 460 </span> <a href='environment.mu.html#L115'>render-environment</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, env @@ -552,7 +552,7 @@ if ('onhashchange' in window) { <span id="L487" class="LineNr"> 487 </span> <span class="muComment"># setup: screen</span> <span id="L488" class="LineNr"> 488 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L489" class="LineNr"> 489 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L490" class="LineNr"> 490 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width=<span class="Constant">72</span>, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L490" class="LineNr"> 490 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x30</span>/height, <span class="Constant">0</span>/no-pixel-graphics <span id="L491" class="LineNr"> 491 </span> <span class="muComment"># define a global</span> <span id="L492" class="LineNr"> 492 </span> <a href='environment.mu.html#L84'>type-in</a> env, <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"(define f 42)"</span> <span id="L493" class="LineNr"> 493 </span> <a href='environment.mu.html#L148'>edit-environment</a> env, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-disk @@ -595,7 +595,7 @@ if ('onhashchange' in window) { <span id="L530" class="LineNr"> 530 </span> <span class="muComment"># setup: screen</span> <span id="L531" class="LineNr"> 531 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L532" class="LineNr"> 532 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L533" class="LineNr"> 533 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width=<span class="Constant">72</span>, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L533" class="LineNr"> 533 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics <span id="L534" class="LineNr"> 534 </span> <span class="muComment"># type a word at the cursor</span> <span id="L535" class="LineNr"> 535 </span> <a href='environment.mu.html#L84'>type-in</a> env, <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"fn1"</span> <span id="L536" class="LineNr"> 536 </span> <span class="muComment"># hit ctrl-g</span> @@ -696,7 +696,7 @@ if ('onhashchange' in window) { <span id="L631" class="LineNr"> 631 </span> <span class="muComment"># setup: screen</span> <span id="L632" class="LineNr"> 632 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L634" class="LineNr"> 634 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width=<span class="Constant">72</span>, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L634" class="LineNr"> 634 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics <span id="L635" class="LineNr"> 635 </span> <span class="muComment"># type in any (nonexistent) global name</span> <span id="L636" class="LineNr"> 636 </span> <a href='environment.mu.html#L84'>type-in</a> env, <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"f"</span> <span id="L637" class="LineNr"> 637 </span> <span class="muComment"># hit ctrl-g</span> @@ -767,7 +767,7 @@ if ('onhashchange' in window) { <span id="L702" class="LineNr"> 702 </span> <span class="muComment"># setup: screen</span> <span id="L703" class="LineNr"> 703 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L704" class="LineNr"> 704 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L705" class="LineNr"> 705 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width=<span class="Constant">72</span>, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L705" class="LineNr"> 705 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x30</span>/height, <span class="Constant">0</span>/no-pixel-graphics <span id="L706" class="LineNr"> 706 </span> <span class="muComment"># hit ctrl-g</span> <span id="L707" class="LineNr"> 707 </span> <a href='environment.mu.html#L148'>edit-environment</a> env, <span class="Constant">7</span>/ctrl-g, <span class="Constant">0</span>/no-disk <span id="L708" class="LineNr"> 708 </span> <a href='environment.mu.html#L115'>render-environment</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, env @@ -805,7 +805,7 @@ if ('onhashchange' in window) { <span id="L740" class="LineNr"> 740 </span> <span class="muComment"># setup: screen</span> <span id="L741" class="LineNr"> 741 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L742" class="LineNr"> 742 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L743" class="LineNr"> 743 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width=<span class="Constant">72</span>, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L743" class="LineNr"> 743 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics <span id="L744" class="LineNr"> 744 </span> <span class="muComment"># define a global</span> <span id="L745" class="LineNr"> 745 </span> <a href='environment.mu.html#L84'>type-in</a> env, <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"(define f 42)"</span> <span id="L746" class="LineNr"> 746 </span> <a href='environment.mu.html#L148'>edit-environment</a> env, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-disk @@ -1004,7 +1004,7 @@ if ('onhashchange' in window) { <span id="L939" class="LineNr"> 939 </span> <span class="PreProc">var</span> s/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special"><-</span> address s-storage <span id="L940" class="LineNr"> 940 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"loading sectors from data disk"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L941" class="LineNr"> 941 </span> <a href='../501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen -<span id="L942" class="LineNr"> 942 </span> <a href='../boot.subx.html#L974'>load-sectors</a> data-disk, <span class="Constant">0</span>/lba, <span class="Constant">0x10</span>/sectors, s +<span id="L942" class="LineNr"> 942 </span> <a href='../boot.subx.html#L976'>load-sectors</a> data-disk, <span class="Constant">0</span>/lba, <span class="Constant">0x10</span>/sectors, s <span id="L943" class="LineNr"> 943 </span><span class="CommentedCode">#? draw-stream-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, s, 7/fg, 0xc5/bg=blue-bg</span> <span id="L944" class="LineNr"> 944 </span> <span class="muComment"># stream -> gap-buffer (HACK: we temporarily cannibalize the sandbox's gap-buffer)</span> <span id="L945" class="LineNr"> 945 </span> <a href='../501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"parsing"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg @@ -1090,7 +1090,7 @@ if ('onhashchange' in window) { <span id="L1025" class="LineNr">1025 </span> <a href='global.mu.html#L65'>write-globals</a> stream, globals <span id="L1026" class="LineNr">1026 </span> <a href='sandbox.mu.html#L64'>write-sandbox</a> stream, <a href='sandbox.mu.html#L1'>sandbox</a> <span id="L1027" class="LineNr">1027 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">")\n"</span> -<span id="L1028" class="LineNr">1028 </span> <a href='../boot.subx.html#L1037'>store-sectors</a> data-disk, <span class="Constant">0</span>/lba, <span class="Constant">0x10</span>/sectors, stream +<span id="L1028" class="LineNr">1028 </span> <a href='../boot.subx.html#L1045'>store-sectors</a> data-disk, <span class="Constant">0</span>/lba, <span class="Constant">0x10</span>/sectors, stream <span id="L1029" class="LineNr">1029 </span><span class="Delimiter">}</span> </pre> </body> diff --git a/html/shell/evaluate.mu.html b/html/shell/evaluate.mu.html index 0e2df180..9f4b7a31 100644 --- a/html/shell/evaluate.mu.html +++ b/html/shell/evaluate.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/evaluate.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,7 +16,9 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muComment { color: #005faf; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } @@ -24,15 +26,13 @@ a { color:inherit; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } -.Folded { color: #080808; background-color: #949494; } .muTest { color: #5f8700; } -.muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.Folded { color: #080808; background-color: #949494; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -124,12 +124,12 @@ if ('onhashchange' in window) { <span id="L58" class="LineNr"> 58 </span><span class="CommentedCode">#? compare foo, 0</span> <span id="L59" class="LineNr"> 59 </span><span class="CommentedCode">#? loop-if-=</span> <span id="L60" class="LineNr"> 60 </span><span class="CommentedCode">#? }</span> -<span id="L61" class="Folded"> 61 </span><span class="Folded">+-- 19 lines: # trace "evaluate " in " in environment " env -----------------------------------------------------------------------------------------------------------------------------</span> +<span id="L61" class="Folded"> 61 </span><span class="Folded">+-- 19 lines: # trace "evaluate " in " in environment " env ----------------------------------------------------------------------------------------------------------------</span> <span id="L80" class="LineNr"> 80 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah <span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">{</span> -<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in -<span id="L84" class="LineNr"> 84 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false +<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> in +<span id="L84" class="LineNr"> 84 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false <span id="L85" class="LineNr"> 85 </span> <span class="PreProc">break-if-=</span> <span id="L86" class="LineNr"> 86 </span> <span class="muComment"># nil is a literal</span> <span id="L87" class="LineNr"> 87 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"nil"</span> @@ -189,8 +189,8 @@ if ('onhashchange' in window) { <span id="L141" class="LineNr"> 141 </span> <span class="PreProc">var</span> in/<span class="muRegEdx">edx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L142" class="LineNr"> 142 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L143" class="LineNr"> 143 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L144" class="LineNr"> 144 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1429'>litfn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1429'>litfn?</a> first -<span id="L145" class="LineNr"> 145 </span> compare <a href='evaluate.mu.html#L1429'>litfn?</a>, <span class="Constant">0</span>/false +<span id="L144" class="LineNr"> 144 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1454'>litfn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1454'>litfn?</a> first +<span id="L145" class="LineNr"> 145 </span> compare <a href='evaluate.mu.html#L1454'>litfn?</a>, <span class="Constant">0</span>/false <span id="L146" class="LineNr"> 146 </span> <span class="PreProc">break-if-=</span> <span id="L147" class="LineNr"> 147 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"literal function"</span> <span id="L148" class="LineNr"> 148 </span> copy-object _in-ah, _out-ah @@ -203,8 +203,8 @@ if ('onhashchange' in window) { <span id="L155" class="LineNr"> 155 </span> <span class="PreProc">var</span> in/<span class="muRegEdx">edx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L156" class="LineNr"> 156 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1443'>litmac?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1443'>litmac?</a> first -<span id="L159" class="LineNr"> 159 </span> compare <a href='evaluate.mu.html#L1443'>litmac?</a>, <span class="Constant">0</span>/false +<span id="L158" class="LineNr"> 158 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1468'>litmac?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1468'>litmac?</a> first +<span id="L159" class="LineNr"> 159 </span> compare <a href='evaluate.mu.html#L1468'>litmac?</a>, <span class="Constant">0</span>/false <span id="L160" class="LineNr"> 160 </span> <span class="PreProc">break-if-=</span> <span id="L161" class="LineNr"> 161 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"literal macro"</span> <span id="L162" class="LineNr"> 162 </span> copy-object _in-ah, _out-ah @@ -217,8 +217,8 @@ if ('onhashchange' in window) { <span id="L169" class="LineNr"> 169 </span> <span class="PreProc">var</span> in/<span class="muRegEdx">edx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L170" class="LineNr"> 170 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left <span id="L171" class="LineNr"> 171 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L172" class="LineNr"> 172 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1415'>fn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1415'>fn?</a> first -<span id="L173" class="LineNr"> 173 </span> compare <a href='evaluate.mu.html#L1415'>fn?</a>, <span class="Constant">0</span>/false +<span id="L172" class="LineNr"> 172 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1440'>fn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1440'>fn?</a> first +<span id="L173" class="LineNr"> 173 </span> compare <a href='evaluate.mu.html#L1440'>fn?</a>, <span class="Constant">0</span>/false <span id="L174" class="LineNr"> 174 </span> <span class="PreProc">break-if-=</span> <span id="L175" class="LineNr"> 175 </span> <span class="muComment"># turn (fn ...) into (litfn env ...)</span> <span id="L176" class="LineNr"> 176 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"anonymous function"</span> @@ -263,7 +263,7 @@ if ('onhashchange' in window) { <span id="L215" class="LineNr"> 215 </span> <span class="muComment">#</span> <span id="L216" class="LineNr"> 216 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"backquote"</span> <span id="L217" class="LineNr"> 217 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`("</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg -<span id="L218" class="LineNr"> 218 </span> <a href='evaluate.mu.html#L1639'>evaluate-backquote</a> rest-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number +<span id="L218" class="LineNr"> 218 </span> <a href='evaluate.mu.html#L1664'>evaluate-backquote</a> rest-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L219" class="LineNr"> 219 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">")"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg <span id="L220" class="LineNr"> 220 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L221" class="LineNr"> 221 </span> <span class="PreProc">return</span> @@ -445,8 +445,8 @@ if ('onhashchange' in window) { <span id="L397" class="LineNr"> 397 </span> <span class="muComment"># if first arg is nil, short-circuit</span> <span id="L398" class="LineNr"> 398 </span> <span class="PreProc">var</span> out-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah <span id="L399" class="LineNr"> 399 </span> <span class="PreProc">var</span> out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah -<span id="L400" class="LineNr"> 400 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> out -<span id="L401" class="LineNr"> 401 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false +<span id="L400" class="LineNr"> 400 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> out +<span id="L401" class="LineNr"> 401 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false <span id="L402" class="LineNr"> 402 </span> <span class="Delimiter">{</span> <span id="L403" class="LineNr"> 403 </span> <span class="PreProc">break-if-=</span> <span id="L404" class="LineNr"> 404 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -492,8 +492,8 @@ if ('onhashchange' in window) { <span id="L444" class="LineNr"> 444 </span> <span class="muComment"># if first arg is not nil, short-circuit</span> <span id="L445" class="LineNr"> 445 </span> <span class="PreProc">var</span> out-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah <span id="L446" class="LineNr"> 446 </span> <span class="PreProc">var</span> out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah -<span id="L447" class="LineNr"> 447 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> out -<span id="L448" class="LineNr"> 448 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false +<span id="L447" class="LineNr"> 447 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> out +<span id="L448" class="LineNr"> 448 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false <span id="L449" class="LineNr"> 449 </span> <span class="Delimiter">{</span> <span id="L450" class="LineNr"> 450 </span> <span class="PreProc">break-if-!=</span> <span id="L451" class="LineNr"> 451 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace @@ -551,7 +551,7 @@ if ('onhashchange' in window) { <span id="L503" class="LineNr"> 503 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L504" class="LineNr"> 504 </span> <span class="PreProc">var</span> branch-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L505" class="LineNr"> 505 </span> <span class="PreProc">var</span> guard-a/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *guard-ah -<span id="L506" class="LineNr"> 506 </span> <span class="PreProc">var</span> skip-to-third-arg?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> guard-a +<span id="L506" class="LineNr"> 506 </span> <span class="PreProc">var</span> skip-to-third-arg?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> guard-a <span id="L507" class="LineNr"> 507 </span> compare skip-to-third-arg?, <span class="Constant">0</span>/false <span id="L508" class="LineNr"> 508 </span> <span class="Delimiter">{</span> <span id="L509" class="LineNr"> 509 </span> <span class="PreProc">break-if-=</span> @@ -608,7 +608,7 @@ if ('onhashchange' in window) { <span id="L560" class="LineNr"> 560 </span> <span class="PreProc">return</span> <span id="L561" class="LineNr"> 561 </span> <span class="Delimiter">}</span> <span id="L562" class="LineNr"> 562 </span> <span class="PreProc">var</span> guard-a/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *guard-ah -<span id="L563" class="LineNr"> 563 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> guard-a +<span id="L563" class="LineNr"> 563 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> guard-a <span id="L564" class="LineNr"> 564 </span> compare done?, <span class="Constant">0</span>/false <span id="L565" class="LineNr"> 565 </span> <span class="PreProc">break-if-!=</span> <span id="L566" class="LineNr"> 566 </span> <a href='evaluate.mu.html#L729'>evaluate-exprs</a> rest-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number @@ -626,7 +626,7 @@ if ('onhashchange' in window) { <span id="L578" class="LineNr"> 578 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L579" class="LineNr"> 579 </span> <span class="PreProc">return</span> <span id="L580" class="LineNr"> 580 </span> <span class="Delimiter">}</span> -<span id="L581" class="Folded"> 581 </span><span class="Folded">+-- 15 lines: # trace "evaluate function call elements in " in --------------------------------------------------------------------------------------------------------------------------</span> +<span id="L581" class="Folded"> 581 </span><span class="Folded">+-- 15 lines: # trace "evaluate function call elements in " in -------------------------------------------------------------------------------------------------------------</span> <span id="L596" class="LineNr"> 596 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L597" class="LineNr"> 597 </span> <span class="PreProc">var</span> evaluated-list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) <span id="L598" class="LineNr"> 598 </span> <span class="PreProc">var</span> evaluated-list-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address evaluated-list-storage @@ -634,8 +634,8 @@ if ('onhashchange' in window) { <span id="L600" class="LineNr"> 600 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy in <span id="L601" class="LineNr"> 601 </span> $evaluate-list:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> <span id="L602" class="LineNr"> 602 </span> <a href='cell.mu.html#L102'>allocate-pair</a> curr-out-ah -<span id="L603" class="LineNr"> 603 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> curr -<span id="L604" class="LineNr"> 604 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false +<span id="L603" class="LineNr"> 603 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> curr +<span id="L604" class="LineNr"> 604 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false <span id="L605" class="LineNr"> 605 </span> <span class="PreProc">break-if-!=</span> <span id="L606" class="LineNr"> 606 </span> <span class="muComment"># eval left</span> <span id="L607" class="LineNr"> 607 </span> <span class="PreProc">var</span> curr-out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *curr-out-ah @@ -668,7 +668,7 @@ if ('onhashchange' in window) { <span id="L634" class="LineNr"> 634 </span> <a href='evaluate.mu.html#L655'>apply</a> function-ah, args-ah, _out-ah, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number <span id="L635" class="LineNr"> 635 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"Y"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L636" class="LineNr"> 636 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L637" class="Folded"> 637 </span><span class="Folded">+-- 15 lines: # trace "=> " _out-ah -----------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L637" class="Folded"> 637 </span><span class="Folded">+-- 15 lines: # trace "=> " _out-ah ----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L652" class="LineNr"> 652 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"Z"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg <span id="L653" class="LineNr"> 653 </span><span class="Delimiter">}</span> <span id="L654" class="LineNr"> 654 </span> @@ -681,11 +681,11 @@ if ('onhashchange' in window) { <span id="L661" class="LineNr"> 661 </span> <span class="PreProc">var</span> f-type/eax: (addr int) <span class="Special"><-</span> get f, <span class="PreProc">type</span> <span id="L662" class="LineNr"> 662 </span> compare *f-type, <span class="Constant">4</span>/primitive-function <span id="L663" class="LineNr"> 663 </span> <span class="PreProc">break-if-!=</span> -<span id="L664" class="LineNr"> 664 </span> <a href='primitives.mu.html#L153'>apply-primitive</a> f, args-ah, out, globals, trace +<span id="L664" class="LineNr"> 664 </span> <a href='primitives.mu.html#L213'>apply-primitive</a> f, args-ah, out, globals, trace <span id="L665" class="LineNr"> 665 </span> <span class="PreProc">return</span> <span id="L666" class="LineNr"> 666 </span> <span class="Delimiter">}</span> <span id="L667" class="LineNr"> 667 </span> <span class="muComment"># if it's not a primitive function it must be an anonymous function</span> -<span id="L668" class="Folded"> 668 </span><span class="Folded">+-- 19 lines: # trace "apply anonymous function " f " in environment " env --------------------------------------------------------------------------------------------------------------</span> +<span id="L668" class="Folded"> 668 </span><span class="Folded">+-- 19 lines: # trace "apply anonymous function " f " in environment " env -------------------------------------------------------------------------------------------------</span> <span id="L687" class="LineNr"> 687 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L688" class="LineNr"> 688 </span> <span class="Delimiter">{</span> <span id="L689" class="LineNr"> 689 </span> <span class="PreProc">var</span> f-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get f, <span class="PreProc">type</span> @@ -693,8 +693,8 @@ if ('onhashchange' in window) { <span id="L691" class="LineNr"> 691 </span> <span class="PreProc">break-if-!=</span> <span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get f, left <span id="L693" class="LineNr"> 693 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L694" class="LineNr"> 694 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1429'>litfn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1429'>litfn?</a> first -<span id="L695" class="LineNr"> 695 </span> compare <a href='evaluate.mu.html#L1429'>litfn?</a>, <span class="Constant">0</span>/false +<span id="L694" class="LineNr"> 694 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1454'>litfn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1454'>litfn?</a> first +<span id="L695" class="LineNr"> 695 </span> compare <a href='evaluate.mu.html#L1454'>litfn?</a>, <span class="Constant">0</span>/false <span id="L696" class="LineNr"> 696 </span> <span class="PreProc">break-if-=</span> <span id="L697" class="LineNr"> 697 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get f, right <span id="L698" class="LineNr"> 698 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah @@ -735,7 +735,7 @@ if ('onhashchange' in window) { <span id="L733" class="LineNr"> 733 </span> <span class="PreProc">var</span> exprs/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *exprs-ah <span id="L734" class="LineNr"> 734 </span> <span class="muComment"># stop when exprs is nil</span> <span id="L735" class="LineNr"> 735 </span> <span class="Delimiter">{</span> -<span id="L736" class="LineNr"> 736 </span> <span class="PreProc">var</span> exprs-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> exprs +<span id="L736" class="LineNr"> 736 </span> <span class="PreProc">var</span> exprs-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> exprs <span id="L737" class="LineNr"> 737 </span> compare exprs-nil?, <span class="Constant">0</span>/false <span id="L738" class="LineNr"> 738 </span> <span class="PreProc">break-if-!=</span> $evaluate-exprs:<span class="PreProc">loop</span> <span id="L739" class="LineNr"> 739 </span> <span class="Delimiter">}</span> @@ -777,7 +777,7 @@ if ('onhashchange' in window) { <span id="L775" class="LineNr"> 775 </span> <span class="PreProc">var</span> _params/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *params-ah <span id="L776" class="LineNr"> 776 </span> <span class="PreProc">var</span> params/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _params <span id="L777" class="LineNr"> 777 </span> <span class="Delimiter">{</span> -<span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> params-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> params +<span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> params-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> params <span id="L779" class="LineNr"> 779 </span> compare params-nil?, <span class="Constant">0</span>/false <span id="L780" class="LineNr"> 780 </span> <span class="PreProc">break-if-=</span> <span id="L781" class="LineNr"> 781 </span> <span class="muComment"># nil is a literal</span> @@ -786,7 +786,7 @@ if ('onhashchange' in window) { <span id="L784" class="LineNr"> 784 </span> <span class="PreProc">return</span> <span id="L785" class="LineNr"> 785 </span> <span class="Delimiter">}</span> <span id="L786" class="LineNr"> 786 </span> <span class="muComment"># Params can only be symbols or pairs. Args can be anything.</span> -<span id="L787" class="Folded"> 787 </span><span class="Folded">+-- 22 lines: # trace "pushing bindings from " params " to " args -----------------------------------------------------------------------------------------------------------------------</span> +<span id="L787" class="Folded"> 787 </span><span class="Folded">+-- 22 lines: # trace "pushing bindings from " params " to " args ----------------------------------------------------------------------------------------------------------</span> <span id="L809" class="LineNr"> 809 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L810" class="LineNr"> 810 </span> <span class="PreProc">var</span> params-type/eax: (addr int) <span class="Special"><-</span> get params, <span class="PreProc">type</span> <span id="L811" class="LineNr"> 811 </span> compare *params-type, <span class="Constant">2</span>/symbol @@ -813,7 +813,7 @@ if ('onhashchange' in window) { <span id="L832" class="LineNr"> 832 </span> <span class="PreProc">var</span> args/<span class="muRegEdi">edi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L833" class="LineNr"> 833 </span> <span class="muComment"># params is now a pair, so args must be also</span> <span id="L834" class="LineNr"> 834 </span> <span class="Delimiter">{</span> -<span id="L835" class="LineNr"> 835 </span> <span class="PreProc">var</span> args-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L835" class="LineNr"> 835 </span> <span class="PreProc">var</span> args-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args <span id="L836" class="LineNr"> 836 </span> compare args-nil?, <span class="Constant">0</span>/false <span id="L837" class="LineNr"> 837 </span> <span class="PreProc">break-if-=</span> <span id="L838" class="LineNr"> 838 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"not enough args to bind"</span> @@ -882,14 +882,14 @@ if ('onhashchange' in window) { <span id="L901" class="LineNr"> 901 </span> <span class="Delimiter">}</span> <span id="L902" class="LineNr"> 902 </span> <span class="muComment"># if env is nil, look up in globals</span> <span id="L903" class="LineNr"> 903 </span> <span class="Delimiter">{</span> -<span id="L904" class="LineNr"> 904 </span> <span class="PreProc">var</span> env-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> env +<span id="L904" class="LineNr"> 904 </span> <span class="PreProc">var</span> env-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> env <span id="L905" class="LineNr"> 905 </span> compare env-nil?, <span class="Constant">0</span>/false <span id="L906" class="LineNr"> 906 </span> <span class="PreProc">break-if-=</span> <span id="L907" class="LineNr"> 907 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"b"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg <span id="L908" class="LineNr"> 908 </span> <a href='global.mu.html#L329'>lookup-symbol-in-globals</a> sym, out, globals, trace, inner-screen-var, inner-keyboard-var <span id="L909" class="LineNr"> 909 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"x"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg <span id="L910" class="LineNr"> 910 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L911" class="Folded"> 911 </span><span class="Folded">+-- 19 lines: # trace "=> " out " (global)" ---------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L911" class="Folded"> 911 </span><span class="Folded">+-- 19 lines: # trace "=> " out " (global)" --------------------------------------------------------------------------------------------------------------------------------</span> <span id="L930" class="LineNr"> 930 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"y"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg <span id="L931" class="LineNr"> 931 </span> <span class="PreProc">return</span> <span id="L932" class="LineNr"> 932 </span> <span class="Delimiter">}</span> @@ -928,7 +928,7 @@ if ('onhashchange' in window) { <span id="L965" class="LineNr"> 965 </span> <span class="Delimiter">{</span> <span id="L966" class="LineNr"> 966 </span> <span class="PreProc">break-if-=</span> <span id="L967" class="LineNr"> 967 </span> <a href='evaluate.mu.html#L1217'>cdr</a> env-head, out, trace -<span id="L968" class="Folded"> 968 </span><span class="Folded">+-- 19 lines: # trace "=> " out " (match)" ----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L968" class="Folded"> 968 </span><span class="Folded">+-- 19 lines: # trace "=> " out " (match)" ---------------------------------------------------------------------------------------------------------------------------------</span> <span id="L987" class="LineNr"> 987 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L988" class="LineNr"> 988 </span> <span class="PreProc">return</span> <span id="L989" class="LineNr"> 989 </span> <span class="Delimiter">}</span> @@ -938,7 +938,7 @@ if ('onhashchange' in window) { <span id="L993" class="LineNr"> 993 </span> <a href='evaluate.mu.html#L1217'>cdr</a> env, env-tail-ah, trace <span id="L994" class="LineNr"> 994 </span> <a href='evaluate.mu.html#L868'>lookup-symbol</a> sym, out, *env-tail-ah, globals, trace, inner-screen-var, inner-keyboard-var <span id="L995" class="LineNr"> 995 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L996" class="Folded"> 996 </span><span class="Folded">+-- 19 lines: # trace "=> " out " (recurse)" --------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L996" class="Folded"> 996 </span><span class="Folded">+-- 19 lines: # trace "=> " out " (recurse)" -------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1015" class="LineNr">1015 </span><span class="Delimiter">}</span> <span id="L1016" class="LineNr">1016 </span> <span id="L1017" class="LineNr">1017 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1017'>test-lookup-symbol-in-env</a></span> <span class="Delimiter">{</span> @@ -1034,14 +1034,14 @@ if ('onhashchange' in window) { <span id="L1107" class="LineNr">1107 </span> <span class="Delimiter">}</span> <span id="L1108" class="LineNr">1108 </span> <span class="muComment"># if env is nil, look in globals</span> <span id="L1109" class="LineNr">1109 </span> <span class="Delimiter">{</span> -<span id="L1110" class="LineNr">1110 </span> <span class="PreProc">var</span> env-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> env +<span id="L1110" class="LineNr">1110 </span> <span class="PreProc">var</span> env-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> env <span id="L1111" class="LineNr">1111 </span> compare env-nil?, <span class="Constant">0</span>/false <span id="L1112" class="LineNr">1112 </span> <span class="PreProc">break-if-=</span> <span id="L1113" class="LineNr">1113 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"b"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L1114" class="LineNr">1114 </span> <a href='global.mu.html#L464'>mutate-binding-in-globals</a> name, val, globals, trace <span id="L1115" class="LineNr">1115 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"x"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L1116" class="LineNr">1116 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1117" class="Folded">1117 </span><span class="Folded">+-- 19 lines: # trace "=> " val " (global)" ---------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L1117" class="Folded">1117 </span><span class="Folded">+-- 19 lines: # trace "=> " val " (global)" --------------------------------------------------------------------------------------------------------------------------------</span> <span id="L1136" class="LineNr">1136 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"y"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg <span id="L1137" class="LineNr">1137 </span> <span class="PreProc">return</span> <span id="L1138" class="LineNr">1138 </span> <span class="Delimiter">}</span> @@ -1110,7 +1110,7 @@ if ('onhashchange' in window) { <span id="L1201" class="LineNr">1201 </span> <span class="Delimiter">}</span> <span id="L1202" class="LineNr">1202 </span> <span class="muComment"># if in is nil, abort</span> <span id="L1203" class="LineNr">1203 </span> <span class="Delimiter">{</span> -<span id="L1204" class="LineNr">1204 </span> <span class="PreProc">var</span> in-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in +<span id="L1204" class="LineNr">1204 </span> <span class="PreProc">var</span> in-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> in <span id="L1205" class="LineNr">1205 </span> compare in-nil?, <span class="Constant">0</span>/false <span id="L1206" class="LineNr">1206 </span> <span class="PreProc">break-if-=</span> <span id="L1207" class="LineNr">1207 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"car on nil"</span> @@ -1138,7 +1138,7 @@ if ('onhashchange' in window) { <span id="L1229" class="LineNr">1229 </span> <span class="Delimiter">}</span> <span id="L1230" class="LineNr">1230 </span> <span class="muComment"># if in is nil, abort</span> <span id="L1231" class="LineNr">1231 </span> <span class="Delimiter">{</span> -<span id="L1232" class="LineNr">1232 </span> <span class="PreProc">var</span> in-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in +<span id="L1232" class="LineNr">1232 </span> <span class="PreProc">var</span> in-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> in <span id="L1233" class="LineNr">1233 </span> compare in-nil?, <span class="Constant">0</span>/false <span id="L1234" class="LineNr">1234 </span> <span class="PreProc">break-if-=</span> <span id="L1235" class="LineNr">1235 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"car on nil"</span> @@ -1186,722 +1186,747 @@ if ('onhashchange' in window) { <span id="L1277" class="LineNr">1277 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> true (numbers)"</span> <span id="L1278" class="LineNr">1278 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L1279" class="LineNr">1279 </span> <span class="Delimiter">}</span> -<span id="L1280" class="LineNr">1280 </span> $cell-isomorphic?:text-data: <span class="Delimiter">{</span> -<span id="L1281" class="LineNr">1281 </span> <span class="Delimiter">{</span> -<span id="L1282" class="LineNr">1282 </span> compare b-type, <span class="Constant">2</span>/symbol -<span id="L1283" class="LineNr">1283 </span> <span class="PreProc">break-if-=</span> -<span id="L1284" class="LineNr">1284 </span> compare b-type, <span class="Constant">3</span>/stream -<span id="L1285" class="LineNr">1285 </span> <span class="PreProc">break-if-=</span> -<span id="L1286" class="LineNr">1286 </span> <span class="PreProc">break</span> $cell-isomorphic?:text-data -<span id="L1287" class="LineNr">1287 </span> <span class="Delimiter">}</span> -<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> b-val-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get b, text-data -<span id="L1289" class="LineNr">1289 </span> <span class="PreProc">var</span> _b-val/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-val-ah -<span id="L1290" class="LineNr">1290 </span> <span class="PreProc">var</span> b-val/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> copy _b-val -<span id="L1291" class="LineNr">1291 </span> <span class="PreProc">var</span> a-val-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get a, text-data -<span id="L1292" class="LineNr">1292 </span> <span class="PreProc">var</span> a-val/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-val-ah -<span id="L1293" class="LineNr">1293 </span> <span class="PreProc">var</span> tmp-array: (handle array byte) -<span id="L1294" class="LineNr">1294 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> address tmp-array -<span id="L1295" class="LineNr">1295 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> a-val -<span id="L1296" class="LineNr">1296 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> a-val, tmp-ah -<span id="L1297" class="LineNr">1297 </span> <span class="PreProc">var</span> tmp/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah -<span id="L1298" class="LineNr">1298 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> b-val, tmp -<span id="L1299" class="LineNr">1299 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1280" class="LineNr">1280 </span> <span class="Delimiter">{</span> +<span id="L1281" class="LineNr">1281 </span> compare b-type, <span class="Constant">2</span>/symbol +<span id="L1282" class="LineNr">1282 </span> <span class="PreProc">break-if-!=</span> +<span id="L1283" class="LineNr">1283 </span> <span class="PreProc">var</span> b-val-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get b, text-data +<span id="L1284" class="LineNr">1284 </span> <span class="PreProc">var</span> _b-val/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-val-ah +<span id="L1285" class="LineNr">1285 </span> <span class="PreProc">var</span> b-val/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> copy _b-val +<span id="L1286" class="LineNr">1286 </span> <span class="PreProc">var</span> a-val-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get a, text-data +<span id="L1287" class="LineNr">1287 </span> <span class="PreProc">var</span> a-val/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-val-ah +<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> tmp-array: (handle array byte) +<span id="L1289" class="LineNr">1289 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> address tmp-array +<span id="L1290" class="LineNr">1290 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> a-val +<span id="L1291" class="LineNr">1291 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> a-val, tmp-ah +<span id="L1292" class="LineNr">1292 </span> <span class="PreProc">var</span> tmp/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1293" class="LineNr">1293 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> b-val, tmp +<span id="L1294" class="LineNr">1294 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1295" class="LineNr">1295 </span> <span class="Delimiter">{</span> +<span id="L1296" class="LineNr">1296 </span> compare match?, <span class="Constant">0</span>/false +<span id="L1297" class="LineNr">1297 </span> <span class="PreProc">break-if-=</span> +<span id="L1298" class="LineNr">1298 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> true (symbols)"</span> +<span id="L1299" class="LineNr">1299 </span> <span class="Delimiter">}</span> <span id="L1300" class="LineNr">1300 </span> <span class="Delimiter">{</span> <span id="L1301" class="LineNr">1301 </span> compare match?, <span class="Constant">0</span>/false -<span id="L1302" class="LineNr">1302 </span> <span class="PreProc">break-if-=</span> -<span id="L1303" class="LineNr">1303 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> true (symbols)"</span> +<span id="L1302" class="LineNr">1302 </span> <span class="PreProc">break-if-!=</span> +<span id="L1303" class="LineNr">1303 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (symbols)"</span> <span id="L1304" class="LineNr">1304 </span> <span class="Delimiter">}</span> -<span id="L1305" class="LineNr">1305 </span> <span class="Delimiter">{</span> -<span id="L1306" class="LineNr">1306 </span> compare match?, <span class="Constant">0</span>/false -<span id="L1307" class="LineNr">1307 </span> <span class="PreProc">break-if-!=</span> -<span id="L1308" class="LineNr">1308 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (symbols)"</span> -<span id="L1309" class="LineNr">1309 </span> <span class="Delimiter">}</span> -<span id="L1310" class="LineNr">1310 </span> <span class="PreProc">return</span> match? -<span id="L1311" class="LineNr">1311 </span> <span class="Delimiter">}</span> -<span id="L1312" class="LineNr">1312 </span> <span class="muComment"># if objects are primitive functions, compare index-data</span> -<span id="L1313" class="LineNr">1313 </span> compare b-type, <span class="Constant">4</span>/primitive -<span id="L1314" class="LineNr">1314 </span> <span class="Delimiter">{</span> -<span id="L1315" class="LineNr">1315 </span> <span class="PreProc">break-if-!=</span> -<span id="L1316" class="LineNr">1316 </span> <span class="PreProc">var</span> a-val-addr/eax: (addr int) <span class="Special"><-</span> get a, index-data -<span id="L1317" class="LineNr">1317 </span> <span class="PreProc">var</span> b-val-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get b, index-data -<span id="L1318" class="LineNr">1318 </span> <span class="PreProc">var</span> a-val/eax: int <span class="Special"><-</span> copy *a-val-addr -<span id="L1319" class="LineNr">1319 </span> compare a-val, *b-val-addr -<span id="L1320" class="LineNr">1320 </span> <span class="Delimiter">{</span> -<span id="L1321" class="LineNr">1321 </span> <span class="PreProc">break-if-=</span> -<span id="L1322" class="LineNr">1322 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1323" class="LineNr">1323 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (primitives)"</span> -<span id="L1324" class="LineNr">1324 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L1325" class="LineNr">1325 </span> <span class="Delimiter">}</span> -<span id="L1326" class="LineNr">1326 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1327" class="LineNr">1327 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> true (primitives)"</span> -<span id="L1328" class="LineNr">1328 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true -<span id="L1329" class="LineNr">1329 </span> <span class="Delimiter">}</span> -<span id="L1330" class="LineNr">1330 </span> <span class="muComment"># if objects are screens, check if they're the same object</span> -<span id="L1331" class="LineNr">1331 </span> compare b-type, <span class="Constant">5</span>/screen -<span id="L1332" class="LineNr">1332 </span> <span class="Delimiter">{</span> -<span id="L1333" class="LineNr">1333 </span> <span class="PreProc">break-if-!=</span> -<span id="L1334" class="LineNr">1334 </span> <span class="PreProc">var</span> a-val-addr/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get a, screen-data -<span id="L1335" class="LineNr">1335 </span> <span class="PreProc">var</span> b-val-addr/<span class="muRegEcx">ecx</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get b, screen-data -<span id="L1336" class="LineNr">1336 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../120allocate.subx.html#L448'>handle-equal?</a> *a-val-addr, *b-val-addr -<span id="L1337" class="LineNr">1337 </span> compare result, <span class="Constant">0</span>/false -<span id="L1338" class="LineNr">1338 </span> <span class="PreProc">return</span> result -<span id="L1339" class="LineNr">1339 </span> <span class="Delimiter">}</span> -<span id="L1340" class="LineNr">1340 </span> <span class="muComment"># if objects are keyboards, check if they have the same contents</span> -<span id="L1341" class="LineNr">1341 </span> compare b-type, <span class="Constant">6</span>/keyboard -<span id="L1342" class="LineNr">1342 </span> <span class="Delimiter">{</span> -<span id="L1343" class="LineNr">1343 </span> <span class="PreProc">break-if-!=</span> -<span id="L1344" class="LineNr">1344 </span> <span class="PreProc">var</span> a-val-addr/<span class="muRegEcx">ecx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get a, keyboard-data -<span id="L1345" class="LineNr">1345 </span> <span class="PreProc">var</span> _a/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-val-addr -<span id="L1346" class="LineNr">1346 </span> <span class="PreProc">var</span> a/<span class="muRegEcx">ecx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _a -<span id="L1347" class="LineNr">1347 </span> <span class="PreProc">var</span> b-val-addr/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get b, keyboard-data -<span id="L1348" class="LineNr">1348 </span> <span class="PreProc">var</span> b/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-val-addr -<span id="L1349" class="LineNr">1349 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L664'>gap-buffers-equal?</a> a, b -<span id="L1350" class="LineNr">1350 </span> <span class="PreProc">return</span> result -<span id="L1351" class="LineNr">1351 </span> <span class="Delimiter">}</span> -<span id="L1352" class="LineNr">1352 </span> <span class="muComment"># if a is nil, b should be nil</span> -<span id="L1353" class="LineNr">1353 </span> <span class="Delimiter">{</span> -<span id="L1354" class="LineNr">1354 </span> <span class="muComment"># (assumes nil? returns 0 or 1)</span> -<span id="L1355" class="LineNr">1355 </span> <span class="PreProc">var</span> _b-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> b -<span id="L1356" class="LineNr">1356 </span> <span class="PreProc">var</span> b-nil?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy _b-nil? -<span id="L1357" class="LineNr">1357 </span> <span class="PreProc">var</span> a-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> a -<span id="L1358" class="LineNr">1358 </span> <span class="muComment"># a == nil and b == nil => return true</span> -<span id="L1359" class="LineNr">1359 </span> <span class="Delimiter">{</span> -<span id="L1360" class="LineNr">1360 </span> compare a-nil?, <span class="Constant">0</span>/false -<span id="L1361" class="LineNr">1361 </span> <span class="PreProc">break-if-=</span> -<span id="L1362" class="LineNr">1362 </span> compare b-nil?, <span class="Constant">0</span>/false -<span id="L1363" class="LineNr">1363 </span> <span class="PreProc">break-if-=</span> -<span id="L1364" class="LineNr">1364 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1365" class="LineNr">1365 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> true (nils)"</span> -<span id="L1366" class="LineNr">1366 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true -<span id="L1367" class="LineNr">1367 </span> <span class="Delimiter">}</span> -<span id="L1368" class="LineNr">1368 </span> <span class="muComment"># a == nil => return false</span> -<span id="L1369" class="LineNr">1369 </span> <span class="Delimiter">{</span> -<span id="L1370" class="LineNr">1370 </span> compare a-nil?, <span class="Constant">0</span>/false -<span id="L1371" class="LineNr">1371 </span> <span class="PreProc">break-if-=</span> -<span id="L1372" class="LineNr">1372 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1373" class="LineNr">1373 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (b != <a href='cell.mu.html#L121'>nil</a>)"</span> -<span id="L1374" class="LineNr">1374 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L1375" class="LineNr">1375 </span> <span class="Delimiter">}</span> -<span id="L1376" class="LineNr">1376 </span> <span class="muComment"># b == nil => return false</span> -<span id="L1377" class="LineNr">1377 </span> <span class="Delimiter">{</span> -<span id="L1378" class="LineNr">1378 </span> compare b-nil?, <span class="Constant">0</span>/false -<span id="L1379" class="LineNr">1379 </span> <span class="PreProc">break-if-=</span> -<span id="L1380" class="LineNr">1380 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1381" class="LineNr">1381 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (a != <a href='cell.mu.html#L121'>nil</a>)"</span> -<span id="L1382" class="LineNr">1382 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L1383" class="LineNr">1383 </span> <span class="Delimiter">}</span> -<span id="L1384" class="LineNr">1384 </span> <span class="Delimiter">}</span> -<span id="L1385" class="LineNr">1385 </span> <span class="muComment"># a and b are pairs</span> -<span id="L1386" class="LineNr">1386 </span> <span class="PreProc">var</span> a-tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1387" class="LineNr">1387 </span> <span class="PreProc">var</span> a-tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-tmp-storage -<span id="L1388" class="LineNr">1388 </span> <span class="PreProc">var</span> b-tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1389" class="LineNr">1389 </span> <span class="PreProc">var</span> b-tmp-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-tmp-storage -<span id="L1390" class="LineNr">1390 </span> <span class="muComment"># if cars aren't equal, return false</span> -<span id="L1391" class="LineNr">1391 </span> <a href='evaluate.mu.html#L1189'>car</a> a, a-tmp-ah, trace -<span id="L1392" class="LineNr">1392 </span> <a href='evaluate.mu.html#L1189'>car</a> b, b-tmp-ah, trace -<span id="L1393" class="LineNr">1393 </span> <span class="Delimiter">{</span> -<span id="L1394" class="LineNr">1394 </span> <span class="PreProc">var</span> _a-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-tmp-ah -<span id="L1395" class="LineNr">1395 </span> <span class="PreProc">var</span> a-tmp/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _a-tmp -<span id="L1396" class="LineNr">1396 </span> <span class="PreProc">var</span> b-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-tmp-ah -<span id="L1397" class="LineNr">1397 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> a-tmp, b-tmp, trace -<span id="L1398" class="LineNr">1398 </span> compare result, <span class="Constant">0</span>/false -<span id="L1399" class="LineNr">1399 </span> <span class="PreProc">break-if-!=</span> -<span id="L1400" class="LineNr">1400 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1401" class="LineNr">1401 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (<a href='evaluate.mu.html#L1189'>car</a> mismatch)"</span> -<span id="L1402" class="LineNr">1402 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L1403" class="LineNr">1403 </span> <span class="Delimiter">}</span> -<span id="L1404" class="LineNr">1404 </span> <span class="muComment"># recurse on cdrs</span> -<span id="L1405" class="LineNr">1405 </span> <a href='evaluate.mu.html#L1217'>cdr</a> a, a-tmp-ah, trace -<span id="L1406" class="LineNr">1406 </span> <a href='evaluate.mu.html#L1217'>cdr</a> b, b-tmp-ah, trace -<span id="L1407" class="LineNr">1407 </span> <span class="PreProc">var</span> _a-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-tmp-ah -<span id="L1408" class="LineNr">1408 </span> <span class="PreProc">var</span> a-tmp/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _a-tmp -<span id="L1409" class="LineNr">1409 </span> <span class="PreProc">var</span> b-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-tmp-ah -<span id="L1410" class="LineNr">1410 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> a-tmp, b-tmp, trace -<span id="L1411" class="LineNr">1411 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1412" class="LineNr">1412 </span> <span class="PreProc">return</span> result -<span id="L1413" class="LineNr">1413 </span><span class="Delimiter">}</span> -<span id="L1414" class="LineNr">1414 </span> -<span id="L1415" class="LineNr">1415 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1415'>fn?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L1416" class="LineNr">1416 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x -<span id="L1417" class="LineNr">1417 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> -<span id="L1418" class="LineNr">1418 </span> compare *<span class="PreProc">type</span>, <span class="Constant">2</span>/symbol -<span id="L1419" class="LineNr">1419 </span> <span class="Delimiter">{</span> -<span id="L1420" class="LineNr">1420 </span> <span class="PreProc">break-if-=</span> -<span id="L1421" class="LineNr">1421 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L1422" class="LineNr">1422 </span> <span class="Delimiter">}</span> -<span id="L1423" class="LineNr">1423 </span> <span class="PreProc">var</span> contents-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get x, text-data -<span id="L1424" class="LineNr">1424 </span> <span class="PreProc">var</span> contents/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah -<span id="L1425" class="LineNr">1425 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"fn"</span> -<span id="L1426" class="LineNr">1426 </span> <span class="PreProc">return</span> result -<span id="L1427" class="LineNr">1427 </span><span class="Delimiter">}</span> -<span id="L1428" class="LineNr">1428 </span> -<span id="L1429" class="LineNr">1429 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1429'>litfn?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L1430" class="LineNr">1430 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x -<span id="L1431" class="LineNr">1431 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> -<span id="L1432" class="LineNr">1432 </span> compare *<span class="PreProc">type</span>, <span class="Constant">2</span>/symbol -<span id="L1433" class="LineNr">1433 </span> <span class="Delimiter">{</span> -<span id="L1434" class="LineNr">1434 </span> <span class="PreProc">break-if-=</span> -<span id="L1435" class="LineNr">1435 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L1436" class="LineNr">1436 </span> <span class="Delimiter">}</span> -<span id="L1437" class="LineNr">1437 </span> <span class="PreProc">var</span> contents-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get x, text-data -<span id="L1438" class="LineNr">1438 </span> <span class="PreProc">var</span> contents/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah -<span id="L1439" class="LineNr">1439 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"litfn"</span> -<span id="L1440" class="LineNr">1440 </span> <span class="PreProc">return</span> result -<span id="L1441" class="LineNr">1441 </span><span class="Delimiter">}</span> -<span id="L1442" class="LineNr">1442 </span> -<span id="L1443" class="LineNr">1443 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1443'>litmac?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L1444" class="LineNr">1444 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x -<span id="L1445" class="LineNr">1445 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> -<span id="L1446" class="LineNr">1446 </span> compare *<span class="PreProc">type</span>, <span class="Constant">2</span>/symbol -<span id="L1447" class="LineNr">1447 </span> <span class="Delimiter">{</span> -<span id="L1448" class="LineNr">1448 </span> <span class="PreProc">break-if-=</span> -<span id="L1449" class="LineNr">1449 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L1450" class="LineNr">1450 </span> <span class="Delimiter">}</span> -<span id="L1451" class="LineNr">1451 </span> <span class="PreProc">var</span> contents-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get x, text-data -<span id="L1452" class="LineNr">1452 </span> <span class="PreProc">var</span> contents/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah -<span id="L1453" class="LineNr">1453 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"litmac"</span> -<span id="L1454" class="LineNr">1454 </span> <span class="PreProc">return</span> result -<span id="L1455" class="LineNr">1455 </span><span class="Delimiter">}</span> -<span id="L1456" class="LineNr">1456 </span> -<span id="L1457" class="LineNr">1457 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1457'>test-evaluate-is-well-behaved</a></span> <span class="Delimiter">{</span> -<span id="L1458" class="LineNr">1458 </span> <span class="PreProc">var</span> t-storage: trace -<span id="L1459" class="LineNr">1459 </span> <span class="PreProc">var</span> t/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> address t-storage -<span id="L1460" class="LineNr">1460 </span> <a href='trace.mu.html#L61'>initialize-trace</a> t, <span class="Constant">0x100</span>/max-depth, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span class="muComment"># we don't use trace UI</span> -<span id="L1461" class="LineNr">1461 </span> <span class="muComment"># env = nil</span> -<span id="L1462" class="LineNr">1462 </span> <span class="PreProc">var</span> env-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1463" class="LineNr">1463 </span> <span class="PreProc">var</span> env-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-storage -<span id="L1464" class="LineNr">1464 </span> <a href='cell.mu.html#L102'>allocate-pair</a> env-ah -<span id="L1465" class="LineNr">1465 </span> <span class="muComment"># eval sym(a), nil env</span> -<span id="L1466" class="LineNr">1466 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1467" class="LineNr">1467 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage -<span id="L1468" class="LineNr">1468 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp-ah, <span class="Constant">"a"</span> -<span id="L1469" class="LineNr">1469 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *env-ah, <span class="Constant">0</span>/no-globals, t, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1470" class="LineNr">1470 </span> <span class="muComment"># doesn't die</span> -<span id="L1471" class="LineNr">1471 </span> <a href='trace.mu.html#L292'>check-trace-contains</a> t, <span class="Constant">"error"</span>, <span class="Constant">"unbound symbol: a"</span>, <span class="Constant">"F - test-evaluate-is-well-behaved"</span> -<span id="L1472" class="LineNr">1472 </span><span class="Delimiter">}</span> -<span id="L1473" class="LineNr">1473 </span> -<span id="L1474" class="LineNr">1474 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1474'>test-evaluate-number</a></span> <span class="Delimiter">{</span> -<span id="L1475" class="LineNr">1475 </span> <span class="muComment"># env = nil</span> -<span id="L1476" class="LineNr">1476 </span> <span class="PreProc">var</span> env-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1477" class="LineNr">1477 </span> <span class="PreProc">var</span> env-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-storage -<span id="L1478" class="LineNr">1478 </span> <a href='cell.mu.html#L102'>allocate-pair</a> env-ah -<span id="L1479" class="LineNr">1479 </span> <span class="muComment"># tmp = 3</span> -<span id="L1480" class="LineNr">1480 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1481" class="LineNr">1481 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage -<span id="L1482" class="LineNr">1482 </span> <a href='cell.mu.html#L84'>new-integer</a> tmp-ah, <span class="Constant">3</span> -<span id="L1483" class="LineNr">1483 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L1484" class="LineNr">1484 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L1485" class="LineNr">1485 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L1486" class="LineNr">1486 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *env-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1487" class="LineNr">1487 </span> <span class="muComment">#</span> -<span id="L1488" class="LineNr">1488 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah -<span id="L1489" class="LineNr">1489 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> -<span id="L1490" class="LineNr">1490 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">1</span>/number, <span class="Constant">"F - <a href='evaluate.mu.html#L1474'>test-evaluate-number</a>/0"</span> -<span id="L1491" class="LineNr">1491 </span> <span class="PreProc">var</span> result-value-addr/eax: (addr float) <span class="Special"><-</span> get result, number-data -<span id="L1492" class="LineNr">1492 </span> <span class="PreProc">var</span> result-value/eax: int <span class="Special"><-</span> convert *result-value-addr -<span id="L1493" class="LineNr">1493 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1474'>test-evaluate-number</a>/1"</span> -<span id="L1494" class="LineNr">1494 </span><span class="Delimiter">}</span> -<span id="L1495" class="LineNr">1495 </span> -<span id="L1496" class="LineNr">1496 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1496'>test-evaluate-symbol</a></span> <span class="Delimiter">{</span> -<span id="L1497" class="LineNr">1497 </span> <span class="muComment"># tmp = (a . 3)</span> -<span id="L1498" class="LineNr">1498 </span> <span class="PreProc">var</span> val-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1499" class="LineNr">1499 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address val-storage -<span id="L1500" class="LineNr">1500 </span> <a href='cell.mu.html#L84'>new-integer</a> val-ah, <span class="Constant">3</span> -<span id="L1501" class="LineNr">1501 </span> <span class="PreProc">var</span> key-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1502" class="LineNr">1502 </span> <span class="PreProc">var</span> key-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address key-storage -<span id="L1503" class="LineNr">1503 </span> <a href='cell.mu.html#L39'>new-symbol</a> key-ah, <span class="Constant">"a"</span> -<span id="L1504" class="LineNr">1504 </span> <span class="PreProc">var</span> env-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1505" class="LineNr">1505 </span> <span class="PreProc">var</span> env-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-storage -<span id="L1506" class="LineNr">1506 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, *key-ah, *val-ah -<span id="L1507" class="LineNr">1507 </span> <span class="muComment"># env = ((a . 3))</span> -<span id="L1508" class="LineNr">1508 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1509" class="LineNr">1509 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L1510" class="LineNr">1510 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah -<span id="L1511" class="LineNr">1511 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, *env-ah, *nil-ah -<span id="L1512" class="LineNr">1512 </span> <span class="muComment"># eval sym(a), env</span> -<span id="L1513" class="LineNr">1513 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1514" class="LineNr">1514 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage -<span id="L1515" class="LineNr">1515 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp-ah, <span class="Constant">"a"</span> -<span id="L1516" class="LineNr">1516 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L1517" class="LineNr">1517 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L1518" class="LineNr">1518 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L1519" class="LineNr">1519 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *env-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1520" class="LineNr">1520 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah -<span id="L1521" class="LineNr">1521 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> -<span id="L1522" class="LineNr">1522 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">1</span>/number, <span class="Constant">"F - <a href='evaluate.mu.html#L1496'>test-evaluate-symbol</a>/0"</span> -<span id="L1523" class="LineNr">1523 </span> <span class="PreProc">var</span> result-value-addr/eax: (addr float) <span class="Special"><-</span> get result, number-data -<span id="L1524" class="LineNr">1524 </span> <span class="PreProc">var</span> result-value/eax: int <span class="Special"><-</span> convert *result-value-addr -<span id="L1525" class="LineNr">1525 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1496'>test-evaluate-symbol</a>/1"</span> -<span id="L1526" class="LineNr">1526 </span><span class="Delimiter">}</span> -<span id="L1527" class="LineNr">1527 </span> -<span id="L1528" class="LineNr">1528 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1528'>test-evaluate-quote</a></span> <span class="Delimiter">{</span> -<span id="L1529" class="LineNr">1529 </span> <span class="muComment"># env = nil</span> -<span id="L1530" class="LineNr">1530 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1531" class="LineNr">1531 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L1532" class="LineNr">1532 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah -<span id="L1533" class="LineNr">1533 </span> <span class="muComment"># eval `a, env</span> -<span id="L1534" class="LineNr">1534 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1535" class="LineNr">1535 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage -<span id="L1536" class="LineNr">1536 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp-ah, <span class="Constant">"'"</span> -<span id="L1537" class="LineNr">1537 </span> <span class="PreProc">var</span> tmp2-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1538" class="LineNr">1538 </span> <span class="PreProc">var</span> tmp2-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp2-storage -<span id="L1539" class="LineNr">1539 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp2-ah, <span class="Constant">"a"</span> -<span id="L1540" class="LineNr">1540 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *tmp-ah, *tmp2-ah +<span id="L1305" class="LineNr">1305 </span> <span class="PreProc">return</span> match? +<span id="L1306" class="LineNr">1306 </span> <span class="Delimiter">}</span> +<span id="L1307" class="LineNr">1307 </span> <span class="Delimiter">{</span> +<span id="L1308" class="LineNr">1308 </span> compare b-type, <span class="Constant">3</span>/stream +<span id="L1309" class="LineNr">1309 </span> <span class="PreProc">break-if-!=</span> +<span id="L1310" class="LineNr">1310 </span> <span class="PreProc">var</span> a-val-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get a, text-data +<span id="L1311" class="LineNr">1311 </span> <span class="PreProc">var</span> a-val/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-val-ah +<span id="L1312" class="LineNr">1312 </span> <span class="PreProc">var</span> a-data-h: (handle array byte) +<span id="L1313" class="LineNr">1313 </span> <span class="PreProc">var</span> a-data-ah/<span class="muRegEdx">edx</span>: (addr handle array byte) <span class="Special"><-</span> address a-data-h +<span id="L1314" class="LineNr">1314 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> a-val, a-data-ah +<span id="L1315" class="LineNr">1315 </span> <span class="PreProc">var</span> _a-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-data-ah +<span id="L1316" class="LineNr">1316 </span> <span class="PreProc">var</span> a-data/<span class="muRegEdx">edx</span>: (addr array byte) <span class="Special"><-</span> copy _a-data +<span id="L1317" class="LineNr">1317 </span> <span class="PreProc">var</span> b-val-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get b, text-data +<span id="L1318" class="LineNr">1318 </span> <span class="PreProc">var</span> b-val/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-val-ah +<span id="L1319" class="LineNr">1319 </span> <span class="PreProc">var</span> b-data-h: (handle array byte) +<span id="L1320" class="LineNr">1320 </span> <span class="PreProc">var</span> b-data-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> address b-data-h +<span id="L1321" class="LineNr">1321 </span> <a href='../310copy-bytes.subx.html#L60'>stream-to-array</a> b-val, b-data-ah +<span id="L1322" class="LineNr">1322 </span> <span class="PreProc">var</span> b-data/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-data-ah +<span id="L1323" class="LineNr">1323 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> a-data, b-data +<span id="L1324" class="LineNr">1324 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1325" class="LineNr">1325 </span> <span class="Delimiter">{</span> +<span id="L1326" class="LineNr">1326 </span> compare match?, <span class="Constant">0</span>/false +<span id="L1327" class="LineNr">1327 </span> <span class="PreProc">break-if-=</span> +<span id="L1328" class="LineNr">1328 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> true (streams)"</span> +<span id="L1329" class="LineNr">1329 </span> <span class="Delimiter">}</span> +<span id="L1330" class="LineNr">1330 </span> <span class="Delimiter">{</span> +<span id="L1331" class="LineNr">1331 </span> compare match?, <span class="Constant">0</span>/false +<span id="L1332" class="LineNr">1332 </span> <span class="PreProc">break-if-!=</span> +<span id="L1333" class="LineNr">1333 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (streams)"</span> +<span id="L1334" class="LineNr">1334 </span> <span class="Delimiter">}</span> +<span id="L1335" class="LineNr">1335 </span> <span class="PreProc">return</span> match? +<span id="L1336" class="LineNr">1336 </span> <span class="Delimiter">}</span> +<span id="L1337" class="LineNr">1337 </span> <span class="muComment"># if objects are primitive functions, compare index-data</span> +<span id="L1338" class="LineNr">1338 </span> compare b-type, <span class="Constant">4</span>/primitive +<span id="L1339" class="LineNr">1339 </span> <span class="Delimiter">{</span> +<span id="L1340" class="LineNr">1340 </span> <span class="PreProc">break-if-!=</span> +<span id="L1341" class="LineNr">1341 </span> <span class="PreProc">var</span> a-val-addr/eax: (addr int) <span class="Special"><-</span> get a, index-data +<span id="L1342" class="LineNr">1342 </span> <span class="PreProc">var</span> b-val-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get b, index-data +<span id="L1343" class="LineNr">1343 </span> <span class="PreProc">var</span> a-val/eax: int <span class="Special"><-</span> copy *a-val-addr +<span id="L1344" class="LineNr">1344 </span> compare a-val, *b-val-addr +<span id="L1345" class="LineNr">1345 </span> <span class="Delimiter">{</span> +<span id="L1346" class="LineNr">1346 </span> <span class="PreProc">break-if-=</span> +<span id="L1347" class="LineNr">1347 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1348" class="LineNr">1348 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (primitives)"</span> +<span id="L1349" class="LineNr">1349 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L1350" class="LineNr">1350 </span> <span class="Delimiter">}</span> +<span id="L1351" class="LineNr">1351 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1352" class="LineNr">1352 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> true (primitives)"</span> +<span id="L1353" class="LineNr">1353 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true +<span id="L1354" class="LineNr">1354 </span> <span class="Delimiter">}</span> +<span id="L1355" class="LineNr">1355 </span> <span class="muComment"># if objects are screens, check if they're the same object</span> +<span id="L1356" class="LineNr">1356 </span> compare b-type, <span class="Constant">5</span>/screen +<span id="L1357" class="LineNr">1357 </span> <span class="Delimiter">{</span> +<span id="L1358" class="LineNr">1358 </span> <span class="PreProc">break-if-!=</span> +<span id="L1359" class="LineNr">1359 </span> <span class="PreProc">var</span> a-val-addr/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get a, screen-data +<span id="L1360" class="LineNr">1360 </span> <span class="PreProc">var</span> b-val-addr/<span class="muRegEcx">ecx</span>: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get b, screen-data +<span id="L1361" class="LineNr">1361 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../120allocate.subx.html#L448'>handle-equal?</a> *a-val-addr, *b-val-addr +<span id="L1362" class="LineNr">1362 </span> compare result, <span class="Constant">0</span>/false +<span id="L1363" class="LineNr">1363 </span> <span class="PreProc">return</span> result +<span id="L1364" class="LineNr">1364 </span> <span class="Delimiter">}</span> +<span id="L1365" class="LineNr">1365 </span> <span class="muComment"># if objects are keyboards, check if they have the same contents</span> +<span id="L1366" class="LineNr">1366 </span> compare b-type, <span class="Constant">6</span>/keyboard +<span id="L1367" class="LineNr">1367 </span> <span class="Delimiter">{</span> +<span id="L1368" class="LineNr">1368 </span> <span class="PreProc">break-if-!=</span> +<span id="L1369" class="LineNr">1369 </span> <span class="PreProc">var</span> a-val-addr/<span class="muRegEcx">ecx</span>: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get a, keyboard-data +<span id="L1370" class="LineNr">1370 </span> <span class="PreProc">var</span> _a/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-val-addr +<span id="L1371" class="LineNr">1371 </span> <span class="PreProc">var</span> a/<span class="muRegEcx">ecx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _a +<span id="L1372" class="LineNr">1372 </span> <span class="PreProc">var</span> b-val-addr/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get b, keyboard-data +<span id="L1373" class="LineNr">1373 </span> <span class="PreProc">var</span> b/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-val-addr +<span id="L1374" class="LineNr">1374 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='gap-buffer.mu.html#L664'>gap-buffers-equal?</a> a, b +<span id="L1375" class="LineNr">1375 </span> <span class="PreProc">return</span> result +<span id="L1376" class="LineNr">1376 </span> <span class="Delimiter">}</span> +<span id="L1377" class="LineNr">1377 </span> <span class="muComment"># if a is nil, b should be nil</span> +<span id="L1378" class="LineNr">1378 </span> <span class="Delimiter">{</span> +<span id="L1379" class="LineNr">1379 </span> <span class="muComment"># (assumes nil? returns 0 or 1)</span> +<span id="L1380" class="LineNr">1380 </span> <span class="PreProc">var</span> _b-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> b +<span id="L1381" class="LineNr">1381 </span> <span class="PreProc">var</span> b-nil?/<span class="muRegEcx">ecx</span>: boolean <span class="Special"><-</span> copy _b-nil? +<span id="L1382" class="LineNr">1382 </span> <span class="PreProc">var</span> a-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> a +<span id="L1383" class="LineNr">1383 </span> <span class="muComment"># a == nil and b == nil => return true</span> +<span id="L1384" class="LineNr">1384 </span> <span class="Delimiter">{</span> +<span id="L1385" class="LineNr">1385 </span> compare a-nil?, <span class="Constant">0</span>/false +<span id="L1386" class="LineNr">1386 </span> <span class="PreProc">break-if-=</span> +<span id="L1387" class="LineNr">1387 </span> compare b-nil?, <span class="Constant">0</span>/false +<span id="L1388" class="LineNr">1388 </span> <span class="PreProc">break-if-=</span> +<span id="L1389" class="LineNr">1389 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1390" class="LineNr">1390 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> true (nils)"</span> +<span id="L1391" class="LineNr">1391 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true +<span id="L1392" class="LineNr">1392 </span> <span class="Delimiter">}</span> +<span id="L1393" class="LineNr">1393 </span> <span class="muComment"># a == nil => return false</span> +<span id="L1394" class="LineNr">1394 </span> <span class="Delimiter">{</span> +<span id="L1395" class="LineNr">1395 </span> compare a-nil?, <span class="Constant">0</span>/false +<span id="L1396" class="LineNr">1396 </span> <span class="PreProc">break-if-=</span> +<span id="L1397" class="LineNr">1397 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1398" class="LineNr">1398 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (b != <a href='cell.mu.html#L121'>nil</a>)"</span> +<span id="L1399" class="LineNr">1399 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L1400" class="LineNr">1400 </span> <span class="Delimiter">}</span> +<span id="L1401" class="LineNr">1401 </span> <span class="muComment"># b == nil => return false</span> +<span id="L1402" class="LineNr">1402 </span> <span class="Delimiter">{</span> +<span id="L1403" class="LineNr">1403 </span> compare b-nil?, <span class="Constant">0</span>/false +<span id="L1404" class="LineNr">1404 </span> <span class="PreProc">break-if-=</span> +<span id="L1405" class="LineNr">1405 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1406" class="LineNr">1406 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (a != <a href='cell.mu.html#L121'>nil</a>)"</span> +<span id="L1407" class="LineNr">1407 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L1408" class="LineNr">1408 </span> <span class="Delimiter">}</span> +<span id="L1409" class="LineNr">1409 </span> <span class="Delimiter">}</span> +<span id="L1410" class="LineNr">1410 </span> <span class="muComment"># a and b are pairs</span> +<span id="L1411" class="LineNr">1411 </span> <span class="PreProc">var</span> a-tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1412" class="LineNr">1412 </span> <span class="PreProc">var</span> a-tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-tmp-storage +<span id="L1413" class="LineNr">1413 </span> <span class="PreProc">var</span> b-tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1414" class="LineNr">1414 </span> <span class="PreProc">var</span> b-tmp-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-tmp-storage +<span id="L1415" class="LineNr">1415 </span> <span class="muComment"># if cars aren't equal, return false</span> +<span id="L1416" class="LineNr">1416 </span> <a href='evaluate.mu.html#L1189'>car</a> a, a-tmp-ah, trace +<span id="L1417" class="LineNr">1417 </span> <a href='evaluate.mu.html#L1189'>car</a> b, b-tmp-ah, trace +<span id="L1418" class="LineNr">1418 </span> <span class="Delimiter">{</span> +<span id="L1419" class="LineNr">1419 </span> <span class="PreProc">var</span> _a-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-tmp-ah +<span id="L1420" class="LineNr">1420 </span> <span class="PreProc">var</span> a-tmp/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _a-tmp +<span id="L1421" class="LineNr">1421 </span> <span class="PreProc">var</span> b-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-tmp-ah +<span id="L1422" class="LineNr">1422 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> a-tmp, b-tmp, trace +<span id="L1423" class="LineNr">1423 </span> compare result, <span class="Constant">0</span>/false +<span id="L1424" class="LineNr">1424 </span> <span class="PreProc">break-if-!=</span> +<span id="L1425" class="LineNr">1425 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1426" class="LineNr">1426 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"=> false (<a href='evaluate.mu.html#L1189'>car</a> mismatch)"</span> +<span id="L1427" class="LineNr">1427 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L1428" class="LineNr">1428 </span> <span class="Delimiter">}</span> +<span id="L1429" class="LineNr">1429 </span> <span class="muComment"># recurse on cdrs</span> +<span id="L1430" class="LineNr">1430 </span> <a href='evaluate.mu.html#L1217'>cdr</a> a, a-tmp-ah, trace +<span id="L1431" class="LineNr">1431 </span> <a href='evaluate.mu.html#L1217'>cdr</a> b, b-tmp-ah, trace +<span id="L1432" class="LineNr">1432 </span> <span class="PreProc">var</span> _a-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a-tmp-ah +<span id="L1433" class="LineNr">1433 </span> <span class="PreProc">var</span> a-tmp/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _a-tmp +<span id="L1434" class="LineNr">1434 </span> <span class="PreProc">var</span> b-tmp/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *b-tmp-ah +<span id="L1435" class="LineNr">1435 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> a-tmp, b-tmp, trace +<span id="L1436" class="LineNr">1436 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1437" class="LineNr">1437 </span> <span class="PreProc">return</span> result +<span id="L1438" class="LineNr">1438 </span><span class="Delimiter">}</span> +<span id="L1439" class="LineNr">1439 </span> +<span id="L1440" class="LineNr">1440 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1440'>fn?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L1441" class="LineNr">1441 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x +<span id="L1442" class="LineNr">1442 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> +<span id="L1443" class="LineNr">1443 </span> compare *<span class="PreProc">type</span>, <span class="Constant">2</span>/symbol +<span id="L1444" class="LineNr">1444 </span> <span class="Delimiter">{</span> +<span id="L1445" class="LineNr">1445 </span> <span class="PreProc">break-if-=</span> +<span id="L1446" class="LineNr">1446 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L1447" class="LineNr">1447 </span> <span class="Delimiter">}</span> +<span id="L1448" class="LineNr">1448 </span> <span class="PreProc">var</span> contents-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get x, text-data +<span id="L1449" class="LineNr">1449 </span> <span class="PreProc">var</span> contents/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah +<span id="L1450" class="LineNr">1450 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"fn"</span> +<span id="L1451" class="LineNr">1451 </span> <span class="PreProc">return</span> result +<span id="L1452" class="LineNr">1452 </span><span class="Delimiter">}</span> +<span id="L1453" class="LineNr">1453 </span> +<span id="L1454" class="LineNr">1454 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1454'>litfn?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L1455" class="LineNr">1455 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x +<span id="L1456" class="LineNr">1456 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> +<span id="L1457" class="LineNr">1457 </span> compare *<span class="PreProc">type</span>, <span class="Constant">2</span>/symbol +<span id="L1458" class="LineNr">1458 </span> <span class="Delimiter">{</span> +<span id="L1459" class="LineNr">1459 </span> <span class="PreProc">break-if-=</span> +<span id="L1460" class="LineNr">1460 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L1461" class="LineNr">1461 </span> <span class="Delimiter">}</span> +<span id="L1462" class="LineNr">1462 </span> <span class="PreProc">var</span> contents-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get x, text-data +<span id="L1463" class="LineNr">1463 </span> <span class="PreProc">var</span> contents/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah +<span id="L1464" class="LineNr">1464 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"litfn"</span> +<span id="L1465" class="LineNr">1465 </span> <span class="PreProc">return</span> result +<span id="L1466" class="LineNr">1466 </span><span class="Delimiter">}</span> +<span id="L1467" class="LineNr">1467 </span> +<span id="L1468" class="LineNr">1468 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1468'>litmac?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L1469" class="LineNr">1469 </span> <span class="PreProc">var</span> x/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x +<span id="L1470" class="LineNr">1470 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get x, <span class="PreProc">type</span> +<span id="L1471" class="LineNr">1471 </span> compare *<span class="PreProc">type</span>, <span class="Constant">2</span>/symbol +<span id="L1472" class="LineNr">1472 </span> <span class="Delimiter">{</span> +<span id="L1473" class="LineNr">1473 </span> <span class="PreProc">break-if-=</span> +<span id="L1474" class="LineNr">1474 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L1475" class="LineNr">1475 </span> <span class="Delimiter">}</span> +<span id="L1476" class="LineNr">1476 </span> <span class="PreProc">var</span> contents-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get x, text-data +<span id="L1477" class="LineNr">1477 </span> <span class="PreProc">var</span> contents/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *contents-ah +<span id="L1478" class="LineNr">1478 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../109stream-equal.subx.html#L9'>stream-data-equal?</a> contents, <span class="Constant">"litmac"</span> +<span id="L1479" class="LineNr">1479 </span> <span class="PreProc">return</span> result +<span id="L1480" class="LineNr">1480 </span><span class="Delimiter">}</span> +<span id="L1481" class="LineNr">1481 </span> +<span id="L1482" class="LineNr">1482 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1482'>test-evaluate-is-well-behaved</a></span> <span class="Delimiter">{</span> +<span id="L1483" class="LineNr">1483 </span> <span class="PreProc">var</span> t-storage: trace +<span id="L1484" class="LineNr">1484 </span> <span class="PreProc">var</span> t/<span class="muRegEsi">esi</span>: (addr trace) <span class="Special"><-</span> address t-storage +<span id="L1485" class="LineNr">1485 </span> <a href='trace.mu.html#L61'>initialize-trace</a> t, <span class="Constant">0x100</span>/max-depth, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible <span class="muComment"># we don't use trace UI</span> +<span id="L1486" class="LineNr">1486 </span> <span class="muComment"># env = nil</span> +<span id="L1487" class="LineNr">1487 </span> <span class="PreProc">var</span> env-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1488" class="LineNr">1488 </span> <span class="PreProc">var</span> env-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-storage +<span id="L1489" class="LineNr">1489 </span> <a href='cell.mu.html#L102'>allocate-pair</a> env-ah +<span id="L1490" class="LineNr">1490 </span> <span class="muComment"># eval sym(a), nil env</span> +<span id="L1491" class="LineNr">1491 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1492" class="LineNr">1492 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage +<span id="L1493" class="LineNr">1493 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp-ah, <span class="Constant">"a"</span> +<span id="L1494" class="LineNr">1494 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *env-ah, <span class="Constant">0</span>/no-globals, t, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number +<span id="L1495" class="LineNr">1495 </span> <span class="muComment"># doesn't die</span> +<span id="L1496" class="LineNr">1496 </span> <a href='trace.mu.html#L292'>check-trace-contains</a> t, <span class="Constant">"error"</span>, <span class="Constant">"unbound symbol: a"</span>, <span class="Constant">"F - test-evaluate-is-well-behaved"</span> +<span id="L1497" class="LineNr">1497 </span><span class="Delimiter">}</span> +<span id="L1498" class="LineNr">1498 </span> +<span id="L1499" class="LineNr">1499 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1499'>test-evaluate-number</a></span> <span class="Delimiter">{</span> +<span id="L1500" class="LineNr">1500 </span> <span class="muComment"># env = nil</span> +<span id="L1501" class="LineNr">1501 </span> <span class="PreProc">var</span> env-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1502" class="LineNr">1502 </span> <span class="PreProc">var</span> env-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-storage +<span id="L1503" class="LineNr">1503 </span> <a href='cell.mu.html#L102'>allocate-pair</a> env-ah +<span id="L1504" class="LineNr">1504 </span> <span class="muComment"># tmp = 3</span> +<span id="L1505" class="LineNr">1505 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1506" class="LineNr">1506 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage +<span id="L1507" class="LineNr">1507 </span> <a href='cell.mu.html#L84'>new-integer</a> tmp-ah, <span class="Constant">3</span> +<span id="L1508" class="LineNr">1508 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L1509" class="LineNr">1509 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L1510" class="LineNr">1510 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L1511" class="LineNr">1511 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *env-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number +<span id="L1512" class="LineNr">1512 </span> <span class="muComment">#</span> +<span id="L1513" class="LineNr">1513 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1514" class="LineNr">1514 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> +<span id="L1515" class="LineNr">1515 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">1</span>/number, <span class="Constant">"F - <a href='evaluate.mu.html#L1499'>test-evaluate-number</a>/0"</span> +<span id="L1516" class="LineNr">1516 </span> <span class="PreProc">var</span> result-value-addr/eax: (addr float) <span class="Special"><-</span> get result, number-data +<span id="L1517" class="LineNr">1517 </span> <span class="PreProc">var</span> result-value/eax: int <span class="Special"><-</span> convert *result-value-addr +<span id="L1518" class="LineNr">1518 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1499'>test-evaluate-number</a>/1"</span> +<span id="L1519" class="LineNr">1519 </span><span class="Delimiter">}</span> +<span id="L1520" class="LineNr">1520 </span> +<span id="L1521" class="LineNr">1521 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1521'>test-evaluate-symbol</a></span> <span class="Delimiter">{</span> +<span id="L1522" class="LineNr">1522 </span> <span class="muComment"># tmp = (a . 3)</span> +<span id="L1523" class="LineNr">1523 </span> <span class="PreProc">var</span> val-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1524" class="LineNr">1524 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address val-storage +<span id="L1525" class="LineNr">1525 </span> <a href='cell.mu.html#L84'>new-integer</a> val-ah, <span class="Constant">3</span> +<span id="L1526" class="LineNr">1526 </span> <span class="PreProc">var</span> key-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1527" class="LineNr">1527 </span> <span class="PreProc">var</span> key-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address key-storage +<span id="L1528" class="LineNr">1528 </span> <a href='cell.mu.html#L39'>new-symbol</a> key-ah, <span class="Constant">"a"</span> +<span id="L1529" class="LineNr">1529 </span> <span class="PreProc">var</span> env-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1530" class="LineNr">1530 </span> <span class="PreProc">var</span> env-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-storage +<span id="L1531" class="LineNr">1531 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, *key-ah, *val-ah +<span id="L1532" class="LineNr">1532 </span> <span class="muComment"># env = ((a . 3))</span> +<span id="L1533" class="LineNr">1533 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1534" class="LineNr">1534 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L1535" class="LineNr">1535 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah +<span id="L1536" class="LineNr">1536 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, *env-ah, *nil-ah +<span id="L1537" class="LineNr">1537 </span> <span class="muComment"># eval sym(a), env</span> +<span id="L1538" class="LineNr">1538 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1539" class="LineNr">1539 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage +<span id="L1540" class="LineNr">1540 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp-ah, <span class="Constant">"a"</span> <span id="L1541" class="LineNr">1541 </span> <span class="PreProc">var</span> trace-storage: trace <span id="L1542" class="LineNr">1542 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage <span id="L1543" class="LineNr">1543 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L1544" class="LineNr">1544 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number +<span id="L1544" class="LineNr">1544 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *env-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L1545" class="LineNr">1545 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1546" class="LineNr">1546 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> -<span id="L1547" class="LineNr">1547 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">2</span>/symbol, <span class="Constant">"F - <a href='evaluate.mu.html#L1528'>test-evaluate-quote</a>/0"</span> -<span id="L1548" class="LineNr">1548 </span> <span class="PreProc">var</span> sym?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> result, <span class="Constant">"a"</span> -<span id="L1549" class="LineNr">1549 </span> <a href='../502test.mu.html#L19'>check</a> sym?, <span class="Constant">"F - <a href='evaluate.mu.html#L1528'>test-evaluate-quote</a>/1"</span> -<span id="L1550" class="LineNr">1550 </span><span class="Delimiter">}</span> -<span id="L1551" class="LineNr">1551 </span> -<span id="L1552" class="LineNr">1552 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1552'>test-evaluate-primitive-function</a></span> <span class="Delimiter">{</span> -<span id="L1553" class="LineNr">1553 </span> <span class="PreProc">var</span> globals-storage: <a href='global.mu.html#L1'>global-table</a> -<span id="L1554" class="LineNr">1554 </span> <span class="PreProc">var</span> globals/<span class="muRegEdi">edi</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> address globals-storage -<span id="L1555" class="LineNr">1555 </span> <a href='global.mu.html#L14'>initialize-globals</a> globals -<span id="L1556" class="LineNr">1556 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1557" class="LineNr">1557 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L1558" class="LineNr">1558 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah -<span id="L1559" class="LineNr">1559 </span> <span class="PreProc">var</span> add-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1560" class="LineNr">1560 </span> <span class="PreProc">var</span> add-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address add-storage -<span id="L1561" class="LineNr">1561 </span> <a href='cell.mu.html#L39'>new-symbol</a> add-ah, <span class="Constant">"+"</span> -<span id="L1562" class="LineNr">1562 </span> <span class="muComment"># eval +, nil env</span> -<span id="L1563" class="LineNr">1563 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1564" class="LineNr">1564 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage -<span id="L1565" class="LineNr">1565 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L1566" class="LineNr">1566 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L1567" class="LineNr">1567 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L1568" class="LineNr">1568 </span> <a href='evaluate.mu.html#L11'>evaluate</a> add-ah, tmp-ah, *nil-ah, globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1569" class="LineNr">1569 </span> <span class="muComment">#</span> +<span id="L1547" class="LineNr">1547 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">1</span>/number, <span class="Constant">"F - <a href='evaluate.mu.html#L1521'>test-evaluate-symbol</a>/0"</span> +<span id="L1548" class="LineNr">1548 </span> <span class="PreProc">var</span> result-value-addr/eax: (addr float) <span class="Special"><-</span> get result, number-data +<span id="L1549" class="LineNr">1549 </span> <span class="PreProc">var</span> result-value/eax: int <span class="Special"><-</span> convert *result-value-addr +<span id="L1550" class="LineNr">1550 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1521'>test-evaluate-symbol</a>/1"</span> +<span id="L1551" class="LineNr">1551 </span><span class="Delimiter">}</span> +<span id="L1552" class="LineNr">1552 </span> +<span id="L1553" class="LineNr">1553 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1553'>test-evaluate-quote</a></span> <span class="Delimiter">{</span> +<span id="L1554" class="LineNr">1554 </span> <span class="muComment"># env = nil</span> +<span id="L1555" class="LineNr">1555 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1556" class="LineNr">1556 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L1557" class="LineNr">1557 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah +<span id="L1558" class="LineNr">1558 </span> <span class="muComment"># eval `a, env</span> +<span id="L1559" class="LineNr">1559 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1560" class="LineNr">1560 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage +<span id="L1561" class="LineNr">1561 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp-ah, <span class="Constant">"'"</span> +<span id="L1562" class="LineNr">1562 </span> <span class="PreProc">var</span> tmp2-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1563" class="LineNr">1563 </span> <span class="PreProc">var</span> tmp2-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp2-storage +<span id="L1564" class="LineNr">1564 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp2-ah, <span class="Constant">"a"</span> +<span id="L1565" class="LineNr">1565 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *tmp-ah, *tmp2-ah +<span id="L1566" class="LineNr">1566 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L1567" class="LineNr">1567 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L1568" class="LineNr">1568 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L1569" class="LineNr">1569 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L1570" class="LineNr">1570 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah <span id="L1571" class="LineNr">1571 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> -<span id="L1572" class="LineNr">1572 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">4</span>/primitive-function, <span class="Constant">"F - <a href='evaluate.mu.html#L1552'>test-evaluate-primitive-function</a>/0"</span> -<span id="L1573" class="LineNr">1573 </span> <span class="PreProc">var</span> result-value/eax: (addr int) <span class="Special"><-</span> get result, index-data -<span id="L1574" class="LineNr">1574 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-value, <span class="Constant">1</span>/add, <span class="Constant">"F - <a href='evaluate.mu.html#L1552'>test-evaluate-primitive-function</a>/1"</span> +<span id="L1572" class="LineNr">1572 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">2</span>/symbol, <span class="Constant">"F - <a href='evaluate.mu.html#L1553'>test-evaluate-quote</a>/0"</span> +<span id="L1573" class="LineNr">1573 </span> <span class="PreProc">var</span> sym?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> result, <span class="Constant">"a"</span> +<span id="L1574" class="LineNr">1574 </span> <a href='../502test.mu.html#L19'>check</a> sym?, <span class="Constant">"F - <a href='evaluate.mu.html#L1553'>test-evaluate-quote</a>/1"</span> <span id="L1575" class="LineNr">1575 </span><span class="Delimiter">}</span> <span id="L1576" class="LineNr">1576 </span> -<span id="L1577" class="LineNr">1577 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1577'>test-evaluate-primitive-function-call</a></span> <span class="Delimiter">{</span> -<span id="L1578" class="LineNr">1578 </span> <span class="PreProc">var</span> t-storage: trace -<span id="L1579" class="LineNr">1579 </span> <span class="PreProc">var</span> t/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address t-storage -<span id="L1580" class="LineNr">1580 </span> <a href='trace.mu.html#L61'>initialize-trace</a> t, <span class="Constant">0x100</span>/max-depth, <span class="Constant">0x100</span>/capacity, <span class="Constant">0</span>/visible <span class="muComment"># we don't use trace UI</span> -<span id="L1581" class="LineNr">1581 </span> <span class="muComment">#</span> -<span id="L1582" class="LineNr">1582 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1583" class="LineNr">1583 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L1584" class="LineNr">1584 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah -<span id="L1585" class="LineNr">1585 </span> <span class="PreProc">var</span> one-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1586" class="LineNr">1586 </span> <span class="PreProc">var</span> one-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address one-storage -<span id="L1587" class="LineNr">1587 </span> <a href='cell.mu.html#L84'>new-integer</a> one-ah, <span class="Constant">1</span> -<span id="L1588" class="LineNr">1588 </span> <span class="PreProc">var</span> add-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1589" class="LineNr">1589 </span> <span class="PreProc">var</span> add-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address add-storage -<span id="L1590" class="LineNr">1590 </span> <a href='cell.mu.html#L39'>new-symbol</a> add-ah, <span class="Constant">"+"</span> -<span id="L1591" class="LineNr">1591 </span> <span class="muComment"># input is (+ 1 1)</span> -<span id="L1592" class="LineNr">1592 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1593" class="LineNr">1593 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage -<span id="L1594" class="LineNr">1594 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *one-ah, *nil-ah -<span id="L1595" class="LineNr">1595 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *one-ah, *tmp-ah -<span id="L1596" class="LineNr">1596 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *add-ah, *tmp-ah -<span id="L1597" class="LineNr">1597 </span><span class="CommentedCode">#? dump-cell tmp-ah</span> -<span id="L1598" class="LineNr">1598 </span> <span class="muComment">#</span> -<span id="L1599" class="LineNr">1599 </span> <span class="PreProc">var</span> globals-storage: <a href='global.mu.html#L1'>global-table</a> -<span id="L1600" class="LineNr">1600 </span> <span class="PreProc">var</span> globals/<span class="muRegEdx">edx</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> address globals-storage -<span id="L1601" class="LineNr">1601 </span> <a href='global.mu.html#L14'>initialize-globals</a> globals -<span id="L1602" class="LineNr">1602 </span> <span class="muComment">#</span> -<span id="L1603" class="LineNr">1603 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, globals, t, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1604" class="LineNr">1604 </span><span class="CommentedCode">#? dump-trace t</span> -<span id="L1605" class="LineNr">1605 </span> <span class="muComment">#</span> -<span id="L1606" class="LineNr">1606 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah -<span id="L1607" class="LineNr">1607 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> -<span id="L1608" class="LineNr">1608 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">1</span>/number, <span class="Constant">"F - <a href='evaluate.mu.html#L1577'>test-evaluate-primitive-function-call</a>/0"</span> -<span id="L1609" class="LineNr">1609 </span> <span class="PreProc">var</span> result-value-addr/eax: (addr float) <span class="Special"><-</span> get result, number-data -<span id="L1610" class="LineNr">1610 </span> <span class="PreProc">var</span> result-value/eax: int <span class="Special"><-</span> convert *result-value-addr -<span id="L1611" class="LineNr">1611 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result-value, <span class="Constant">2</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1577'>test-evaluate-primitive-function-call</a>/1"</span> -<span id="L1612" class="LineNr">1612 </span><span class="Delimiter">}</span> -<span id="L1613" class="LineNr">1613 </span> -<span id="L1614" class="LineNr">1614 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1614'>test-evaluate-backquote</a></span> <span class="Delimiter">{</span> -<span id="L1615" class="LineNr">1615 </span> <span class="muComment"># env = nil</span> -<span id="L1616" class="LineNr">1616 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1617" class="LineNr">1617 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L1618" class="LineNr">1618 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah -<span id="L1619" class="LineNr">1619 </span> <span class="muComment"># eval `a, env</span> -<span id="L1620" class="LineNr">1620 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1621" class="LineNr">1621 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage -<span id="L1622" class="LineNr">1622 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp-ah, <span class="Constant">"`"</span> -<span id="L1623" class="LineNr">1623 </span> <span class="PreProc">var</span> tmp2-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1624" class="LineNr">1624 </span> <span class="PreProc">var</span> tmp2-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp2-storage -<span id="L1625" class="LineNr">1625 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp2-ah, <span class="Constant">"a"</span> -<span id="L1626" class="LineNr">1626 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *tmp-ah, *tmp2-ah -<span id="L1627" class="LineNr">1627 </span> clear-object tmp2-ah -<span id="L1628" class="LineNr">1628 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L1629" class="LineNr">1629 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L1630" class="LineNr">1630 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L1631" class="LineNr">1631 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp2-ah, *nil-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1632" class="LineNr">1632 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp2-ah -<span id="L1633" class="LineNr">1633 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> -<span id="L1634" class="LineNr">1634 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">2</span>/symbol, <span class="Constant">"F - <a href='evaluate.mu.html#L1614'>test-evaluate-backquote</a>/0"</span> -<span id="L1635" class="LineNr">1635 </span> <span class="PreProc">var</span> sym?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> result, <span class="Constant">"a"</span> -<span id="L1636" class="LineNr">1636 </span> <a href='../502test.mu.html#L19'>check</a> sym?, <span class="Constant">"F - <a href='evaluate.mu.html#L1614'>test-evaluate-backquote</a>/1"</span> +<span id="L1577" class="LineNr">1577 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1577'>test-evaluate-primitive-function</a></span> <span class="Delimiter">{</span> +<span id="L1578" class="LineNr">1578 </span> <span class="PreProc">var</span> globals-storage: <a href='global.mu.html#L1'>global-table</a> +<span id="L1579" class="LineNr">1579 </span> <span class="PreProc">var</span> globals/<span class="muRegEdi">edi</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> address globals-storage +<span id="L1580" class="LineNr">1580 </span> <a href='global.mu.html#L14'>initialize-globals</a> globals +<span id="L1581" class="LineNr">1581 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1582" class="LineNr">1582 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L1583" class="LineNr">1583 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah +<span id="L1584" class="LineNr">1584 </span> <span class="PreProc">var</span> add-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1585" class="LineNr">1585 </span> <span class="PreProc">var</span> add-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address add-storage +<span id="L1586" class="LineNr">1586 </span> <a href='cell.mu.html#L39'>new-symbol</a> add-ah, <span class="Constant">"+"</span> +<span id="L1587" class="LineNr">1587 </span> <span class="muComment"># eval +, nil env</span> +<span id="L1588" class="LineNr">1588 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1589" class="LineNr">1589 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage +<span id="L1590" class="LineNr">1590 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L1591" class="LineNr">1591 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L1592" class="LineNr">1592 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L1593" class="LineNr">1593 </span> <a href='evaluate.mu.html#L11'>evaluate</a> add-ah, tmp-ah, *nil-ah, globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number +<span id="L1594" class="LineNr">1594 </span> <span class="muComment">#</span> +<span id="L1595" class="LineNr">1595 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1596" class="LineNr">1596 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> +<span id="L1597" class="LineNr">1597 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">4</span>/primitive-function, <span class="Constant">"F - <a href='evaluate.mu.html#L1577'>test-evaluate-primitive-function</a>/0"</span> +<span id="L1598" class="LineNr">1598 </span> <span class="PreProc">var</span> result-value/eax: (addr int) <span class="Special"><-</span> get result, index-data +<span id="L1599" class="LineNr">1599 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-value, <span class="Constant">1</span>/add, <span class="Constant">"F - <a href='evaluate.mu.html#L1577'>test-evaluate-primitive-function</a>/1"</span> +<span id="L1600" class="LineNr">1600 </span><span class="Delimiter">}</span> +<span id="L1601" class="LineNr">1601 </span> +<span id="L1602" class="LineNr">1602 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1602'>test-evaluate-primitive-function-call</a></span> <span class="Delimiter">{</span> +<span id="L1603" class="LineNr">1603 </span> <span class="PreProc">var</span> t-storage: trace +<span id="L1604" class="LineNr">1604 </span> <span class="PreProc">var</span> t/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address t-storage +<span id="L1605" class="LineNr">1605 </span> <a href='trace.mu.html#L61'>initialize-trace</a> t, <span class="Constant">0x100</span>/max-depth, <span class="Constant">0x100</span>/capacity, <span class="Constant">0</span>/visible <span class="muComment"># we don't use trace UI</span> +<span id="L1606" class="LineNr">1606 </span> <span class="muComment">#</span> +<span id="L1607" class="LineNr">1607 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1608" class="LineNr">1608 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L1609" class="LineNr">1609 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah +<span id="L1610" class="LineNr">1610 </span> <span class="PreProc">var</span> one-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1611" class="LineNr">1611 </span> <span class="PreProc">var</span> one-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address one-storage +<span id="L1612" class="LineNr">1612 </span> <a href='cell.mu.html#L84'>new-integer</a> one-ah, <span class="Constant">1</span> +<span id="L1613" class="LineNr">1613 </span> <span class="PreProc">var</span> add-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1614" class="LineNr">1614 </span> <span class="PreProc">var</span> add-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address add-storage +<span id="L1615" class="LineNr">1615 </span> <a href='cell.mu.html#L39'>new-symbol</a> add-ah, <span class="Constant">"+"</span> +<span id="L1616" class="LineNr">1616 </span> <span class="muComment"># input is (+ 1 1)</span> +<span id="L1617" class="LineNr">1617 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1618" class="LineNr">1618 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage +<span id="L1619" class="LineNr">1619 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *one-ah, *nil-ah +<span id="L1620" class="LineNr">1620 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *one-ah, *tmp-ah +<span id="L1621" class="LineNr">1621 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *add-ah, *tmp-ah +<span id="L1622" class="LineNr">1622 </span><span class="CommentedCode">#? dump-cell tmp-ah</span> +<span id="L1623" class="LineNr">1623 </span> <span class="muComment">#</span> +<span id="L1624" class="LineNr">1624 </span> <span class="PreProc">var</span> globals-storage: <a href='global.mu.html#L1'>global-table</a> +<span id="L1625" class="LineNr">1625 </span> <span class="PreProc">var</span> globals/<span class="muRegEdx">edx</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> address globals-storage +<span id="L1626" class="LineNr">1626 </span> <a href='global.mu.html#L14'>initialize-globals</a> globals +<span id="L1627" class="LineNr">1627 </span> <span class="muComment">#</span> +<span id="L1628" class="LineNr">1628 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, globals, t, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number +<span id="L1629" class="LineNr">1629 </span><span class="CommentedCode">#? dump-trace t</span> +<span id="L1630" class="LineNr">1630 </span> <span class="muComment">#</span> +<span id="L1631" class="LineNr">1631 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1632" class="LineNr">1632 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> +<span id="L1633" class="LineNr">1633 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">1</span>/number, <span class="Constant">"F - <a href='evaluate.mu.html#L1602'>test-evaluate-primitive-function-call</a>/0"</span> +<span id="L1634" class="LineNr">1634 </span> <span class="PreProc">var</span> result-value-addr/eax: (addr float) <span class="Special"><-</span> get result, number-data +<span id="L1635" class="LineNr">1635 </span> <span class="PreProc">var</span> result-value/eax: int <span class="Special"><-</span> convert *result-value-addr +<span id="L1636" class="LineNr">1636 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> result-value, <span class="Constant">2</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1602'>test-evaluate-primitive-function-call</a>/1"</span> <span id="L1637" class="LineNr">1637 </span><span class="Delimiter">}</span> <span id="L1638" class="LineNr">1638 </span> -<span id="L1639" class="LineNr">1639 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1639'>evaluate-backquote</a></span> _in-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), _out-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), env-h: (handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace), inner-screen-var: (addr handle <a href='cell.mu.html#L1'>cell</a>), inner-keyboard-var: (addr handle <a href='cell.mu.html#L1'>cell</a>), definitions-created: (addr stream int), call-number: (addr int) <span class="Delimiter">{</span> -<span id="L1640" class="LineNr">1640 </span> <span class="muComment"># stack overflow? # disable when enabling Really-debug-print</span> -<span id="L1641" class="LineNr">1641 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen _in-ah</span> -<span id="L1642" class="LineNr">1642 </span> <a href='../315stack-debug.subx.html#L5'>check-stack</a> -<span id="L1643" class="LineNr">1643 </span> <span class="Delimiter">{</span> -<span id="L1644" class="LineNr">1644 </span> <span class="PreProc">var</span> inner-screen-var/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy inner-screen-var -<span id="L1645" class="LineNr">1645 </span> compare inner-screen-var, <span class="Constant">0</span> -<span id="L1646" class="LineNr">1646 </span> <span class="PreProc">break-if-=</span> -<span id="L1647" class="LineNr">1647 </span> <span class="PreProc">var</span> inner-screen-var-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *inner-screen-var -<span id="L1648" class="LineNr">1648 </span> compare inner-screen-var-addr, <span class="Constant">0</span> -<span id="L1649" class="LineNr">1649 </span> <span class="PreProc">break-if-=</span> -<span id="L1650" class="LineNr">1650 </span> <span class="muComment"># if inner-screen-var exists, we're probably not in a test</span> -<span id="L1651" class="LineNr">1651 </span> <a href='../315stack-debug.subx.html#L26'>show-stack-state</a> -<span id="L1652" class="LineNr">1652 </span> <span class="Delimiter">}</span> -<span id="L1653" class="LineNr">1653 </span> <span class="muComment"># errors? skip</span> -<span id="L1654" class="LineNr">1654 </span> <span class="Delimiter">{</span> -<span id="L1655" class="LineNr">1655 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace -<span id="L1656" class="LineNr">1656 </span> compare error?, <span class="Constant">0</span>/false -<span id="L1657" class="LineNr">1657 </span> <span class="PreProc">break-if-=</span> -<span id="L1658" class="LineNr">1658 </span> <span class="PreProc">return</span> -<span id="L1659" class="LineNr">1659 </span> <span class="Delimiter">}</span> -<span id="L1660" class="LineNr">1660 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace -<span id="L1661" class="LineNr">1661 </span> <span class="PreProc">var</span> in-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in-ah -<span id="L1662" class="LineNr">1662 </span> <span class="PreProc">var</span> in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah -<span id="L1663" class="LineNr">1663 </span> <span class="Delimiter">{</span> -<span id="L1664" class="LineNr">1664 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in -<span id="L1665" class="LineNr">1665 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L1666" class="LineNr">1666 </span> <span class="PreProc">break-if-=</span> -<span id="L1667" class="LineNr">1667 </span> <span class="muComment"># nil is a literal</span> -<span id="L1668" class="LineNr">1668 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"backquote nil"</span> -<span id="L1669" class="LineNr">1669 </span> copy-object _in-ah, _out-ah -<span id="L1670" class="LineNr">1670 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1671" class="LineNr">1671 </span> <span class="PreProc">return</span> -<span id="L1672" class="LineNr">1672 </span> <span class="Delimiter">}</span> -<span id="L1673" class="LineNr">1673 </span> <span class="PreProc">var</span> in-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get in, <span class="PreProc">type</span> -<span id="L1674" class="LineNr">1674 </span> compare *in-type, <span class="Constant">0</span>/pair -<span id="L1675" class="LineNr">1675 </span> <span class="Delimiter">{</span> -<span id="L1676" class="LineNr">1676 </span> <span class="PreProc">break-if-=</span> -<span id="L1677" class="LineNr">1677 </span> <span class="muComment"># copy non-pairs directly</span> -<span id="L1678" class="LineNr">1678 </span> <span class="muComment"># TODO: streams might need to be copied</span> -<span id="L1679" class="LineNr">1679 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"backquote atom"</span> -<span id="L1680" class="LineNr">1680 </span> copy-object _in-ah, _out-ah -<span id="L1681" class="LineNr">1681 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1682" class="LineNr">1682 </span> <span class="PreProc">return</span> -<span id="L1683" class="LineNr">1683 </span> <span class="Delimiter">}</span> -<span id="L1684" class="LineNr">1684 </span> <span class="muComment"># 'in' is a pair</span> -<span id="L1685" class="LineNr">1685 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"()"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1639" class="LineNr">1639 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1639'>test-evaluate-backquote</a></span> <span class="Delimiter">{</span> +<span id="L1640" class="LineNr">1640 </span> <span class="muComment"># env = nil</span> +<span id="L1641" class="LineNr">1641 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1642" class="LineNr">1642 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L1643" class="LineNr">1643 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah +<span id="L1644" class="LineNr">1644 </span> <span class="muComment"># eval `a, env</span> +<span id="L1645" class="LineNr">1645 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1646" class="LineNr">1646 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage +<span id="L1647" class="LineNr">1647 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp-ah, <span class="Constant">"`"</span> +<span id="L1648" class="LineNr">1648 </span> <span class="PreProc">var</span> tmp2-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1649" class="LineNr">1649 </span> <span class="PreProc">var</span> tmp2-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp2-storage +<span id="L1650" class="LineNr">1650 </span> <a href='cell.mu.html#L39'>new-symbol</a> tmp2-ah, <span class="Constant">"a"</span> +<span id="L1651" class="LineNr">1651 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *tmp-ah, *tmp2-ah +<span id="L1652" class="LineNr">1652 </span> clear-object tmp2-ah +<span id="L1653" class="LineNr">1653 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L1654" class="LineNr">1654 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L1655" class="LineNr">1655 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L1656" class="LineNr">1656 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp2-ah, *nil-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number +<span id="L1657" class="LineNr">1657 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp2-ah +<span id="L1658" class="LineNr">1658 </span> <span class="PreProc">var</span> result-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> +<span id="L1659" class="LineNr">1659 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">2</span>/symbol, <span class="Constant">"F - <a href='evaluate.mu.html#L1639'>test-evaluate-backquote</a>/0"</span> +<span id="L1660" class="LineNr">1660 </span> <span class="PreProc">var</span> sym?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> result, <span class="Constant">"a"</span> +<span id="L1661" class="LineNr">1661 </span> <a href='../502test.mu.html#L19'>check</a> sym?, <span class="Constant">"F - <a href='evaluate.mu.html#L1639'>test-evaluate-backquote</a>/1"</span> +<span id="L1662" class="LineNr">1662 </span><span class="Delimiter">}</span> +<span id="L1663" class="LineNr">1663 </span> +<span id="L1664" class="LineNr">1664 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='evaluate.mu.html#L1664'>evaluate-backquote</a></span> _in-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), _out-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), env-h: (handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace), inner-screen-var: (addr handle <a href='cell.mu.html#L1'>cell</a>), inner-keyboard-var: (addr handle <a href='cell.mu.html#L1'>cell</a>), definitions-created: (addr stream int), call-number: (addr int) <span class="Delimiter">{</span> +<span id="L1665" class="LineNr">1665 </span> <span class="muComment"># stack overflow? # disable when enabling Really-debug-print</span> +<span id="L1666" class="LineNr">1666 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen _in-ah</span> +<span id="L1667" class="LineNr">1667 </span> <a href='../315stack-debug.subx.html#L5'>check-stack</a> +<span id="L1668" class="LineNr">1668 </span> <span class="Delimiter">{</span> +<span id="L1669" class="LineNr">1669 </span> <span class="PreProc">var</span> inner-screen-var/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy inner-screen-var +<span id="L1670" class="LineNr">1670 </span> compare inner-screen-var, <span class="Constant">0</span> +<span id="L1671" class="LineNr">1671 </span> <span class="PreProc">break-if-=</span> +<span id="L1672" class="LineNr">1672 </span> <span class="PreProc">var</span> inner-screen-var-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *inner-screen-var +<span id="L1673" class="LineNr">1673 </span> compare inner-screen-var-addr, <span class="Constant">0</span> +<span id="L1674" class="LineNr">1674 </span> <span class="PreProc">break-if-=</span> +<span id="L1675" class="LineNr">1675 </span> <span class="muComment"># if inner-screen-var exists, we're probably not in a test</span> +<span id="L1676" class="LineNr">1676 </span> <a href='../315stack-debug.subx.html#L26'>show-stack-state</a> +<span id="L1677" class="LineNr">1677 </span> <span class="Delimiter">}</span> +<span id="L1678" class="LineNr">1678 </span> <span class="muComment"># errors? skip</span> +<span id="L1679" class="LineNr">1679 </span> <span class="Delimiter">{</span> +<span id="L1680" class="LineNr">1680 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L1681" class="LineNr">1681 </span> compare error?, <span class="Constant">0</span>/false +<span id="L1682" class="LineNr">1682 </span> <span class="PreProc">break-if-=</span> +<span id="L1683" class="LineNr">1683 </span> <span class="PreProc">return</span> +<span id="L1684" class="LineNr">1684 </span> <span class="Delimiter">}</span> +<span id="L1685" class="LineNr">1685 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L1686" class="LineNr">1686 </span> <span class="PreProc">var</span> in-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in-ah -<span id="L1687" class="LineNr">1687 </span> <span class="PreProc">var</span> _in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah -<span id="L1688" class="LineNr">1688 </span> <span class="PreProc">var</span> in/<span class="muRegEbx">ebx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L1689" class="LineNr">1689 </span> <span class="PreProc">var</span> in-left-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left -<span id="L1690" class="LineNr">1690 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"10"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L1691" class="LineNr">1691 </span> <span class="muComment"># check for unquote</span> -<span id="L1692" class="LineNr">1692 </span> $evaluate-backquote:unquote: <span class="Delimiter">{</span> -<span id="L1693" class="LineNr">1693 </span> <span class="PreProc">var</span> in-left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-ah -<span id="L1694" class="LineNr">1694 </span> <span class="PreProc">var</span> unquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> in-left, <span class="Constant">","</span> -<span id="L1695" class="LineNr">1695 </span> compare unquote?, <span class="Constant">0</span>/false -<span id="L1696" class="LineNr">1696 </span> <span class="PreProc">break-if-=</span> -<span id="L1697" class="LineNr">1697 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"unquote"</span> -<span id="L1698" class="LineNr">1698 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L1699" class="LineNr">1699 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">","</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg -<span id="L1700" class="LineNr">1700 </span> <a href='evaluate.mu.html#L11'>evaluate</a> rest-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number -<span id="L1701" class="LineNr">1701 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">",)"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg -<span id="L1702" class="LineNr">1702 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1703" class="LineNr">1703 </span> <span class="PreProc">return</span> -<span id="L1704" class="LineNr">1704 </span> <span class="Delimiter">}</span> -<span id="L1705" class="LineNr">1705 </span> <span class="muComment"># check for unquote-splice in in-left</span> -<span id="L1706" class="LineNr">1706 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"11"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L1707" class="LineNr">1707 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah -<span id="L1708" class="LineNr">1708 </span> $evaluate-backquote:unquote-splice: <span class="Delimiter">{</span> -<span id="L1709" class="LineNr">1709 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen in-left-ah</span> -<span id="L1710" class="LineNr">1710 </span> <span class="PreProc">var</span> in-left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-ah -<span id="L1711" class="LineNr">1711 </span> <span class="Delimiter">{</span> -<span id="L1712" class="LineNr">1712 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"12"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L1713" class="LineNr">1713 </span> <span class="Delimiter">{</span> -<span id="L1714" class="LineNr">1714 </span> <span class="PreProc">var</span> in-left-is-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in-left -<span id="L1715" class="LineNr">1715 </span> compare in-left-is-nil?, <span class="Constant">0</span>/false -<span id="L1716" class="LineNr">1716 </span> <span class="Delimiter">}</span> -<span id="L1717" class="LineNr">1717 </span> <span class="PreProc">break-if-!=</span> $evaluate-backquote:unquote-splice -<span id="L1718" class="LineNr">1718 </span> <span class="PreProc">var</span> in-left-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get in-left, <span class="PreProc">type</span> -<span id="L1719" class="LineNr">1719 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"13"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L1720" class="LineNr">1720 </span> compare *in-left-type, <span class="Constant">0</span>/pair -<span id="L1721" class="LineNr">1721 </span> <span class="PreProc">break-if-!=</span> $evaluate-backquote:unquote-splice -<span id="L1722" class="LineNr">1722 </span> <span class="PreProc">var</span> in-left-left-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in-left, left -<span id="L1723" class="LineNr">1723 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"14"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L1724" class="LineNr">1724 </span> <span class="PreProc">var</span> in-left-left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-left-ah -<span id="L1725" class="LineNr">1725 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"15"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L1726" class="LineNr">1726 </span> <span class="PreProc">var</span> in-left-left-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get in-left-left, <span class="PreProc">type</span> -<span id="L1727" class="LineNr">1727 </span> <span class="PreProc">var</span> left-is-unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> in-left-left, <span class="Constant">",@"</span> -<span id="L1728" class="LineNr">1728 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"16"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L1729" class="LineNr">1729 </span> compare left-is-unquote-splice?, <span class="Constant">0</span>/false -<span id="L1730" class="LineNr">1730 </span> <span class="Delimiter">}</span> -<span id="L1731" class="LineNr">1731 </span> <span class="PreProc">break-if-=</span> -<span id="L1732" class="LineNr">1732 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"17"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L1733" class="LineNr">1733 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"unquote-splice"</span> -<span id="L1734" class="LineNr">1734 </span> <span class="PreProc">var</span> in-unquote-payload-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in-left, right -<span id="L1735" class="LineNr">1735 </span> <a href='evaluate.mu.html#L11'>evaluate</a> in-unquote-payload-ah, out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number -<span id="L1736" class="LineNr">1736 </span> <span class="muComment"># errors? skip</span> -<span id="L1737" class="LineNr">1737 </span> <span class="Delimiter">{</span> -<span id="L1738" class="LineNr">1738 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace -<span id="L1739" class="LineNr">1739 </span> compare error?, <span class="Constant">0</span>/false -<span id="L1740" class="LineNr">1740 </span> <span class="PreProc">break-if-=</span> -<span id="L1741" class="LineNr">1741 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1742" class="LineNr">1742 </span> <span class="PreProc">return</span> -<span id="L1743" class="LineNr">1743 </span> <span class="Delimiter">}</span> -<span id="L1744" class="LineNr">1744 </span> <span class="muComment"># while (*out-ah != null) out-ah = cdr(out-ah)</span> -<span id="L1745" class="LineNr">1745 </span> <span class="Delimiter">{</span> -<span id="L1746" class="LineNr">1746 </span> <span class="PreProc">var</span> out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah -<span id="L1747" class="LineNr">1747 </span> <span class="Delimiter">{</span> -<span id="L1748" class="LineNr">1748 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> out -<span id="L1749" class="LineNr">1749 </span> compare done?, <span class="Constant">0</span>/false -<span id="L1750" class="LineNr">1750 </span> <span class="Delimiter">}</span> -<span id="L1751" class="LineNr">1751 </span> <span class="PreProc">break-if-!=</span> -<span id="L1752" class="LineNr">1752 </span> out-ah <span class="Special"><-</span> get out, right -<span id="L1753" class="LineNr">1753 </span> <span class="PreProc">loop</span> -<span id="L1754" class="LineNr">1754 </span> <span class="Delimiter">}</span> -<span id="L1755" class="LineNr">1755 </span> <span class="muComment"># append result of in-right</span> -<span id="L1756" class="LineNr">1756 </span> <span class="PreProc">var</span> in-right-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L1757" class="LineNr">1757 </span> <a href='evaluate.mu.html#L1639'>evaluate-backquote</a> in-right-ah, out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number -<span id="L1758" class="LineNr">1758 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1759" class="LineNr">1759 </span> <span class="PreProc">return</span> -<span id="L1760" class="LineNr">1760 </span> <span class="Delimiter">}</span> -<span id="L1761" class="LineNr">1761 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"19"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg -<span id="L1762" class="LineNr">1762 </span> <span class="muComment"># otherwise continue copying</span> -<span id="L1763" class="LineNr">1763 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"backquote: copy"</span> -<span id="L1764" class="LineNr">1764 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah -<span id="L1765" class="LineNr">1765 </span> <a href='cell.mu.html#L102'>allocate-pair</a> out-ah -<span id="L1766" class="LineNr">1766 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"20"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg -<span id="L1767" class="LineNr">1767 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen out-ah</span> -<span id="L1768" class="LineNr">1768 </span> <span class="PreProc">var</span> out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah -<span id="L1769" class="LineNr">1769 </span> <span class="PreProc">var</span> out-left-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out, left -<span id="L1770" class="LineNr">1770 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`(l"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg -<span id="L1771" class="LineNr">1771 </span> <a href='evaluate.mu.html#L1639'>evaluate-backquote</a> in-left-ah, out-left-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number -<span id="L1772" class="LineNr">1772 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`r)"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg -<span id="L1773" class="LineNr">1773 </span> <span class="muComment"># errors? skip</span> -<span id="L1774" class="LineNr">1774 </span> <span class="Delimiter">{</span> -<span id="L1775" class="LineNr">1775 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace -<span id="L1776" class="LineNr">1776 </span> compare error?, <span class="Constant">0</span>/false -<span id="L1777" class="LineNr">1777 </span> <span class="PreProc">break-if-=</span> -<span id="L1778" class="LineNr">1778 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1779" class="LineNr">1779 </span> <span class="PreProc">return</span> -<span id="L1780" class="LineNr">1780 </span> <span class="Delimiter">}</span> -<span id="L1781" class="LineNr">1781 </span> <span class="PreProc">var</span> in-right-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L1782" class="LineNr">1782 </span> <span class="PreProc">var</span> out-right-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out, right -<span id="L1783" class="LineNr">1783 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`r("</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg -<span id="L1784" class="LineNr">1784 </span> <a href='evaluate.mu.html#L1639'>evaluate-backquote</a> in-right-ah, out-right-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number -<span id="L1785" class="LineNr">1785 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`r)"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg -<span id="L1786" class="LineNr">1786 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L1787" class="LineNr">1787 </span><span class="Delimiter">}</span> -<span id="L1788" class="LineNr">1788 </span> -<span id="L1789" class="LineNr">1789 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1789'>test-evaluate-backquote-list</a></span> <span class="Delimiter">{</span> -<span id="L1790" class="LineNr">1790 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1791" class="LineNr">1791 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L1792" class="LineNr">1792 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah -<span id="L1793" class="LineNr">1793 </span> <span class="PreProc">var</span> backquote-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1794" class="LineNr">1794 </span> <span class="PreProc">var</span> backquote-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address backquote-storage -<span id="L1795" class="LineNr">1795 </span> <a href='cell.mu.html#L39'>new-symbol</a> backquote-ah, <span class="Constant">"`"</span> -<span id="L1796" class="LineNr">1796 </span> <span class="muComment"># input is `(a b)</span> -<span id="L1797" class="LineNr">1797 </span> <span class="PreProc">var</span> a-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1798" class="LineNr">1798 </span> <span class="PreProc">var</span> a-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-storage -<span id="L1799" class="LineNr">1799 </span> <a href='cell.mu.html#L39'>new-symbol</a> a-ah, <span class="Constant">"a"</span> -<span id="L1800" class="LineNr">1800 </span> <span class="PreProc">var</span> b-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1801" class="LineNr">1801 </span> <span class="PreProc">var</span> b-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-storage -<span id="L1802" class="LineNr">1802 </span> <a href='cell.mu.html#L39'>new-symbol</a> b-ah, <span class="Constant">"b"</span> -<span id="L1803" class="LineNr">1803 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1804" class="LineNr">1804 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage -<span id="L1805" class="LineNr">1805 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *b-ah, *nil-ah -<span id="L1806" class="LineNr">1806 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *a-ah, *tmp-ah -<span id="L1807" class="LineNr">1807 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *backquote-ah, *tmp-ah -<span id="L1808" class="LineNr">1808 </span> <span class="muComment">#</span> -<span id="L1809" class="LineNr">1809 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L1810" class="LineNr">1810 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L1811" class="LineNr">1811 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L1812" class="LineNr">1812 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1813" class="LineNr">1813 </span> <span class="muComment"># result is (a b)</span> -<span id="L1814" class="LineNr">1814 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah -<span id="L1815" class="LineNr">1815 </span> <span class="Delimiter">{</span> -<span id="L1816" class="LineNr">1816 </span> <span class="PreProc">var</span> result-type/eax: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> -<span id="L1817" class="LineNr">1817 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">0</span>/pair, <span class="Constant">"F - <a href='evaluate.mu.html#L1789'>test-evaluate-backquote-list</a>/0"</span> -<span id="L1818" class="LineNr">1818 </span> <span class="Delimiter">}</span> -<span id="L1819" class="LineNr">1819 </span> <span class="Delimiter">{</span> -<span id="L1820" class="LineNr">1820 </span> <span class="PreProc">var</span> a1-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left -<span id="L1821" class="LineNr">1821 </span> <span class="PreProc">var</span> a1/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah -<span id="L1822" class="LineNr">1822 </span> <span class="PreProc">var</span> check1/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> -<span id="L1823" class="LineNr">1823 </span> <a href='../502test.mu.html#L19'>check</a> check1, <span class="Constant">"F - <a href='evaluate.mu.html#L1789'>test-evaluate-backquote-list</a>/1"</span> -<span id="L1824" class="LineNr">1824 </span> <span class="Delimiter">}</span> -<span id="L1825" class="LineNr">1825 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right -<span id="L1826" class="LineNr">1826 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1827" class="LineNr">1827 </span> <span class="Delimiter">{</span> -<span id="L1828" class="LineNr">1828 </span> <span class="PreProc">var</span> a2-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1829" class="LineNr">1829 </span> <span class="PreProc">var</span> a2/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah -<span id="L1830" class="LineNr">1830 </span> <span class="PreProc">var</span> check2/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a2, <span class="Constant">"b"</span> -<span id="L1831" class="LineNr">1831 </span> <a href='../502test.mu.html#L19'>check</a> check2, <span class="Constant">"F - <a href='evaluate.mu.html#L1789'>test-evaluate-backquote-list</a>/2"</span> -<span id="L1832" class="LineNr">1832 </span> <span class="Delimiter">}</span> -<span id="L1833" class="LineNr">1833 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1834" class="LineNr">1834 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1835" class="LineNr">1835 </span> <span class="PreProc">var</span> check3/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest -<span id="L1836" class="LineNr">1836 </span> <a href='../502test.mu.html#L19'>check</a> check3, <span class="Constant">"F - <a href='evaluate.mu.html#L1789'>test-evaluate-backquote-list</a>/3"</span> -<span id="L1837" class="LineNr">1837 </span><span class="Delimiter">}</span> -<span id="L1838" class="LineNr">1838 </span> -<span id="L1839" class="LineNr">1839 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1839'>test-evaluate-backquote-list-with-unquote</a></span> <span class="Delimiter">{</span> -<span id="L1840" class="LineNr">1840 </span> <span class="PreProc">var</span> nil-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1841" class="LineNr">1841 </span> <span class="PreProc">var</span> nil-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-h -<span id="L1842" class="LineNr">1842 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah -<span id="L1843" class="LineNr">1843 </span> <span class="PreProc">var</span> backquote-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1844" class="LineNr">1844 </span> <span class="PreProc">var</span> backquote-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address backquote-h -<span id="L1845" class="LineNr">1845 </span> <a href='cell.mu.html#L39'>new-symbol</a> backquote-ah, <span class="Constant">"`"</span> -<span id="L1846" class="LineNr">1846 </span> <span class="PreProc">var</span> unquote-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1847" class="LineNr">1847 </span> <span class="PreProc">var</span> unquote-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address unquote-h -<span id="L1848" class="LineNr">1848 </span> <a href='cell.mu.html#L39'>new-symbol</a> unquote-ah, <span class="Constant">","</span> -<span id="L1849" class="LineNr">1849 </span> <span class="PreProc">var</span> a-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1850" class="LineNr">1850 </span> <span class="PreProc">var</span> a-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-h -<span id="L1851" class="LineNr">1851 </span> <a href='cell.mu.html#L39'>new-symbol</a> a-ah, <span class="Constant">"a"</span> -<span id="L1852" class="LineNr">1852 </span> <span class="PreProc">var</span> b-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1853" class="LineNr">1853 </span> <span class="PreProc">var</span> b-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-h -<span id="L1854" class="LineNr">1854 </span> <a href='cell.mu.html#L39'>new-symbol</a> b-ah, <span class="Constant">"b"</span> -<span id="L1855" class="LineNr">1855 </span> <span class="muComment"># env = ((b . 3))</span> -<span id="L1856" class="LineNr">1856 </span> <span class="PreProc">var</span> val-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1857" class="LineNr">1857 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address val-h -<span id="L1858" class="LineNr">1858 </span> <a href='cell.mu.html#L84'>new-integer</a> val-ah, <span class="Constant">3</span> -<span id="L1859" class="LineNr">1859 </span> <span class="PreProc">var</span> env-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1860" class="LineNr">1860 </span> <span class="PreProc">var</span> env-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h -<span id="L1861" class="LineNr">1861 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, b-h, val-h -<span id="L1862" class="LineNr">1862 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, env-h, nil-h -<span id="L1863" class="LineNr">1863 </span> <span class="muComment"># input is `(a ,b)</span> -<span id="L1864" class="LineNr">1864 </span> <span class="PreProc">var</span> tmp-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1865" class="LineNr">1865 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-h -<span id="L1866" class="LineNr">1866 </span> <span class="muComment"># tmp = cons(unquote, b)</span> -<span id="L1867" class="LineNr">1867 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, unquote-h, b-h -<span id="L1868" class="LineNr">1868 </span> <span class="muComment"># tmp = cons(tmp, nil)</span> -<span id="L1869" class="LineNr">1869 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, tmp-h, nil-h -<span id="L1870" class="LineNr">1870 </span> <span class="muComment"># tmp = cons(a, tmp)</span> -<span id="L1871" class="LineNr">1871 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, a-h, tmp-h -<span id="L1872" class="LineNr">1872 </span> <span class="muComment"># tmp = cons(backquote, tmp)</span> -<span id="L1873" class="LineNr">1873 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, backquote-h, tmp-h -<span id="L1874" class="LineNr">1874 </span> <span class="muComment">#</span> -<span id="L1875" class="LineNr">1875 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L1876" class="LineNr">1876 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L1877" class="LineNr">1877 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L1878" class="LineNr">1878 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, env-h, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1879" class="LineNr">1879 </span> <span class="muComment"># result is (a 3)</span> -<span id="L1880" class="LineNr">1880 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah -<span id="L1881" class="LineNr">1881 </span> <span class="Delimiter">{</span> -<span id="L1882" class="LineNr">1882 </span> <span class="PreProc">var</span> result-type/eax: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> -<span id="L1883" class="LineNr">1883 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">0</span>/pair, <span class="Constant">"F - <a href='evaluate.mu.html#L1839'>test-evaluate-backquote-list-with-unquote</a>/0"</span> -<span id="L1884" class="LineNr">1884 </span> <span class="Delimiter">}</span> -<span id="L1885" class="LineNr">1885 </span> <span class="Delimiter">{</span> -<span id="L1886" class="LineNr">1886 </span> <span class="PreProc">var</span> a1-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left -<span id="L1887" class="LineNr">1887 </span> <span class="PreProc">var</span> a1/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah -<span id="L1888" class="LineNr">1888 </span> <span class="PreProc">var</span> check1/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> -<span id="L1889" class="LineNr">1889 </span> <a href='../502test.mu.html#L19'>check</a> check1, <span class="Constant">"F - <a href='evaluate.mu.html#L1839'>test-evaluate-backquote-list-with-unquote</a>/1"</span> -<span id="L1890" class="LineNr">1890 </span> <span class="Delimiter">}</span> -<span id="L1891" class="LineNr">1891 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right -<span id="L1892" class="LineNr">1892 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1893" class="LineNr">1893 </span> <span class="Delimiter">{</span> -<span id="L1894" class="LineNr">1894 </span> <span class="PreProc">var</span> a2-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1895" class="LineNr">1895 </span> <span class="PreProc">var</span> a2/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah -<span id="L1896" class="LineNr">1896 </span> <span class="PreProc">var</span> a2-value-addr/eax: (addr float) <span class="Special"><-</span> get a2, number-data -<span id="L1897" class="LineNr">1897 </span> <span class="PreProc">var</span> a2-value/eax: int <span class="Special"><-</span> convert *a2-value-addr -<span id="L1898" class="LineNr">1898 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> a2-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1839'>test-evaluate-backquote-list-with-unquote</a>/2"</span> -<span id="L1899" class="LineNr">1899 </span> <span class="Delimiter">}</span> -<span id="L1900" class="LineNr">1900 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1901" class="LineNr">1901 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1902" class="LineNr">1902 </span> <span class="PreProc">var</span> check3/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest -<span id="L1903" class="LineNr">1903 </span> <a href='../502test.mu.html#L19'>check</a> check3, <span class="Constant">"F - <a href='evaluate.mu.html#L1839'>test-evaluate-backquote-list-with-unquote</a>/3"</span> -<span id="L1904" class="LineNr">1904 </span><span class="Delimiter">}</span> -<span id="L1905" class="LineNr">1905 </span> -<span id="L1906" class="LineNr">1906 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a></span> <span class="Delimiter">{</span> -<span id="L1907" class="LineNr">1907 </span> <span class="PreProc">var</span> nil-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1908" class="LineNr">1908 </span> <span class="PreProc">var</span> nil-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-h -<span id="L1909" class="LineNr">1909 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah -<span id="L1910" class="LineNr">1910 </span> <span class="PreProc">var</span> backquote-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1911" class="LineNr">1911 </span> <span class="PreProc">var</span> backquote-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address backquote-h -<span id="L1912" class="LineNr">1912 </span> <a href='cell.mu.html#L39'>new-symbol</a> backquote-ah, <span class="Constant">"`"</span> -<span id="L1913" class="LineNr">1913 </span> <span class="PreProc">var</span> unquote-splice-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1914" class="LineNr">1914 </span> <span class="PreProc">var</span> unquote-splice-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address unquote-splice-h -<span id="L1915" class="LineNr">1915 </span> <a href='cell.mu.html#L39'>new-symbol</a> unquote-splice-ah, <span class="Constant">",@"</span> -<span id="L1916" class="LineNr">1916 </span> <span class="PreProc">var</span> a-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1917" class="LineNr">1917 </span> <span class="PreProc">var</span> a-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-h -<span id="L1918" class="LineNr">1918 </span> <a href='cell.mu.html#L39'>new-symbol</a> a-ah, <span class="Constant">"a"</span> -<span id="L1919" class="LineNr">1919 </span> <span class="PreProc">var</span> b-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1920" class="LineNr">1920 </span> <span class="PreProc">var</span> b-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-h -<span id="L1921" class="LineNr">1921 </span> <a href='cell.mu.html#L39'>new-symbol</a> b-ah, <span class="Constant">"b"</span> -<span id="L1922" class="LineNr">1922 </span> <span class="muComment"># env = ((b . (a 3)))</span> -<span id="L1923" class="LineNr">1923 </span> <span class="PreProc">var</span> val-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1924" class="LineNr">1924 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address val-h -<span id="L1925" class="LineNr">1925 </span> <a href='cell.mu.html#L84'>new-integer</a> val-ah, <span class="Constant">3</span> -<span id="L1926" class="LineNr">1926 </span> <a href='cell.mu.html#L116'>new-pair</a> val-ah, val-h, nil-h -<span id="L1927" class="LineNr">1927 </span> <a href='cell.mu.html#L116'>new-pair</a> val-ah, a-h, val-h -<span id="L1928" class="LineNr">1928 </span> <span class="PreProc">var</span> env-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1929" class="LineNr">1929 </span> <span class="PreProc">var</span> env-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h -<span id="L1930" class="LineNr">1930 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, b-h, val-h -<span id="L1931" class="LineNr">1931 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, env-h, nil-h -<span id="L1932" class="LineNr">1932 </span> <span class="muComment"># input is `(a ,@b b)</span> -<span id="L1933" class="LineNr">1933 </span> <span class="PreProc">var</span> tmp-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1934" class="LineNr">1934 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-h -<span id="L1935" class="LineNr">1935 </span> <span class="muComment"># tmp = cons(b, nil)</span> -<span id="L1936" class="LineNr">1936 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, b-h, nil-h -<span id="L1937" class="LineNr">1937 </span> <span class="muComment"># tmp2 = cons(unquote-splice, b)</span> -<span id="L1938" class="LineNr">1938 </span> <span class="PreProc">var</span> tmp2-h: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L1939" class="LineNr">1939 </span> <span class="PreProc">var</span> tmp2-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp2-h -<span id="L1940" class="LineNr">1940 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp2-ah, unquote-splice-h, b-h -<span id="L1941" class="LineNr">1941 </span> <span class="muComment"># tmp = cons(tmp2, tmp)</span> -<span id="L1942" class="LineNr">1942 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, tmp2-h, tmp-h -<span id="L1943" class="LineNr">1943 </span> <span class="muComment"># tmp = cons(a, tmp)</span> -<span id="L1944" class="LineNr">1944 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, a-h, tmp-h -<span id="L1945" class="LineNr">1945 </span> <span class="muComment"># tmp = cons(backquote, tmp)</span> -<span id="L1946" class="LineNr">1946 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, backquote-h, tmp-h -<span id="L1947" class="LineNr">1947 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen tmp-ah</span> -<span id="L1948" class="LineNr">1948 </span> <span class="muComment">#</span> -<span id="L1949" class="LineNr">1949 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L1950" class="LineNr">1950 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L1951" class="LineNr">1951 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L1952" class="LineNr">1952 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, env-h, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L1953" class="LineNr">1953 </span> <span class="muComment"># result is (a a 3 b)</span> -<span id="L1954" class="LineNr">1954 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen tmp-ah</span> -<span id="L1955" class="LineNr">1955 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah -<span id="L1956" class="LineNr">1956 </span> <span class="Delimiter">{</span> -<span id="L1957" class="LineNr">1957 </span> <span class="PreProc">var</span> result-type/eax: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> -<span id="L1958" class="LineNr">1958 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">0</span>/pair, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/0"</span> -<span id="L1959" class="LineNr">1959 </span> <span class="Delimiter">}</span> -<span id="L1960" class="LineNr">1960 </span> <span class="Delimiter">{</span> -<span id="L1961" class="LineNr">1961 </span> <span class="PreProc">var</span> a1-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left -<span id="L1962" class="LineNr">1962 </span> <span class="PreProc">var</span> a1/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah -<span id="L1963" class="LineNr">1963 </span> <span class="PreProc">var</span> check1/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> -<span id="L1964" class="LineNr">1964 </span> <a href='../502test.mu.html#L19'>check</a> check1, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/1"</span> -<span id="L1965" class="LineNr">1965 </span> <span class="Delimiter">}</span> -<span id="L1966" class="LineNr">1966 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right -<span id="L1967" class="LineNr">1967 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1968" class="LineNr">1968 </span> <span class="Delimiter">{</span> -<span id="L1969" class="LineNr">1969 </span> <span class="PreProc">var</span> a2-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1970" class="LineNr">1970 </span> <span class="PreProc">var</span> a2/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah -<span id="L1971" class="LineNr">1971 </span> <span class="PreProc">var</span> check2/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a2, <span class="Constant">"a"</span> -<span id="L1972" class="LineNr">1972 </span> <a href='../502test.mu.html#L19'>check</a> check2, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/2"</span> -<span id="L1973" class="LineNr">1973 </span> <span class="Delimiter">}</span> -<span id="L1974" class="LineNr">1974 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1975" class="LineNr">1975 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1976" class="LineNr">1976 </span> <span class="Delimiter">{</span> -<span id="L1977" class="LineNr">1977 </span> <span class="PreProc">var</span> a3-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1978" class="LineNr">1978 </span> <span class="PreProc">var</span> a3/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a3-ah -<span id="L1979" class="LineNr">1979 </span> <span class="PreProc">var</span> a3-value-addr/eax: (addr float) <span class="Special"><-</span> get a3, number-data -<span id="L1980" class="LineNr">1980 </span> <span class="PreProc">var</span> a3-value/eax: int <span class="Special"><-</span> convert *a3-value-addr -<span id="L1981" class="LineNr">1981 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> a3-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/3"</span> -<span id="L1982" class="LineNr">1982 </span> <span class="Delimiter">}</span> -<span id="L1983" class="LineNr">1983 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1984" class="LineNr">1984 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1687" class="LineNr">1687 </span> <span class="PreProc">var</span> in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah +<span id="L1688" class="LineNr">1688 </span> <span class="Delimiter">{</span> +<span id="L1689" class="LineNr">1689 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> in +<span id="L1690" class="LineNr">1690 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1691" class="LineNr">1691 </span> <span class="PreProc">break-if-=</span> +<span id="L1692" class="LineNr">1692 </span> <span class="muComment"># nil is a literal</span> +<span id="L1693" class="LineNr">1693 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"backquote nil"</span> +<span id="L1694" class="LineNr">1694 </span> copy-object _in-ah, _out-ah +<span id="L1695" class="LineNr">1695 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1696" class="LineNr">1696 </span> <span class="PreProc">return</span> +<span id="L1697" class="LineNr">1697 </span> <span class="Delimiter">}</span> +<span id="L1698" class="LineNr">1698 </span> <span class="PreProc">var</span> in-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get in, <span class="PreProc">type</span> +<span id="L1699" class="LineNr">1699 </span> compare *in-type, <span class="Constant">0</span>/pair +<span id="L1700" class="LineNr">1700 </span> <span class="Delimiter">{</span> +<span id="L1701" class="LineNr">1701 </span> <span class="PreProc">break-if-=</span> +<span id="L1702" class="LineNr">1702 </span> <span class="muComment"># copy non-pairs directly</span> +<span id="L1703" class="LineNr">1703 </span> <span class="muComment"># TODO: streams might need to be copied</span> +<span id="L1704" class="LineNr">1704 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"backquote atom"</span> +<span id="L1705" class="LineNr">1705 </span> copy-object _in-ah, _out-ah +<span id="L1706" class="LineNr">1706 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1707" class="LineNr">1707 </span> <span class="PreProc">return</span> +<span id="L1708" class="LineNr">1708 </span> <span class="Delimiter">}</span> +<span id="L1709" class="LineNr">1709 </span> <span class="muComment"># 'in' is a pair</span> +<span id="L1710" class="LineNr">1710 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"()"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1711" class="LineNr">1711 </span> <span class="PreProc">var</span> in-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in-ah +<span id="L1712" class="LineNr">1712 </span> <span class="PreProc">var</span> _in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-ah +<span id="L1713" class="LineNr">1713 </span> <span class="PreProc">var</span> in/<span class="muRegEbx">ebx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in +<span id="L1714" class="LineNr">1714 </span> <span class="PreProc">var</span> in-left-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left +<span id="L1715" class="LineNr">1715 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"10"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1716" class="LineNr">1716 </span> <span class="muComment"># check for unquote</span> +<span id="L1717" class="LineNr">1717 </span> $evaluate-backquote:unquote: <span class="Delimiter">{</span> +<span id="L1718" class="LineNr">1718 </span> <span class="PreProc">var</span> in-left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-ah +<span id="L1719" class="LineNr">1719 </span> <span class="PreProc">var</span> unquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> in-left, <span class="Constant">","</span> +<span id="L1720" class="LineNr">1720 </span> compare unquote?, <span class="Constant">0</span>/false +<span id="L1721" class="LineNr">1721 </span> <span class="PreProc">break-if-=</span> +<span id="L1722" class="LineNr">1722 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"unquote"</span> +<span id="L1723" class="LineNr">1723 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L1724" class="LineNr">1724 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">","</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg +<span id="L1725" class="LineNr">1725 </span> <a href='evaluate.mu.html#L11'>evaluate</a> rest-ah, _out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number +<span id="L1726" class="LineNr">1726 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">",)"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg +<span id="L1727" class="LineNr">1727 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1728" class="LineNr">1728 </span> <span class="PreProc">return</span> +<span id="L1729" class="LineNr">1729 </span> <span class="Delimiter">}</span> +<span id="L1730" class="LineNr">1730 </span> <span class="muComment"># check for unquote-splice in in-left</span> +<span id="L1731" class="LineNr">1731 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"11"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1732" class="LineNr">1732 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah +<span id="L1733" class="LineNr">1733 </span> $evaluate-backquote:unquote-splice: <span class="Delimiter">{</span> +<span id="L1734" class="LineNr">1734 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen in-left-ah</span> +<span id="L1735" class="LineNr">1735 </span> <span class="PreProc">var</span> in-left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-ah +<span id="L1736" class="LineNr">1736 </span> <span class="Delimiter">{</span> +<span id="L1737" class="LineNr">1737 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"12"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1738" class="LineNr">1738 </span> <span class="Delimiter">{</span> +<span id="L1739" class="LineNr">1739 </span> <span class="PreProc">var</span> in-left-is-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> in-left +<span id="L1740" class="LineNr">1740 </span> compare in-left-is-nil?, <span class="Constant">0</span>/false +<span id="L1741" class="LineNr">1741 </span> <span class="Delimiter">}</span> +<span id="L1742" class="LineNr">1742 </span> <span class="PreProc">break-if-!=</span> $evaluate-backquote:unquote-splice +<span id="L1743" class="LineNr">1743 </span> <span class="PreProc">var</span> in-left-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get in-left, <span class="PreProc">type</span> +<span id="L1744" class="LineNr">1744 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"13"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1745" class="LineNr">1745 </span> compare *in-left-type, <span class="Constant">0</span>/pair +<span id="L1746" class="LineNr">1746 </span> <span class="PreProc">break-if-!=</span> $evaluate-backquote:unquote-splice +<span id="L1747" class="LineNr">1747 </span> <span class="PreProc">var</span> in-left-left-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in-left, left +<span id="L1748" class="LineNr">1748 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"14"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1749" class="LineNr">1749 </span> <span class="PreProc">var</span> in-left-left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *in-left-left-ah +<span id="L1750" class="LineNr">1750 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"15"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1751" class="LineNr">1751 </span> <span class="PreProc">var</span> in-left-left-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get in-left-left, <span class="PreProc">type</span> +<span id="L1752" class="LineNr">1752 </span> <span class="PreProc">var</span> left-is-unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> in-left-left, <span class="Constant">",@"</span> +<span id="L1753" class="LineNr">1753 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"16"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1754" class="LineNr">1754 </span> compare left-is-unquote-splice?, <span class="Constant">0</span>/false +<span id="L1755" class="LineNr">1755 </span> <span class="Delimiter">}</span> +<span id="L1756" class="LineNr">1756 </span> <span class="PreProc">break-if-=</span> +<span id="L1757" class="LineNr">1757 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"17"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1758" class="LineNr">1758 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"unquote-splice"</span> +<span id="L1759" class="LineNr">1759 </span> <span class="PreProc">var</span> in-unquote-payload-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in-left, right +<span id="L1760" class="LineNr">1760 </span> <a href='evaluate.mu.html#L11'>evaluate</a> in-unquote-payload-ah, out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number +<span id="L1761" class="LineNr">1761 </span> <span class="muComment"># errors? skip</span> +<span id="L1762" class="LineNr">1762 </span> <span class="Delimiter">{</span> +<span id="L1763" class="LineNr">1763 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L1764" class="LineNr">1764 </span> compare error?, <span class="Constant">0</span>/false +<span id="L1765" class="LineNr">1765 </span> <span class="PreProc">break-if-=</span> +<span id="L1766" class="LineNr">1766 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1767" class="LineNr">1767 </span> <span class="PreProc">return</span> +<span id="L1768" class="LineNr">1768 </span> <span class="Delimiter">}</span> +<span id="L1769" class="LineNr">1769 </span> <span class="muComment"># while (*out-ah != null) out-ah = cdr(out-ah)</span> +<span id="L1770" class="LineNr">1770 </span> <span class="Delimiter">{</span> +<span id="L1771" class="LineNr">1771 </span> <span class="PreProc">var</span> out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L1772" class="LineNr">1772 </span> <span class="Delimiter">{</span> +<span id="L1773" class="LineNr">1773 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> out +<span id="L1774" class="LineNr">1774 </span> compare done?, <span class="Constant">0</span>/false +<span id="L1775" class="LineNr">1775 </span> <span class="Delimiter">}</span> +<span id="L1776" class="LineNr">1776 </span> <span class="PreProc">break-if-!=</span> +<span id="L1777" class="LineNr">1777 </span> out-ah <span class="Special"><-</span> get out, right +<span id="L1778" class="LineNr">1778 </span> <span class="PreProc">loop</span> +<span id="L1779" class="LineNr">1779 </span> <span class="Delimiter">}</span> +<span id="L1780" class="LineNr">1780 </span> <span class="muComment"># append result of in-right</span> +<span id="L1781" class="LineNr">1781 </span> <span class="PreProc">var</span> in-right-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L1782" class="LineNr">1782 </span> <a href='evaluate.mu.html#L1664'>evaluate-backquote</a> in-right-ah, out-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number +<span id="L1783" class="LineNr">1783 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1784" class="LineNr">1784 </span> <span class="PreProc">return</span> +<span id="L1785" class="LineNr">1785 </span> <span class="Delimiter">}</span> +<span id="L1786" class="LineNr">1786 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"19"</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg +<span id="L1787" class="LineNr">1787 </span> <span class="muComment"># otherwise continue copying</span> +<span id="L1788" class="LineNr">1788 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"backquote: copy"</span> +<span id="L1789" class="LineNr">1789 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _out-ah +<span id="L1790" class="LineNr">1790 </span> <a href='cell.mu.html#L102'>allocate-pair</a> out-ah +<span id="L1791" class="LineNr">1791 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"20"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg +<span id="L1792" class="LineNr">1792 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen out-ah</span> +<span id="L1793" class="LineNr">1793 </span> <span class="PreProc">var</span> out/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *out-ah +<span id="L1794" class="LineNr">1794 </span> <span class="PreProc">var</span> out-left-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out, left +<span id="L1795" class="LineNr">1795 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`(l"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg +<span id="L1796" class="LineNr">1796 </span> <a href='evaluate.mu.html#L1664'>evaluate-backquote</a> in-left-ah, out-left-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number +<span id="L1797" class="LineNr">1797 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`r)"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg +<span id="L1798" class="LineNr">1798 </span> <span class="muComment"># errors? skip</span> +<span id="L1799" class="LineNr">1799 </span> <span class="Delimiter">{</span> +<span id="L1800" class="LineNr">1800 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L1801" class="LineNr">1801 </span> compare error?, <span class="Constant">0</span>/false +<span id="L1802" class="LineNr">1802 </span> <span class="PreProc">break-if-=</span> +<span id="L1803" class="LineNr">1803 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1804" class="LineNr">1804 </span> <span class="PreProc">return</span> +<span id="L1805" class="LineNr">1805 </span> <span class="Delimiter">}</span> +<span id="L1806" class="LineNr">1806 </span> <span class="PreProc">var</span> in-right-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L1807" class="LineNr">1807 </span> <span class="PreProc">var</span> out-right-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get out, right +<span id="L1808" class="LineNr">1808 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`r("</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg +<span id="L1809" class="LineNr">1809 </span> <a href='evaluate.mu.html#L1664'>evaluate-backquote</a> in-right-ah, out-right-ah, env-h, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number +<span id="L1810" class="LineNr">1810 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"`r)"</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg +<span id="L1811" class="LineNr">1811 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace +<span id="L1812" class="LineNr">1812 </span><span class="Delimiter">}</span> +<span id="L1813" class="LineNr">1813 </span> +<span id="L1814" class="LineNr">1814 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1814'>test-evaluate-backquote-list</a></span> <span class="Delimiter">{</span> +<span id="L1815" class="LineNr">1815 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1816" class="LineNr">1816 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L1817" class="LineNr">1817 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah +<span id="L1818" class="LineNr">1818 </span> <span class="PreProc">var</span> backquote-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1819" class="LineNr">1819 </span> <span class="PreProc">var</span> backquote-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address backquote-storage +<span id="L1820" class="LineNr">1820 </span> <a href='cell.mu.html#L39'>new-symbol</a> backquote-ah, <span class="Constant">"`"</span> +<span id="L1821" class="LineNr">1821 </span> <span class="muComment"># input is `(a b)</span> +<span id="L1822" class="LineNr">1822 </span> <span class="PreProc">var</span> a-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1823" class="LineNr">1823 </span> <span class="PreProc">var</span> a-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-storage +<span id="L1824" class="LineNr">1824 </span> <a href='cell.mu.html#L39'>new-symbol</a> a-ah, <span class="Constant">"a"</span> +<span id="L1825" class="LineNr">1825 </span> <span class="PreProc">var</span> b-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1826" class="LineNr">1826 </span> <span class="PreProc">var</span> b-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-storage +<span id="L1827" class="LineNr">1827 </span> <a href='cell.mu.html#L39'>new-symbol</a> b-ah, <span class="Constant">"b"</span> +<span id="L1828" class="LineNr">1828 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1829" class="LineNr">1829 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage +<span id="L1830" class="LineNr">1830 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *b-ah, *nil-ah +<span id="L1831" class="LineNr">1831 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *a-ah, *tmp-ah +<span id="L1832" class="LineNr">1832 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *backquote-ah, *tmp-ah +<span id="L1833" class="LineNr">1833 </span> <span class="muComment">#</span> +<span id="L1834" class="LineNr">1834 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L1835" class="LineNr">1835 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L1836" class="LineNr">1836 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L1837" class="LineNr">1837 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number +<span id="L1838" class="LineNr">1838 </span> <span class="muComment"># result is (a b)</span> +<span id="L1839" class="LineNr">1839 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1840" class="LineNr">1840 </span> <span class="Delimiter">{</span> +<span id="L1841" class="LineNr">1841 </span> <span class="PreProc">var</span> result-type/eax: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> +<span id="L1842" class="LineNr">1842 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">0</span>/pair, <span class="Constant">"F - <a href='evaluate.mu.html#L1814'>test-evaluate-backquote-list</a>/0"</span> +<span id="L1843" class="LineNr">1843 </span> <span class="Delimiter">}</span> +<span id="L1844" class="LineNr">1844 </span> <span class="Delimiter">{</span> +<span id="L1845" class="LineNr">1845 </span> <span class="PreProc">var</span> a1-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left +<span id="L1846" class="LineNr">1846 </span> <span class="PreProc">var</span> a1/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah +<span id="L1847" class="LineNr">1847 </span> <span class="PreProc">var</span> check1/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> +<span id="L1848" class="LineNr">1848 </span> <a href='../502test.mu.html#L19'>check</a> check1, <span class="Constant">"F - <a href='evaluate.mu.html#L1814'>test-evaluate-backquote-list</a>/1"</span> +<span id="L1849" class="LineNr">1849 </span> <span class="Delimiter">}</span> +<span id="L1850" class="LineNr">1850 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right +<span id="L1851" class="LineNr">1851 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1852" class="LineNr">1852 </span> <span class="Delimiter">{</span> +<span id="L1853" class="LineNr">1853 </span> <span class="PreProc">var</span> a2-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1854" class="LineNr">1854 </span> <span class="PreProc">var</span> a2/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah +<span id="L1855" class="LineNr">1855 </span> <span class="PreProc">var</span> check2/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a2, <span class="Constant">"b"</span> +<span id="L1856" class="LineNr">1856 </span> <a href='../502test.mu.html#L19'>check</a> check2, <span class="Constant">"F - <a href='evaluate.mu.html#L1814'>test-evaluate-backquote-list</a>/2"</span> +<span id="L1857" class="LineNr">1857 </span> <span class="Delimiter">}</span> +<span id="L1858" class="LineNr">1858 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1859" class="LineNr">1859 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1860" class="LineNr">1860 </span> <span class="PreProc">var</span> check3/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L1861" class="LineNr">1861 </span> <a href='../502test.mu.html#L19'>check</a> check3, <span class="Constant">"F - <a href='evaluate.mu.html#L1814'>test-evaluate-backquote-list</a>/3"</span> +<span id="L1862" class="LineNr">1862 </span><span class="Delimiter">}</span> +<span id="L1863" class="LineNr">1863 </span> +<span id="L1864" class="LineNr">1864 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1864'>test-evaluate-backquote-list-with-unquote</a></span> <span class="Delimiter">{</span> +<span id="L1865" class="LineNr">1865 </span> <span class="PreProc">var</span> nil-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1866" class="LineNr">1866 </span> <span class="PreProc">var</span> nil-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-h +<span id="L1867" class="LineNr">1867 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah +<span id="L1868" class="LineNr">1868 </span> <span class="PreProc">var</span> backquote-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1869" class="LineNr">1869 </span> <span class="PreProc">var</span> backquote-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address backquote-h +<span id="L1870" class="LineNr">1870 </span> <a href='cell.mu.html#L39'>new-symbol</a> backquote-ah, <span class="Constant">"`"</span> +<span id="L1871" class="LineNr">1871 </span> <span class="PreProc">var</span> unquote-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1872" class="LineNr">1872 </span> <span class="PreProc">var</span> unquote-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address unquote-h +<span id="L1873" class="LineNr">1873 </span> <a href='cell.mu.html#L39'>new-symbol</a> unquote-ah, <span class="Constant">","</span> +<span id="L1874" class="LineNr">1874 </span> <span class="PreProc">var</span> a-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1875" class="LineNr">1875 </span> <span class="PreProc">var</span> a-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-h +<span id="L1876" class="LineNr">1876 </span> <a href='cell.mu.html#L39'>new-symbol</a> a-ah, <span class="Constant">"a"</span> +<span id="L1877" class="LineNr">1877 </span> <span class="PreProc">var</span> b-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1878" class="LineNr">1878 </span> <span class="PreProc">var</span> b-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-h +<span id="L1879" class="LineNr">1879 </span> <a href='cell.mu.html#L39'>new-symbol</a> b-ah, <span class="Constant">"b"</span> +<span id="L1880" class="LineNr">1880 </span> <span class="muComment"># env = ((b . 3))</span> +<span id="L1881" class="LineNr">1881 </span> <span class="PreProc">var</span> val-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1882" class="LineNr">1882 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address val-h +<span id="L1883" class="LineNr">1883 </span> <a href='cell.mu.html#L84'>new-integer</a> val-ah, <span class="Constant">3</span> +<span id="L1884" class="LineNr">1884 </span> <span class="PreProc">var</span> env-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1885" class="LineNr">1885 </span> <span class="PreProc">var</span> env-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h +<span id="L1886" class="LineNr">1886 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, b-h, val-h +<span id="L1887" class="LineNr">1887 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, env-h, nil-h +<span id="L1888" class="LineNr">1888 </span> <span class="muComment"># input is `(a ,b)</span> +<span id="L1889" class="LineNr">1889 </span> <span class="PreProc">var</span> tmp-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1890" class="LineNr">1890 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-h +<span id="L1891" class="LineNr">1891 </span> <span class="muComment"># tmp = cons(unquote, b)</span> +<span id="L1892" class="LineNr">1892 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, unquote-h, b-h +<span id="L1893" class="LineNr">1893 </span> <span class="muComment"># tmp = cons(tmp, nil)</span> +<span id="L1894" class="LineNr">1894 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, tmp-h, nil-h +<span id="L1895" class="LineNr">1895 </span> <span class="muComment"># tmp = cons(a, tmp)</span> +<span id="L1896" class="LineNr">1896 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, a-h, tmp-h +<span id="L1897" class="LineNr">1897 </span> <span class="muComment"># tmp = cons(backquote, tmp)</span> +<span id="L1898" class="LineNr">1898 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, backquote-h, tmp-h +<span id="L1899" class="LineNr">1899 </span> <span class="muComment">#</span> +<span id="L1900" class="LineNr">1900 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L1901" class="LineNr">1901 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L1902" class="LineNr">1902 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L1903" class="LineNr">1903 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, env-h, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number +<span id="L1904" class="LineNr">1904 </span> <span class="muComment"># result is (a 3)</span> +<span id="L1905" class="LineNr">1905 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1906" class="LineNr">1906 </span> <span class="Delimiter">{</span> +<span id="L1907" class="LineNr">1907 </span> <span class="PreProc">var</span> result-type/eax: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> +<span id="L1908" class="LineNr">1908 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">0</span>/pair, <span class="Constant">"F - <a href='evaluate.mu.html#L1864'>test-evaluate-backquote-list-with-unquote</a>/0"</span> +<span id="L1909" class="LineNr">1909 </span> <span class="Delimiter">}</span> +<span id="L1910" class="LineNr">1910 </span> <span class="Delimiter">{</span> +<span id="L1911" class="LineNr">1911 </span> <span class="PreProc">var</span> a1-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left +<span id="L1912" class="LineNr">1912 </span> <span class="PreProc">var</span> a1/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah +<span id="L1913" class="LineNr">1913 </span> <span class="PreProc">var</span> check1/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> +<span id="L1914" class="LineNr">1914 </span> <a href='../502test.mu.html#L19'>check</a> check1, <span class="Constant">"F - <a href='evaluate.mu.html#L1864'>test-evaluate-backquote-list-with-unquote</a>/1"</span> +<span id="L1915" class="LineNr">1915 </span> <span class="Delimiter">}</span> +<span id="L1916" class="LineNr">1916 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right +<span id="L1917" class="LineNr">1917 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1918" class="LineNr">1918 </span> <span class="Delimiter">{</span> +<span id="L1919" class="LineNr">1919 </span> <span class="PreProc">var</span> a2-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1920" class="LineNr">1920 </span> <span class="PreProc">var</span> a2/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah +<span id="L1921" class="LineNr">1921 </span> <span class="PreProc">var</span> a2-value-addr/eax: (addr float) <span class="Special"><-</span> get a2, number-data +<span id="L1922" class="LineNr">1922 </span> <span class="PreProc">var</span> a2-value/eax: int <span class="Special"><-</span> convert *a2-value-addr +<span id="L1923" class="LineNr">1923 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> a2-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1864'>test-evaluate-backquote-list-with-unquote</a>/2"</span> +<span id="L1924" class="LineNr">1924 </span> <span class="Delimiter">}</span> +<span id="L1925" class="LineNr">1925 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1926" class="LineNr">1926 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1927" class="LineNr">1927 </span> <span class="PreProc">var</span> check3/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L1928" class="LineNr">1928 </span> <a href='../502test.mu.html#L19'>check</a> check3, <span class="Constant">"F - <a href='evaluate.mu.html#L1864'>test-evaluate-backquote-list-with-unquote</a>/3"</span> +<span id="L1929" class="LineNr">1929 </span><span class="Delimiter">}</span> +<span id="L1930" class="LineNr">1930 </span> +<span id="L1931" class="LineNr">1931 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1931'>test-evaluate-backquote-list-with-unquote-splice</a></span> <span class="Delimiter">{</span> +<span id="L1932" class="LineNr">1932 </span> <span class="PreProc">var</span> nil-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1933" class="LineNr">1933 </span> <span class="PreProc">var</span> nil-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-h +<span id="L1934" class="LineNr">1934 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah +<span id="L1935" class="LineNr">1935 </span> <span class="PreProc">var</span> backquote-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1936" class="LineNr">1936 </span> <span class="PreProc">var</span> backquote-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address backquote-h +<span id="L1937" class="LineNr">1937 </span> <a href='cell.mu.html#L39'>new-symbol</a> backquote-ah, <span class="Constant">"`"</span> +<span id="L1938" class="LineNr">1938 </span> <span class="PreProc">var</span> unquote-splice-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1939" class="LineNr">1939 </span> <span class="PreProc">var</span> unquote-splice-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address unquote-splice-h +<span id="L1940" class="LineNr">1940 </span> <a href='cell.mu.html#L39'>new-symbol</a> unquote-splice-ah, <span class="Constant">",@"</span> +<span id="L1941" class="LineNr">1941 </span> <span class="PreProc">var</span> a-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1942" class="LineNr">1942 </span> <span class="PreProc">var</span> a-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address a-h +<span id="L1943" class="LineNr">1943 </span> <a href='cell.mu.html#L39'>new-symbol</a> a-ah, <span class="Constant">"a"</span> +<span id="L1944" class="LineNr">1944 </span> <span class="PreProc">var</span> b-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1945" class="LineNr">1945 </span> <span class="PreProc">var</span> b-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address b-h +<span id="L1946" class="LineNr">1946 </span> <a href='cell.mu.html#L39'>new-symbol</a> b-ah, <span class="Constant">"b"</span> +<span id="L1947" class="LineNr">1947 </span> <span class="muComment"># env = ((b . (a 3)))</span> +<span id="L1948" class="LineNr">1948 </span> <span class="PreProc">var</span> val-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1949" class="LineNr">1949 </span> <span class="PreProc">var</span> val-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address val-h +<span id="L1950" class="LineNr">1950 </span> <a href='cell.mu.html#L84'>new-integer</a> val-ah, <span class="Constant">3</span> +<span id="L1951" class="LineNr">1951 </span> <a href='cell.mu.html#L116'>new-pair</a> val-ah, val-h, nil-h +<span id="L1952" class="LineNr">1952 </span> <a href='cell.mu.html#L116'>new-pair</a> val-ah, a-h, val-h +<span id="L1953" class="LineNr">1953 </span> <span class="PreProc">var</span> env-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1954" class="LineNr">1954 </span> <span class="PreProc">var</span> env-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address env-h +<span id="L1955" class="LineNr">1955 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, b-h, val-h +<span id="L1956" class="LineNr">1956 </span> <a href='cell.mu.html#L116'>new-pair</a> env-ah, env-h, nil-h +<span id="L1957" class="LineNr">1957 </span> <span class="muComment"># input is `(a ,@b b)</span> +<span id="L1958" class="LineNr">1958 </span> <span class="PreProc">var</span> tmp-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1959" class="LineNr">1959 </span> <span class="PreProc">var</span> tmp-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-h +<span id="L1960" class="LineNr">1960 </span> <span class="muComment"># tmp = cons(b, nil)</span> +<span id="L1961" class="LineNr">1961 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, b-h, nil-h +<span id="L1962" class="LineNr">1962 </span> <span class="muComment"># tmp2 = cons(unquote-splice, b)</span> +<span id="L1963" class="LineNr">1963 </span> <span class="PreProc">var</span> tmp2-h: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L1964" class="LineNr">1964 </span> <span class="PreProc">var</span> tmp2-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp2-h +<span id="L1965" class="LineNr">1965 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp2-ah, unquote-splice-h, b-h +<span id="L1966" class="LineNr">1966 </span> <span class="muComment"># tmp = cons(tmp2, tmp)</span> +<span id="L1967" class="LineNr">1967 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, tmp2-h, tmp-h +<span id="L1968" class="LineNr">1968 </span> <span class="muComment"># tmp = cons(a, tmp)</span> +<span id="L1969" class="LineNr">1969 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, a-h, tmp-h +<span id="L1970" class="LineNr">1970 </span> <span class="muComment"># tmp = cons(backquote, tmp)</span> +<span id="L1971" class="LineNr">1971 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, backquote-h, tmp-h +<span id="L1972" class="LineNr">1972 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen tmp-ah</span> +<span id="L1973" class="LineNr">1973 </span> <span class="muComment">#</span> +<span id="L1974" class="LineNr">1974 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L1975" class="LineNr">1975 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L1976" class="LineNr">1976 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L1977" class="LineNr">1977 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, env-h, <span class="Constant">0</span>/no-globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number +<span id="L1978" class="LineNr">1978 </span> <span class="muComment"># result is (a a 3 b)</span> +<span id="L1979" class="LineNr">1979 </span><span class="CommentedCode">#? dump-cell-from-cursor-over-full-screen tmp-ah</span> +<span id="L1980" class="LineNr">1980 </span> <span class="PreProc">var</span> result/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *tmp-ah +<span id="L1981" class="LineNr">1981 </span> <span class="Delimiter">{</span> +<span id="L1982" class="LineNr">1982 </span> <span class="PreProc">var</span> result-type/eax: (addr int) <span class="Special"><-</span> get result, <span class="PreProc">type</span> +<span id="L1983" class="LineNr">1983 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> *result-type, <span class="Constant">0</span>/pair, <span class="Constant">"F - <a href='evaluate.mu.html#L1931'>test-evaluate-backquote-list-with-unquote-splice</a>/0"</span> +<span id="L1984" class="LineNr">1984 </span> <span class="Delimiter">}</span> <span id="L1985" class="LineNr">1985 </span> <span class="Delimiter">{</span> -<span id="L1986" class="LineNr">1986 </span> <span class="PreProc">var</span> a4-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1987" class="LineNr">1987 </span> <span class="PreProc">var</span> a4/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a4-ah -<span id="L1988" class="LineNr">1988 </span> <span class="PreProc">var</span> check4/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a4, <span class="Constant">"b"</span> -<span id="L1989" class="LineNr">1989 </span> <a href='../502test.mu.html#L19'>check</a> check4, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/4"</span> +<span id="L1986" class="LineNr">1986 </span> <span class="PreProc">var</span> a1-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, left +<span id="L1987" class="LineNr">1987 </span> <span class="PreProc">var</span> a1/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a1-ah +<span id="L1988" class="LineNr">1988 </span> <span class="PreProc">var</span> check1/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a1, <span class="Constant">"a"</span> +<span id="L1989" class="LineNr">1989 </span> <a href='../502test.mu.html#L19'>check</a> check1, <span class="Constant">"F - <a href='evaluate.mu.html#L1931'>test-evaluate-backquote-list-with-unquote-splice</a>/1"</span> <span id="L1990" class="LineNr">1990 </span> <span class="Delimiter">}</span> -<span id="L1991" class="LineNr">1991 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1991" class="LineNr">1991 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get result, right <span id="L1992" class="LineNr">1992 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1993" class="LineNr">1993 </span> <span class="PreProc">var</span> check5/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest -<span id="L1994" class="LineNr">1994 </span> <a href='../502test.mu.html#L19'>check</a> check5, <span class="Constant">"F - <a href='evaluate.mu.html#L1906'>test-evaluate-backquote-list-with-unquote-splice</a>/5"</span> -<span id="L1995" class="LineNr">1995 </span><span class="Delimiter">}</span> +<span id="L1993" class="LineNr">1993 </span> <span class="Delimiter">{</span> +<span id="L1994" class="LineNr">1994 </span> <span class="PreProc">var</span> a2-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1995" class="LineNr">1995 </span> <span class="PreProc">var</span> a2/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a2-ah +<span id="L1996" class="LineNr">1996 </span> <span class="PreProc">var</span> check2/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a2, <span class="Constant">"a"</span> +<span id="L1997" class="LineNr">1997 </span> <a href='../502test.mu.html#L19'>check</a> check2, <span class="Constant">"F - <a href='evaluate.mu.html#L1931'>test-evaluate-backquote-list-with-unquote-splice</a>/2"</span> +<span id="L1998" class="LineNr">1998 </span> <span class="Delimiter">}</span> +<span id="L1999" class="LineNr">1999 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2000" class="LineNr">2000 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2001" class="LineNr">2001 </span> <span class="Delimiter">{</span> +<span id="L2002" class="LineNr">2002 </span> <span class="PreProc">var</span> a3-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2003" class="LineNr">2003 </span> <span class="PreProc">var</span> a3/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a3-ah +<span id="L2004" class="LineNr">2004 </span> <span class="PreProc">var</span> a3-value-addr/eax: (addr float) <span class="Special"><-</span> get a3, number-data +<span id="L2005" class="LineNr">2005 </span> <span class="PreProc">var</span> a3-value/eax: int <span class="Special"><-</span> convert *a3-value-addr +<span id="L2006" class="LineNr">2006 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> a3-value, <span class="Constant">3</span>, <span class="Constant">"F - <a href='evaluate.mu.html#L1931'>test-evaluate-backquote-list-with-unquote-splice</a>/3"</span> +<span id="L2007" class="LineNr">2007 </span> <span class="Delimiter">}</span> +<span id="L2008" class="LineNr">2008 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2009" class="LineNr">2009 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2010" class="LineNr">2010 </span> <span class="Delimiter">{</span> +<span id="L2011" class="LineNr">2011 </span> <span class="PreProc">var</span> a4-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2012" class="LineNr">2012 </span> <span class="PreProc">var</span> a4/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *a4-ah +<span id="L2013" class="LineNr">2013 </span> <span class="PreProc">var</span> check4/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> a4, <span class="Constant">"b"</span> +<span id="L2014" class="LineNr">2014 </span> <a href='../502test.mu.html#L19'>check</a> check4, <span class="Constant">"F - <a href='evaluate.mu.html#L1931'>test-evaluate-backquote-list-with-unquote-splice</a>/4"</span> +<span id="L2015" class="LineNr">2015 </span> <span class="Delimiter">}</span> +<span id="L2016" class="LineNr">2016 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2017" class="LineNr">2017 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2018" class="LineNr">2018 </span> <span class="PreProc">var</span> check5/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2019" class="LineNr">2019 </span> <a href='../502test.mu.html#L19'>check</a> check5, <span class="Constant">"F - <a href='evaluate.mu.html#L1931'>test-evaluate-backquote-list-with-unquote-splice</a>/5"</span> +<span id="L2020" class="LineNr">2020 </span><span class="Delimiter">}</span> </pre> </body> </html> diff --git a/html/shell/gap-buffer.mu.html b/html/shell/gap-buffer.mu.html index ea3d7bd9..8359674f 100644 --- a/html/shell/gap-buffer.mu.html +++ b/html/shell/gap-buffer.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/gap-buffer.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } -.muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/shell/global.mu.html b/html/shell/global.mu.html index 4d9a9efe..f4241b88 100644 --- a/html/shell/global.mu.html +++ b/html/shell/global.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/global.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muComment { color: #005faf; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } -.Constant { color: #008787; } -.muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } -.muComment { color: #005faf; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } +.muRegEbx { color: #5f00ff; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -84,7 +84,7 @@ if ('onhashchange' in window) { <span id="L21" class="LineNr"> 21 </span> <span class="Delimiter">}</span> <span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data <span id="L23" class="LineNr"> 23 </span> populate data-ah, <span class="Constant">0x80</span> -<span id="L24" class="LineNr"> 24 </span> <a href='primitives.mu.html#L1'>initialize-primitives</a> self +<span id="L24" class="LineNr"> 24 </span> <a href='primitives.mu.html#L4'>initialize-primitives</a> self <span id="L25" class="LineNr"> 25 </span><span class="Delimiter">}</span> <span id="L26" class="LineNr"> 26 </span> <span id="L27" class="LineNr"> 27 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L27'>load-globals</a></span> in: (addr handle <a href='cell.mu.html#L1'>cell</a>), self: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Delimiter">{</span> @@ -93,7 +93,7 @@ if ('onhashchange' in window) { <span id="L30" class="LineNr"> 30 </span> <span class="Delimiter">{</span> <span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> _remaining/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *remaining-ah <span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> remaining/<span class="muRegEbx">ebx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _remaining -<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> remaining +<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> remaining <span id="L34" class="LineNr"> 34 </span> compare done?, <span class="Constant">0</span>/false <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">break-if-!=</span> <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> curr-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get remaining, left @@ -192,7 +192,7 @@ if ('onhashchange' in window) { <span id="L129" class="LineNr">129 </span> <span class="Delimiter">{</span> <span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEbx">ebx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, curr-index <span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> curr/<span class="muRegEbx">ebx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, curr-offset -<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> continue?/eax: boolean <span class="Special"><-</span> <a href='primitives.mu.html#L113'>primitive-global?</a> curr +<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> continue?/eax: boolean <span class="Special"><-</span> <a href='primitives.mu.html#L173'>primitive-global?</a> curr <span id="L133" class="LineNr">133 </span> compare continue?, <span class="Constant">0</span>/false <span id="L134" class="LineNr">134 </span> <span class="PreProc">break-if-=</span> <span id="L135" class="LineNr">135 </span> curr-index <span class="Special"><-</span> increment @@ -259,7 +259,7 @@ if ('onhashchange' in window) { <span id="L196" class="LineNr">196 </span> <span class="PreProc">loop</span> <span id="L197" class="LineNr">197 </span> <span class="Delimiter">}</span> <span id="L198" class="LineNr">198 </span> <span class="muComment"># render primitives on top</span> -<span id="L199" class="LineNr">199 </span> <a href='primitives.mu.html#L49'>render-primitives</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/xmin=padding-left, <span class="Constant">0x55</span>/xmax, <span class="Constant">0x2f</span>/ymax +<span id="L199" class="LineNr">199 </span> <a href='primitives.mu.html#L64'>render-primitives</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/xmin=padding-left, <span class="Constant">0x55</span>/xmax, <span class="Constant">0x2f</span>/ymax <span id="L200" class="LineNr">200 </span><span class="Delimiter">}</span> <span id="L201" class="LineNr">201 </span> <span id="L202" class="LineNr">202 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L202'>render-globals-menu</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Delimiter">{</span> diff --git a/html/shell/grapheme-stack.mu.html b/html/shell/grapheme-stack.mu.html index 2c62b92b..2138dcba 100644 --- a/html/shell/grapheme-stack.mu.html +++ b/html/shell/grapheme-stack.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/grapheme-stack.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } -.muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -610,7 +610,7 @@ if ('onhashchange' in window) { <span id="L546" class="LineNr">546 </span> compare i, *top-addr <span id="L547" class="LineNr">547 </span> <span class="PreProc">break-if->=</span> <span id="L548" class="LineNr">548 </span> <span class="PreProc">var</span> g/<span class="muRegEdx">edx</span>: (addr grapheme) <span class="Special"><-</span> index data, i -<span id="L549" class="LineNr">549 </span> result <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L296'>decimal-digit?</a> *g +<span id="L549" class="LineNr">549 </span> result <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L327'>decimal-digit?</a> *g <span id="L550" class="LineNr">550 </span> compare result, <span class="Constant">0</span>/false <span id="L551" class="LineNr">551 </span> <span class="PreProc">break-if-=</span> <span id="L552" class="LineNr">552 </span> i <span class="Special"><-</span> increment diff --git a/html/shell/infix.mu.html b/html/shell/infix.mu.html index 582ea547..8e792573 100644 --- a/html/shell/infix.mu.html +++ b/html/shell/infix.mu.html @@ -1,38 +1,38 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/infix.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } -.CommentedCode { color: #8a8a8a; } .LineNr { } .Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.muComment { color: #005faf; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.Folded { color: #080808; background-color: #949494; } +.muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } -.muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.Folded { color: #080808; background-color: #949494; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -80,7 +80,7 @@ if ('onhashchange' in window) { <span id="L14" class="LineNr"> 14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L14'>transform-infix-2</a></span> _x-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace), at-head-of-list?: boolean <span class="Delimiter">{</span> <span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> x-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _x-ah <span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> x/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *x-ah -<span id="L17" class="Folded"> 17 </span><span class="Folded">+-- 14 lines: # trace x-ah --------------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L17" class="Folded"> 17 </span><span class="Folded">+-- 14 lines: # trace x-ah -------------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L31" class="LineNr"> 31 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L32" class="LineNr"> 32 </span><span class="CommentedCode">#? {</span> <span id="L33" class="LineNr"> 33 </span><span class="CommentedCode">#? var foo/eax: int <- copy x</span> @@ -97,8 +97,8 @@ if ('onhashchange' in window) { <span id="L44" class="LineNr"> 44 </span> <span class="Delimiter">}</span> <span id="L45" class="LineNr"> 45 </span> <span class="muComment"># nil? return</span> <span id="L46" class="LineNr"> 46 </span> <span class="Delimiter">{</span> -<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> x -<span id="L48" class="LineNr"> 48 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false +<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> x +<span id="L48" class="LineNr"> 48 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false <span id="L49" class="LineNr"> 49 </span> <span class="PreProc">break-if-=</span> <span id="L50" class="LineNr"> 50 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L51" class="LineNr"> 51 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"infix"</span>, <span class="Constant">"=> nil"</span> @@ -118,7 +118,7 @@ if ('onhashchange' in window) { <span id="L65" class="LineNr"> 65 </span> compare *x-type, <span class="Constant">0</span>/pair <span id="L66" class="LineNr"> 66 </span> <span class="PreProc">break-if-=</span> <span id="L67" class="LineNr"> 67 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L68" class="Folded"> 68 </span><span class="Folded">+-- 15 lines: # trace "=> " x-ah --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L68" class="Folded"> 68 </span><span class="Folded">+-- 15 lines: # trace "=> " x-ah -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L83" class="LineNr"> 83 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, "^", 4/fg 0/bg</span> <span id="L84" class="LineNr"> 84 </span> <span class="PreProc">return</span> <span id="L85" class="LineNr"> 85 </span> <span class="Delimiter">}</span> @@ -134,12 +134,12 @@ if ('onhashchange' in window) { <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">break-if-=</span> <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, right <span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest <span id="L99" class="LineNr"> 99 </span> compare rest-nil?, <span class="Constant">0</span>/false <span id="L100" class="LineNr">100 </span> <span class="PreProc">break-if-=</span> <span id="L101" class="LineNr">101 </span> copy-object first-ah, x-ah <span id="L102" class="LineNr">102 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L103" class="Folded">103 </span><span class="Folded">+-- 15 lines: # trace "=> " x-ah --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L103" class="Folded">103 </span><span class="Folded">+-- 15 lines: # trace "=> " x-ah -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L118" class="LineNr">118 </span> <span class="PreProc">return</span> <span id="L119" class="LineNr">119 </span> <span class="Delimiter">}</span> <span id="L120" class="LineNr">120 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, "c", 4/fg 0/bg</span> @@ -233,7 +233,7 @@ if ('onhashchange' in window) { <span id="L208" class="LineNr">208 </span> compare at-head-of-list?, <span class="Constant">0</span>/false <span id="L209" class="LineNr">209 </span> <span class="PreProc">break-if-=</span> <span id="L210" class="LineNr">210 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest <span id="L212" class="LineNr">212 </span> compare rest-nil?, <span class="Constant">0</span>/false <span id="L213" class="LineNr">213 </span> <span class="PreProc">break-if-!=</span> $transform-infix-2:pinch <span id="L214" class="LineNr">214 </span> <span class="Delimiter">}</span> @@ -278,7 +278,7 @@ if ('onhashchange' in window) { <span id="L253" class="LineNr">253 </span> <a href='infix.mu.html#L14'>transform-infix-2</a> right-ah, trace, right-at-head-of-list? <span id="L254" class="LineNr">254 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, "z", 1/fg 0/bg</span> <span id="L255" class="LineNr">255 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L256" class="Folded">256 </span><span class="Folded">+-- 15 lines: # trace "=> " x-ah --------------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L256" class="Folded">256 </span><span class="Folded">+-- 15 lines: # trace "=> " x-ah -------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L271" class="LineNr">271 </span><span class="Delimiter">}</span> <span id="L272" class="LineNr">272 </span> <span id="L273" class="LineNr">273 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='infix.mu.html#L273'>not-null-not-nil-pair?</a></span> _x: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> @@ -294,8 +294,8 @@ if ('onhashchange' in window) { <span id="L283" class="LineNr">283 </span> <span class="PreProc">break-if-=</span> <span id="L284" class="LineNr">284 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L285" class="LineNr">285 </span> <span class="Delimiter">}</span> -<span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> x -<span id="L287" class="LineNr">287 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false +<span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> x +<span id="L287" class="LineNr">287 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false <span id="L288" class="LineNr">288 </span> <span class="Delimiter">{</span> <span id="L289" class="LineNr">289 </span> <span class="PreProc">break-if-=</span> <span id="L290" class="LineNr">290 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false diff --git a/html/shell/int-stack.mu.html b/html/shell/int-stack.mu.html index dcebcb7d..1fa15a0d 100644 --- a/html/shell/int-stack.mu.html +++ b/html/shell/int-stack.mu.html @@ -1,33 +1,33 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/int-stack.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } -.Constant { color: #008787; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/shell/macroexpand.mu.html b/html/shell/macroexpand.mu.html index d11e5f06..b05077d2 100644 --- a/html/shell/macroexpand.mu.html +++ b/html/shell/macroexpand.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/macroexpand.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,23 +16,23 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muComment { color: #005faf; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.Folded { color: #080808; background-color: #949494; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } -.muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.Folded { color: #080808; background-color: #949494; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -65,7 +65,7 @@ if ('onhashchange' in window) { <a href='https://github.com/akkartik/mu/blob/main/shell/macroexpand.mu'>https://github.com/akkartik/mu/blob/main/shell/macroexpand.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='macroexpand.mu.html#L1'>macroexpand</a></span> expr-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L2" class="Folded"> 2 </span><span class="Folded">+-- 15 lines: # trace "macroexpand " expr-ah --------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2" class="Folded"> 2 </span><span class="Folded">+-- 15 lines: # trace "macroexpand " expr-ah -------------------------------------------------------------------------------------------------------------------------------</span> <span id="L17" class="LineNr"> 17 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L18" class="LineNr"> 18 </span> <span class="muComment"># loop until convergence</span> <span id="L19" class="LineNr"> 19 </span> <span class="Delimiter">{</span> @@ -77,19 +77,19 @@ if ('onhashchange' in window) { <span id="L25" class="LineNr"> 25 </span> <span class="PreProc">loop-if-!=</span> <span id="L26" class="LineNr"> 26 </span> <span class="Delimiter">}</span> <span id="L27" class="LineNr"> 27 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L28" class="Folded"> 28 </span><span class="Folded">+-- 15 lines: # trace "=> " expr-ah -----------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L28" class="Folded"> 28 </span><span class="Folded">+-- 15 lines: # trace "=> " expr-ah ----------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L43" class="LineNr"> 43 </span><span class="Delimiter">}</span> <span id="L44" class="LineNr"> 44 </span> <span id="L45" class="LineNr"> 45 </span><span class="muComment"># return true if we found any macros</span> <span id="L46" class="LineNr"> 46 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='macroexpand.mu.html#L46'>macroexpand-iter</a></span> _expr-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> expr-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _expr-ah -<span id="L48" class="Folded"> 48 </span><span class="Folded">+-- 15 lines: # trace "macroexpand-iter " expr ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L48" class="Folded"> 48 </span><span class="Folded">+-- 15 lines: # trace "macroexpand-iter " expr -----------------------------------------------------------------------------------------------------------------------------</span> <span id="L63" class="LineNr"> 63 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L64" class="LineNr"> 64 </span> <span class="muComment"># if expr is a non-pair, return</span> <span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> expr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expr-ah <span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">{</span> -<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> expr -<span id="L68" class="LineNr"> 68 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false +<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> expr +<span id="L68" class="LineNr"> 68 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">break-if-=</span> <span id="L70" class="LineNr"> 70 </span> <span class="muComment"># nil is a literal</span> <span id="L71" class="LineNr"> 71 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"mac"</span>, <span class="Constant">"nil"</span> @@ -110,8 +110,8 @@ if ('onhashchange' in window) { <span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> rest-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get expr, right <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">{</span> -<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1429'>litfn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1429'>litfn?</a> first -<span id="L90" class="LineNr"> 90 </span> compare <a href='evaluate.mu.html#L1429'>litfn?</a>, <span class="Constant">0</span>/false +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1454'>litfn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1454'>litfn?</a> first +<span id="L90" class="LineNr"> 90 </span> compare <a href='evaluate.mu.html#L1454'>litfn?</a>, <span class="Constant">0</span>/false <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">break-if-=</span> <span id="L92" class="LineNr"> 92 </span> <span class="muComment"># litfn is a literal</span> <span id="L93" class="LineNr"> 93 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"mac"</span>, <span class="Constant">"literal function"</span> @@ -119,8 +119,8 @@ if ('onhashchange' in window) { <span id="L95" class="LineNr"> 95 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L96" class="LineNr"> 96 </span> <span class="Delimiter">}</span> <span id="L97" class="LineNr"> 97 </span> <span class="Delimiter">{</span> -<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1443'>litmac?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1443'>litmac?</a> first -<span id="L99" class="LineNr"> 99 </span> compare <a href='evaluate.mu.html#L1443'>litmac?</a>, <span class="Constant">0</span>/false +<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1468'>litmac?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1468'>litmac?</a> first +<span id="L99" class="LineNr"> 99 </span> compare <a href='evaluate.mu.html#L1468'>litmac?</a>, <span class="Constant">0</span>/false <span id="L100" class="LineNr">100 </span> <span class="PreProc">break-if-=</span> <span id="L101" class="LineNr">101 </span> <span class="muComment"># litmac is a literal</span> <span id="L102" class="LineNr">102 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"mac"</span>, <span class="Constant">"literal macro"</span> @@ -130,8 +130,8 @@ if ('onhashchange' in window) { <span id="L106" class="LineNr">106 </span> <span class="PreProc">var</span> result/<span class="muRegEdi">edi</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L107" class="LineNr">107 </span> <span class="muComment"># for each builtin, expand only what will later be evaluated</span> <span id="L108" class="LineNr">108 </span> $macroexpand-iter:anonymous-function: <span class="Delimiter">{</span> -<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1415'>fn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1415'>fn?</a> first -<span id="L110" class="LineNr">110 </span> compare <a href='evaluate.mu.html#L1415'>fn?</a>, <span class="Constant">0</span>/false +<span id="L109" class="LineNr">109 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1440'>fn?</a>/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1440'>fn?</a> first +<span id="L110" class="LineNr">110 </span> compare <a href='evaluate.mu.html#L1440'>fn?</a>, <span class="Constant">0</span>/false <span id="L111" class="LineNr">111 </span> <span class="PreProc">break-if-=</span> <span id="L112" class="LineNr">112 </span> <span class="muComment"># fn: expand every expression in the body</span> <span id="L113" class="LineNr">113 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"mac"</span>, <span class="Constant">"anonymous function"</span> @@ -141,7 +141,7 @@ if ('onhashchange' in window) { <span id="L117" class="LineNr">117 </span> rest-ah <span class="Special"><-</span> get rest, right <span id="L118" class="LineNr">118 </span> rest <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L119" class="LineNr">119 </span> <span class="Delimiter">{</span> -<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest +<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest <span id="L121" class="LineNr">121 </span> compare done?, <span class="Constant">0</span>/false <span id="L122" class="LineNr">122 </span> <span class="Delimiter">}</span> <span id="L123" class="LineNr">123 </span> <span class="PreProc">break-if-!=</span> @@ -158,7 +158,7 @@ if ('onhashchange' in window) { <span id="L134" class="LineNr">134 </span> <span class="PreProc">loop</span> <span id="L135" class="LineNr">135 </span> <span class="Delimiter">}</span> <span id="L136" class="LineNr">136 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L137" class="Folded">137 </span><span class="Folded">+-- 15 lines: # trace "fn=> " _expr-ah --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L137" class="Folded">137 </span><span class="Folded">+-- 15 lines: # trace "fn=> " _expr-ah -------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L152" class="LineNr">152 </span> <span class="PreProc">return</span> result <span id="L153" class="LineNr">153 </span> <span class="Delimiter">}</span> <span id="L154" class="LineNr">154 </span> <span class="muComment"># builtins with "special" evaluation rules</span> @@ -202,7 +202,7 @@ if ('onhashchange' in window) { <span id="L192" class="LineNr">192 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L193" class="LineNr">193 </span> <span class="PreProc">var</span> macro-found?/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> val-ah, globals, trace <span id="L194" class="LineNr">194 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L195" class="Folded">195 </span><span class="Folded">+-- 15 lines: # trace "define=> " _expr-ah ----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L195" class="Folded">195 </span><span class="Folded">+-- 15 lines: # trace "define=> " _expr-ah ---------------------------------------------------------------------------------------------------------------------------------</span> <span id="L210" class="LineNr">210 </span> <span class="PreProc">return</span> macro-found? <span id="L211" class="LineNr">211 </span> <span class="Delimiter">}</span> <span id="L212" class="LineNr">212 </span> $macroexpand-iter:set: <span class="Delimiter">{</span> @@ -218,7 +218,7 @@ if ('onhashchange' in window) { <span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> macro-found?/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> val-ah, globals, trace <span id="L224" class="LineNr">224 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L225" class="Folded">225 </span><span class="Folded">+-- 15 lines: # trace "set=> " _expr-ah -------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L225" class="Folded">225 </span><span class="Folded">+-- 15 lines: # trace "set=> " _expr-ah ------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L240" class="LineNr">240 </span> <span class="PreProc">return</span> macro-found? <span id="L241" class="LineNr">241 </span> <span class="Delimiter">}</span> <span id="L242" class="LineNr">242 </span> <span class="muComment"># 'and' is like a function for macroexpansion purposes</span> @@ -243,7 +243,7 @@ if ('onhashchange' in window) { <span id="L261" class="LineNr">261 </span> <span class="Delimiter">{</span> <span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> definition-car-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get definition, left <span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> definition-car/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *definition-car-ah -<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> macro?/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1443'>litmac?</a> definition-car +<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> macro?/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1468'>litmac?</a> definition-car <span id="L265" class="LineNr">265 </span> compare macro?, <span class="Constant">0</span>/false <span id="L266" class="LineNr">266 </span> <span class="Delimiter">}</span> <span id="L267" class="LineNr">267 </span> <span class="PreProc">break-if-=</span> @@ -253,7 +253,7 @@ if ('onhashchange' in window) { <span id="L271" class="LineNr">271 </span><span class="CommentedCode">#? turn-on-debug-print</span> <span id="L272" class="LineNr">272 </span> <a href='evaluate.mu.html#L655'>apply</a> macro-definition-ah, rest-ah, expr-ah, globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L273" class="LineNr">273 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L274" class="Folded">274 </span><span class="Folded">+-- 15 lines: # trace "1=> " _expr-ah ---------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L274" class="Folded">274 </span><span class="Folded">+-- 15 lines: # trace "1=> " _expr-ah --------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L289" class="LineNr">289 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L290" class="LineNr">290 </span> <span class="Delimiter">}</span> <span id="L291" class="LineNr">291 </span> <span class="muComment"># no macro found; process any macros within args</span> @@ -269,8 +269,8 @@ if ('onhashchange' in window) { <span id="L301" class="LineNr">301 </span> <span class="PreProc">break-if-!=</span> <span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah <span id="L303" class="LineNr">303 </span> <span class="Delimiter">{</span> -<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest -<span id="L305" class="LineNr">305 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false +<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L305" class="LineNr">305 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false <span id="L306" class="LineNr">306 </span> <span class="Delimiter">}</span> <span id="L307" class="LineNr">307 </span> <span class="PreProc">break-if-!=</span> <span id="L308" class="LineNr">308 </span> curr-ah <span class="Special"><-</span> get rest, left @@ -278,7 +278,7 @@ if ('onhashchange' in window) { <span id="L310" class="LineNr">310 </span> <span class="PreProc">loop</span> <span id="L311" class="LineNr">311 </span> <span class="Delimiter">}</span> <span id="L312" class="LineNr">312 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L313" class="Folded">313 </span><span class="Folded">+-- 15 lines: # trace "=> " _expr-ah ----------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L313" class="Folded">313 </span><span class="Folded">+-- 15 lines: # trace "=> " _expr-ah ---------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L328" class="LineNr">328 </span> <span class="PreProc">return</span> result <span id="L329" class="LineNr">329 </span><span class="Delimiter">}</span> <span id="L330" class="LineNr">330 </span> @@ -287,8 +287,8 @@ if ('onhashchange' in window) { <span id="L333" class="LineNr">333 </span> <span class="PreProc">var</span> expr-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _expr-ah <span id="L334" class="LineNr">334 </span> <span class="PreProc">var</span> expr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *expr-ah <span id="L335" class="LineNr">335 </span> <span class="Delimiter">{</span> -<span id="L336" class="LineNr">336 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> expr -<span id="L337" class="LineNr">337 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false +<span id="L336" class="LineNr">336 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> expr +<span id="L337" class="LineNr">337 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false <span id="L338" class="LineNr">338 </span> <span class="PreProc">break-if-=</span> <span id="L339" class="LineNr">339 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L340" class="LineNr">340 </span> <span class="Delimiter">}</span> diff --git a/html/shell/main.mu.html b/html/shell/main.mu.html index d6222803..45358c0f 100644 --- a/html/shell/main.mu.html +++ b/html/shell/main.mu.html @@ -1,31 +1,31 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/main.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } -.Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } .muRegEsi { color: #005faf; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/shell/parenthesize.mu.html b/html/shell/parenthesize.mu.html index 811c9420..f1da10a9 100644 --- a/html/shell/parenthesize.mu.html +++ b/html/shell/parenthesize.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/parenthesize.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,7 +16,8 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } @@ -27,12 +28,11 @@ a { color:inherit; } .muTest { color: #5f8700; } .muComment { color: #005faf; } .muS1Comment { color: #0000af; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/shell/parse.mu.html b/html/shell/parse.mu.html index 71dcd66c..c72752a7 100644 --- a/html/shell/parse.mu.html +++ b/html/shell/parse.mu.html @@ -1,34 +1,34 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/parse.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } .LineNr { } .muRegEsi { color: #005faf; } -.muComment { color: #005faf; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .Special { color: #ff6060; } +.muComment { color: #005faf; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -299,7 +299,7 @@ if ('onhashchange' in window) { <span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> nested-trace-storage: trace <span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> nested-trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address nested-trace-storage <span id="L239" class="LineNr">239 </span> <a href='trace.mu.html#L61'>initialize-trace</a> nested-trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L240" class="LineNr">240 </span> <a href='print.mu.html#L209'>print-number</a> out-addr, stream, nested-trace +<span id="L240" class="LineNr">240 </span> <a href='print.mu.html#L208'>print-number</a> out-addr, stream, nested-trace <span id="L241" class="LineNr">241 </span> trace trace, <span class="Constant">"parse"</span>, stream <span id="L242" class="LineNr">242 </span> <span class="Delimiter">}</span> <span id="L243" class="LineNr">243 </span> <span class="PreProc">return</span> diff --git a/html/shell/primitives.mu.html b/html/shell/primitives.mu.html index 1fd0cbd5..c7d3dcc8 100644 --- a/html/shell/primitives.mu.html +++ b/html/shell/primitives.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/primitives.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,22 +16,22 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -63,2114 +63,3373 @@ if ('onhashchange' in window) { <body onload='JumpToLine();'> <a href='https://github.com/akkartik/mu/blob/main/shell/primitives.mu'>https://github.com/akkartik/mu/blob/main/shell/primitives.mu</a> <pre id='vimCodeElement'> -<span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1'>initialize-primitives</a></span> _self: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Delimiter">{</span> -<span id="L2" class="LineNr"> 2 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _self -<span id="L3" class="LineNr"> 3 </span> <span class="muComment"># for numbers</span> -<span id="L4" class="LineNr"> 4 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"+"</span> -<span id="L5" class="LineNr"> 5 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"-"</span> -<span id="L6" class="LineNr"> 6 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"*"</span> -<span id="L7" class="LineNr"> 7 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"/"</span> -<span id="L8" class="LineNr"> 8 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"%"</span> -<span id="L9" class="LineNr"> 9 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"sqrt"</span> -<span id="L10" class="LineNr"> 10 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"abs"</span> -<span id="L11" class="LineNr"> 11 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"sgn"</span> -<span id="L12" class="LineNr"> 12 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"<"</span> -<span id="L13" class="LineNr"> 13 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">">"</span> -<span id="L14" class="LineNr"> 14 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"<="</span> -<span id="L15" class="LineNr"> 15 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">">="</span> -<span id="L16" class="LineNr"> 16 </span> <span class="muComment"># generic</span> -<span id="L17" class="LineNr"> 17 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"apply"</span> -<span id="L18" class="LineNr"> 18 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"="</span> -<span id="L19" class="LineNr"> 19 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"no"</span> -<span id="L20" class="LineNr"> 20 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"not"</span> -<span id="L21" class="LineNr"> 21 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"dbg"</span> -<span id="L22" class="LineNr"> 22 </span> <span class="muComment"># for pairs</span> -<span id="L23" class="LineNr"> 23 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"car"</span> -<span id="L24" class="LineNr"> 24 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"cdr"</span> -<span id="L25" class="LineNr"> 25 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"cons"</span> -<span id="L26" class="LineNr"> 26 </span> <span class="muComment"># for screens</span> -<span id="L27" class="LineNr"> 27 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"print"</span> -<span id="L28" class="LineNr"> 28 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"clear"</span> -<span id="L29" class="LineNr"> 29 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"lines"</span> -<span id="L30" class="LineNr"> 30 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"columns"</span> -<span id="L31" class="LineNr"> 31 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"up"</span> -<span id="L32" class="LineNr"> 32 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"down"</span> -<span id="L33" class="LineNr"> 33 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"left"</span> -<span id="L34" class="LineNr"> 34 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"right"</span> -<span id="L35" class="LineNr"> 35 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"cr"</span> -<span id="L36" class="LineNr"> 36 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"pixel"</span> -<span id="L37" class="LineNr"> 37 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"width"</span> -<span id="L38" class="LineNr"> 38 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"height"</span> -<span id="L39" class="LineNr"> 39 </span> <span class="muComment"># for keyboards</span> -<span id="L40" class="LineNr"> 40 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"key"</span> -<span id="L41" class="LineNr"> 41 </span> <span class="muComment"># for streams</span> -<span id="L42" class="LineNr"> 42 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"stream"</span> -<span id="L43" class="LineNr"> 43 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"write"</span> -<span id="L44" class="LineNr"> 44 </span> <span class="muComment"># misc</span> -<span id="L45" class="LineNr"> 45 </span> <a href='primitives.mu.html#L131'>append-primitive</a> self, <span class="Constant">"abort"</span> -<span id="L46" class="LineNr"> 46 </span> <span class="muComment"># keep sync'd with render-primitives</span> -<span id="L47" class="LineNr"> 47 </span><span class="Delimiter">}</span> -<span id="L48" class="LineNr"> 48 </span> -<span id="L49" class="LineNr"> 49 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L49'>render-primitives</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), xmin: int, xmax: int, ymax: int <span class="Delimiter">{</span> -<span id="L50" class="LineNr"> 50 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymax -<span id="L51" class="LineNr"> 51 </span> y <span class="Special"><-</span> subtract <span class="Constant">0x10</span> -<span id="L52" class="LineNr"> 52 </span> <a href='../500fake-screen.mu.html#L353'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, y, xmax, ymax, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L53" class="LineNr"> 53 </span> y <span class="Special"><-</span> increment -<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L55" class="LineNr"> 55 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"cursor graphics"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L56" class="LineNr"> 56 </span> y <span class="Special"><-</span> increment -<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L58" class="LineNr"> 58 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" print"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L59" class="LineNr"> 59 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> a -> a"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L60" class="LineNr"> 60 </span> y <span class="Special"><-</span> increment -<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L62" class="LineNr"> 62 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" lines columns"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L63" class="LineNr"> 63 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> -> number"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L64" class="LineNr"> 64 </span> y <span class="Special"><-</span> increment -<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L66" class="LineNr"> 66 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" up down left right"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L67" class="LineNr"> 67 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": screen"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Primitives are functions that are implemented directly in Mu.</span> +<span id="L2" class="LineNr"> 2 </span><span class="muComment"># They always evaluate all their arguments.</span> +<span id="L3" class="LineNr"> 3 </span> +<span id="L4" class="LineNr"> 4 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L4'>initialize-primitives</a></span> _self: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Delimiter">{</span> +<span id="L5" class="LineNr"> 5 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _self +<span id="L6" class="LineNr"> 6 </span> <span class="muComment"># for numbers</span> +<span id="L7" class="LineNr"> 7 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"+"</span> +<span id="L8" class="LineNr"> 8 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"-"</span> +<span id="L9" class="LineNr"> 9 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"*"</span> +<span id="L10" class="LineNr"> 10 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"/"</span> +<span id="L11" class="LineNr"> 11 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"%"</span> +<span id="L12" class="LineNr"> 12 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"sqrt"</span> +<span id="L13" class="LineNr"> 13 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"abs"</span> +<span id="L14" class="LineNr"> 14 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"sgn"</span> +<span id="L15" class="LineNr"> 15 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"<"</span> +<span id="L16" class="LineNr"> 16 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">">"</span> +<span id="L17" class="LineNr"> 17 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"<="</span> +<span id="L18" class="LineNr"> 18 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">">="</span> +<span id="L19" class="LineNr"> 19 </span> <span class="muComment"># generic</span> +<span id="L20" class="LineNr"> 20 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"apply"</span> +<span id="L21" class="LineNr"> 21 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"="</span> +<span id="L22" class="LineNr"> 22 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"no"</span> +<span id="L23" class="LineNr"> 23 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"not"</span> +<span id="L24" class="LineNr"> 24 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"dbg"</span> +<span id="L25" class="LineNr"> 25 </span> <span class="muComment"># for pairs</span> +<span id="L26" class="LineNr"> 26 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"car"</span> +<span id="L27" class="LineNr"> 27 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"cdr"</span> +<span id="L28" class="LineNr"> 28 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"cons"</span> +<span id="L29" class="LineNr"> 29 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"cons?"</span> +<span id="L30" class="LineNr"> 30 </span> <span class="muComment"># for screens</span> +<span id="L31" class="LineNr"> 31 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"print"</span> +<span id="L32" class="LineNr"> 32 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"clear"</span> +<span id="L33" class="LineNr"> 33 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"lines"</span> +<span id="L34" class="LineNr"> 34 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"columns"</span> +<span id="L35" class="LineNr"> 35 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"up"</span> +<span id="L36" class="LineNr"> 36 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"down"</span> +<span id="L37" class="LineNr"> 37 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"left"</span> +<span id="L38" class="LineNr"> 38 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"right"</span> +<span id="L39" class="LineNr"> 39 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"cr"</span> +<span id="L40" class="LineNr"> 40 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"pixel"</span> +<span id="L41" class="LineNr"> 41 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"line"</span> +<span id="L42" class="LineNr"> 42 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"hline"</span> +<span id="L43" class="LineNr"> 43 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"vline"</span> +<span id="L44" class="LineNr"> 44 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"circle"</span> +<span id="L45" class="LineNr"> 45 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"bezier"</span> +<span id="L46" class="LineNr"> 46 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"width"</span> +<span id="L47" class="LineNr"> 47 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"height"</span> +<span id="L48" class="LineNr"> 48 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"new_screen"</span> +<span id="L49" class="LineNr"> 49 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"blit"</span> +<span id="L50" class="LineNr"> 50 </span> <span class="muComment"># for keyboards</span> +<span id="L51" class="LineNr"> 51 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"key"</span> +<span id="L52" class="LineNr"> 52 </span> <span class="muComment"># for streams</span> +<span id="L53" class="LineNr"> 53 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"stream"</span> +<span id="L54" class="LineNr"> 54 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"write"</span> +<span id="L55" class="LineNr"> 55 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"read"</span> +<span id="L56" class="LineNr"> 56 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"rewind"</span> +<span id="L57" class="LineNr"> 57 </span> <span class="muComment"># misc</span> +<span id="L58" class="LineNr"> 58 </span> <a href='primitives.mu.html#L191'>append-primitive</a> self, <span class="Constant">"abort"</span> +<span id="L59" class="LineNr"> 59 </span> <span class="muComment"># keep sync'd with render-primitives</span> +<span id="L60" class="LineNr"> 60 </span><span class="Delimiter">}</span> +<span id="L61" class="LineNr"> 61 </span> +<span id="L62" class="LineNr"> 62 </span><span class="muComment"># Slightly misnamed; renders primitives as well as special forms that don't</span> +<span id="L63" class="LineNr"> 63 </span><span class="muComment"># evaluate all their arguments.</span> +<span id="L64" class="LineNr"> 64 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L64'>render-primitives</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), xmin: int, xmax: int, ymax: int <span class="Delimiter">{</span> +<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy ymax +<span id="L66" class="LineNr"> 66 </span> y <span class="Special"><-</span> subtract <span class="Constant">0x11</span>/primitives-border +<span id="L67" class="LineNr"> 67 </span> <a href='../500fake-screen.mu.html#L353'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, y, xmax, ymax, <span class="Constant">0xdc</span>/bg=green-bg <span id="L68" class="LineNr"> 68 </span> y <span class="Special"><-</span> increment -<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L70" class="LineNr"> 70 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" cr"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L71" class="LineNr"> 71 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> "</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L72" class="LineNr"> 72 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"# move cursor down and to left margin"</span>, tmpx, xmax, y, <span class="Constant">0x38</span>/fg=trace, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> right-min/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy xmax +<span id="L70" class="LineNr"> 70 </span> right-min <span class="Special"><-</span> subtract <span class="Constant">0x1e</span>/primitives-divider +<span id="L71" class="LineNr"> 71 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y +<span id="L72" class="LineNr"> 72 </span> <a href='../501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"primitives"</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L73" class="LineNr"> 73 </span> y <span class="Special"><-</span> increment -<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L75" class="LineNr"> 75 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"pixel graphics"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L74" class="LineNr"> 74 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y +<span id="L75" class="LineNr"> 75 </span> <a href='../501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"fn <a href='evaluate.mu.html#L655'>apply</a> set if while"</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg <span id="L76" class="LineNr"> 76 </span> y <span class="Special"><-</span> increment -<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L78" class="LineNr"> 78 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" width height"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L79" class="LineNr"> 79 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> -> number"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L80" class="LineNr"> 80 </span> y <span class="Special"><-</span> increment -<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L82" class="LineNr"> 82 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" pixel"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L83" class="LineNr"> 83 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> x y color"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L84" class="LineNr"> 84 </span> y <span class="Special"><-</span> increment -<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L86" class="LineNr"> 86 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"screen/keyboard"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L87" class="LineNr"> 87 </span> y <span class="Special"><-</span> increment -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L89" class="LineNr"> 89 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" clear"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L90" class="LineNr"> 90 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": screen"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L77" class="LineNr"> 77 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y +<span id="L78" class="LineNr"> 78 </span> <a href='../501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"booleans"</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L79" class="LineNr"> 79 </span> y <span class="Special"><-</span> increment +<span id="L80" class="LineNr"> 80 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y +<span id="L81" class="LineNr"> 81 </span> <a href='../501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"= and or not"</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L82" class="LineNr"> 82 </span> y <span class="Special"><-</span> increment +<span id="L83" class="LineNr"> 83 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y +<span id="L84" class="LineNr"> 84 </span> <a href='../501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"lists"</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L85" class="LineNr"> 85 </span> y <span class="Special"><-</span> increment +<span id="L86" class="LineNr"> 86 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y +<span id="L87" class="LineNr"> 87 </span> <a href='../501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"cons <a href='evaluate.mu.html#L1189'>car</a> <a href='evaluate.mu.html#L1217'>cdr</a> no cons?"</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L88" class="LineNr"> 88 </span> y <span class="Special"><-</span> increment +<span id="L89" class="LineNr"> 89 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y +<span id="L90" class="LineNr"> 90 </span> <a href='../501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"numbers"</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg <span id="L91" class="LineNr"> 91 </span> y <span class="Special"><-</span> increment -<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L93" class="LineNr"> 93 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" key"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L94" class="LineNr"> 94 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": () -> grapheme?"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L95" class="LineNr"> 95 </span> y <span class="Special"><-</span> increment -<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L97" class="LineNr"> 97 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"streams"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L98" class="LineNr"> 98 </span> y <span class="Special"><-</span> increment -<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L100" class="LineNr"> 100 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" stream"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L101" class="LineNr"> 101 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": () -> stream "</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L102" class="LineNr"> 102 </span> y <span class="Special"><-</span> increment -<span id="L103" class="LineNr"> 103 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L104" class="LineNr"> 104 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" write"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L105" class="LineNr"> 105 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": stream grapheme -> stream"</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L106" class="LineNr"> 106 </span> y <span class="Special"><-</span> increment -<span id="L107" class="LineNr"> 107 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin -<span id="L108" class="LineNr"> 108 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"fn <a href='evaluate.mu.html#L655'>apply</a> set if while cons <a href='evaluate.mu.html#L1189'>car</a> <a href='evaluate.mu.html#L1217'>cdr</a> no not and or = "</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L109" class="LineNr"> 109 </span> <span class="muComment"># numbers</span> -<span id="L110" class="LineNr"> 110 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"< > <= >= + - * / % sqrt <a href='../506math.mu.html#L1'>abs</a> sgn"</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg -<span id="L111" class="LineNr"> 111 </span><span class="Delimiter">}</span> -<span id="L112" class="LineNr"> 112 </span> -<span id="L113" class="LineNr"> 113 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L113'>primitive-global?</a></span> _x: (addr <a href='global.mu.html#L7'>global</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L114" class="LineNr"> 114 </span> <span class="PreProc">var</span> x/eax: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> copy _x -<span id="L115" class="LineNr"> 115 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, value -<span id="L116" class="LineNr"> 116 </span> <span class="PreProc">var</span> value/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah -<span id="L117" class="LineNr"> 117 </span> compare value, <span class="Constant">0</span>/null -<span id="L118" class="LineNr"> 118 </span> <span class="Delimiter">{</span> -<span id="L119" class="LineNr"> 119 </span> <span class="PreProc">break-if-!=</span> -<span id="L120" class="LineNr"> 120 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L121" class="LineNr"> 121 </span> <span class="Delimiter">}</span> -<span id="L122" class="LineNr"> 122 </span> <span class="PreProc">var</span> value-type/eax: (addr int) <span class="Special"><-</span> get value, <span class="PreProc">type</span> -<span id="L123" class="LineNr"> 123 </span> compare *value-type, <span class="Constant">4</span>/primitive -<span id="L124" class="LineNr"> 124 </span> <span class="Delimiter">{</span> -<span id="L125" class="LineNr"> 125 </span> <span class="PreProc">break-if-=</span> -<span id="L126" class="LineNr"> 126 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L127" class="LineNr"> 127 </span> <span class="Delimiter">}</span> -<span id="L128" class="LineNr"> 128 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true -<span id="L129" class="LineNr"> 129 </span><span class="Delimiter">}</span> -<span id="L130" class="LineNr"> 130 </span> -<span id="L131" class="LineNr"> 131 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L131'>append-primitive</a></span> _self: (addr <a href='global.mu.html#L1'>global-table</a>), name: (addr array byte) <span class="Delimiter">{</span> -<span id="L132" class="LineNr"> 132 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _self -<span id="L133" class="LineNr"> 133 </span> compare self, <span class="Constant">0</span> -<span id="L134" class="LineNr"> 134 </span> <span class="Delimiter">{</span> -<span id="L135" class="LineNr"> 135 </span> <span class="PreProc">break-if-!=</span> -<span id="L136" class="LineNr"> 136 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"append primitive"</span> -<span id="L137" class="LineNr"> 137 </span> <span class="PreProc">return</span> -<span id="L138" class="LineNr"> 138 </span> <span class="Delimiter">}</span> -<span id="L139" class="LineNr"> 139 </span> <span class="PreProc">var</span> final-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, final-index -<span id="L140" class="LineNr"> 140 </span> increment *final-index-addr -<span id="L141" class="LineNr"> 141 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *final-index-addr -<span id="L142" class="LineNr"> 142 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data -<span id="L143" class="LineNr"> 143 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L144" class="LineNr"> 144 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEsi">esi</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, curr-index -<span id="L145" class="LineNr"> 145 </span> <span class="PreProc">var</span> curr/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, curr-offset -<span id="L146" class="LineNr"> 146 </span> <span class="PreProc">var</span> curr-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, name -<span id="L147" class="LineNr"> 147 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> name, curr-name-ah -<span id="L148" class="LineNr"> 148 </span> <span class="PreProc">var</span> curr-value-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value -<span id="L149" class="LineNr"> 149 </span> <a href='cell.mu.html#L141'>new-primitive-function</a> curr-value-ah, curr-index -<span id="L150" class="LineNr"> 150 </span><span class="Delimiter">}</span> -<span id="L151" class="LineNr"> 151 </span> -<span id="L152" class="LineNr"> 152 </span><span class="muComment"># a little strange; goes from value to name and selects primitive based on name</span> -<span id="L153" class="LineNr"> 153 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L153'>apply-primitive</a></span> _f: (addr <a href='cell.mu.html#L1'>cell</a>), args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), _globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L154" class="LineNr"> 154 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _f -<span id="L155" class="LineNr"> 155 </span> <span class="PreProc">var</span> f-index-a/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get f, index-data -<span id="L156" class="LineNr"> 156 </span> <span class="PreProc">var</span> f-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *f-index-a -<span id="L157" class="LineNr"> 157 </span> <span class="PreProc">var</span> globals/eax: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _globals -<span id="L158" class="LineNr"> 158 </span> compare globals, <span class="Constant">0</span> -<span id="L159" class="LineNr"> 159 </span> <span class="Delimiter">{</span> -<span id="L160" class="LineNr"> 160 </span> <span class="PreProc">break-if-!=</span> -<span id="L161" class="LineNr"> 161 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"apply primitive"</span> -<span id="L162" class="LineNr"> 162 </span> <span class="PreProc">return</span> -<span id="L163" class="LineNr"> 163 </span> <span class="Delimiter">}</span> -<span id="L164" class="LineNr"> 164 </span> <span class="PreProc">var</span> global-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data -<span id="L165" class="LineNr"> 165 </span> <span class="PreProc">var</span> global-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah -<span id="L166" class="LineNr"> 166 </span> <span class="PreProc">var</span> f-offset/<span class="muRegEcx">ecx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset global-data, f-index -<span id="L167" class="LineNr"> 167 </span> <span class="PreProc">var</span> f-value/<span class="muRegEcx">ecx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index global-data, f-offset -<span id="L168" class="LineNr"> 168 </span> <span class="PreProc">var</span> f-name-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> get f-value, name -<span id="L169" class="LineNr"> 169 </span> <span class="PreProc">var</span> f-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *f-name-ah -<span id="L170" class="LineNr"> 170 </span> <span class="Delimiter">{</span> -<span id="L171" class="LineNr"> 171 </span> <span class="PreProc">var</span> add?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"+"</span> -<span id="L172" class="LineNr"> 172 </span> compare add?, <span class="Constant">0</span>/false -<span id="L173" class="LineNr"> 173 </span> <span class="PreProc">break-if-=</span> -<span id="L174" class="LineNr"> 174 </span> <a href='primitives.mu.html#L424'>apply-add</a> args-ah, out, trace -<span id="L175" class="LineNr"> 175 </span> <span class="PreProc">return</span> -<span id="L176" class="LineNr"> 176 </span> <span class="Delimiter">}</span> -<span id="L177" class="LineNr"> 177 </span> <span class="Delimiter">{</span> -<span id="L178" class="LineNr"> 178 </span> <span class="PreProc">var</span> subtract?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"-"</span> -<span id="L179" class="LineNr"> 179 </span> compare subtract?, <span class="Constant">0</span>/false -<span id="L180" class="LineNr"> 180 </span> <span class="PreProc">break-if-=</span> -<span id="L181" class="LineNr"> 181 </span> <a href='primitives.mu.html#L516'>apply-subtract</a> args-ah, out, trace -<span id="L182" class="LineNr"> 182 </span> <span class="PreProc">return</span> -<span id="L183" class="LineNr"> 183 </span> <span class="Delimiter">}</span> -<span id="L184" class="LineNr"> 184 </span> <span class="Delimiter">{</span> -<span id="L185" class="LineNr"> 185 </span> <span class="PreProc">var</span> multiply?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"*"</span> -<span id="L186" class="LineNr"> 186 </span> compare multiply?, <span class="Constant">0</span>/false -<span id="L187" class="LineNr"> 187 </span> <span class="PreProc">break-if-=</span> -<span id="L188" class="LineNr"> 188 </span> <a href='primitives.mu.html#L579'>apply-multiply</a> args-ah, out, trace -<span id="L189" class="LineNr"> 189 </span> <span class="PreProc">return</span> -<span id="L190" class="LineNr"> 190 </span> <span class="Delimiter">}</span> -<span id="L191" class="LineNr"> 191 </span> <span class="Delimiter">{</span> -<span id="L192" class="LineNr"> 192 </span> <span class="PreProc">var</span> divide?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"/"</span> -<span id="L193" class="LineNr"> 193 </span> compare divide?, <span class="Constant">0</span>/false -<span id="L194" class="LineNr"> 194 </span> <span class="PreProc">break-if-=</span> -<span id="L195" class="LineNr"> 195 </span> <a href='primitives.mu.html#L642'>apply-divide</a> args-ah, out, trace -<span id="L196" class="LineNr"> 196 </span> <span class="PreProc">return</span> -<span id="L197" class="LineNr"> 197 </span> <span class="Delimiter">}</span> -<span id="L198" class="LineNr"> 198 </span> <span class="muComment"># '%' is the remainder operator, because modulo isn't really meaningful for</span> -<span id="L199" class="LineNr"> 199 </span> <span class="muComment"># non-integers</span> -<span id="L200" class="LineNr"> 200 </span> <span class="muComment">#</span> -<span id="L201" class="LineNr"> 201 </span> <span class="muComment"># I considered calling this operator 'rem', but I want to follow Arc in</span> -<span id="L202" class="LineNr"> 202 </span> <span class="muComment"># using 'rem' for filtering out elements from lists.</span> -<span id="L203" class="LineNr"> 203 </span> <span class="muComment"># <a href="https://arclanguage.github.io/ref/list.html#rem">https://arclanguage.github.io/ref/list.html#rem</a></span> -<span id="L204" class="LineNr"> 204 </span> <span class="Delimiter">{</span> -<span id="L205" class="LineNr"> 205 </span> <span class="PreProc">var</span> remainder?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"%"</span> -<span id="L206" class="LineNr"> 206 </span> compare remainder?, <span class="Constant">0</span>/false -<span id="L207" class="LineNr"> 207 </span> <span class="PreProc">break-if-=</span> -<span id="L208" class="LineNr"> 208 </span> <a href='primitives.mu.html#L705'>apply-remainder</a> args-ah, out, trace -<span id="L209" class="LineNr"> 209 </span> <span class="PreProc">return</span> -<span id="L210" class="LineNr"> 210 </span> <span class="Delimiter">}</span> -<span id="L211" class="LineNr"> 211 </span> <span class="Delimiter">{</span> -<span id="L212" class="LineNr"> 212 </span> <span class="PreProc">var</span> square-root?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"sqrt"</span> -<span id="L213" class="LineNr"> 213 </span> compare square-root?, <span class="Constant">0</span>/false -<span id="L214" class="LineNr"> 214 </span> <span class="PreProc">break-if-=</span> -<span id="L215" class="LineNr"> 215 </span> <a href='primitives.mu.html#L774'>apply-square-root</a> args-ah, out, trace -<span id="L216" class="LineNr"> 216 </span> <span class="PreProc">return</span> -<span id="L217" class="LineNr"> 217 </span> <span class="Delimiter">}</span> -<span id="L218" class="LineNr"> 218 </span> <span class="Delimiter">{</span> -<span id="L219" class="LineNr"> 219 </span> <span class="PreProc">var</span> abs?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"abs"</span> -<span id="L220" class="LineNr"> 220 </span> compare abs?, <span class="Constant">0</span>/false -<span id="L221" class="LineNr"> 221 </span> <span class="PreProc">break-if-=</span> -<span id="L222" class="LineNr"> 222 </span> <a href='primitives.mu.html#L809'>apply-abs</a> args-ah, out, trace -<span id="L223" class="LineNr"> 223 </span> <span class="PreProc">return</span> -<span id="L224" class="LineNr"> 224 </span> <span class="Delimiter">}</span> -<span id="L225" class="LineNr"> 225 </span> <span class="Delimiter">{</span> -<span id="L226" class="LineNr"> 226 </span> <span class="PreProc">var</span> sgn?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"sgn"</span> -<span id="L227" class="LineNr"> 227 </span> compare sgn?, <span class="Constant">0</span>/false -<span id="L228" class="LineNr"> 228 </span> <span class="PreProc">break-if-=</span> -<span id="L229" class="LineNr"> 229 </span> <a href='primitives.mu.html#L852'>apply-sgn</a> args-ah, out, trace -<span id="L230" class="LineNr"> 230 </span> <span class="PreProc">return</span> -<span id="L231" class="LineNr"> 231 </span> <span class="Delimiter">}</span> -<span id="L232" class="LineNr"> 232 </span> <span class="Delimiter">{</span> -<span id="L233" class="LineNr"> 233 </span> <span class="PreProc">var</span> car?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"car"</span> -<span id="L234" class="LineNr"> 234 </span> compare car?, <span class="Constant">0</span>/false -<span id="L235" class="LineNr"> 235 </span> <span class="PreProc">break-if-=</span> -<span id="L236" class="LineNr"> 236 </span> <a href='primitives.mu.html#L904'>apply-car</a> args-ah, out, trace -<span id="L237" class="LineNr"> 237 </span> <span class="PreProc">return</span> -<span id="L238" class="LineNr"> 238 </span> <span class="Delimiter">}</span> -<span id="L239" class="LineNr"> 239 </span> <span class="Delimiter">{</span> -<span id="L240" class="LineNr"> 240 </span> <span class="PreProc">var</span> cdr?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cdr"</span> -<span id="L241" class="LineNr"> 241 </span> compare cdr?, <span class="Constant">0</span>/false -<span id="L242" class="LineNr"> 242 </span> <span class="PreProc">break-if-=</span> -<span id="L243" class="LineNr"> 243 </span> <a href='primitives.mu.html#L946'>apply-cdr</a> args-ah, out, trace -<span id="L244" class="LineNr"> 244 </span> <span class="PreProc">return</span> -<span id="L245" class="LineNr"> 245 </span> <span class="Delimiter">}</span> -<span id="L246" class="LineNr"> 246 </span> <span class="Delimiter">{</span> -<span id="L247" class="LineNr"> 247 </span> <span class="PreProc">var</span> cons?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cons"</span> -<span id="L248" class="LineNr"> 248 </span> compare cons?, <span class="Constant">0</span>/false -<span id="L249" class="LineNr"> 249 </span> <span class="PreProc">break-if-=</span> -<span id="L250" class="LineNr"> 250 </span> <a href='primitives.mu.html#L988'>apply-cons</a> args-ah, out, trace -<span id="L251" class="LineNr"> 251 </span> <span class="PreProc">return</span> -<span id="L252" class="LineNr"> 252 </span> <span class="Delimiter">}</span> -<span id="L253" class="LineNr"> 253 </span> <span class="Delimiter">{</span> -<span id="L254" class="LineNr"> 254 </span> <span class="PreProc">var</span> structurally-equal?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"="</span> -<span id="L255" class="LineNr"> 255 </span> compare structurally-equal?, <span class="Constant">0</span>/false -<span id="L256" class="LineNr"> 256 </span> <span class="PreProc">break-if-=</span> -<span id="L257" class="LineNr"> 257 </span> <a href='primitives.mu.html#L1031'>apply-structurally-equal</a> args-ah, out, trace -<span id="L258" class="LineNr"> 258 </span> <span class="PreProc">return</span> -<span id="L259" class="LineNr"> 259 </span> <span class="Delimiter">}</span> -<span id="L260" class="LineNr"> 260 </span> <span class="Delimiter">{</span> -<span id="L261" class="LineNr"> 261 </span> <span class="PreProc">var</span> not?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"no"</span> -<span id="L262" class="LineNr"> 262 </span> compare not?, <span class="Constant">0</span>/false -<span id="L263" class="LineNr"> 263 </span> <span class="PreProc">break-if-=</span> -<span id="L264" class="LineNr"> 264 </span> <a href='primitives.mu.html#L1084'>apply-not</a> args-ah, out, trace -<span id="L265" class="LineNr"> 265 </span> <span class="PreProc">return</span> -<span id="L266" class="LineNr"> 266 </span> <span class="Delimiter">}</span> -<span id="L267" class="LineNr"> 267 </span> <span class="Delimiter">{</span> -<span id="L268" class="LineNr"> 268 </span> <span class="PreProc">var</span> not?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"not"</span> -<span id="L269" class="LineNr"> 269 </span> compare not?, <span class="Constant">0</span>/false -<span id="L270" class="LineNr"> 270 </span> <span class="PreProc">break-if-=</span> -<span id="L271" class="LineNr"> 271 </span> <a href='primitives.mu.html#L1084'>apply-not</a> args-ah, out, trace -<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">return</span> -<span id="L273" class="LineNr"> 273 </span> <span class="Delimiter">}</span> -<span id="L274" class="LineNr"> 274 </span> <span class="Delimiter">{</span> -<span id="L275" class="LineNr"> 275 </span> <span class="PreProc">var</span> debug?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"dbg"</span> -<span id="L276" class="LineNr"> 276 </span> compare debug?, <span class="Constant">0</span>/false -<span id="L277" class="LineNr"> 277 </span> <span class="PreProc">break-if-=</span> -<span id="L278" class="LineNr"> 278 </span> <a href='primitives.mu.html#L1117'>apply-debug</a> args-ah, out, trace -<span id="L279" class="LineNr"> 279 </span> <span class="PreProc">return</span> -<span id="L280" class="LineNr"> 280 </span> <span class="Delimiter">}</span> -<span id="L281" class="LineNr"> 281 </span> <span class="Delimiter">{</span> -<span id="L282" class="LineNr"> 282 </span> <span class="PreProc">var</span> lesser?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"<"</span> -<span id="L283" class="LineNr"> 283 </span> compare lesser?, <span class="Constant">0</span>/false -<span id="L284" class="LineNr"> 284 </span> <span class="PreProc">break-if-=</span> -<span id="L285" class="LineNr"> 285 </span> <a href='primitives.mu.html#L1147'>apply-<</a> args-ah, out, trace -<span id="L286" class="LineNr"> 286 </span> <span class="PreProc">return</span> -<span id="L287" class="LineNr"> 287 </span> <span class="Delimiter">}</span> -<span id="L288" class="LineNr"> 288 </span> <span class="Delimiter">{</span> -<span id="L289" class="LineNr"> 289 </span> <span class="PreProc">var</span> greater?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">">"</span> -<span id="L290" class="LineNr"> 290 </span> compare greater?, <span class="Constant">0</span>/false -<span id="L291" class="LineNr"> 291 </span> <span class="PreProc">break-if-=</span> -<span id="L292" class="LineNr"> 292 </span> <a href='primitives.mu.html#L1216'>apply-></a> args-ah, out, trace -<span id="L293" class="LineNr"> 293 </span> <span class="PreProc">return</span> -<span id="L294" class="LineNr"> 294 </span> <span class="Delimiter">}</span> -<span id="L295" class="LineNr"> 295 </span> <span class="Delimiter">{</span> -<span id="L296" class="LineNr"> 296 </span> <span class="PreProc">var</span> lesser-or-equal?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"<="</span> -<span id="L297" class="LineNr"> 297 </span> compare lesser-or-equal?, <span class="Constant">0</span>/false -<span id="L298" class="LineNr"> 298 </span> <span class="PreProc">break-if-=</span> -<span id="L299" class="LineNr"> 299 </span> <a href='primitives.mu.html#L1285'>apply-<=</a> args-ah, out, trace -<span id="L300" class="LineNr"> 300 </span> <span class="PreProc">return</span> -<span id="L301" class="LineNr"> 301 </span> <span class="Delimiter">}</span> -<span id="L302" class="LineNr"> 302 </span> <span class="Delimiter">{</span> -<span id="L303" class="LineNr"> 303 </span> <span class="PreProc">var</span> greater-or-equal?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">">="</span> -<span id="L304" class="LineNr"> 304 </span> compare greater-or-equal?, <span class="Constant">0</span>/false -<span id="L305" class="LineNr"> 305 </span> <span class="PreProc">break-if-=</span> -<span id="L306" class="LineNr"> 306 </span> <a href='primitives.mu.html#L1354'>apply->=</a> args-ah, out, trace -<span id="L307" class="LineNr"> 307 </span> <span class="PreProc">return</span> -<span id="L308" class="LineNr"> 308 </span> <span class="Delimiter">}</span> -<span id="L309" class="LineNr"> 309 </span> <span class="Delimiter">{</span> -<span id="L310" class="LineNr"> 310 </span> <span class="PreProc">var</span> print?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"print"</span> -<span id="L311" class="LineNr"> 311 </span> compare print?, <span class="Constant">0</span>/false -<span id="L312" class="LineNr"> 312 </span> <span class="PreProc">break-if-=</span> -<span id="L313" class="LineNr"> 313 </span> <a href='primitives.mu.html#L1423'>apply-print</a> args-ah, out, trace -<span id="L314" class="LineNr"> 314 </span> <span class="PreProc">return</span> -<span id="L315" class="LineNr"> 315 </span> <span class="Delimiter">}</span> -<span id="L316" class="LineNr"> 316 </span> <span class="Delimiter">{</span> -<span id="L317" class="LineNr"> 317 </span> <span class="PreProc">var</span> clear?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"clear"</span> -<span id="L318" class="LineNr"> 318 </span> compare clear?, <span class="Constant">0</span>/false -<span id="L319" class="LineNr"> 319 </span> <span class="PreProc">break-if-=</span> -<span id="L320" class="LineNr"> 320 </span> <a href='primitives.mu.html#L1481'>apply-clear</a> args-ah, out, trace -<span id="L321" class="LineNr"> 321 </span> <span class="PreProc">return</span> -<span id="L322" class="LineNr"> 322 </span> <span class="Delimiter">}</span> -<span id="L323" class="LineNr"> 323 </span> <span class="Delimiter">{</span> -<span id="L324" class="LineNr"> 324 </span> <span class="PreProc">var</span> lines?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"lines"</span> -<span id="L325" class="LineNr"> 325 </span> compare lines?, <span class="Constant">0</span>/false -<span id="L326" class="LineNr"> 326 </span> <span class="PreProc">break-if-=</span> -<span id="L327" class="LineNr"> 327 </span> <a href='primitives.mu.html#L1944'>apply-lines</a> args-ah, out, trace -<span id="L328" class="LineNr"> 328 </span> <span class="PreProc">return</span> -<span id="L329" class="LineNr"> 329 </span> <span class="Delimiter">}</span> -<span id="L330" class="LineNr"> 330 </span> <span class="Delimiter">{</span> -<span id="L331" class="LineNr"> 331 </span> <span class="PreProc">var</span> columns?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"columns"</span> -<span id="L332" class="LineNr"> 332 </span> compare columns?, <span class="Constant">0</span>/false -<span id="L333" class="LineNr"> 333 </span> <span class="PreProc">break-if-=</span> -<span id="L334" class="LineNr"> 334 </span> <a href='primitives.mu.html#L1988'>apply-columns</a> args-ah, out, trace -<span id="L335" class="LineNr"> 335 </span> <span class="PreProc">return</span> -<span id="L336" class="LineNr"> 336 </span> <span class="Delimiter">}</span> -<span id="L337" class="LineNr"> 337 </span> <span class="Delimiter">{</span> -<span id="L338" class="LineNr"> 338 </span> <span class="PreProc">var</span> up?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"up"</span> -<span id="L339" class="LineNr"> 339 </span> compare up?, <span class="Constant">0</span>/false -<span id="L340" class="LineNr"> 340 </span> <span class="PreProc">break-if-=</span> -<span id="L341" class="LineNr"> 341 </span> <a href='primitives.mu.html#L1517'>apply-up</a> args-ah, out, trace -<span id="L342" class="LineNr"> 342 </span> <span class="PreProc">return</span> -<span id="L343" class="LineNr"> 343 </span> <span class="Delimiter">}</span> -<span id="L344" class="LineNr"> 344 </span> <span class="Delimiter">{</span> -<span id="L345" class="LineNr"> 345 </span> <span class="PreProc">var</span> down?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"down"</span> -<span id="L346" class="LineNr"> 346 </span> compare down?, <span class="Constant">0</span>/false -<span id="L347" class="LineNr"> 347 </span> <span class="PreProc">break-if-=</span> -<span id="L348" class="LineNr"> 348 </span> <a href='primitives.mu.html#L1553'>apply-down</a> args-ah, out, trace -<span id="L349" class="LineNr"> 349 </span> <span class="PreProc">return</span> -<span id="L350" class="LineNr"> 350 </span> <span class="Delimiter">}</span> -<span id="L351" class="LineNr"> 351 </span> <span class="Delimiter">{</span> -<span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> left?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"left"</span> -<span id="L353" class="LineNr"> 353 </span> compare left?, <span class="Constant">0</span>/false -<span id="L354" class="LineNr"> 354 </span> <span class="PreProc">break-if-=</span> -<span id="L355" class="LineNr"> 355 </span> <a href='primitives.mu.html#L1589'>apply-left</a> args-ah, out, trace -<span id="L356" class="LineNr"> 356 </span> <span class="PreProc">return</span> -<span id="L357" class="LineNr"> 357 </span> <span class="Delimiter">}</span> -<span id="L358" class="LineNr"> 358 </span> <span class="Delimiter">{</span> -<span id="L359" class="LineNr"> 359 </span> <span class="PreProc">var</span> right?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"right"</span> -<span id="L360" class="LineNr"> 360 </span> compare right?, <span class="Constant">0</span>/false -<span id="L361" class="LineNr"> 361 </span> <span class="PreProc">break-if-=</span> -<span id="L362" class="LineNr"> 362 </span> <a href='primitives.mu.html#L1625'>apply-right</a> args-ah, out, trace -<span id="L363" class="LineNr"> 363 </span> <span class="PreProc">return</span> -<span id="L364" class="LineNr"> 364 </span> <span class="Delimiter">}</span> -<span id="L365" class="LineNr"> 365 </span> <span class="Delimiter">{</span> -<span id="L366" class="LineNr"> 366 </span> <span class="PreProc">var</span> cr?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cr"</span> -<span id="L367" class="LineNr"> 367 </span> compare cr?, <span class="Constant">0</span>/false -<span id="L368" class="LineNr"> 368 </span> <span class="PreProc">break-if-=</span> -<span id="L369" class="LineNr"> 369 </span> <a href='primitives.mu.html#L1661'>apply-cr</a> args-ah, out, trace -<span id="L370" class="LineNr"> 370 </span> <span class="PreProc">return</span> -<span id="L371" class="LineNr"> 371 </span> <span class="Delimiter">}</span> -<span id="L372" class="LineNr"> 372 </span> <span class="Delimiter">{</span> -<span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> pixel?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"pixel"</span> -<span id="L374" class="LineNr"> 374 </span> compare pixel?, <span class="Constant">0</span>/false -<span id="L375" class="LineNr"> 375 </span> <span class="PreProc">break-if-=</span> -<span id="L376" class="LineNr"> 376 </span> <a href='primitives.mu.html#L1697'>apply-pixel</a> args-ah, out, trace -<span id="L377" class="LineNr"> 377 </span> <span class="PreProc">return</span> -<span id="L378" class="LineNr"> 378 </span> <span class="Delimiter">}</span> -<span id="L379" class="LineNr"> 379 </span> <span class="Delimiter">{</span> -<span id="L380" class="LineNr"> 380 </span> <span class="PreProc">var</span> width?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"width"</span> -<span id="L381" class="LineNr"> 381 </span> compare width?, <span class="Constant">0</span>/false -<span id="L382" class="LineNr"> 382 </span> <span class="PreProc">break-if-=</span> -<span id="L383" class="LineNr"> 383 </span> <a href='primitives.mu.html#L2028'>apply-width</a> args-ah, out, trace -<span id="L384" class="LineNr"> 384 </span> <span class="PreProc">return</span> -<span id="L385" class="LineNr"> 385 </span> <span class="Delimiter">}</span> -<span id="L386" class="LineNr"> 386 </span> <span class="Delimiter">{</span> -<span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> height?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"height"</span> -<span id="L388" class="LineNr"> 388 </span> compare height?, <span class="Constant">0</span>/false -<span id="L389" class="LineNr"> 389 </span> <span class="PreProc">break-if-=</span> -<span id="L390" class="LineNr"> 390 </span> <a href='primitives.mu.html#L2069'>apply-height</a> args-ah, out, trace -<span id="L391" class="LineNr"> 391 </span> <span class="PreProc">return</span> -<span id="L392" class="LineNr"> 392 </span> <span class="Delimiter">}</span> -<span id="L393" class="LineNr"> 393 </span> <span class="Delimiter">{</span> -<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> wait-for-key?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"key"</span> -<span id="L395" class="LineNr"> 395 </span> compare wait-for-key?, <span class="Constant">0</span>/false -<span id="L396" class="LineNr"> 396 </span> <span class="PreProc">break-if-=</span> -<span id="L397" class="LineNr"> 397 </span> <a href='primitives.mu.html#L1820'>apply-wait-for-key</a> args-ah, out, trace -<span id="L398" class="LineNr"> 398 </span> <span class="PreProc">return</span> -<span id="L399" class="LineNr"> 399 </span> <span class="Delimiter">}</span> -<span id="L400" class="LineNr"> 400 </span> <span class="Delimiter">{</span> -<span id="L401" class="LineNr"> 401 </span> <span class="PreProc">var</span> stream?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"stream"</span> -<span id="L402" class="LineNr"> 402 </span> compare stream?, <span class="Constant">0</span>/false -<span id="L403" class="LineNr"> 403 </span> <span class="PreProc">break-if-=</span> -<span id="L404" class="LineNr"> 404 </span> <a href='primitives.mu.html#L1872'>apply-stream</a> args-ah, out, trace -<span id="L405" class="LineNr"> 405 </span> <span class="PreProc">return</span> -<span id="L406" class="LineNr"> 406 </span> <span class="Delimiter">}</span> -<span id="L407" class="LineNr"> 407 </span> <span class="Delimiter">{</span> -<span id="L408" class="LineNr"> 408 </span> <span class="PreProc">var</span> write?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"write"</span> -<span id="L409" class="LineNr"> 409 </span> compare write?, <span class="Constant">0</span>/false -<span id="L410" class="LineNr"> 410 </span> <span class="PreProc">break-if-=</span> -<span id="L411" class="LineNr"> 411 </span> <a href='primitives.mu.html#L1877'>apply-write</a> args-ah, out, trace -<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">return</span> -<span id="L413" class="LineNr"> 413 </span> <span class="Delimiter">}</span> -<span id="L414" class="LineNr"> 414 </span> <span class="Delimiter">{</span> -<span id="L415" class="LineNr"> 415 </span> <span class="PreProc">var</span> abort?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"abort"</span> -<span id="L416" class="LineNr"> 416 </span> compare abort?, <span class="Constant">0</span>/false -<span id="L417" class="LineNr"> 417 </span> <span class="PreProc">break-if-=</span> -<span id="L418" class="LineNr"> 418 </span> <a href='primitives.mu.html#L1984'>apply-abort</a> args-ah, out, trace -<span id="L419" class="LineNr"> 419 </span> <span class="PreProc">return</span> -<span id="L420" class="LineNr"> 420 </span> <span class="Delimiter">}</span> -<span id="L421" class="LineNr"> 421 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"unknown primitive function"</span> -<span id="L422" class="LineNr"> 422 </span><span class="Delimiter">}</span> -<span id="L423" class="LineNr"> 423 </span> -<span id="L424" class="LineNr"> 424 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L424'>apply-add</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L425" class="LineNr"> 425 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply +"</span> -<span id="L426" class="LineNr"> 426 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L427" class="LineNr"> 427 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L428" class="LineNr"> 428 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L429" class="LineNr"> 429 </span> <span class="Delimiter">{</span> -<span id="L430" class="LineNr"> 430 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L431" class="LineNr"> 431 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L432" class="LineNr"> 432 </span> <span class="PreProc">break-if-=</span> -<span id="L433" class="LineNr"> 433 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to + are not a list"</span> -<span id="L434" class="LineNr"> 434 </span> <span class="PreProc">return</span> -<span id="L435" class="LineNr"> 435 </span> <span class="Delimiter">}</span> -<span id="L436" class="LineNr"> 436 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L437" class="LineNr"> 437 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L438" class="LineNr"> 438 </span> <span class="Delimiter">{</span> -<span id="L439" class="LineNr"> 439 </span> <span class="PreProc">break-if-=</span> -<span id="L440" class="LineNr"> 440 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"+ needs 2 args but got 0"</span> -<span id="L441" class="LineNr"> 441 </span> <span class="PreProc">return</span> -<span id="L442" class="LineNr"> 442 </span> <span class="Delimiter">}</span> -<span id="L443" class="LineNr"> 443 </span> <span class="muComment"># args->left->value</span> -<span id="L444" class="LineNr"> 444 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L445" class="LineNr"> 445 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L446" class="LineNr"> 446 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L447" class="LineNr"> 447 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L448" class="LineNr"> 448 </span> <span class="Delimiter">{</span> +<span id="L92" class="LineNr"> 92 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y +<span id="L93" class="LineNr"> 93 </span> <a href='../501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"+ - * / %"</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L94" class="LineNr"> 94 </span> y <span class="Special"><-</span> increment +<span id="L95" class="LineNr"> 95 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y +<span id="L96" class="LineNr"> 96 </span> <a href='../501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"< > <= >="</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L97" class="LineNr"> 97 </span> y <span class="Special"><-</span> increment +<span id="L98" class="LineNr"> 98 </span> <a href='../500fake-screen.mu.html#L190'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y +<span id="L99" class="LineNr"> 99 </span> <a href='../501draw-text.mu.html#L264'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"sqrt <a href='../506math.mu.html#L1'>abs</a> sgn"</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L100" class="LineNr"> 100 </span><span class="CommentedCode">#? {</span> +<span id="L101" class="LineNr"> 101 </span><span class="CommentedCode">#? compare screen, 0</span> +<span id="L102" class="LineNr"> 102 </span><span class="CommentedCode">#? break-if-!=</span> +<span id="L103" class="LineNr"> 103 </span><span class="CommentedCode">#? var foo/eax: byte <- read-key 0/keyboard</span> +<span id="L104" class="LineNr"> 104 </span><span class="CommentedCode">#? compare foo, 0</span> +<span id="L105" class="LineNr"> 105 </span><span class="CommentedCode">#? loop-if-=</span> +<span id="L106" class="LineNr"> 106 </span><span class="CommentedCode">#? }</span> +<span id="L107" class="LineNr"> 107 </span> y <span class="Special"><-</span> copy ymax +<span id="L108" class="LineNr"> 108 </span> y <span class="Special"><-</span> subtract <span class="Constant">0x10</span>/primitives-border +<span id="L109" class="LineNr"> 109 </span> <span class="PreProc">var</span> left-max/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy xmax +<span id="L110" class="LineNr"> 110 </span> left-max <span class="Special"><-</span> subtract <span class="Constant">0x20</span>/primitives-divider +<span id="L111" class="LineNr"> 111 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L112" class="LineNr"> 112 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"cursor graphics"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L113" class="LineNr"> 113 </span> y <span class="Special"><-</span> increment +<span id="L114" class="LineNr"> 114 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L115" class="LineNr"> 115 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" print"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L116" class="LineNr"> 116 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> a -> a"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L117" class="LineNr"> 117 </span> y <span class="Special"><-</span> increment +<span id="L118" class="LineNr"> 118 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L119" class="LineNr"> 119 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" lines columns"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L120" class="LineNr"> 120 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> -> number"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L121" class="LineNr"> 121 </span> y <span class="Special"><-</span> increment +<span id="L122" class="LineNr"> 122 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L123" class="LineNr"> 123 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" up down left right"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L124" class="LineNr"> 124 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": screen"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L125" class="LineNr"> 125 </span> y <span class="Special"><-</span> increment +<span id="L126" class="LineNr"> 126 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L127" class="LineNr"> 127 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" cr"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L128" class="LineNr"> 128 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> "</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L129" class="LineNr"> 129 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"# move cursor down and to left margin"</span>, tmpx, left-max, y, <span class="Constant">0x38</span>/fg=trace, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L130" class="LineNr"> 130 </span> y <span class="Special"><-</span> increment +<span id="L131" class="LineNr"> 131 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L132" class="LineNr"> 132 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"pixel graphics"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L133" class="LineNr"> 133 </span> y <span class="Special"><-</span> increment +<span id="L134" class="LineNr"> 134 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L135" class="LineNr"> 135 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" circle bezier line hline vline pixel"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L136" class="LineNr"> 136 </span> y <span class="Special"><-</span> increment +<span id="L137" class="LineNr"> 137 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L138" class="LineNr"> 138 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" width height"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L139" class="LineNr"> 139 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": <a href='../500fake-screen.mu.html#L14'>screen</a> -> number"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L140" class="LineNr"> 140 </span> y <span class="Special"><-</span> increment +<span id="L141" class="LineNr"> 141 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L142" class="LineNr"> 142 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" new_screen"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L143" class="LineNr"> 143 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": number number -> <a href='../500fake-screen.mu.html#L14'>screen</a> "</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L144" class="LineNr"> 144 </span> y <span class="Special"><-</span> increment +<span id="L145" class="LineNr"> 145 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L146" class="LineNr"> 146 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" clear blit"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L147" class="LineNr"> 147 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": screen"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L148" class="LineNr"> 148 </span> y <span class="Special"><-</span> increment +<span id="L149" class="LineNr"> 149 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L150" class="LineNr"> 150 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" key"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L151" class="LineNr"> 151 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": keyboard -> grapheme?"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L152" class="LineNr"> 152 </span> y <span class="Special"><-</span> increment +<span id="L153" class="LineNr"> 153 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L154" class="LineNr"> 154 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">"streams"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L155" class="LineNr"> 155 </span> y <span class="Special"><-</span> increment +<span id="L156" class="LineNr"> 156 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L157" class="LineNr"> 157 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" stream"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L158" class="LineNr"> 158 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": -> stream "</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L159" class="LineNr"> 159 </span> y <span class="Special"><-</span> increment +<span id="L160" class="LineNr"> 160 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L161" class="LineNr"> 161 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" write"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L162" class="LineNr"> 162 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": stream grapheme -> stream"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L163" class="LineNr"> 163 </span> y <span class="Special"><-</span> increment +<span id="L164" class="LineNr"> 164 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L165" class="LineNr"> 165 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" rewind clear"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L166" class="LineNr"> 166 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": stream"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L167" class="LineNr"> 167 </span> y <span class="Special"><-</span> increment +<span id="L168" class="LineNr"> 168 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special"><-</span> copy xmin +<span id="L169" class="LineNr"> 169 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" read"</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L170" class="LineNr"> 170 </span> tmpx <span class="Special"><-</span> <a href='../501draw-text.mu.html#L100'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">": stream -> grapheme"</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg +<span id="L171" class="LineNr"> 171 </span><span class="Delimiter">}</span> +<span id="L172" class="LineNr"> 172 </span> +<span id="L173" class="LineNr"> 173 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L173'>primitive-global?</a></span> _x: (addr <a href='global.mu.html#L7'>global</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L174" class="LineNr"> 174 </span> <span class="PreProc">var</span> x/eax: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> copy _x +<span id="L175" class="LineNr"> 175 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get x, value +<span id="L176" class="LineNr"> 176 </span> <span class="PreProc">var</span> value/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah +<span id="L177" class="LineNr"> 177 </span> compare value, <span class="Constant">0</span>/null +<span id="L178" class="LineNr"> 178 </span> <span class="Delimiter">{</span> +<span id="L179" class="LineNr"> 179 </span> <span class="PreProc">break-if-!=</span> +<span id="L180" class="LineNr"> 180 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L181" class="LineNr"> 181 </span> <span class="Delimiter">}</span> +<span id="L182" class="LineNr"> 182 </span> <span class="Delimiter">{</span> +<span id="L183" class="LineNr"> 183 </span> <span class="PreProc">var</span> value-type/eax: (addr int) <span class="Special"><-</span> get value, <span class="PreProc">type</span> +<span id="L184" class="LineNr"> 184 </span> compare *value-type, <span class="Constant">4</span>/primitive +<span id="L185" class="LineNr"> 185 </span> <span class="PreProc">break-if-=</span> +<span id="L186" class="LineNr"> 186 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L187" class="LineNr"> 187 </span> <span class="Delimiter">}</span> +<span id="L188" class="LineNr"> 188 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true +<span id="L189" class="LineNr"> 189 </span><span class="Delimiter">}</span> +<span id="L190" class="LineNr"> 190 </span> +<span id="L191" class="LineNr"> 191 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L191'>append-primitive</a></span> _self: (addr <a href='global.mu.html#L1'>global-table</a>), name: (addr array byte) <span class="Delimiter">{</span> +<span id="L192" class="LineNr"> 192 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _self +<span id="L193" class="LineNr"> 193 </span> compare self, <span class="Constant">0</span> +<span id="L194" class="LineNr"> 194 </span> <span class="Delimiter">{</span> +<span id="L195" class="LineNr"> 195 </span> <span class="PreProc">break-if-!=</span> +<span id="L196" class="LineNr"> 196 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"append primitive"</span> +<span id="L197" class="LineNr"> 197 </span> <span class="PreProc">return</span> +<span id="L198" class="LineNr"> 198 </span> <span class="Delimiter">}</span> +<span id="L199" class="LineNr"> 199 </span> <span class="PreProc">var</span> final-index-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, final-index +<span id="L200" class="LineNr"> 200 </span> increment *final-index-addr +<span id="L201" class="LineNr"> 201 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *final-index-addr +<span id="L202" class="LineNr"> 202 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get self, data +<span id="L203" class="LineNr"> 203 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L204" class="LineNr"> 204 </span> <span class="PreProc">var</span> curr-offset/<span class="muRegEsi">esi</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset data, curr-index +<span id="L205" class="LineNr"> 205 </span> <span class="PreProc">var</span> curr/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index data, curr-offset +<span id="L206" class="LineNr"> 206 </span> <span class="PreProc">var</span> curr-name-ah/eax: (addr handle array byte) <span class="Special"><-</span> get curr, name +<span id="L207" class="LineNr"> 207 </span> <a href='../312copy.subx.html#L3'>copy-array-object</a> name, curr-name-ah +<span id="L208" class="LineNr"> 208 </span> <span class="PreProc">var</span> curr-value-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, value +<span id="L209" class="LineNr"> 209 </span> <a href='cell.mu.html#L141'>new-primitive-function</a> curr-value-ah, curr-index +<span id="L210" class="LineNr"> 210 </span><span class="Delimiter">}</span> +<span id="L211" class="LineNr"> 211 </span> +<span id="L212" class="LineNr"> 212 </span><span class="muComment"># a little strange; goes from value to name and selects primitive based on name</span> +<span id="L213" class="LineNr"> 213 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L213'>apply-primitive</a></span> _f: (addr <a href='cell.mu.html#L1'>cell</a>), args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), _globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L214" class="LineNr"> 214 </span> <span class="PreProc">var</span> f/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _f +<span id="L215" class="LineNr"> 215 </span> <span class="PreProc">var</span> f-index-a/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get f, index-data +<span id="L216" class="LineNr"> 216 </span> <span class="PreProc">var</span> f-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *f-index-a +<span id="L217" class="LineNr"> 217 </span> <span class="PreProc">var</span> globals/eax: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> copy _globals +<span id="L218" class="LineNr"> 218 </span> compare globals, <span class="Constant">0</span> +<span id="L219" class="LineNr"> 219 </span> <span class="Delimiter">{</span> +<span id="L220" class="LineNr"> 220 </span> <span class="PreProc">break-if-!=</span> +<span id="L221" class="LineNr"> 221 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"apply primitive"</span> +<span id="L222" class="LineNr"> 222 </span> <span class="PreProc">return</span> +<span id="L223" class="LineNr"> 223 </span> <span class="Delimiter">}</span> +<span id="L224" class="LineNr"> 224 </span> <span class="PreProc">var</span> global-data-ah/eax: (addr handle array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> get globals, data +<span id="L225" class="LineNr"> 225 </span> <span class="PreProc">var</span> global-data/eax: (addr array <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *global-data-ah +<span id="L226" class="LineNr"> 226 </span> <span class="PreProc">var</span> f-offset/<span class="muRegEcx">ecx</span>: (offset <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> compute-offset global-data, f-index +<span id="L227" class="LineNr"> 227 </span> <span class="PreProc">var</span> f-value/<span class="muRegEcx">ecx</span>: (addr <a href='global.mu.html#L7'>global</a>) <span class="Special"><-</span> index global-data, f-offset +<span id="L228" class="LineNr"> 228 </span> <span class="PreProc">var</span> f-name-ah/<span class="muRegEcx">ecx</span>: (addr handle array byte) <span class="Special"><-</span> get f-value, name +<span id="L229" class="LineNr"> 229 </span> <span class="PreProc">var</span> f-name/eax: (addr array byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *f-name-ah +<span id="L230" class="LineNr"> 230 </span> <span class="Delimiter">{</span> +<span id="L231" class="LineNr"> 231 </span> <span class="PreProc">var</span> add?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"+"</span> +<span id="L232" class="LineNr"> 232 </span> compare add?, <span class="Constant">0</span>/false +<span id="L233" class="LineNr"> 233 </span> <span class="PreProc">break-if-=</span> +<span id="L234" class="LineNr"> 234 </span> <a href='primitives.mu.html#L554'>apply-add</a> args-ah, out, trace +<span id="L235" class="LineNr"> 235 </span> <span class="PreProc">return</span> +<span id="L236" class="LineNr"> 236 </span> <span class="Delimiter">}</span> +<span id="L237" class="LineNr"> 237 </span> <span class="Delimiter">{</span> +<span id="L238" class="LineNr"> 238 </span> <span class="PreProc">var</span> subtract?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"-"</span> +<span id="L239" class="LineNr"> 239 </span> compare subtract?, <span class="Constant">0</span>/false +<span id="L240" class="LineNr"> 240 </span> <span class="PreProc">break-if-=</span> +<span id="L241" class="LineNr"> 241 </span> <a href='primitives.mu.html#L646'>apply-subtract</a> args-ah, out, trace +<span id="L242" class="LineNr"> 242 </span> <span class="PreProc">return</span> +<span id="L243" class="LineNr"> 243 </span> <span class="Delimiter">}</span> +<span id="L244" class="LineNr"> 244 </span> <span class="Delimiter">{</span> +<span id="L245" class="LineNr"> 245 </span> <span class="PreProc">var</span> multiply?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"*"</span> +<span id="L246" class="LineNr"> 246 </span> compare multiply?, <span class="Constant">0</span>/false +<span id="L247" class="LineNr"> 247 </span> <span class="PreProc">break-if-=</span> +<span id="L248" class="LineNr"> 248 </span> <a href='primitives.mu.html#L709'>apply-multiply</a> args-ah, out, trace +<span id="L249" class="LineNr"> 249 </span> <span class="PreProc">return</span> +<span id="L250" class="LineNr"> 250 </span> <span class="Delimiter">}</span> +<span id="L251" class="LineNr"> 251 </span> <span class="Delimiter">{</span> +<span id="L252" class="LineNr"> 252 </span> <span class="PreProc">var</span> divide?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"/"</span> +<span id="L253" class="LineNr"> 253 </span> compare divide?, <span class="Constant">0</span>/false +<span id="L254" class="LineNr"> 254 </span> <span class="PreProc">break-if-=</span> +<span id="L255" class="LineNr"> 255 </span> <a href='primitives.mu.html#L772'>apply-divide</a> args-ah, out, trace +<span id="L256" class="LineNr"> 256 </span> <span class="PreProc">return</span> +<span id="L257" class="LineNr"> 257 </span> <span class="Delimiter">}</span> +<span id="L258" class="LineNr"> 258 </span> <span class="muComment"># '%' is the remainder operator, because modulo isn't really meaningful for</span> +<span id="L259" class="LineNr"> 259 </span> <span class="muComment"># non-integers</span> +<span id="L260" class="LineNr"> 260 </span> <span class="muComment">#</span> +<span id="L261" class="LineNr"> 261 </span> <span class="muComment"># I considered calling this operator 'rem', but I want to follow Arc in</span> +<span id="L262" class="LineNr"> 262 </span> <span class="muComment"># using 'rem' for filtering out elements from lists.</span> +<span id="L263" class="LineNr"> 263 </span> <span class="muComment"># <a href="https://arclanguage.github.io/ref/list.html#rem">https://arclanguage.github.io/ref/list.html#rem</a></span> +<span id="L264" class="LineNr"> 264 </span> <span class="Delimiter">{</span> +<span id="L265" class="LineNr"> 265 </span> <span class="PreProc">var</span> remainder?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"%"</span> +<span id="L266" class="LineNr"> 266 </span> compare remainder?, <span class="Constant">0</span>/false +<span id="L267" class="LineNr"> 267 </span> <span class="PreProc">break-if-=</span> +<span id="L268" class="LineNr"> 268 </span> <a href='primitives.mu.html#L835'>apply-remainder</a> args-ah, out, trace +<span id="L269" class="LineNr"> 269 </span> <span class="PreProc">return</span> +<span id="L270" class="LineNr"> 270 </span> <span class="Delimiter">}</span> +<span id="L271" class="LineNr"> 271 </span> <span class="Delimiter">{</span> +<span id="L272" class="LineNr"> 272 </span> <span class="PreProc">var</span> square-root?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"sqrt"</span> +<span id="L273" class="LineNr"> 273 </span> compare square-root?, <span class="Constant">0</span>/false +<span id="L274" class="LineNr"> 274 </span> <span class="PreProc">break-if-=</span> +<span id="L275" class="LineNr"> 275 </span> <a href='primitives.mu.html#L904'>apply-square-root</a> args-ah, out, trace +<span id="L276" class="LineNr"> 276 </span> <span class="PreProc">return</span> +<span id="L277" class="LineNr"> 277 </span> <span class="Delimiter">}</span> +<span id="L278" class="LineNr"> 278 </span> <span class="Delimiter">{</span> +<span id="L279" class="LineNr"> 279 </span> <span class="PreProc">var</span> abs?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"abs"</span> +<span id="L280" class="LineNr"> 280 </span> compare abs?, <span class="Constant">0</span>/false +<span id="L281" class="LineNr"> 281 </span> <span class="PreProc">break-if-=</span> +<span id="L282" class="LineNr"> 282 </span> <a href='primitives.mu.html#L939'>apply-abs</a> args-ah, out, trace +<span id="L283" class="LineNr"> 283 </span> <span class="PreProc">return</span> +<span id="L284" class="LineNr"> 284 </span> <span class="Delimiter">}</span> +<span id="L285" class="LineNr"> 285 </span> <span class="Delimiter">{</span> +<span id="L286" class="LineNr"> 286 </span> <span class="PreProc">var</span> sgn?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"sgn"</span> +<span id="L287" class="LineNr"> 287 </span> compare sgn?, <span class="Constant">0</span>/false +<span id="L288" class="LineNr"> 288 </span> <span class="PreProc">break-if-=</span> +<span id="L289" class="LineNr"> 289 </span> <a href='primitives.mu.html#L982'>apply-sgn</a> args-ah, out, trace +<span id="L290" class="LineNr"> 290 </span> <span class="PreProc">return</span> +<span id="L291" class="LineNr"> 291 </span> <span class="Delimiter">}</span> +<span id="L292" class="LineNr"> 292 </span> <span class="Delimiter">{</span> +<span id="L293" class="LineNr"> 293 </span> <span class="PreProc">var</span> car?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"car"</span> +<span id="L294" class="LineNr"> 294 </span> compare car?, <span class="Constant">0</span>/false +<span id="L295" class="LineNr"> 295 </span> <span class="PreProc">break-if-=</span> +<span id="L296" class="LineNr"> 296 </span> <a href='primitives.mu.html#L1034'>apply-car</a> args-ah, out, trace +<span id="L297" class="LineNr"> 297 </span> <span class="PreProc">return</span> +<span id="L298" class="LineNr"> 298 </span> <span class="Delimiter">}</span> +<span id="L299" class="LineNr"> 299 </span> <span class="Delimiter">{</span> +<span id="L300" class="LineNr"> 300 </span> <span class="PreProc">var</span> cdr?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cdr"</span> +<span id="L301" class="LineNr"> 301 </span> compare cdr?, <span class="Constant">0</span>/false +<span id="L302" class="LineNr"> 302 </span> <span class="PreProc">break-if-=</span> +<span id="L303" class="LineNr"> 303 </span> <a href='primitives.mu.html#L1076'>apply-cdr</a> args-ah, out, trace +<span id="L304" class="LineNr"> 304 </span> <span class="PreProc">return</span> +<span id="L305" class="LineNr"> 305 </span> <span class="Delimiter">}</span> +<span id="L306" class="LineNr"> 306 </span> <span class="Delimiter">{</span> +<span id="L307" class="LineNr"> 307 </span> <span class="PreProc">var</span> cons?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cons"</span> +<span id="L308" class="LineNr"> 308 </span> compare cons?, <span class="Constant">0</span>/false +<span id="L309" class="LineNr"> 309 </span> <span class="PreProc">break-if-=</span> +<span id="L310" class="LineNr"> 310 </span> <a href='primitives.mu.html#L1118'>apply-cons</a> args-ah, out, trace +<span id="L311" class="LineNr"> 311 </span> <span class="PreProc">return</span> +<span id="L312" class="LineNr"> 312 </span> <span class="Delimiter">}</span> +<span id="L313" class="LineNr"> 313 </span> <span class="Delimiter">{</span> +<span id="L314" class="LineNr"> 314 </span> <span class="PreProc">var</span> cons-check?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cons?"</span> +<span id="L315" class="LineNr"> 315 </span> compare cons-check?, <span class="Constant">0</span>/false +<span id="L316" class="LineNr"> 316 </span> <span class="PreProc">break-if-=</span> +<span id="L317" class="LineNr"> 317 </span> <a href='primitives.mu.html#L1161'>apply-cons-check</a> args-ah, out, trace +<span id="L318" class="LineNr"> 318 </span> <span class="PreProc">return</span> +<span id="L319" class="LineNr"> 319 </span> <span class="Delimiter">}</span> +<span id="L320" class="LineNr"> 320 </span> <span class="Delimiter">{</span> +<span id="L321" class="LineNr"> 321 </span> <span class="PreProc">var</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a>/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"="</span> +<span id="L322" class="LineNr"> 322 </span> compare <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a>, <span class="Constant">0</span>/false +<span id="L323" class="LineNr"> 323 </span> <span class="PreProc">break-if-=</span> +<span id="L324" class="LineNr"> 324 </span> <a href='primitives.mu.html#L1194'>apply-cell-isomorphic</a> args-ah, out, trace +<span id="L325" class="LineNr"> 325 </span> <span class="PreProc">return</span> +<span id="L326" class="LineNr"> 326 </span> <span class="Delimiter">}</span> +<span id="L327" class="LineNr"> 327 </span> <span class="Delimiter">{</span> +<span id="L328" class="LineNr"> 328 </span> <span class="PreProc">var</span> not?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"no"</span> +<span id="L329" class="LineNr"> 329 </span> compare not?, <span class="Constant">0</span>/false +<span id="L330" class="LineNr"> 330 </span> <span class="PreProc">break-if-=</span> +<span id="L331" class="LineNr"> 331 </span> <a href='primitives.mu.html#L1247'>apply-not</a> args-ah, out, trace +<span id="L332" class="LineNr"> 332 </span> <span class="PreProc">return</span> +<span id="L333" class="LineNr"> 333 </span> <span class="Delimiter">}</span> +<span id="L334" class="LineNr"> 334 </span> <span class="Delimiter">{</span> +<span id="L335" class="LineNr"> 335 </span> <span class="PreProc">var</span> not?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"not"</span> +<span id="L336" class="LineNr"> 336 </span> compare not?, <span class="Constant">0</span>/false +<span id="L337" class="LineNr"> 337 </span> <span class="PreProc">break-if-=</span> +<span id="L338" class="LineNr"> 338 </span> <a href='primitives.mu.html#L1247'>apply-not</a> args-ah, out, trace +<span id="L339" class="LineNr"> 339 </span> <span class="PreProc">return</span> +<span id="L340" class="LineNr"> 340 </span> <span class="Delimiter">}</span> +<span id="L341" class="LineNr"> 341 </span> <span class="Delimiter">{</span> +<span id="L342" class="LineNr"> 342 </span> <span class="PreProc">var</span> debug?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"dbg"</span> +<span id="L343" class="LineNr"> 343 </span> compare debug?, <span class="Constant">0</span>/false +<span id="L344" class="LineNr"> 344 </span> <span class="PreProc">break-if-=</span> +<span id="L345" class="LineNr"> 345 </span> <a href='primitives.mu.html#L1280'>apply-debug</a> args-ah, out, trace +<span id="L346" class="LineNr"> 346 </span> <span class="PreProc">return</span> +<span id="L347" class="LineNr"> 347 </span> <span class="Delimiter">}</span> +<span id="L348" class="LineNr"> 348 </span> <span class="Delimiter">{</span> +<span id="L349" class="LineNr"> 349 </span> <span class="PreProc">var</span> lesser?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"<"</span> +<span id="L350" class="LineNr"> 350 </span> compare lesser?, <span class="Constant">0</span>/false +<span id="L351" class="LineNr"> 351 </span> <span class="PreProc">break-if-=</span> +<span id="L352" class="LineNr"> 352 </span> <a href='primitives.mu.html#L1310'>apply-<</a> args-ah, out, trace +<span id="L353" class="LineNr"> 353 </span> <span class="PreProc">return</span> +<span id="L354" class="LineNr"> 354 </span> <span class="Delimiter">}</span> +<span id="L355" class="LineNr"> 355 </span> <span class="Delimiter">{</span> +<span id="L356" class="LineNr"> 356 </span> <span class="PreProc">var</span> greater?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">">"</span> +<span id="L357" class="LineNr"> 357 </span> compare greater?, <span class="Constant">0</span>/false +<span id="L358" class="LineNr"> 358 </span> <span class="PreProc">break-if-=</span> +<span id="L359" class="LineNr"> 359 </span> <a href='primitives.mu.html#L1379'>apply-></a> args-ah, out, trace +<span id="L360" class="LineNr"> 360 </span> <span class="PreProc">return</span> +<span id="L361" class="LineNr"> 361 </span> <span class="Delimiter">}</span> +<span id="L362" class="LineNr"> 362 </span> <span class="Delimiter">{</span> +<span id="L363" class="LineNr"> 363 </span> <span class="PreProc">var</span> lesser-or-equal?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"<="</span> +<span id="L364" class="LineNr"> 364 </span> compare lesser-or-equal?, <span class="Constant">0</span>/false +<span id="L365" class="LineNr"> 365 </span> <span class="PreProc">break-if-=</span> +<span id="L366" class="LineNr"> 366 </span> <a href='primitives.mu.html#L1448'>apply-<=</a> args-ah, out, trace +<span id="L367" class="LineNr"> 367 </span> <span class="PreProc">return</span> +<span id="L368" class="LineNr"> 368 </span> <span class="Delimiter">}</span> +<span id="L369" class="LineNr"> 369 </span> <span class="Delimiter">{</span> +<span id="L370" class="LineNr"> 370 </span> <span class="PreProc">var</span> greater-or-equal?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">">="</span> +<span id="L371" class="LineNr"> 371 </span> compare greater-or-equal?, <span class="Constant">0</span>/false +<span id="L372" class="LineNr"> 372 </span> <span class="PreProc">break-if-=</span> +<span id="L373" class="LineNr"> 373 </span> <a href='primitives.mu.html#L1517'>apply->=</a> args-ah, out, trace +<span id="L374" class="LineNr"> 374 </span> <span class="PreProc">return</span> +<span id="L375" class="LineNr"> 375 </span> <span class="Delimiter">}</span> +<span id="L376" class="LineNr"> 376 </span> <span class="Delimiter">{</span> +<span id="L377" class="LineNr"> 377 </span> <span class="PreProc">var</span> print?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"print"</span> +<span id="L378" class="LineNr"> 378 </span> compare print?, <span class="Constant">0</span>/false +<span id="L379" class="LineNr"> 379 </span> <span class="PreProc">break-if-=</span> +<span id="L380" class="LineNr"> 380 </span> <a href='primitives.mu.html#L1586'>apply-print</a> args-ah, out, trace +<span id="L381" class="LineNr"> 381 </span> <span class="PreProc">return</span> +<span id="L382" class="LineNr"> 382 </span> <span class="Delimiter">}</span> +<span id="L383" class="LineNr"> 383 </span> <span class="Delimiter">{</span> +<span id="L384" class="LineNr"> 384 </span> <span class="PreProc">var</span> clear?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"clear"</span> +<span id="L385" class="LineNr"> 385 </span> compare clear?, <span class="Constant">0</span>/false +<span id="L386" class="LineNr"> 386 </span> <span class="PreProc">break-if-=</span> +<span id="L387" class="LineNr"> 387 </span> <a href='primitives.mu.html#L1644'>apply-clear</a> args-ah, out, trace +<span id="L388" class="LineNr"> 388 </span> <span class="PreProc">return</span> +<span id="L389" class="LineNr"> 389 </span> <span class="Delimiter">}</span> +<span id="L390" class="LineNr"> 390 </span> <span class="Delimiter">{</span> +<span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> lines?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"lines"</span> +<span id="L392" class="LineNr"> 392 </span> compare lines?, <span class="Constant">0</span>/false +<span id="L393" class="LineNr"> 393 </span> <span class="PreProc">break-if-=</span> +<span id="L394" class="LineNr"> 394 </span> <a href='primitives.mu.html#L3075'>apply-lines</a> args-ah, out, trace +<span id="L395" class="LineNr"> 395 </span> <span class="PreProc">return</span> +<span id="L396" class="LineNr"> 396 </span> <span class="Delimiter">}</span> +<span id="L397" class="LineNr"> 397 </span> <span class="Delimiter">{</span> +<span id="L398" class="LineNr"> 398 </span> <span class="PreProc">var</span> columns?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"columns"</span> +<span id="L399" class="LineNr"> 399 </span> compare columns?, <span class="Constant">0</span>/false +<span id="L400" class="LineNr"> 400 </span> <span class="PreProc">break-if-=</span> +<span id="L401" class="LineNr"> 401 </span> <a href='primitives.mu.html#L3119'>apply-columns</a> args-ah, out, trace +<span id="L402" class="LineNr"> 402 </span> <span class="PreProc">return</span> +<span id="L403" class="LineNr"> 403 </span> <span class="Delimiter">}</span> +<span id="L404" class="LineNr"> 404 </span> <span class="Delimiter">{</span> +<span id="L405" class="LineNr"> 405 </span> <span class="PreProc">var</span> up?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"up"</span> +<span id="L406" class="LineNr"> 406 </span> compare up?, <span class="Constant">0</span>/false +<span id="L407" class="LineNr"> 407 </span> <span class="PreProc">break-if-=</span> +<span id="L408" class="LineNr"> 408 </span> <a href='primitives.mu.html#L1688'>apply-up</a> args-ah, out, trace +<span id="L409" class="LineNr"> 409 </span> <span class="PreProc">return</span> +<span id="L410" class="LineNr"> 410 </span> <span class="Delimiter">}</span> +<span id="L411" class="LineNr"> 411 </span> <span class="Delimiter">{</span> +<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> down?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"down"</span> +<span id="L413" class="LineNr"> 413 </span> compare down?, <span class="Constant">0</span>/false +<span id="L414" class="LineNr"> 414 </span> <span class="PreProc">break-if-=</span> +<span id="L415" class="LineNr"> 415 </span> <a href='primitives.mu.html#L1724'>apply-down</a> args-ah, out, trace +<span id="L416" class="LineNr"> 416 </span> <span class="PreProc">return</span> +<span id="L417" class="LineNr"> 417 </span> <span class="Delimiter">}</span> +<span id="L418" class="LineNr"> 418 </span> <span class="Delimiter">{</span> +<span id="L419" class="LineNr"> 419 </span> <span class="PreProc">var</span> left?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"left"</span> +<span id="L420" class="LineNr"> 420 </span> compare left?, <span class="Constant">0</span>/false +<span id="L421" class="LineNr"> 421 </span> <span class="PreProc">break-if-=</span> +<span id="L422" class="LineNr"> 422 </span> <a href='primitives.mu.html#L1760'>apply-left</a> args-ah, out, trace +<span id="L423" class="LineNr"> 423 </span> <span class="PreProc">return</span> +<span id="L424" class="LineNr"> 424 </span> <span class="Delimiter">}</span> +<span id="L425" class="LineNr"> 425 </span> <span class="Delimiter">{</span> +<span id="L426" class="LineNr"> 426 </span> <span class="PreProc">var</span> right?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"right"</span> +<span id="L427" class="LineNr"> 427 </span> compare right?, <span class="Constant">0</span>/false +<span id="L428" class="LineNr"> 428 </span> <span class="PreProc">break-if-=</span> +<span id="L429" class="LineNr"> 429 </span> <a href='primitives.mu.html#L1796'>apply-right</a> args-ah, out, trace +<span id="L430" class="LineNr"> 430 </span> <span class="PreProc">return</span> +<span id="L431" class="LineNr"> 431 </span> <span class="Delimiter">}</span> +<span id="L432" class="LineNr"> 432 </span> <span class="Delimiter">{</span> +<span id="L433" class="LineNr"> 433 </span> <span class="PreProc">var</span> cr?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"cr"</span> +<span id="L434" class="LineNr"> 434 </span> compare cr?, <span class="Constant">0</span>/false +<span id="L435" class="LineNr"> 435 </span> <span class="PreProc">break-if-=</span> +<span id="L436" class="LineNr"> 436 </span> <a href='primitives.mu.html#L1832'>apply-cr</a> args-ah, out, trace +<span id="L437" class="LineNr"> 437 </span> <span class="PreProc">return</span> +<span id="L438" class="LineNr"> 438 </span> <span class="Delimiter">}</span> +<span id="L439" class="LineNr"> 439 </span> <span class="Delimiter">{</span> +<span id="L440" class="LineNr"> 440 </span> <span class="PreProc">var</span> pixel?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"pixel"</span> +<span id="L441" class="LineNr"> 441 </span> compare pixel?, <span class="Constant">0</span>/false +<span id="L442" class="LineNr"> 442 </span> <span class="PreProc">break-if-=</span> +<span id="L443" class="LineNr"> 443 </span> <a href='primitives.mu.html#L1868'>apply-pixel</a> args-ah, out, trace +<span id="L444" class="LineNr"> 444 </span> <span class="PreProc">return</span> +<span id="L445" class="LineNr"> 445 </span> <span class="Delimiter">}</span> +<span id="L446" class="LineNr"> 446 </span> <span class="Delimiter">{</span> +<span id="L447" class="LineNr"> 447 </span> <span class="PreProc">var</span> line?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"line"</span> +<span id="L448" class="LineNr"> 448 </span> compare line?, <span class="Constant">0</span>/false <span id="L449" class="LineNr"> 449 </span> <span class="PreProc">break-if-=</span> -<span id="L450" class="LineNr"> 450 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for + is not a number"</span> +<span id="L450" class="LineNr"> 450 </span> <a href='primitives.mu.html#L1991'>apply-line</a> args-ah, out, trace <span id="L451" class="LineNr"> 451 </span> <span class="PreProc">return</span> <span id="L452" class="LineNr"> 452 </span> <span class="Delimiter">}</span> -<span id="L453" class="LineNr"> 453 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L454" class="LineNr"> 454 </span> <span class="muComment"># args->right->left->value</span> -<span id="L455" class="LineNr"> 455 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L456" class="LineNr"> 456 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L457" class="LineNr"> 457 </span> <span class="Delimiter">{</span> -<span id="L458" class="LineNr"> 458 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L459" class="LineNr"> 459 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L460" class="LineNr"> 460 </span> <span class="PreProc">break-if-=</span> -<span id="L461" class="LineNr"> 461 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"+ encountered non-pair"</span> -<span id="L462" class="LineNr"> 462 </span> <span class="PreProc">return</span> -<span id="L463" class="LineNr"> 463 </span> <span class="Delimiter">}</span> -<span id="L464" class="LineNr"> 464 </span> <span class="Delimiter">{</span> -<span id="L465" class="LineNr"> 465 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L466" class="LineNr"> 466 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L467" class="LineNr"> 467 </span> <span class="PreProc">break-if-=</span> -<span id="L468" class="LineNr"> 468 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"+ needs 2 args but got 1"</span> -<span id="L469" class="LineNr"> 469 </span> <span class="PreProc">return</span> -<span id="L470" class="LineNr"> 470 </span> <span class="Delimiter">}</span> -<span id="L471" class="LineNr"> 471 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L472" class="LineNr"> 472 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L473" class="LineNr"> 473 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L474" class="LineNr"> 474 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L475" class="LineNr"> 475 </span> <span class="Delimiter">{</span> -<span id="L476" class="LineNr"> 476 </span> <span class="PreProc">break-if-=</span> -<span id="L477" class="LineNr"> 477 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for + is not a number"</span> -<span id="L478" class="LineNr"> 478 </span> <span class="PreProc">return</span> -<span id="L479" class="LineNr"> 479 </span> <span class="Delimiter">}</span> -<span id="L480" class="LineNr"> 480 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L481" class="LineNr"> 481 </span> <span class="muComment"># add</span> -<span id="L482" class="LineNr"> 482 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L483" class="LineNr"> 483 </span> result <span class="Special"><-</span> add *second-value -<span id="L484" class="LineNr"> 484 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L485" class="LineNr"> 485 </span><span class="Delimiter">}</span> -<span id="L486" class="LineNr"> 486 </span> -<span id="L487" class="LineNr"> 487 </span><span class="PreProc">fn</span> <span class="muTest"><a href='primitives.mu.html#L487'>test-evaluate-missing-arg-in-add</a></span> <span class="Delimiter">{</span> -<span id="L488" class="LineNr"> 488 </span> <span class="PreProc">var</span> t-storage: trace -<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">var</span> t/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address t-storage -<span id="L490" class="LineNr"> 490 </span> <a href='trace.mu.html#L61'>initialize-trace</a> t, <span class="Constant">0x100</span>/max-depth, <span class="Constant">0x100</span>/capacity, <span class="Constant">0</span>/visible <span class="muComment"># we don't use trace UI</span> -<span id="L491" class="LineNr"> 491 </span> <span class="muComment">#</span> -<span id="L492" class="LineNr"> 492 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L493" class="LineNr"> 493 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L494" class="LineNr"> 494 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah -<span id="L495" class="LineNr"> 495 </span> <span class="PreProc">var</span> one-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L496" class="LineNr"> 496 </span> <span class="PreProc">var</span> one-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address one-storage -<span id="L497" class="LineNr"> 497 </span> <a href='cell.mu.html#L84'>new-integer</a> one-ah, <span class="Constant">1</span> -<span id="L498" class="LineNr"> 498 </span> <span class="PreProc">var</span> add-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L499" class="LineNr"> 499 </span> <span class="PreProc">var</span> add-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address add-storage -<span id="L500" class="LineNr"> 500 </span> <a href='cell.mu.html#L39'>new-symbol</a> add-ah, <span class="Constant">"+"</span> -<span id="L501" class="LineNr"> 501 </span> <span class="muComment"># input is (+ 1)</span> -<span id="L502" class="LineNr"> 502 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L503" class="LineNr"> 503 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage -<span id="L504" class="LineNr"> 504 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *one-ah, *nil-ah -<span id="L505" class="LineNr"> 505 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *add-ah, *tmp-ah -<span id="L506" class="LineNr"> 506 </span><span class="CommentedCode">#? dump-cell tmp-ah</span> -<span id="L507" class="LineNr"> 507 </span> <span class="muComment">#</span> -<span id="L508" class="LineNr"> 508 </span> <span class="PreProc">var</span> globals-storage: <a href='global.mu.html#L1'>global-table</a> -<span id="L509" class="LineNr"> 509 </span> <span class="PreProc">var</span> globals/<span class="muRegEdx">edx</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> address globals-storage -<span id="L510" class="LineNr"> 510 </span> <a href='global.mu.html#L14'>initialize-globals</a> globals -<span id="L511" class="LineNr"> 511 </span> <span class="muComment">#</span> -<span id="L512" class="LineNr"> 512 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, globals, t, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number -<span id="L513" class="LineNr"> 513 </span> <span class="muComment"># no crash</span> -<span id="L514" class="LineNr"> 514 </span><span class="Delimiter">}</span> -<span id="L515" class="LineNr"> 515 </span> -<span id="L516" class="LineNr"> 516 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L516'>apply-subtract</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L517" class="LineNr"> 517 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply -"</span> -<span id="L518" class="LineNr"> 518 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L519" class="LineNr"> 519 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L520" class="LineNr"> 520 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L521" class="LineNr"> 521 </span> <span class="Delimiter">{</span> -<span id="L522" class="LineNr"> 522 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L523" class="LineNr"> 523 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L524" class="LineNr"> 524 </span> <span class="PreProc">break-if-=</span> -<span id="L525" class="LineNr"> 525 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to - are not a list"</span> -<span id="L526" class="LineNr"> 526 </span> <span class="PreProc">return</span> -<span id="L527" class="LineNr"> 527 </span> <span class="Delimiter">}</span> -<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L529" class="LineNr"> 529 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L453" class="LineNr"> 453 </span> <span class="Delimiter">{</span> +<span id="L454" class="LineNr"> 454 </span> <span class="PreProc">var</span> hline?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"hline"</span> +<span id="L455" class="LineNr"> 455 </span> compare hline?, <span class="Constant">0</span>/false +<span id="L456" class="LineNr"> 456 </span> <span class="PreProc">break-if-=</span> +<span id="L457" class="LineNr"> 457 </span> <a href='primitives.mu.html#L2174'>apply-hline</a> args-ah, out, trace +<span id="L458" class="LineNr"> 458 </span> <span class="PreProc">return</span> +<span id="L459" class="LineNr"> 459 </span> <span class="Delimiter">}</span> +<span id="L460" class="LineNr"> 460 </span> <span class="Delimiter">{</span> +<span id="L461" class="LineNr"> 461 </span> <span class="PreProc">var</span> vline?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"vline"</span> +<span id="L462" class="LineNr"> 462 </span> compare vline?, <span class="Constant">0</span>/false +<span id="L463" class="LineNr"> 463 </span> <span class="PreProc">break-if-=</span> +<span id="L464" class="LineNr"> 464 </span> <a href='primitives.mu.html#L2326'>apply-vline</a> args-ah, out, trace +<span id="L465" class="LineNr"> 465 </span> <span class="PreProc">return</span> +<span id="L466" class="LineNr"> 466 </span> <span class="Delimiter">}</span> +<span id="L467" class="LineNr"> 467 </span> <span class="Delimiter">{</span> +<span id="L468" class="LineNr"> 468 </span> <span class="PreProc">var</span> circle?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"circle"</span> +<span id="L469" class="LineNr"> 469 </span> compare circle?, <span class="Constant">0</span>/false +<span id="L470" class="LineNr"> 470 </span> <span class="PreProc">break-if-=</span> +<span id="L471" class="LineNr"> 471 </span> <a href='primitives.mu.html#L2478'>apply-circle</a> args-ah, out, trace +<span id="L472" class="LineNr"> 472 </span> <span class="PreProc">return</span> +<span id="L473" class="LineNr"> 473 </span> <span class="Delimiter">}</span> +<span id="L474" class="LineNr"> 474 </span> <span class="Delimiter">{</span> +<span id="L475" class="LineNr"> 475 </span> <span class="PreProc">var</span> bezier?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"bezier"</span> +<span id="L476" class="LineNr"> 476 </span> compare bezier?, <span class="Constant">0</span>/false +<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">break-if-=</span> +<span id="L478" class="LineNr"> 478 </span> <a href='primitives.mu.html#L2630'>apply-bezier</a> args-ah, out, trace +<span id="L479" class="LineNr"> 479 </span> <span class="PreProc">return</span> +<span id="L480" class="LineNr"> 480 </span> <span class="Delimiter">}</span> +<span id="L481" class="LineNr"> 481 </span> <span class="Delimiter">{</span> +<span id="L482" class="LineNr"> 482 </span> <span class="PreProc">var</span> width?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"width"</span> +<span id="L483" class="LineNr"> 483 </span> compare width?, <span class="Constant">0</span>/false +<span id="L484" class="LineNr"> 484 </span> <span class="PreProc">break-if-=</span> +<span id="L485" class="LineNr"> 485 </span> <a href='primitives.mu.html#L3159'>apply-width</a> args-ah, out, trace +<span id="L486" class="LineNr"> 486 </span> <span class="PreProc">return</span> +<span id="L487" class="LineNr"> 487 </span> <span class="Delimiter">}</span> +<span id="L488" class="LineNr"> 488 </span> <span class="Delimiter">{</span> +<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">var</span> height?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"height"</span> +<span id="L490" class="LineNr"> 490 </span> compare height?, <span class="Constant">0</span>/false +<span id="L491" class="LineNr"> 491 </span> <span class="PreProc">break-if-=</span> +<span id="L492" class="LineNr"> 492 </span> <a href='primitives.mu.html#L3200'>apply-height</a> args-ah, out, trace +<span id="L493" class="LineNr"> 493 </span> <span class="PreProc">return</span> +<span id="L494" class="LineNr"> 494 </span> <span class="Delimiter">}</span> +<span id="L495" class="LineNr"> 495 </span> <span class="Delimiter">{</span> +<span id="L496" class="LineNr"> 496 </span> <span class="PreProc">var</span> screen?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"new_screen"</span> +<span id="L497" class="LineNr"> 497 </span> compare screen?, <span class="Constant">0</span>/false +<span id="L498" class="LineNr"> 498 </span> <span class="PreProc">break-if-=</span> +<span id="L499" class="LineNr"> 499 </span> <a href='primitives.mu.html#L3241'>apply-new-screen</a> args-ah, out, trace +<span id="L500" class="LineNr"> 500 </span> <span class="PreProc">return</span> +<span id="L501" class="LineNr"> 501 </span> <span class="Delimiter">}</span> +<span id="L502" class="LineNr"> 502 </span> <span class="Delimiter">{</span> +<span id="L503" class="LineNr"> 503 </span> <span class="PreProc">var</span> blit?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"blit"</span> +<span id="L504" class="LineNr"> 504 </span> compare blit?, <span class="Constant">0</span>/false +<span id="L505" class="LineNr"> 505 </span> <span class="PreProc">break-if-=</span> +<span id="L506" class="LineNr"> 506 </span> <a href='primitives.mu.html#L3304'>apply-blit</a> args-ah, out, trace +<span id="L507" class="LineNr"> 507 </span> <span class="PreProc">return</span> +<span id="L508" class="LineNr"> 508 </span> <span class="Delimiter">}</span> +<span id="L509" class="LineNr"> 509 </span> <span class="Delimiter">{</span> +<span id="L510" class="LineNr"> 510 </span> <span class="PreProc">var</span> wait-for-key?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"key"</span> +<span id="L511" class="LineNr"> 511 </span> compare wait-for-key?, <span class="Constant">0</span>/false +<span id="L512" class="LineNr"> 512 </span> <span class="PreProc">break-if-=</span> +<span id="L513" class="LineNr"> 513 </span> <a href='primitives.mu.html#L2877'>apply-wait-for-key</a> args-ah, out, trace +<span id="L514" class="LineNr"> 514 </span> <span class="PreProc">return</span> +<span id="L515" class="LineNr"> 515 </span> <span class="Delimiter">}</span> +<span id="L516" class="LineNr"> 516 </span> <span class="Delimiter">{</span> +<span id="L517" class="LineNr"> 517 </span> <span class="PreProc">var</span> stream?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"stream"</span> +<span id="L518" class="LineNr"> 518 </span> compare stream?, <span class="Constant">0</span>/false +<span id="L519" class="LineNr"> 519 </span> <span class="PreProc">break-if-=</span> +<span id="L520" class="LineNr"> 520 </span> <a href='primitives.mu.html#L2929'>apply-stream</a> args-ah, out, trace +<span id="L521" class="LineNr"> 521 </span> <span class="PreProc">return</span> +<span id="L522" class="LineNr"> 522 </span> <span class="Delimiter">}</span> +<span id="L523" class="LineNr"> 523 </span> <span class="Delimiter">{</span> +<span id="L524" class="LineNr"> 524 </span> <span class="PreProc">var</span> write?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"write"</span> +<span id="L525" class="LineNr"> 525 </span> compare write?, <span class="Constant">0</span>/false +<span id="L526" class="LineNr"> 526 </span> <span class="PreProc">break-if-=</span> +<span id="L527" class="LineNr"> 527 </span> <a href='primitives.mu.html#L2934'>apply-write</a> args-ah, out, trace +<span id="L528" class="LineNr"> 528 </span> <span class="PreProc">return</span> +<span id="L529" class="LineNr"> 529 </span> <span class="Delimiter">}</span> <span id="L530" class="LineNr"> 530 </span> <span class="Delimiter">{</span> -<span id="L531" class="LineNr"> 531 </span> <span class="PreProc">break-if-=</span> -<span id="L532" class="LineNr"> 532 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"- needs 2 args but got 0"</span> -<span id="L533" class="LineNr"> 533 </span> <span class="PreProc">return</span> -<span id="L534" class="LineNr"> 534 </span> <span class="Delimiter">}</span> -<span id="L535" class="LineNr"> 535 </span> <span class="muComment"># args->left->value</span> -<span id="L536" class="LineNr"> 536 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L537" class="LineNr"> 537 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L538" class="LineNr"> 538 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L539" class="LineNr"> 539 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L540" class="LineNr"> 540 </span> <span class="Delimiter">{</span> -<span id="L541" class="LineNr"> 541 </span> <span class="PreProc">break-if-=</span> -<span id="L542" class="LineNr"> 542 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for - is not a number"</span> -<span id="L543" class="LineNr"> 543 </span> <span class="PreProc">return</span> -<span id="L544" class="LineNr"> 544 </span> <span class="Delimiter">}</span> -<span id="L545" class="LineNr"> 545 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L546" class="LineNr"> 546 </span> <span class="muComment"># args->right->left->value</span> -<span id="L547" class="LineNr"> 547 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L548" class="LineNr"> 548 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L549" class="LineNr"> 549 </span> <span class="Delimiter">{</span> -<span id="L550" class="LineNr"> 550 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L551" class="LineNr"> 551 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L552" class="LineNr"> 552 </span> <span class="PreProc">break-if-=</span> -<span id="L553" class="LineNr"> 553 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"- encountered non-pair"</span> -<span id="L554" class="LineNr"> 554 </span> <span class="PreProc">return</span> -<span id="L555" class="LineNr"> 555 </span> <span class="Delimiter">}</span> -<span id="L556" class="LineNr"> 556 </span> <span class="Delimiter">{</span> -<span id="L557" class="LineNr"> 557 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L558" class="LineNr"> 558 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L559" class="LineNr"> 559 </span> <span class="PreProc">break-if-=</span> -<span id="L560" class="LineNr"> 560 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"- needs 2 args but got 1"</span> -<span id="L561" class="LineNr"> 561 </span> <span class="PreProc">return</span> -<span id="L562" class="LineNr"> 562 </span> <span class="Delimiter">}</span> -<span id="L563" class="LineNr"> 563 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L564" class="LineNr"> 564 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L565" class="LineNr"> 565 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L566" class="LineNr"> 566 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L567" class="LineNr"> 567 </span> <span class="Delimiter">{</span> -<span id="L568" class="LineNr"> 568 </span> <span class="PreProc">break-if-=</span> -<span id="L569" class="LineNr"> 569 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for - is not a number"</span> -<span id="L570" class="LineNr"> 570 </span> <span class="PreProc">return</span> -<span id="L571" class="LineNr"> 571 </span> <span class="Delimiter">}</span> -<span id="L572" class="LineNr"> 572 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L573" class="LineNr"> 573 </span> <span class="muComment"># subtract</span> -<span id="L574" class="LineNr"> 574 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L575" class="LineNr"> 575 </span> result <span class="Special"><-</span> subtract *second-value -<span id="L576" class="LineNr"> 576 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L577" class="LineNr"> 577 </span><span class="Delimiter">}</span> -<span id="L578" class="LineNr"> 578 </span> -<span id="L579" class="LineNr"> 579 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L579'>apply-multiply</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L580" class="LineNr"> 580 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply *"</span> -<span id="L581" class="LineNr"> 581 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L582" class="LineNr"> 582 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L583" class="LineNr"> 583 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L584" class="LineNr"> 584 </span> <span class="Delimiter">{</span> -<span id="L585" class="LineNr"> 585 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L586" class="LineNr"> 586 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L587" class="LineNr"> 587 </span> <span class="PreProc">break-if-=</span> -<span id="L588" class="LineNr"> 588 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to * are not a list"</span> -<span id="L589" class="LineNr"> 589 </span> <span class="PreProc">return</span> -<span id="L590" class="LineNr"> 590 </span> <span class="Delimiter">}</span> -<span id="L591" class="LineNr"> 591 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L592" class="LineNr"> 592 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L593" class="LineNr"> 593 </span> <span class="Delimiter">{</span> -<span id="L594" class="LineNr"> 594 </span> <span class="PreProc">break-if-=</span> -<span id="L595" class="LineNr"> 595 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"* needs 2 args but got 0"</span> -<span id="L596" class="LineNr"> 596 </span> <span class="PreProc">return</span> -<span id="L597" class="LineNr"> 597 </span> <span class="Delimiter">}</span> -<span id="L598" class="LineNr"> 598 </span> <span class="muComment"># args->left->value</span> -<span id="L599" class="LineNr"> 599 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L600" class="LineNr"> 600 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L601" class="LineNr"> 601 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L602" class="LineNr"> 602 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L531" class="LineNr"> 531 </span> <span class="PreProc">var</span> rewind?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"rewind"</span> +<span id="L532" class="LineNr"> 532 </span> compare rewind?, <span class="Constant">0</span>/false +<span id="L533" class="LineNr"> 533 </span> <span class="PreProc">break-if-=</span> +<span id="L534" class="LineNr"> 534 </span> <a href='primitives.mu.html#L3001'>apply-rewind</a> args-ah, out, trace +<span id="L535" class="LineNr"> 535 </span> <span class="PreProc">return</span> +<span id="L536" class="LineNr"> 536 </span> <span class="Delimiter">}</span> +<span id="L537" class="LineNr"> 537 </span> <span class="Delimiter">{</span> +<span id="L538" class="LineNr"> 538 </span> <span class="PreProc">var</span> read?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"read"</span> +<span id="L539" class="LineNr"> 539 </span> compare read?, <span class="Constant">0</span>/false +<span id="L540" class="LineNr"> 540 </span> <span class="PreProc">break-if-=</span> +<span id="L541" class="LineNr"> 541 </span> <a href='primitives.mu.html#L3037'>apply-read</a> args-ah, out, trace +<span id="L542" class="LineNr"> 542 </span> <span class="PreProc">return</span> +<span id="L543" class="LineNr"> 543 </span> <span class="Delimiter">}</span> +<span id="L544" class="LineNr"> 544 </span> <span class="Delimiter">{</span> +<span id="L545" class="LineNr"> 545 </span> <span class="PreProc">var</span> abort?/eax: boolean <span class="Special"><-</span> <a href='../105string-equal.subx.html#L8'>string-equal?</a> f-name, <span class="Constant">"abort"</span> +<span id="L546" class="LineNr"> 546 </span> compare abort?, <span class="Constant">0</span>/false +<span id="L547" class="LineNr"> 547 </span> <span class="PreProc">break-if-=</span> +<span id="L548" class="LineNr"> 548 </span> <a href='primitives.mu.html#L3115'>apply-abort</a> args-ah, out, trace +<span id="L549" class="LineNr"> 549 </span> <span class="PreProc">return</span> +<span id="L550" class="LineNr"> 550 </span> <span class="Delimiter">}</span> +<span id="L551" class="LineNr"> 551 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"unknown primitive function"</span> +<span id="L552" class="LineNr"> 552 </span><span class="Delimiter">}</span> +<span id="L553" class="LineNr"> 553 </span> +<span id="L554" class="LineNr"> 554 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L554'>apply-add</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L555" class="LineNr"> 555 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply +"</span> +<span id="L556" class="LineNr"> 556 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L557" class="LineNr"> 557 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L558" class="LineNr"> 558 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L559" class="LineNr"> 559 </span> <span class="Delimiter">{</span> +<span id="L560" class="LineNr"> 560 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L561" class="LineNr"> 561 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L562" class="LineNr"> 562 </span> <span class="PreProc">break-if-=</span> +<span id="L563" class="LineNr"> 563 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to + are not a list"</span> +<span id="L564" class="LineNr"> 564 </span> <span class="PreProc">return</span> +<span id="L565" class="LineNr"> 565 </span> <span class="Delimiter">}</span> +<span id="L566" class="LineNr"> 566 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L567" class="LineNr"> 567 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L568" class="LineNr"> 568 </span> <span class="Delimiter">{</span> +<span id="L569" class="LineNr"> 569 </span> <span class="PreProc">break-if-=</span> +<span id="L570" class="LineNr"> 570 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"+ needs 2 args but got 0"</span> +<span id="L571" class="LineNr"> 571 </span> <span class="PreProc">return</span> +<span id="L572" class="LineNr"> 572 </span> <span class="Delimiter">}</span> +<span id="L573" class="LineNr"> 573 </span> <span class="muComment"># args->left->value</span> +<span id="L574" class="LineNr"> 574 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L575" class="LineNr"> 575 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L576" class="LineNr"> 576 </span> <span class="Delimiter">{</span> +<span id="L577" class="LineNr"> 577 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L578" class="LineNr"> 578 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L579" class="LineNr"> 579 </span> <span class="PreProc">break-if-=</span> +<span id="L580" class="LineNr"> 580 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for + is not a number"</span> +<span id="L581" class="LineNr"> 581 </span> <span class="PreProc">return</span> +<span id="L582" class="LineNr"> 582 </span> <span class="Delimiter">}</span> +<span id="L583" class="LineNr"> 583 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L584" class="LineNr"> 584 </span> <span class="muComment"># args->right->left->value</span> +<span id="L585" class="LineNr"> 585 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L586" class="LineNr"> 586 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L587" class="LineNr"> 587 </span> <span class="Delimiter">{</span> +<span id="L588" class="LineNr"> 588 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L589" class="LineNr"> 589 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L590" class="LineNr"> 590 </span> <span class="PreProc">break-if-=</span> +<span id="L591" class="LineNr"> 591 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"+ encountered non-pair"</span> +<span id="L592" class="LineNr"> 592 </span> <span class="PreProc">return</span> +<span id="L593" class="LineNr"> 593 </span> <span class="Delimiter">}</span> +<span id="L594" class="LineNr"> 594 </span> <span class="Delimiter">{</span> +<span id="L595" class="LineNr"> 595 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L596" class="LineNr"> 596 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L597" class="LineNr"> 597 </span> <span class="PreProc">break-if-=</span> +<span id="L598" class="LineNr"> 598 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"+ needs 2 args but got 1"</span> +<span id="L599" class="LineNr"> 599 </span> <span class="PreProc">return</span> +<span id="L600" class="LineNr"> 600 </span> <span class="Delimiter">}</span> +<span id="L601" class="LineNr"> 601 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L602" class="LineNr"> 602 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah <span id="L603" class="LineNr"> 603 </span> <span class="Delimiter">{</span> -<span id="L604" class="LineNr"> 604 </span> <span class="PreProc">break-if-=</span> -<span id="L605" class="LineNr"> 605 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for * is not a number"</span> -<span id="L606" class="LineNr"> 606 </span> <span class="PreProc">return</span> -<span id="L607" class="LineNr"> 607 </span> <span class="Delimiter">}</span> -<span id="L608" class="LineNr"> 608 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L609" class="LineNr"> 609 </span> <span class="muComment"># args->right->left->value</span> -<span id="L610" class="LineNr"> 610 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L611" class="LineNr"> 611 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L612" class="LineNr"> 612 </span> <span class="Delimiter">{</span> -<span id="L613" class="LineNr"> 613 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L614" class="LineNr"> 614 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L615" class="LineNr"> 615 </span> <span class="PreProc">break-if-=</span> -<span id="L616" class="LineNr"> 616 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"* encountered non-pair"</span> -<span id="L617" class="LineNr"> 617 </span> <span class="PreProc">return</span> -<span id="L618" class="LineNr"> 618 </span> <span class="Delimiter">}</span> -<span id="L619" class="LineNr"> 619 </span> <span class="Delimiter">{</span> -<span id="L620" class="LineNr"> 620 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L621" class="LineNr"> 621 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L622" class="LineNr"> 622 </span> <span class="PreProc">break-if-=</span> -<span id="L623" class="LineNr"> 623 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"* needs 2 args but got 1"</span> -<span id="L624" class="LineNr"> 624 </span> <span class="PreProc">return</span> -<span id="L625" class="LineNr"> 625 </span> <span class="Delimiter">}</span> -<span id="L626" class="LineNr"> 626 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L627" class="LineNr"> 627 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L628" class="LineNr"> 628 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L629" class="LineNr"> 629 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L630" class="LineNr"> 630 </span> <span class="Delimiter">{</span> -<span id="L631" class="LineNr"> 631 </span> <span class="PreProc">break-if-=</span> -<span id="L632" class="LineNr"> 632 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for * is not a number"</span> -<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">return</span> -<span id="L634" class="LineNr"> 634 </span> <span class="Delimiter">}</span> -<span id="L635" class="LineNr"> 635 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L636" class="LineNr"> 636 </span> <span class="muComment"># multiply</span> -<span id="L637" class="LineNr"> 637 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L638" class="LineNr"> 638 </span> result <span class="Special"><-</span> multiply *second-value -<span id="L639" class="LineNr"> 639 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L640" class="LineNr"> 640 </span><span class="Delimiter">}</span> -<span id="L641" class="LineNr"> 641 </span> -<span id="L642" class="LineNr"> 642 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L642'>apply-divide</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L643" class="LineNr"> 643 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply /"</span> -<span id="L644" class="LineNr"> 644 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L645" class="LineNr"> 645 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L646" class="LineNr"> 646 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L647" class="LineNr"> 647 </span> <span class="Delimiter">{</span> -<span id="L648" class="LineNr"> 648 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L649" class="LineNr"> 649 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L650" class="LineNr"> 650 </span> <span class="PreProc">break-if-=</span> -<span id="L651" class="LineNr"> 651 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to / are not a list"</span> -<span id="L652" class="LineNr"> 652 </span> <span class="PreProc">return</span> -<span id="L653" class="LineNr"> 653 </span> <span class="Delimiter">}</span> -<span id="L654" class="LineNr"> 654 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L655" class="LineNr"> 655 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L656" class="LineNr"> 656 </span> <span class="Delimiter">{</span> -<span id="L657" class="LineNr"> 657 </span> <span class="PreProc">break-if-=</span> -<span id="L658" class="LineNr"> 658 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"/ needs 2 args but got 0"</span> -<span id="L659" class="LineNr"> 659 </span> <span class="PreProc">return</span> -<span id="L660" class="LineNr"> 660 </span> <span class="Delimiter">}</span> -<span id="L661" class="LineNr"> 661 </span> <span class="muComment"># args->left->value</span> -<span id="L662" class="LineNr"> 662 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L663" class="LineNr"> 663 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L664" class="LineNr"> 664 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L665" class="LineNr"> 665 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L666" class="LineNr"> 666 </span> <span class="Delimiter">{</span> -<span id="L667" class="LineNr"> 667 </span> <span class="PreProc">break-if-=</span> -<span id="L668" class="LineNr"> 668 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for / is not a number"</span> -<span id="L669" class="LineNr"> 669 </span> <span class="PreProc">return</span> -<span id="L670" class="LineNr"> 670 </span> <span class="Delimiter">}</span> -<span id="L671" class="LineNr"> 671 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L672" class="LineNr"> 672 </span> <span class="muComment"># args->right->left->value</span> -<span id="L673" class="LineNr"> 673 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L674" class="LineNr"> 674 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L675" class="LineNr"> 675 </span> <span class="Delimiter">{</span> -<span id="L676" class="LineNr"> 676 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L677" class="LineNr"> 677 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L678" class="LineNr"> 678 </span> <span class="PreProc">break-if-=</span> -<span id="L679" class="LineNr"> 679 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"/ encountered non-pair"</span> -<span id="L680" class="LineNr"> 680 </span> <span class="PreProc">return</span> -<span id="L681" class="LineNr"> 681 </span> <span class="Delimiter">}</span> -<span id="L682" class="LineNr"> 682 </span> <span class="Delimiter">{</span> -<span id="L683" class="LineNr"> 683 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L684" class="LineNr"> 684 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L685" class="LineNr"> 685 </span> <span class="PreProc">break-if-=</span> -<span id="L686" class="LineNr"> 686 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"/ needs 2 args but got 1"</span> -<span id="L687" class="LineNr"> 687 </span> <span class="PreProc">return</span> -<span id="L688" class="LineNr"> 688 </span> <span class="Delimiter">}</span> -<span id="L689" class="LineNr"> 689 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L690" class="LineNr"> 690 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L691" class="LineNr"> 691 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L692" class="LineNr"> 692 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L693" class="LineNr"> 693 </span> <span class="Delimiter">{</span> -<span id="L694" class="LineNr"> 694 </span> <span class="PreProc">break-if-=</span> -<span id="L695" class="LineNr"> 695 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for / is not a number"</span> -<span id="L696" class="LineNr"> 696 </span> <span class="PreProc">return</span> -<span id="L697" class="LineNr"> 697 </span> <span class="Delimiter">}</span> -<span id="L698" class="LineNr"> 698 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L699" class="LineNr"> 699 </span> <span class="muComment"># divide</span> -<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L701" class="LineNr"> 701 </span> result <span class="Special"><-</span> divide *second-value -<span id="L702" class="LineNr"> 702 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L703" class="LineNr"> 703 </span><span class="Delimiter">}</span> -<span id="L704" class="LineNr"> 704 </span> -<span id="L705" class="LineNr"> 705 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L705'>apply-remainder</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L706" class="LineNr"> 706 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply %"</span> -<span id="L707" class="LineNr"> 707 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L708" class="LineNr"> 708 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L709" class="LineNr"> 709 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L710" class="LineNr"> 710 </span> <span class="Delimiter">{</span> -<span id="L711" class="LineNr"> 711 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L712" class="LineNr"> 712 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L713" class="LineNr"> 713 </span> <span class="PreProc">break-if-=</span> -<span id="L714" class="LineNr"> 714 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to % are not a list"</span> -<span id="L715" class="LineNr"> 715 </span> <span class="PreProc">return</span> -<span id="L716" class="LineNr"> 716 </span> <span class="Delimiter">}</span> -<span id="L717" class="LineNr"> 717 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L718" class="LineNr"> 718 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L719" class="LineNr"> 719 </span> <span class="Delimiter">{</span> -<span id="L720" class="LineNr"> 720 </span> <span class="PreProc">break-if-=</span> -<span id="L721" class="LineNr"> 721 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"% needs 2 args but got 0"</span> -<span id="L722" class="LineNr"> 722 </span> <span class="PreProc">return</span> -<span id="L723" class="LineNr"> 723 </span> <span class="Delimiter">}</span> -<span id="L724" class="LineNr"> 724 </span> <span class="muComment"># args->left->value</span> -<span id="L725" class="LineNr"> 725 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L726" class="LineNr"> 726 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L727" class="LineNr"> 727 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L728" class="LineNr"> 728 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L729" class="LineNr"> 729 </span> <span class="Delimiter">{</span> -<span id="L730" class="LineNr"> 730 </span> <span class="PreProc">break-if-=</span> -<span id="L731" class="LineNr"> 731 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for % is not a number"</span> -<span id="L732" class="LineNr"> 732 </span> <span class="PreProc">return</span> -<span id="L733" class="LineNr"> 733 </span> <span class="Delimiter">}</span> -<span id="L734" class="LineNr"> 734 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L735" class="LineNr"> 735 </span> <span class="muComment"># args->right->left->value</span> -<span id="L736" class="LineNr"> 736 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L737" class="LineNr"> 737 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L738" class="LineNr"> 738 </span> <span class="Delimiter">{</span> -<span id="L739" class="LineNr"> 739 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L740" class="LineNr"> 740 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L741" class="LineNr"> 741 </span> <span class="PreProc">break-if-=</span> -<span id="L742" class="LineNr"> 742 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"% encountered non-pair"</span> -<span id="L743" class="LineNr"> 743 </span> <span class="PreProc">return</span> -<span id="L744" class="LineNr"> 744 </span> <span class="Delimiter">}</span> -<span id="L745" class="LineNr"> 745 </span> <span class="Delimiter">{</span> -<span id="L746" class="LineNr"> 746 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L747" class="LineNr"> 747 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L748" class="LineNr"> 748 </span> <span class="PreProc">break-if-=</span> -<span id="L749" class="LineNr"> 749 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"% needs 2 args but got 1"</span> -<span id="L750" class="LineNr"> 750 </span> <span class="PreProc">return</span> -<span id="L751" class="LineNr"> 751 </span> <span class="Delimiter">}</span> -<span id="L752" class="LineNr"> 752 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L753" class="LineNr"> 753 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L754" class="LineNr"> 754 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L755" class="LineNr"> 755 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L756" class="LineNr"> 756 </span> <span class="Delimiter">{</span> -<span id="L757" class="LineNr"> 757 </span> <span class="PreProc">break-if-=</span> -<span id="L758" class="LineNr"> 758 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for % is not a number"</span> -<span id="L759" class="LineNr"> 759 </span> <span class="PreProc">return</span> -<span id="L760" class="LineNr"> 760 </span> <span class="Delimiter">}</span> -<span id="L761" class="LineNr"> 761 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L762" class="LineNr"> 762 </span> <span class="muComment"># divide</span> -<span id="L763" class="LineNr"> 763 </span> <span class="PreProc">var</span> quotient/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L764" class="LineNr"> 764 </span> quotient <span class="Special"><-</span> divide *second-value -<span id="L765" class="LineNr"> 765 </span> <span class="PreProc">var</span> quotient-int/eax: int <span class="Special"><-</span> truncate quotient -<span id="L766" class="LineNr"> 766 </span> quotient <span class="Special"><-</span> convert quotient-int -<span id="L767" class="LineNr"> 767 </span> <span class="PreProc">var</span> sub-result/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy quotient -<span id="L768" class="LineNr"> 768 </span> sub-result <span class="Special"><-</span> multiply *second-value -<span id="L769" class="LineNr"> 769 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L770" class="LineNr"> 770 </span> result <span class="Special"><-</span> subtract sub-result -<span id="L771" class="LineNr"> 771 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L772" class="LineNr"> 772 </span><span class="Delimiter">}</span> -<span id="L773" class="LineNr"> 773 </span> -<span id="L774" class="LineNr"> 774 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L774'>apply-square-root</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L775" class="LineNr"> 775 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply sqrt"</span> -<span id="L776" class="LineNr"> 776 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L777" class="LineNr"> 777 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L779" class="LineNr"> 779 </span> <span class="Delimiter">{</span> -<span id="L780" class="LineNr"> 780 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L781" class="LineNr"> 781 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L782" class="LineNr"> 782 </span> <span class="PreProc">break-if-=</span> -<span id="L783" class="LineNr"> 783 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to sqrt are not a list"</span> -<span id="L784" class="LineNr"> 784 </span> <span class="PreProc">return</span> -<span id="L785" class="LineNr"> 785 </span> <span class="Delimiter">}</span> -<span id="L786" class="LineNr"> 786 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L787" class="LineNr"> 787 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L788" class="LineNr"> 788 </span> <span class="Delimiter">{</span> -<span id="L789" class="LineNr"> 789 </span> <span class="PreProc">break-if-=</span> -<span id="L790" class="LineNr"> 790 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"sqrt needs 1 arg but got 0"</span> -<span id="L791" class="LineNr"> 791 </span> <span class="PreProc">return</span> -<span id="L792" class="LineNr"> 792 </span> <span class="Delimiter">}</span> -<span id="L793" class="LineNr"> 793 </span> <span class="muComment"># args->left->value</span> -<span id="L794" class="LineNr"> 794 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L795" class="LineNr"> 795 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L796" class="LineNr"> 796 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L797" class="LineNr"> 797 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L798" class="LineNr"> 798 </span> <span class="Delimiter">{</span> -<span id="L799" class="LineNr"> 799 </span> <span class="PreProc">break-if-=</span> -<span id="L800" class="LineNr"> 800 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"arg for sqrt is not a number"</span> -<span id="L801" class="LineNr"> 801 </span> <span class="PreProc">return</span> -<span id="L802" class="LineNr"> 802 </span> <span class="Delimiter">}</span> -<span id="L803" class="LineNr"> 803 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L804" class="LineNr"> 804 </span> <span class="muComment"># square-root</span> -<span id="L805" class="LineNr"> 805 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> square-root *first-value -<span id="L806" class="LineNr"> 806 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L807" class="LineNr"> 807 </span><span class="Delimiter">}</span> -<span id="L808" class="LineNr"> 808 </span> -<span id="L809" class="LineNr"> 809 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L809'>apply-abs</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L810" class="LineNr"> 810 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply abs"</span> -<span id="L811" class="LineNr"> 811 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L812" class="LineNr"> 812 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L813" class="LineNr"> 813 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L814" class="LineNr"> 814 </span> <span class="Delimiter">{</span> -<span id="L815" class="LineNr"> 815 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L816" class="LineNr"> 816 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L817" class="LineNr"> 817 </span> <span class="PreProc">break-if-=</span> -<span id="L818" class="LineNr"> 818 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='../506math.mu.html#L1'>abs</a> are not a list"</span> -<span id="L819" class="LineNr"> 819 </span> <span class="PreProc">return</span> -<span id="L820" class="LineNr"> 820 </span> <span class="Delimiter">}</span> -<span id="L821" class="LineNr"> 821 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L822" class="LineNr"> 822 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L823" class="LineNr"> 823 </span> <span class="Delimiter">{</span> +<span id="L604" class="LineNr"> 604 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L605" class="LineNr"> 605 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L606" class="LineNr"> 606 </span> <span class="PreProc">break-if-=</span> +<span id="L607" class="LineNr"> 607 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for + is not a number"</span> +<span id="L608" class="LineNr"> 608 </span> <span class="PreProc">return</span> +<span id="L609" class="LineNr"> 609 </span> <span class="Delimiter">}</span> +<span id="L610" class="LineNr"> 610 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L611" class="LineNr"> 611 </span> <span class="muComment"># add</span> +<span id="L612" class="LineNr"> 612 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L613" class="LineNr"> 613 </span> result <span class="Special"><-</span> add *second-value +<span id="L614" class="LineNr"> 614 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L615" class="LineNr"> 615 </span><span class="Delimiter">}</span> +<span id="L616" class="LineNr"> 616 </span> +<span id="L617" class="LineNr"> 617 </span><span class="PreProc">fn</span> <span class="muTest"><a href='primitives.mu.html#L617'>test-evaluate-missing-arg-in-add</a></span> <span class="Delimiter">{</span> +<span id="L618" class="LineNr"> 618 </span> <span class="PreProc">var</span> t-storage: trace +<span id="L619" class="LineNr"> 619 </span> <span class="PreProc">var</span> t/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special"><-</span> address t-storage +<span id="L620" class="LineNr"> 620 </span> <a href='trace.mu.html#L61'>initialize-trace</a> t, <span class="Constant">0x100</span>/max-depth, <span class="Constant">0x100</span>/capacity, <span class="Constant">0</span>/visible <span class="muComment"># we don't use trace UI</span> +<span id="L621" class="LineNr"> 621 </span> <span class="muComment">#</span> +<span id="L622" class="LineNr"> 622 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L623" class="LineNr"> 623 </span> <span class="PreProc">var</span> nil-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L624" class="LineNr"> 624 </span> <a href='cell.mu.html#L102'>allocate-pair</a> nil-ah +<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> one-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L626" class="LineNr"> 626 </span> <span class="PreProc">var</span> one-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address one-storage +<span id="L627" class="LineNr"> 627 </span> <a href='cell.mu.html#L84'>new-integer</a> one-ah, <span class="Constant">1</span> +<span id="L628" class="LineNr"> 628 </span> <span class="PreProc">var</span> add-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L629" class="LineNr"> 629 </span> <span class="PreProc">var</span> add-ah/<span class="muRegEbx">ebx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address add-storage +<span id="L630" class="LineNr"> 630 </span> <a href='cell.mu.html#L39'>new-symbol</a> add-ah, <span class="Constant">"+"</span> +<span id="L631" class="LineNr"> 631 </span> <span class="muComment"># input is (+ 1)</span> +<span id="L632" class="LineNr"> 632 </span> <span class="PreProc">var</span> tmp-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address tmp-storage +<span id="L634" class="LineNr"> 634 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *one-ah, *nil-ah +<span id="L635" class="LineNr"> 635 </span> <a href='cell.mu.html#L116'>new-pair</a> tmp-ah, *add-ah, *tmp-ah +<span id="L636" class="LineNr"> 636 </span><span class="CommentedCode">#? dump-cell tmp-ah</span> +<span id="L637" class="LineNr"> 637 </span> <span class="muComment">#</span> +<span id="L638" class="LineNr"> 638 </span> <span class="PreProc">var</span> globals-storage: <a href='global.mu.html#L1'>global-table</a> +<span id="L639" class="LineNr"> 639 </span> <span class="PreProc">var</span> globals/<span class="muRegEdx">edx</span>: (addr <a href='global.mu.html#L1'>global-table</a>) <span class="Special"><-</span> address globals-storage +<span id="L640" class="LineNr"> 640 </span> <a href='global.mu.html#L14'>initialize-globals</a> globals +<span id="L641" class="LineNr"> 641 </span> <span class="muComment">#</span> +<span id="L642" class="LineNr"> 642 </span> <a href='evaluate.mu.html#L11'>evaluate</a> tmp-ah, tmp-ah, *nil-ah, globals, t, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number +<span id="L643" class="LineNr"> 643 </span> <span class="muComment"># no crash</span> +<span id="L644" class="LineNr"> 644 </span><span class="Delimiter">}</span> +<span id="L645" class="LineNr"> 645 </span> +<span id="L646" class="LineNr"> 646 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L646'>apply-subtract</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L647" class="LineNr"> 647 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply -"</span> +<span id="L648" class="LineNr"> 648 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L649" class="LineNr"> 649 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L650" class="LineNr"> 650 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L651" class="LineNr"> 651 </span> <span class="Delimiter">{</span> +<span id="L652" class="LineNr"> 652 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L653" class="LineNr"> 653 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L654" class="LineNr"> 654 </span> <span class="PreProc">break-if-=</span> +<span id="L655" class="LineNr"> 655 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to - are not a list"</span> +<span id="L656" class="LineNr"> 656 </span> <span class="PreProc">return</span> +<span id="L657" class="LineNr"> 657 </span> <span class="Delimiter">}</span> +<span id="L658" class="LineNr"> 658 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L659" class="LineNr"> 659 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L660" class="LineNr"> 660 </span> <span class="Delimiter">{</span> +<span id="L661" class="LineNr"> 661 </span> <span class="PreProc">break-if-=</span> +<span id="L662" class="LineNr"> 662 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"- needs 2 args but got 0"</span> +<span id="L663" class="LineNr"> 663 </span> <span class="PreProc">return</span> +<span id="L664" class="LineNr"> 664 </span> <span class="Delimiter">}</span> +<span id="L665" class="LineNr"> 665 </span> <span class="muComment"># args->left->value</span> +<span id="L666" class="LineNr"> 666 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L667" class="LineNr"> 667 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L668" class="LineNr"> 668 </span> <span class="Delimiter">{</span> +<span id="L669" class="LineNr"> 669 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L670" class="LineNr"> 670 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L671" class="LineNr"> 671 </span> <span class="PreProc">break-if-=</span> +<span id="L672" class="LineNr"> 672 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for - is not a number"</span> +<span id="L673" class="LineNr"> 673 </span> <span class="PreProc">return</span> +<span id="L674" class="LineNr"> 674 </span> <span class="Delimiter">}</span> +<span id="L675" class="LineNr"> 675 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L676" class="LineNr"> 676 </span> <span class="muComment"># args->right->left->value</span> +<span id="L677" class="LineNr"> 677 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L678" class="LineNr"> 678 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L679" class="LineNr"> 679 </span> <span class="Delimiter">{</span> +<span id="L680" class="LineNr"> 680 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L681" class="LineNr"> 681 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L682" class="LineNr"> 682 </span> <span class="PreProc">break-if-=</span> +<span id="L683" class="LineNr"> 683 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"- encountered non-pair"</span> +<span id="L684" class="LineNr"> 684 </span> <span class="PreProc">return</span> +<span id="L685" class="LineNr"> 685 </span> <span class="Delimiter">}</span> +<span id="L686" class="LineNr"> 686 </span> <span class="Delimiter">{</span> +<span id="L687" class="LineNr"> 687 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L688" class="LineNr"> 688 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L689" class="LineNr"> 689 </span> <span class="PreProc">break-if-=</span> +<span id="L690" class="LineNr"> 690 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"- needs 2 args but got 1"</span> +<span id="L691" class="LineNr"> 691 </span> <span class="PreProc">return</span> +<span id="L692" class="LineNr"> 692 </span> <span class="Delimiter">}</span> +<span id="L693" class="LineNr"> 693 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L694" class="LineNr"> 694 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L695" class="LineNr"> 695 </span> <span class="Delimiter">{</span> +<span id="L696" class="LineNr"> 696 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L697" class="LineNr"> 697 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L698" class="LineNr"> 698 </span> <span class="PreProc">break-if-=</span> +<span id="L699" class="LineNr"> 699 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for - is not a number"</span> +<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">return</span> +<span id="L701" class="LineNr"> 701 </span> <span class="Delimiter">}</span> +<span id="L702" class="LineNr"> 702 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L703" class="LineNr"> 703 </span> <span class="muComment"># subtract</span> +<span id="L704" class="LineNr"> 704 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L705" class="LineNr"> 705 </span> result <span class="Special"><-</span> subtract *second-value +<span id="L706" class="LineNr"> 706 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L707" class="LineNr"> 707 </span><span class="Delimiter">}</span> +<span id="L708" class="LineNr"> 708 </span> +<span id="L709" class="LineNr"> 709 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L709'>apply-multiply</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L710" class="LineNr"> 710 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply *"</span> +<span id="L711" class="LineNr"> 711 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L712" class="LineNr"> 712 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L713" class="LineNr"> 713 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L714" class="LineNr"> 714 </span> <span class="Delimiter">{</span> +<span id="L715" class="LineNr"> 715 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L716" class="LineNr"> 716 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L717" class="LineNr"> 717 </span> <span class="PreProc">break-if-=</span> +<span id="L718" class="LineNr"> 718 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to * are not a list"</span> +<span id="L719" class="LineNr"> 719 </span> <span class="PreProc">return</span> +<span id="L720" class="LineNr"> 720 </span> <span class="Delimiter">}</span> +<span id="L721" class="LineNr"> 721 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L722" class="LineNr"> 722 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L723" class="LineNr"> 723 </span> <span class="Delimiter">{</span> +<span id="L724" class="LineNr"> 724 </span> <span class="PreProc">break-if-=</span> +<span id="L725" class="LineNr"> 725 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"* needs 2 args but got 0"</span> +<span id="L726" class="LineNr"> 726 </span> <span class="PreProc">return</span> +<span id="L727" class="LineNr"> 727 </span> <span class="Delimiter">}</span> +<span id="L728" class="LineNr"> 728 </span> <span class="muComment"># args->left->value</span> +<span id="L729" class="LineNr"> 729 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L730" class="LineNr"> 730 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L731" class="LineNr"> 731 </span> <span class="Delimiter">{</span> +<span id="L732" class="LineNr"> 732 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L733" class="LineNr"> 733 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L734" class="LineNr"> 734 </span> <span class="PreProc">break-if-=</span> +<span id="L735" class="LineNr"> 735 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for * is not a number"</span> +<span id="L736" class="LineNr"> 736 </span> <span class="PreProc">return</span> +<span id="L737" class="LineNr"> 737 </span> <span class="Delimiter">}</span> +<span id="L738" class="LineNr"> 738 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L739" class="LineNr"> 739 </span> <span class="muComment"># args->right->left->value</span> +<span id="L740" class="LineNr"> 740 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L741" class="LineNr"> 741 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L742" class="LineNr"> 742 </span> <span class="Delimiter">{</span> +<span id="L743" class="LineNr"> 743 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L744" class="LineNr"> 744 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L745" class="LineNr"> 745 </span> <span class="PreProc">break-if-=</span> +<span id="L746" class="LineNr"> 746 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"* encountered non-pair"</span> +<span id="L747" class="LineNr"> 747 </span> <span class="PreProc">return</span> +<span id="L748" class="LineNr"> 748 </span> <span class="Delimiter">}</span> +<span id="L749" class="LineNr"> 749 </span> <span class="Delimiter">{</span> +<span id="L750" class="LineNr"> 750 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L751" class="LineNr"> 751 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L752" class="LineNr"> 752 </span> <span class="PreProc">break-if-=</span> +<span id="L753" class="LineNr"> 753 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"* needs 2 args but got 1"</span> +<span id="L754" class="LineNr"> 754 </span> <span class="PreProc">return</span> +<span id="L755" class="LineNr"> 755 </span> <span class="Delimiter">}</span> +<span id="L756" class="LineNr"> 756 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L757" class="LineNr"> 757 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L758" class="LineNr"> 758 </span> <span class="Delimiter">{</span> +<span id="L759" class="LineNr"> 759 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L760" class="LineNr"> 760 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L761" class="LineNr"> 761 </span> <span class="PreProc">break-if-=</span> +<span id="L762" class="LineNr"> 762 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for * is not a number"</span> +<span id="L763" class="LineNr"> 763 </span> <span class="PreProc">return</span> +<span id="L764" class="LineNr"> 764 </span> <span class="Delimiter">}</span> +<span id="L765" class="LineNr"> 765 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L766" class="LineNr"> 766 </span> <span class="muComment"># multiply</span> +<span id="L767" class="LineNr"> 767 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L768" class="LineNr"> 768 </span> result <span class="Special"><-</span> multiply *second-value +<span id="L769" class="LineNr"> 769 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L770" class="LineNr"> 770 </span><span class="Delimiter">}</span> +<span id="L771" class="LineNr"> 771 </span> +<span id="L772" class="LineNr"> 772 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L772'>apply-divide</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L773" class="LineNr"> 773 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply /"</span> +<span id="L774" class="LineNr"> 774 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L775" class="LineNr"> 775 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L776" class="LineNr"> 776 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L777" class="LineNr"> 777 </span> <span class="Delimiter">{</span> +<span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L779" class="LineNr"> 779 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L780" class="LineNr"> 780 </span> <span class="PreProc">break-if-=</span> +<span id="L781" class="LineNr"> 781 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to / are not a list"</span> +<span id="L782" class="LineNr"> 782 </span> <span class="PreProc">return</span> +<span id="L783" class="LineNr"> 783 </span> <span class="Delimiter">}</span> +<span id="L784" class="LineNr"> 784 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L785" class="LineNr"> 785 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L786" class="LineNr"> 786 </span> <span class="Delimiter">{</span> +<span id="L787" class="LineNr"> 787 </span> <span class="PreProc">break-if-=</span> +<span id="L788" class="LineNr"> 788 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"/ needs 2 args but got 0"</span> +<span id="L789" class="LineNr"> 789 </span> <span class="PreProc">return</span> +<span id="L790" class="LineNr"> 790 </span> <span class="Delimiter">}</span> +<span id="L791" class="LineNr"> 791 </span> <span class="muComment"># args->left->value</span> +<span id="L792" class="LineNr"> 792 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L793" class="LineNr"> 793 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L794" class="LineNr"> 794 </span> <span class="Delimiter">{</span> +<span id="L795" class="LineNr"> 795 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L796" class="LineNr"> 796 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L797" class="LineNr"> 797 </span> <span class="PreProc">break-if-=</span> +<span id="L798" class="LineNr"> 798 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for / is not a number"</span> +<span id="L799" class="LineNr"> 799 </span> <span class="PreProc">return</span> +<span id="L800" class="LineNr"> 800 </span> <span class="Delimiter">}</span> +<span id="L801" class="LineNr"> 801 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L802" class="LineNr"> 802 </span> <span class="muComment"># args->right->left->value</span> +<span id="L803" class="LineNr"> 803 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L804" class="LineNr"> 804 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L805" class="LineNr"> 805 </span> <span class="Delimiter">{</span> +<span id="L806" class="LineNr"> 806 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L807" class="LineNr"> 807 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L808" class="LineNr"> 808 </span> <span class="PreProc">break-if-=</span> +<span id="L809" class="LineNr"> 809 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"/ encountered non-pair"</span> +<span id="L810" class="LineNr"> 810 </span> <span class="PreProc">return</span> +<span id="L811" class="LineNr"> 811 </span> <span class="Delimiter">}</span> +<span id="L812" class="LineNr"> 812 </span> <span class="Delimiter">{</span> +<span id="L813" class="LineNr"> 813 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L814" class="LineNr"> 814 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L815" class="LineNr"> 815 </span> <span class="PreProc">break-if-=</span> +<span id="L816" class="LineNr"> 816 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"/ needs 2 args but got 1"</span> +<span id="L817" class="LineNr"> 817 </span> <span class="PreProc">return</span> +<span id="L818" class="LineNr"> 818 </span> <span class="Delimiter">}</span> +<span id="L819" class="LineNr"> 819 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L820" class="LineNr"> 820 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L821" class="LineNr"> 821 </span> <span class="Delimiter">{</span> +<span id="L822" class="LineNr"> 822 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L823" class="LineNr"> 823 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L824" class="LineNr"> 824 </span> <span class="PreProc">break-if-=</span> -<span id="L825" class="LineNr"> 825 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"abs needs 1 arg but got 0"</span> +<span id="L825" class="LineNr"> 825 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for / is not a number"</span> <span id="L826" class="LineNr"> 826 </span> <span class="PreProc">return</span> <span id="L827" class="LineNr"> 827 </span> <span class="Delimiter">}</span> -<span id="L828" class="LineNr"> 828 </span> <span class="muComment"># args->left->value</span> -<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L830" class="LineNr"> 830 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L831" class="LineNr"> 831 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L832" class="LineNr"> 832 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L833" class="LineNr"> 833 </span> <span class="Delimiter">{</span> -<span id="L834" class="LineNr"> 834 </span> <span class="PreProc">break-if-=</span> -<span id="L835" class="LineNr"> 835 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"arg for <a href='../506math.mu.html#L1'>abs</a> is not a number"</span> -<span id="L836" class="LineNr"> 836 </span> <span class="PreProc">return</span> -<span id="L837" class="LineNr"> 837 </span> <span class="Delimiter">}</span> -<span id="L838" class="LineNr"> 838 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L839" class="LineNr"> 839 </span> <span class="muComment">#</span> -<span id="L840" class="LineNr"> 840 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L841" class="LineNr"> 841 </span> <span class="PreProc">var</span> zero: float -<span id="L842" class="LineNr"> 842 </span> compare result, zero -<span id="L843" class="LineNr"> 843 </span> <span class="Delimiter">{</span> -<span id="L844" class="LineNr"> 844 </span> <span class="PreProc">break-if-float>=</span> -<span id="L845" class="LineNr"> 845 </span> <span class="PreProc">var</span> neg1/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> -<span id="L846" class="LineNr"> 846 </span> <span class="PreProc">var</span> neg1-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert neg1 -<span id="L847" class="LineNr"> 847 </span> result <span class="Special"><-</span> multiply neg1-f -<span id="L848" class="LineNr"> 848 </span> <span class="Delimiter">}</span> -<span id="L849" class="LineNr"> 849 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L850" class="LineNr"> 850 </span><span class="Delimiter">}</span> -<span id="L851" class="LineNr"> 851 </span> -<span id="L852" class="LineNr"> 852 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L852'>apply-sgn</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L853" class="LineNr"> 853 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply sgn"</span> -<span id="L854" class="LineNr"> 854 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L855" class="LineNr"> 855 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L856" class="LineNr"> 856 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L828" class="LineNr"> 828 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L829" class="LineNr"> 829 </span> <span class="muComment"># divide</span> +<span id="L830" class="LineNr"> 830 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L831" class="LineNr"> 831 </span> result <span class="Special"><-</span> divide *second-value +<span id="L832" class="LineNr"> 832 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L833" class="LineNr"> 833 </span><span class="Delimiter">}</span> +<span id="L834" class="LineNr"> 834 </span> +<span id="L835" class="LineNr"> 835 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L835'>apply-remainder</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L836" class="LineNr"> 836 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply %"</span> +<span id="L837" class="LineNr"> 837 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L838" class="LineNr"> 838 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L839" class="LineNr"> 839 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L840" class="LineNr"> 840 </span> <span class="Delimiter">{</span> +<span id="L841" class="LineNr"> 841 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L842" class="LineNr"> 842 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L843" class="LineNr"> 843 </span> <span class="PreProc">break-if-=</span> +<span id="L844" class="LineNr"> 844 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to % are not a list"</span> +<span id="L845" class="LineNr"> 845 </span> <span class="PreProc">return</span> +<span id="L846" class="LineNr"> 846 </span> <span class="Delimiter">}</span> +<span id="L847" class="LineNr"> 847 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L848" class="LineNr"> 848 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L849" class="LineNr"> 849 </span> <span class="Delimiter">{</span> +<span id="L850" class="LineNr"> 850 </span> <span class="PreProc">break-if-=</span> +<span id="L851" class="LineNr"> 851 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"% needs 2 args but got 0"</span> +<span id="L852" class="LineNr"> 852 </span> <span class="PreProc">return</span> +<span id="L853" class="LineNr"> 853 </span> <span class="Delimiter">}</span> +<span id="L854" class="LineNr"> 854 </span> <span class="muComment"># args->left->value</span> +<span id="L855" class="LineNr"> 855 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L856" class="LineNr"> 856 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L857" class="LineNr"> 857 </span> <span class="Delimiter">{</span> -<span id="L858" class="LineNr"> 858 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L859" class="LineNr"> 859 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L858" class="LineNr"> 858 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L859" class="LineNr"> 859 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L860" class="LineNr"> 860 </span> <span class="PreProc">break-if-=</span> -<span id="L861" class="LineNr"> 861 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='../506math.mu.html#L10'>sgn</a> are not a list"</span> +<span id="L861" class="LineNr"> 861 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for % is not a number"</span> <span id="L862" class="LineNr"> 862 </span> <span class="PreProc">return</span> <span id="L863" class="LineNr"> 863 </span> <span class="Delimiter">}</span> -<span id="L864" class="LineNr"> 864 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L865" class="LineNr"> 865 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L866" class="LineNr"> 866 </span> <span class="Delimiter">{</span> -<span id="L867" class="LineNr"> 867 </span> <span class="PreProc">break-if-=</span> -<span id="L868" class="LineNr"> 868 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"sgn needs 1 arg but got 0"</span> -<span id="L869" class="LineNr"> 869 </span> <span class="PreProc">return</span> -<span id="L870" class="LineNr"> 870 </span> <span class="Delimiter">}</span> -<span id="L871" class="LineNr"> 871 </span> <span class="muComment"># args->left->value</span> -<span id="L872" class="LineNr"> 872 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L873" class="LineNr"> 873 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L874" class="LineNr"> 874 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L875" class="LineNr"> 875 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L876" class="LineNr"> 876 </span> <span class="Delimiter">{</span> -<span id="L877" class="LineNr"> 877 </span> <span class="PreProc">break-if-=</span> -<span id="L878" class="LineNr"> 878 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"arg for <a href='../506math.mu.html#L10'>sgn</a> is not a number"</span> -<span id="L879" class="LineNr"> 879 </span> <span class="PreProc">return</span> -<span id="L880" class="LineNr"> 880 </span> <span class="Delimiter">}</span> -<span id="L881" class="LineNr"> 881 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L882" class="LineNr"> 882 </span> <span class="muComment">#</span> -<span id="L883" class="LineNr"> 883 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L884" class="LineNr"> 884 </span> <span class="PreProc">var</span> zero: float -<span id="L885" class="LineNr"> 885 </span> $apply-sgn:core: <span class="Delimiter">{</span> -<span id="L886" class="LineNr"> 886 </span> compare result, zero +<span id="L864" class="LineNr"> 864 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L865" class="LineNr"> 865 </span> <span class="muComment"># args->right->left->value</span> +<span id="L866" class="LineNr"> 866 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L867" class="LineNr"> 867 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L868" class="LineNr"> 868 </span> <span class="Delimiter">{</span> +<span id="L869" class="LineNr"> 869 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L870" class="LineNr"> 870 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L871" class="LineNr"> 871 </span> <span class="PreProc">break-if-=</span> +<span id="L872" class="LineNr"> 872 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"% encountered non-pair"</span> +<span id="L873" class="LineNr"> 873 </span> <span class="PreProc">return</span> +<span id="L874" class="LineNr"> 874 </span> <span class="Delimiter">}</span> +<span id="L875" class="LineNr"> 875 </span> <span class="Delimiter">{</span> +<span id="L876" class="LineNr"> 876 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L877" class="LineNr"> 877 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L878" class="LineNr"> 878 </span> <span class="PreProc">break-if-=</span> +<span id="L879" class="LineNr"> 879 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"% needs 2 args but got 1"</span> +<span id="L880" class="LineNr"> 880 </span> <span class="PreProc">return</span> +<span id="L881" class="LineNr"> 881 </span> <span class="Delimiter">}</span> +<span id="L882" class="LineNr"> 882 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L883" class="LineNr"> 883 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L884" class="LineNr"> 884 </span> <span class="Delimiter">{</span> +<span id="L885" class="LineNr"> 885 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L886" class="LineNr"> 886 </span> compare *second-type, <span class="Constant">1</span>/number <span id="L887" class="LineNr"> 887 </span> <span class="PreProc">break-if-=</span> -<span id="L888" class="LineNr"> 888 </span> <span class="Delimiter">{</span> -<span id="L889" class="LineNr"> 889 </span> <span class="PreProc">break-if-float></span> -<span id="L890" class="LineNr"> 890 </span> <span class="PreProc">var</span> neg1/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> -<span id="L891" class="LineNr"> 891 </span> result <span class="Special"><-</span> convert neg1 -<span id="L892" class="LineNr"> 892 </span> <span class="PreProc">break</span> $apply-sgn:core -<span id="L893" class="LineNr"> 893 </span> <span class="Delimiter">}</span> -<span id="L894" class="LineNr"> 894 </span> <span class="Delimiter">{</span> -<span id="L895" class="LineNr"> 895 </span> <span class="PreProc">break-if-float<</span> -<span id="L896" class="LineNr"> 896 </span> <span class="PreProc">var</span> one/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> -<span id="L897" class="LineNr"> 897 </span> result <span class="Special"><-</span> convert one -<span id="L898" class="LineNr"> 898 </span> <span class="PreProc">break</span> $apply-sgn:core -<span id="L899" class="LineNr"> 899 </span> <span class="Delimiter">}</span> -<span id="L900" class="LineNr"> 900 </span> <span class="Delimiter">}</span> +<span id="L888" class="LineNr"> 888 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for % is not a number"</span> +<span id="L889" class="LineNr"> 889 </span> <span class="PreProc">return</span> +<span id="L890" class="LineNr"> 890 </span> <span class="Delimiter">}</span> +<span id="L891" class="LineNr"> 891 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L892" class="LineNr"> 892 </span> <span class="muComment"># divide</span> +<span id="L893" class="LineNr"> 893 </span> <span class="PreProc">var</span> quotient/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L894" class="LineNr"> 894 </span> quotient <span class="Special"><-</span> divide *second-value +<span id="L895" class="LineNr"> 895 </span> <span class="PreProc">var</span> quotient-int/eax: int <span class="Special"><-</span> truncate quotient +<span id="L896" class="LineNr"> 896 </span> quotient <span class="Special"><-</span> convert quotient-int +<span id="L897" class="LineNr"> 897 </span> <span class="PreProc">var</span> sub-result/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy quotient +<span id="L898" class="LineNr"> 898 </span> sub-result <span class="Special"><-</span> multiply *second-value +<span id="L899" class="LineNr"> 899 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L900" class="LineNr"> 900 </span> result <span class="Special"><-</span> subtract sub-result <span id="L901" class="LineNr"> 901 </span> <a href='cell.mu.html#L97'>new-float</a> out, result <span id="L902" class="LineNr"> 902 </span><span class="Delimiter">}</span> <span id="L903" class="LineNr"> 903 </span> -<span id="L904" class="LineNr"> 904 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L904'>apply-car</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L905" class="LineNr"> 905 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply car"</span> +<span id="L904" class="LineNr"> 904 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L904'>apply-square-root</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L905" class="LineNr"> 905 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply sqrt"</span> <span id="L906" class="LineNr"> 906 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah <span id="L907" class="LineNr"> 907 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L908" class="LineNr"> 908 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L909" class="LineNr"> 909 </span> <span class="Delimiter">{</span> -<span id="L910" class="LineNr"> 910 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L910" class="LineNr"> 910 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> <span id="L911" class="LineNr"> 911 </span> compare *args-type, <span class="Constant">0</span>/pair <span id="L912" class="LineNr"> 912 </span> <span class="PreProc">break-if-=</span> -<span id="L913" class="LineNr"> 913 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='evaluate.mu.html#L1189'>car</a> are not a list"</span> +<span id="L913" class="LineNr"> 913 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to sqrt are not a list"</span> <span id="L914" class="LineNr"> 914 </span> <span class="PreProc">return</span> <span id="L915" class="LineNr"> 915 </span> <span class="Delimiter">}</span> -<span id="L916" class="LineNr"> 916 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L916" class="LineNr"> 916 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args <span id="L917" class="LineNr"> 917 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L918" class="LineNr"> 918 </span> <span class="Delimiter">{</span> <span id="L919" class="LineNr"> 919 </span> <span class="PreProc">break-if-=</span> -<span id="L920" class="LineNr"> 920 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"car needs 1 arg but got 0"</span> +<span id="L920" class="LineNr"> 920 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"sqrt needs 1 arg but got 0"</span> <span id="L921" class="LineNr"> 921 </span> <span class="PreProc">return</span> <span id="L922" class="LineNr"> 922 </span> <span class="Delimiter">}</span> -<span id="L923" class="LineNr"> 923 </span> <span class="muComment"># args->left</span> -<span id="L924" class="LineNr"> 924 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L923" class="LineNr"> 923 </span> <span class="muComment"># args->left->value</span> +<span id="L924" class="LineNr"> 924 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left <span id="L925" class="LineNr"> 925 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L926" class="LineNr"> 926 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L927" class="LineNr"> 927 </span> compare *first-type, <span class="Constant">0</span>/pair -<span id="L928" class="LineNr"> 928 </span> <span class="Delimiter">{</span> +<span id="L926" class="LineNr"> 926 </span> <span class="Delimiter">{</span> +<span id="L927" class="LineNr"> 927 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L928" class="LineNr"> 928 </span> compare *first-type, <span class="Constant">1</span>/number <span id="L929" class="LineNr"> 929 </span> <span class="PreProc">break-if-=</span> -<span id="L930" class="LineNr"> 930 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"arg for <a href='evaluate.mu.html#L1189'>car</a> is not a pair"</span> +<span id="L930" class="LineNr"> 930 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"arg for sqrt is not a number"</span> <span id="L931" class="LineNr"> 931 </span> <span class="PreProc">return</span> <span id="L932" class="LineNr"> 932 </span> <span class="Delimiter">}</span> -<span id="L933" class="LineNr"> 933 </span> <span class="muComment"># nil? return nil</span> -<span id="L934" class="LineNr"> 934 </span> <span class="Delimiter">{</span> -<span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> first -<span id="L936" class="LineNr"> 936 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L937" class="LineNr"> 937 </span> <span class="PreProc">break-if-=</span> -<span id="L938" class="LineNr"> 938 </span> copy-object first-ah, out -<span id="L939" class="LineNr"> 939 </span> <span class="PreProc">return</span> -<span id="L940" class="LineNr"> 940 </span> <span class="Delimiter">}</span> -<span id="L941" class="LineNr"> 941 </span> <span class="muComment"># car</span> -<span id="L942" class="LineNr"> 942 </span> <span class="PreProc">var</span> result/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get first, left -<span id="L943" class="LineNr"> 943 </span> copy-object result, out -<span id="L944" class="LineNr"> 944 </span><span class="Delimiter">}</span> -<span id="L945" class="LineNr"> 945 </span> -<span id="L946" class="LineNr"> 946 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L946'>apply-cdr</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L947" class="LineNr"> 947 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply cdr"</span> -<span id="L948" class="LineNr"> 948 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L951" class="LineNr"> 951 </span> <span class="Delimiter">{</span> -<span id="L952" class="LineNr"> 952 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L953" class="LineNr"> 953 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L933" class="LineNr"> 933 </span> <span class="PreProc">var</span> first-value/eax: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L934" class="LineNr"> 934 </span> <span class="muComment"># square-root</span> +<span id="L935" class="LineNr"> 935 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> square-root *first-value +<span id="L936" class="LineNr"> 936 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L937" class="LineNr"> 937 </span><span class="Delimiter">}</span> +<span id="L938" class="LineNr"> 938 </span> +<span id="L939" class="LineNr"> 939 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L939'>apply-abs</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L940" class="LineNr"> 940 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply abs"</span> +<span id="L941" class="LineNr"> 941 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L942" class="LineNr"> 942 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L943" class="LineNr"> 943 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L944" class="LineNr"> 944 </span> <span class="Delimiter">{</span> +<span id="L945" class="LineNr"> 945 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L946" class="LineNr"> 946 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L947" class="LineNr"> 947 </span> <span class="PreProc">break-if-=</span> +<span id="L948" class="LineNr"> 948 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='../506math.mu.html#L1'>abs</a> are not a list"</span> +<span id="L949" class="LineNr"> 949 </span> <span class="PreProc">return</span> +<span id="L950" class="LineNr"> 950 </span> <span class="Delimiter">}</span> +<span id="L951" class="LineNr"> 951 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L952" class="LineNr"> 952 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L953" class="LineNr"> 953 </span> <span class="Delimiter">{</span> <span id="L954" class="LineNr"> 954 </span> <span class="PreProc">break-if-=</span> -<span id="L955" class="LineNr"> 955 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='evaluate.mu.html#L1217'>cdr</a> are not a list"</span> +<span id="L955" class="LineNr"> 955 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"abs needs 1 arg but got 0"</span> <span id="L956" class="LineNr"> 956 </span> <span class="PreProc">return</span> <span id="L957" class="LineNr"> 957 </span> <span class="Delimiter">}</span> -<span id="L958" class="LineNr"> 958 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L959" class="LineNr"> 959 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L960" class="LineNr"> 960 </span> <span class="Delimiter">{</span> -<span id="L961" class="LineNr"> 961 </span> <span class="PreProc">break-if-=</span> -<span id="L962" class="LineNr"> 962 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"cdr needs 1 arg but got 0"</span> -<span id="L963" class="LineNr"> 963 </span> <span class="PreProc">return</span> -<span id="L964" class="LineNr"> 964 </span> <span class="Delimiter">}</span> -<span id="L965" class="LineNr"> 965 </span> <span class="muComment"># args->left</span> -<span id="L966" class="LineNr"> 966 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L967" class="LineNr"> 967 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L968" class="LineNr"> 968 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L969" class="LineNr"> 969 </span> compare *first-type, <span class="Constant">0</span>/pair -<span id="L970" class="LineNr"> 970 </span> <span class="Delimiter">{</span> -<span id="L971" class="LineNr"> 971 </span> <span class="PreProc">break-if-=</span> -<span id="L972" class="LineNr"> 972 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"arg for <a href='evaluate.mu.html#L1217'>cdr</a> is not a pair"</span> -<span id="L973" class="LineNr"> 973 </span> <span class="PreProc">return</span> -<span id="L974" class="LineNr"> 974 </span> <span class="Delimiter">}</span> -<span id="L975" class="LineNr"> 975 </span> <span class="muComment"># nil? return nil</span> -<span id="L976" class="LineNr"> 976 </span> <span class="Delimiter">{</span> -<span id="L977" class="LineNr"> 977 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> first -<span id="L978" class="LineNr"> 978 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L979" class="LineNr"> 979 </span> <span class="PreProc">break-if-=</span> -<span id="L980" class="LineNr"> 980 </span> copy-object first-ah, out -<span id="L981" class="LineNr"> 981 </span> <span class="PreProc">return</span> -<span id="L982" class="LineNr"> 982 </span> <span class="Delimiter">}</span> -<span id="L983" class="LineNr"> 983 </span> <span class="muComment"># cdr</span> -<span id="L984" class="LineNr"> 984 </span> <span class="PreProc">var</span> result/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get first, right -<span id="L985" class="LineNr"> 985 </span> copy-object result, out -<span id="L986" class="LineNr"> 986 </span><span class="Delimiter">}</span> -<span id="L987" class="LineNr"> 987 </span> -<span id="L988" class="LineNr"> 988 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L988'>apply-cons</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L989" class="LineNr"> 989 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply cons"</span> -<span id="L990" class="LineNr"> 990 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L991" class="LineNr"> 991 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L992" class="LineNr"> 992 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L993" class="LineNr"> 993 </span> <span class="Delimiter">{</span> -<span id="L994" class="LineNr"> 994 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L995" class="LineNr"> 995 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L996" class="LineNr"> 996 </span> <span class="PreProc">break-if-=</span> -<span id="L997" class="LineNr"> 997 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'cons' are not a list"</span> -<span id="L998" class="LineNr"> 998 </span> <span class="PreProc">return</span> -<span id="L999" class="LineNr"> 999 </span> <span class="Delimiter">}</span> -<span id="L1000" class="LineNr">1000 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1001" class="LineNr">1001 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1002" class="LineNr">1002 </span> <span class="Delimiter">{</span> -<span id="L1003" class="LineNr">1003 </span> <span class="PreProc">break-if-=</span> -<span id="L1004" class="LineNr">1004 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"cons needs 2 args but got 0"</span> -<span id="L1005" class="LineNr">1005 </span> <span class="PreProc">return</span> -<span id="L1006" class="LineNr">1006 </span> <span class="Delimiter">}</span> -<span id="L1007" class="LineNr">1007 </span> <span class="muComment"># args->left</span> -<span id="L1008" class="LineNr">1008 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1009" class="LineNr">1009 </span> <span class="muComment"># args->right->left</span> -<span id="L1010" class="LineNr">1010 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1011" class="LineNr">1011 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L1012" class="LineNr">1012 </span> <span class="Delimiter">{</span> -<span id="L1013" class="LineNr">1013 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L1014" class="LineNr">1014 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L1015" class="LineNr">1015 </span> <span class="PreProc">break-if-=</span> -<span id="L1016" class="LineNr">1016 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'cons' encountered non-pair"</span> -<span id="L1017" class="LineNr">1017 </span> <span class="PreProc">return</span> -<span id="L1018" class="LineNr">1018 </span> <span class="Delimiter">}</span> -<span id="L1019" class="LineNr">1019 </span> <span class="Delimiter">{</span> -<span id="L1020" class="LineNr">1020 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L1021" class="LineNr">1021 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L1022" class="LineNr">1022 </span> <span class="PreProc">break-if-=</span> -<span id="L1023" class="LineNr">1023 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'cons' needs 2 args but got 1"</span> -<span id="L1024" class="LineNr">1024 </span> <span class="PreProc">return</span> -<span id="L1025" class="LineNr">1025 </span> <span class="Delimiter">}</span> -<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L1027" class="LineNr">1027 </span> <span class="muComment"># cons</span> -<span id="L1028" class="LineNr">1028 </span> <a href='cell.mu.html#L116'>new-pair</a> out, *first-ah, *second-ah -<span id="L1029" class="LineNr">1029 </span><span class="Delimiter">}</span> -<span id="L1030" class="LineNr">1030 </span> -<span id="L1031" class="LineNr">1031 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1031'>apply-structurally-equal</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1032" class="LineNr">1032 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '='"</span> -<span id="L1033" class="LineNr">1033 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1034" class="LineNr">1034 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1035" class="LineNr">1035 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1036" class="LineNr">1036 </span> <span class="Delimiter">{</span> -<span id="L1037" class="LineNr">1037 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1038" class="LineNr">1038 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1039" class="LineNr">1039 </span> <span class="PreProc">break-if-=</span> -<span id="L1040" class="LineNr">1040 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '=' are not a list"</span> -<span id="L1041" class="LineNr">1041 </span> <span class="PreProc">return</span> -<span id="L1042" class="LineNr">1042 </span> <span class="Delimiter">}</span> -<span id="L1043" class="LineNr">1043 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1044" class="LineNr">1044 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1045" class="LineNr">1045 </span> <span class="Delimiter">{</span> -<span id="L1046" class="LineNr">1046 </span> <span class="PreProc">break-if-=</span> -<span id="L1047" class="LineNr">1047 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'=' needs 2 args but got 0"</span> -<span id="L1048" class="LineNr">1048 </span> <span class="PreProc">return</span> -<span id="L1049" class="LineNr">1049 </span> <span class="Delimiter">}</span> -<span id="L1050" class="LineNr">1050 </span> <span class="muComment"># args->left</span> -<span id="L1051" class="LineNr">1051 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1052" class="LineNr">1052 </span> <span class="muComment"># args->right->left</span> -<span id="L1053" class="LineNr">1053 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1054" class="LineNr">1054 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L1055" class="LineNr">1055 </span> <span class="Delimiter">{</span> -<span id="L1056" class="LineNr">1056 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L1057" class="LineNr">1057 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L1058" class="LineNr">1058 </span> <span class="PreProc">break-if-=</span> -<span id="L1059" class="LineNr">1059 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'=' encountered non-pair"</span> -<span id="L1060" class="LineNr">1060 </span> <span class="PreProc">return</span> -<span id="L1061" class="LineNr">1061 </span> <span class="Delimiter">}</span> -<span id="L1062" class="LineNr">1062 </span> <span class="Delimiter">{</span> -<span id="L1063" class="LineNr">1063 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L1064" class="LineNr">1064 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L1065" class="LineNr">1065 </span> <span class="PreProc">break-if-=</span> -<span id="L1066" class="LineNr">1066 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'=' needs 2 args but got 1"</span> -<span id="L1067" class="LineNr">1067 </span> <span class="PreProc">return</span> -<span id="L1068" class="LineNr">1068 </span> <span class="Delimiter">}</span> -<span id="L1069" class="LineNr">1069 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L1070" class="LineNr">1070 </span> <span class="muComment"># compare</span> -<span id="L1071" class="LineNr">1071 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first -<span id="L1073" class="LineNr">1073 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L1074" class="LineNr">1074 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> first, second, trace -<span id="L1075" class="LineNr">1075 </span> compare match?, <span class="Constant">0</span>/false -<span id="L1076" class="LineNr">1076 </span> <span class="Delimiter">{</span> -<span id="L1077" class="LineNr">1077 </span> <span class="PreProc">break-if-!=</span> -<span id="L1078" class="LineNr">1078 </span> <a href='cell.mu.html#L121'>nil</a> out -<span id="L1079" class="LineNr">1079 </span> <span class="PreProc">return</span> -<span id="L1080" class="LineNr">1080 </span> <span class="Delimiter">}</span> -<span id="L1081" class="LineNr">1081 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span>/true -<span id="L1082" class="LineNr">1082 </span><span class="Delimiter">}</span> -<span id="L1083" class="LineNr">1083 </span> -<span id="L1084" class="LineNr">1084 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1084'>apply-not</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1085" class="LineNr">1085 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'not'"</span> -<span id="L1086" class="LineNr">1086 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1087" class="LineNr">1087 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1088" class="LineNr">1088 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1089" class="LineNr">1089 </span> <span class="Delimiter">{</span> -<span id="L1090" class="LineNr">1090 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1091" class="LineNr">1091 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1092" class="LineNr">1092 </span> <span class="PreProc">break-if-=</span> -<span id="L1093" class="LineNr">1093 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'not' are not a list"</span> -<span id="L1094" class="LineNr">1094 </span> <span class="PreProc">return</span> -<span id="L1095" class="LineNr">1095 </span> <span class="Delimiter">}</span> -<span id="L1096" class="LineNr">1096 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1097" class="LineNr">1097 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L958" class="LineNr"> 958 </span> <span class="muComment"># args->left->value</span> +<span id="L959" class="LineNr"> 959 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L960" class="LineNr"> 960 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L961" class="LineNr"> 961 </span> <span class="Delimiter">{</span> +<span id="L962" class="LineNr"> 962 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L963" class="LineNr"> 963 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L964" class="LineNr"> 964 </span> <span class="PreProc">break-if-=</span> +<span id="L965" class="LineNr"> 965 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"arg for <a href='../506math.mu.html#L1'>abs</a> is not a number"</span> +<span id="L966" class="LineNr"> 966 </span> <span class="PreProc">return</span> +<span id="L967" class="LineNr"> 967 </span> <span class="Delimiter">}</span> +<span id="L968" class="LineNr"> 968 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L969" class="LineNr"> 969 </span> <span class="muComment">#</span> +<span id="L970" class="LineNr"> 970 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L971" class="LineNr"> 971 </span> <span class="PreProc">var</span> zero: float +<span id="L972" class="LineNr"> 972 </span> compare result, zero +<span id="L973" class="LineNr"> 973 </span> <span class="Delimiter">{</span> +<span id="L974" class="LineNr"> 974 </span> <span class="PreProc">break-if-float>=</span> +<span id="L975" class="LineNr"> 975 </span> <span class="PreProc">var</span> neg1/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L976" class="LineNr"> 976 </span> <span class="PreProc">var</span> neg1-f/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> convert neg1 +<span id="L977" class="LineNr"> 977 </span> result <span class="Special"><-</span> multiply neg1-f +<span id="L978" class="LineNr"> 978 </span> <span class="Delimiter">}</span> +<span id="L979" class="LineNr"> 979 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L980" class="LineNr"> 980 </span><span class="Delimiter">}</span> +<span id="L981" class="LineNr"> 981 </span> +<span id="L982" class="LineNr"> 982 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L982'>apply-sgn</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L983" class="LineNr"> 983 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply sgn"</span> +<span id="L984" class="LineNr"> 984 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L985" class="LineNr"> 985 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L986" class="LineNr"> 986 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L987" class="LineNr"> 987 </span> <span class="Delimiter">{</span> +<span id="L988" class="LineNr"> 988 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L989" class="LineNr"> 989 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L990" class="LineNr"> 990 </span> <span class="PreProc">break-if-=</span> +<span id="L991" class="LineNr"> 991 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='../506math.mu.html#L10'>sgn</a> are not a list"</span> +<span id="L992" class="LineNr"> 992 </span> <span class="PreProc">return</span> +<span id="L993" class="LineNr"> 993 </span> <span class="Delimiter">}</span> +<span id="L994" class="LineNr"> 994 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L995" class="LineNr"> 995 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L996" class="LineNr"> 996 </span> <span class="Delimiter">{</span> +<span id="L997" class="LineNr"> 997 </span> <span class="PreProc">break-if-=</span> +<span id="L998" class="LineNr"> 998 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"sgn needs 1 arg but got 0"</span> +<span id="L999" class="LineNr"> 999 </span> <span class="PreProc">return</span> +<span id="L1000" class="LineNr">1000 </span> <span class="Delimiter">}</span> +<span id="L1001" class="LineNr">1001 </span> <span class="muComment"># args->left->value</span> +<span id="L1002" class="LineNr">1002 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1003" class="LineNr">1003 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1004" class="LineNr">1004 </span> <span class="Delimiter">{</span> +<span id="L1005" class="LineNr">1005 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1006" class="LineNr">1006 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L1007" class="LineNr">1007 </span> <span class="PreProc">break-if-=</span> +<span id="L1008" class="LineNr">1008 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"arg for <a href='../506math.mu.html#L10'>sgn</a> is not a number"</span> +<span id="L1009" class="LineNr">1009 </span> <span class="PreProc">return</span> +<span id="L1010" class="LineNr">1010 </span> <span class="Delimiter">}</span> +<span id="L1011" class="LineNr">1011 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L1012" class="LineNr">1012 </span> <span class="muComment">#</span> +<span id="L1013" class="LineNr">1013 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L1014" class="LineNr">1014 </span> <span class="PreProc">var</span> zero: float +<span id="L1015" class="LineNr">1015 </span> $apply-sgn:core: <span class="Delimiter">{</span> +<span id="L1016" class="LineNr">1016 </span> compare result, zero +<span id="L1017" class="LineNr">1017 </span> <span class="PreProc">break-if-=</span> +<span id="L1018" class="LineNr">1018 </span> <span class="Delimiter">{</span> +<span id="L1019" class="LineNr">1019 </span> <span class="PreProc">break-if-float></span> +<span id="L1020" class="LineNr">1020 </span> <span class="PreProc">var</span> neg1/eax: int <span class="Special"><-</span> copy <span class="Constant">-1</span> +<span id="L1021" class="LineNr">1021 </span> result <span class="Special"><-</span> convert neg1 +<span id="L1022" class="LineNr">1022 </span> <span class="PreProc">break</span> $apply-sgn:core +<span id="L1023" class="LineNr">1023 </span> <span class="Delimiter">}</span> +<span id="L1024" class="LineNr">1024 </span> <span class="Delimiter">{</span> +<span id="L1025" class="LineNr">1025 </span> <span class="PreProc">break-if-float<</span> +<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> one/eax: int <span class="Special"><-</span> copy <span class="Constant">1</span> +<span id="L1027" class="LineNr">1027 </span> result <span class="Special"><-</span> convert one +<span id="L1028" class="LineNr">1028 </span> <span class="PreProc">break</span> $apply-sgn:core +<span id="L1029" class="LineNr">1029 </span> <span class="Delimiter">}</span> +<span id="L1030" class="LineNr">1030 </span> <span class="Delimiter">}</span> +<span id="L1031" class="LineNr">1031 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L1032" class="LineNr">1032 </span><span class="Delimiter">}</span> +<span id="L1033" class="LineNr">1033 </span> +<span id="L1034" class="LineNr">1034 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1034'>apply-car</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1035" class="LineNr">1035 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply car"</span> +<span id="L1036" class="LineNr">1036 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1037" class="LineNr">1037 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1038" class="LineNr">1038 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1039" class="LineNr">1039 </span> <span class="Delimiter">{</span> +<span id="L1040" class="LineNr">1040 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1041" class="LineNr">1041 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1042" class="LineNr">1042 </span> <span class="PreProc">break-if-=</span> +<span id="L1043" class="LineNr">1043 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='evaluate.mu.html#L1189'>car</a> are not a list"</span> +<span id="L1044" class="LineNr">1044 </span> <span class="PreProc">return</span> +<span id="L1045" class="LineNr">1045 </span> <span class="Delimiter">}</span> +<span id="L1046" class="LineNr">1046 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1047" class="LineNr">1047 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1048" class="LineNr">1048 </span> <span class="Delimiter">{</span> +<span id="L1049" class="LineNr">1049 </span> <span class="PreProc">break-if-=</span> +<span id="L1050" class="LineNr">1050 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"car needs 1 arg but got 0"</span> +<span id="L1051" class="LineNr">1051 </span> <span class="PreProc">return</span> +<span id="L1052" class="LineNr">1052 </span> <span class="Delimiter">}</span> +<span id="L1053" class="LineNr">1053 </span> <span class="muComment"># args->left</span> +<span id="L1054" class="LineNr">1054 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1055" class="LineNr">1055 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1056" class="LineNr">1056 </span> <span class="Delimiter">{</span> +<span id="L1057" class="LineNr">1057 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1058" class="LineNr">1058 </span> compare *first-type, <span class="Constant">0</span>/pair +<span id="L1059" class="LineNr">1059 </span> <span class="PreProc">break-if-=</span> +<span id="L1060" class="LineNr">1060 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"arg for <a href='evaluate.mu.html#L1189'>car</a> is not a pair"</span> +<span id="L1061" class="LineNr">1061 </span> <span class="PreProc">return</span> +<span id="L1062" class="LineNr">1062 </span> <span class="Delimiter">}</span> +<span id="L1063" class="LineNr">1063 </span> <span class="muComment"># nil? return nil</span> +<span id="L1064" class="LineNr">1064 </span> <span class="Delimiter">{</span> +<span id="L1065" class="LineNr">1065 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> first +<span id="L1066" class="LineNr">1066 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1067" class="LineNr">1067 </span> <span class="PreProc">break-if-=</span> +<span id="L1068" class="LineNr">1068 </span> copy-object first-ah, out +<span id="L1069" class="LineNr">1069 </span> <span class="PreProc">return</span> +<span id="L1070" class="LineNr">1070 </span> <span class="Delimiter">}</span> +<span id="L1071" class="LineNr">1071 </span> <span class="muComment"># car</span> +<span id="L1072" class="LineNr">1072 </span> <span class="PreProc">var</span> result/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get first, left +<span id="L1073" class="LineNr">1073 </span> copy-object result, out +<span id="L1074" class="LineNr">1074 </span><span class="Delimiter">}</span> +<span id="L1075" class="LineNr">1075 </span> +<span id="L1076" class="LineNr">1076 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1076'>apply-cdr</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1077" class="LineNr">1077 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply cdr"</span> +<span id="L1078" class="LineNr">1078 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1079" class="LineNr">1079 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1080" class="LineNr">1080 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1081" class="LineNr">1081 </span> <span class="Delimiter">{</span> +<span id="L1082" class="LineNr">1082 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1083" class="LineNr">1083 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1084" class="LineNr">1084 </span> <span class="PreProc">break-if-=</span> +<span id="L1085" class="LineNr">1085 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to <a href='evaluate.mu.html#L1217'>cdr</a> are not a list"</span> +<span id="L1086" class="LineNr">1086 </span> <span class="PreProc">return</span> +<span id="L1087" class="LineNr">1087 </span> <span class="Delimiter">}</span> +<span id="L1088" class="LineNr">1088 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1089" class="LineNr">1089 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1090" class="LineNr">1090 </span> <span class="Delimiter">{</span> +<span id="L1091" class="LineNr">1091 </span> <span class="PreProc">break-if-=</span> +<span id="L1092" class="LineNr">1092 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"cdr needs 1 arg but got 0"</span> +<span id="L1093" class="LineNr">1093 </span> <span class="PreProc">return</span> +<span id="L1094" class="LineNr">1094 </span> <span class="Delimiter">}</span> +<span id="L1095" class="LineNr">1095 </span> <span class="muComment"># args->left</span> +<span id="L1096" class="LineNr">1096 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1097" class="LineNr">1097 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah <span id="L1098" class="LineNr">1098 </span> <span class="Delimiter">{</span> -<span id="L1099" class="LineNr">1099 </span> <span class="PreProc">break-if-=</span> -<span id="L1100" class="LineNr">1100 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'not' needs 1 arg but got 0"</span> -<span id="L1101" class="LineNr">1101 </span> <span class="PreProc">return</span> -<span id="L1102" class="LineNr">1102 </span> <span class="Delimiter">}</span> -<span id="L1103" class="LineNr">1103 </span> <span class="muComment"># args->left</span> -<span id="L1104" class="LineNr">1104 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1105" class="LineNr">1105 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1106" class="LineNr">1106 </span> <span class="muComment"># not</span> -<span id="L1107" class="LineNr">1107 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> first -<span id="L1108" class="LineNr">1108 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L1109" class="LineNr">1109 </span> <span class="Delimiter">{</span> -<span id="L1110" class="LineNr">1110 </span> <span class="PreProc">break-if-!=</span> -<span id="L1111" class="LineNr">1111 </span> <a href='cell.mu.html#L121'>nil</a> out -<span id="L1112" class="LineNr">1112 </span> <span class="PreProc">return</span> -<span id="L1113" class="LineNr">1113 </span> <span class="Delimiter">}</span> -<span id="L1114" class="LineNr">1114 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span> -<span id="L1115" class="LineNr">1115 </span><span class="Delimiter">}</span> -<span id="L1116" class="LineNr">1116 </span> -<span id="L1117" class="LineNr">1117 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1117'>apply-debug</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1118" class="LineNr">1118 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'debug'"</span> -<span id="L1119" class="LineNr">1119 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1120" class="LineNr">1120 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1121" class="LineNr">1121 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1122" class="LineNr">1122 </span> <span class="Delimiter">{</span> -<span id="L1123" class="LineNr">1123 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1124" class="LineNr">1124 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1125" class="LineNr">1125 </span> <span class="PreProc">break-if-=</span> -<span id="L1126" class="LineNr">1126 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'debug' are not a list"</span> -<span id="L1127" class="LineNr">1127 </span> <span class="PreProc">return</span> -<span id="L1128" class="LineNr">1128 </span> <span class="Delimiter">}</span> -<span id="L1129" class="LineNr">1129 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1130" class="LineNr">1130 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1131" class="LineNr">1131 </span> <span class="Delimiter">{</span> -<span id="L1132" class="LineNr">1132 </span> <span class="PreProc">break-if-=</span> -<span id="L1133" class="LineNr">1133 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'debug' needs 1 arg but got 0"</span> -<span id="L1134" class="LineNr">1134 </span> <span class="PreProc">return</span> -<span id="L1135" class="LineNr">1135 </span> <span class="Delimiter">}</span> -<span id="L1136" class="LineNr">1136 </span> <span class="muComment"># dump args->left uglily to screen and wait for a keypress</span> -<span id="L1137" class="LineNr">1137 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1138" class="LineNr">1138 </span> <a href='print.mu.html#L136'>dump-cell-from-cursor-over-full-screen</a> first-ah, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg -<span id="L1139" class="LineNr">1139 </span> <span class="Delimiter">{</span> -<span id="L1140" class="LineNr">1140 </span> <span class="PreProc">var</span> foo/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/keyboard -<span id="L1141" class="LineNr">1141 </span> compare foo, <span class="Constant">0</span> -<span id="L1142" class="LineNr">1142 </span> <span class="PreProc">loop-if-=</span> -<span id="L1143" class="LineNr">1143 </span> <span class="Delimiter">}</span> -<span id="L1144" class="LineNr">1144 </span> <span class="muComment"># return nothing</span> -<span id="L1145" class="LineNr">1145 </span><span class="Delimiter">}</span> -<span id="L1146" class="LineNr">1146 </span> -<span id="L1147" class="LineNr">1147 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1147'>apply-<</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1148" class="LineNr">1148 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '<'"</span> -<span id="L1149" class="LineNr">1149 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1150" class="LineNr">1150 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1151" class="LineNr">1151 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1152" class="LineNr">1152 </span> <span class="Delimiter">{</span> -<span id="L1153" class="LineNr">1153 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1154" class="LineNr">1154 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1155" class="LineNr">1155 </span> <span class="PreProc">break-if-=</span> -<span id="L1156" class="LineNr">1156 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '<' are not a list"</span> -<span id="L1157" class="LineNr">1157 </span> <span class="PreProc">return</span> -<span id="L1158" class="LineNr">1158 </span> <span class="Delimiter">}</span> -<span id="L1159" class="LineNr">1159 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1160" class="LineNr">1160 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1161" class="LineNr">1161 </span> <span class="Delimiter">{</span> -<span id="L1162" class="LineNr">1162 </span> <span class="PreProc">break-if-=</span> -<span id="L1163" class="LineNr">1163 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<' needs 2 args but got 0"</span> -<span id="L1164" class="LineNr">1164 </span> <span class="PreProc">return</span> -<span id="L1165" class="LineNr">1165 </span> <span class="Delimiter">}</span> -<span id="L1166" class="LineNr">1166 </span> <span class="muComment"># args->left</span> -<span id="L1167" class="LineNr">1167 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1168" class="LineNr">1168 </span> <span class="muComment"># args->right->left</span> -<span id="L1169" class="LineNr">1169 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1170" class="LineNr">1170 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L1171" class="LineNr">1171 </span> <span class="Delimiter">{</span> -<span id="L1172" class="LineNr">1172 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L1173" class="LineNr">1173 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L1174" class="LineNr">1174 </span> <span class="PreProc">break-if-=</span> -<span id="L1175" class="LineNr">1175 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<' encountered non-pair"</span> -<span id="L1176" class="LineNr">1176 </span> <span class="PreProc">return</span> -<span id="L1177" class="LineNr">1177 </span> <span class="Delimiter">}</span> -<span id="L1178" class="LineNr">1178 </span> <span class="Delimiter">{</span> -<span id="L1179" class="LineNr">1179 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L1180" class="LineNr">1180 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L1181" class="LineNr">1181 </span> <span class="PreProc">break-if-=</span> -<span id="L1182" class="LineNr">1182 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<' needs 2 args but got 1"</span> -<span id="L1183" class="LineNr">1183 </span> <span class="PreProc">return</span> -<span id="L1184" class="LineNr">1184 </span> <span class="Delimiter">}</span> -<span id="L1185" class="LineNr">1185 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L1186" class="LineNr">1186 </span> <span class="muComment"># compare</span> -<span id="L1187" class="LineNr">1187 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1188" class="LineNr">1188 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first -<span id="L1189" class="LineNr">1189 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1190" class="LineNr">1190 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L1191" class="LineNr">1191 </span> <span class="Delimiter">{</span> -<span id="L1192" class="LineNr">1192 </span> <span class="PreProc">break-if-=</span> -<span id="L1193" class="LineNr">1193 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for '<' is not a number"</span> -<span id="L1194" class="LineNr">1194 </span> <span class="PreProc">return</span> -<span id="L1195" class="LineNr">1195 </span> <span class="Delimiter">}</span> -<span id="L1196" class="LineNr">1196 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L1197" class="LineNr">1197 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L1198" class="LineNr">1198 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L1199" class="LineNr">1199 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L1200" class="LineNr">1200 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L1201" class="LineNr">1201 </span> <span class="Delimiter">{</span> +<span id="L1099" class="LineNr">1099 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1100" class="LineNr">1100 </span> compare *first-type, <span class="Constant">0</span>/pair +<span id="L1101" class="LineNr">1101 </span> <span class="PreProc">break-if-=</span> +<span id="L1102" class="LineNr">1102 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"arg for <a href='evaluate.mu.html#L1217'>cdr</a> is not a pair"</span> +<span id="L1103" class="LineNr">1103 </span> <span class="PreProc">return</span> +<span id="L1104" class="LineNr">1104 </span> <span class="Delimiter">}</span> +<span id="L1105" class="LineNr">1105 </span> <span class="muComment"># nil? return nil</span> +<span id="L1106" class="LineNr">1106 </span> <span class="Delimiter">{</span> +<span id="L1107" class="LineNr">1107 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> first +<span id="L1108" class="LineNr">1108 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1109" class="LineNr">1109 </span> <span class="PreProc">break-if-=</span> +<span id="L1110" class="LineNr">1110 </span> copy-object first-ah, out +<span id="L1111" class="LineNr">1111 </span> <span class="PreProc">return</span> +<span id="L1112" class="LineNr">1112 </span> <span class="Delimiter">}</span> +<span id="L1113" class="LineNr">1113 </span> <span class="muComment"># cdr</span> +<span id="L1114" class="LineNr">1114 </span> <span class="PreProc">var</span> result/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get first, right +<span id="L1115" class="LineNr">1115 </span> copy-object result, out +<span id="L1116" class="LineNr">1116 </span><span class="Delimiter">}</span> +<span id="L1117" class="LineNr">1117 </span> +<span id="L1118" class="LineNr">1118 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1118'>apply-cons</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1119" class="LineNr">1119 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply cons"</span> +<span id="L1120" class="LineNr">1120 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1121" class="LineNr">1121 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1122" class="LineNr">1122 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1123" class="LineNr">1123 </span> <span class="Delimiter">{</span> +<span id="L1124" class="LineNr">1124 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1125" class="LineNr">1125 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1126" class="LineNr">1126 </span> <span class="PreProc">break-if-=</span> +<span id="L1127" class="LineNr">1127 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'cons' are not a list"</span> +<span id="L1128" class="LineNr">1128 </span> <span class="PreProc">return</span> +<span id="L1129" class="LineNr">1129 </span> <span class="Delimiter">}</span> +<span id="L1130" class="LineNr">1130 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1131" class="LineNr">1131 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1132" class="LineNr">1132 </span> <span class="Delimiter">{</span> +<span id="L1133" class="LineNr">1133 </span> <span class="PreProc">break-if-=</span> +<span id="L1134" class="LineNr">1134 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"cons needs 2 args but got 0"</span> +<span id="L1135" class="LineNr">1135 </span> <span class="PreProc">return</span> +<span id="L1136" class="LineNr">1136 </span> <span class="Delimiter">}</span> +<span id="L1137" class="LineNr">1137 </span> <span class="muComment"># args->left</span> +<span id="L1138" class="LineNr">1138 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1139" class="LineNr">1139 </span> <span class="muComment"># args->right->left</span> +<span id="L1140" class="LineNr">1140 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1141" class="LineNr">1141 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1142" class="LineNr">1142 </span> <span class="Delimiter">{</span> +<span id="L1143" class="LineNr">1143 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L1144" class="LineNr">1144 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L1145" class="LineNr">1145 </span> <span class="PreProc">break-if-=</span> +<span id="L1146" class="LineNr">1146 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'cons' encountered non-pair"</span> +<span id="L1147" class="LineNr">1147 </span> <span class="PreProc">return</span> +<span id="L1148" class="LineNr">1148 </span> <span class="Delimiter">}</span> +<span id="L1149" class="LineNr">1149 </span> <span class="Delimiter">{</span> +<span id="L1150" class="LineNr">1150 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L1151" class="LineNr">1151 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1152" class="LineNr">1152 </span> <span class="PreProc">break-if-=</span> +<span id="L1153" class="LineNr">1153 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'cons' needs 2 args but got 1"</span> +<span id="L1154" class="LineNr">1154 </span> <span class="PreProc">return</span> +<span id="L1155" class="LineNr">1155 </span> <span class="Delimiter">}</span> +<span id="L1156" class="LineNr">1156 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L1157" class="LineNr">1157 </span> <span class="muComment"># cons</span> +<span id="L1158" class="LineNr">1158 </span> <a href='cell.mu.html#L116'>new-pair</a> out, *first-ah, *second-ah +<span id="L1159" class="LineNr">1159 </span><span class="Delimiter">}</span> +<span id="L1160" class="LineNr">1160 </span> +<span id="L1161" class="LineNr">1161 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1161'>apply-cons-check</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1162" class="LineNr">1162 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply cons?"</span> +<span id="L1163" class="LineNr">1163 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1164" class="LineNr">1164 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1165" class="LineNr">1165 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1166" class="LineNr">1166 </span> <span class="Delimiter">{</span> +<span id="L1167" class="LineNr">1167 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1168" class="LineNr">1168 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1169" class="LineNr">1169 </span> <span class="PreProc">break-if-=</span> +<span id="L1170" class="LineNr">1170 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to cons? are not a list"</span> +<span id="L1171" class="LineNr">1171 </span> <span class="PreProc">return</span> +<span id="L1172" class="LineNr">1172 </span> <span class="Delimiter">}</span> +<span id="L1173" class="LineNr">1173 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1174" class="LineNr">1174 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1175" class="LineNr">1175 </span> <span class="Delimiter">{</span> +<span id="L1176" class="LineNr">1176 </span> <span class="PreProc">break-if-=</span> +<span id="L1177" class="LineNr">1177 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"cons? needs 1 arg but got 0"</span> +<span id="L1178" class="LineNr">1178 </span> <span class="PreProc">return</span> +<span id="L1179" class="LineNr">1179 </span> <span class="Delimiter">}</span> +<span id="L1180" class="LineNr">1180 </span> <span class="muComment"># args->left</span> +<span id="L1181" class="LineNr">1181 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1182" class="LineNr">1182 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1183" class="LineNr">1183 </span> <span class="Delimiter">{</span> +<span id="L1184" class="LineNr">1184 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1185" class="LineNr">1185 </span> compare *first-type, <span class="Constant">0</span>/pair +<span id="L1186" class="LineNr">1186 </span> <span class="PreProc">break-if-=</span> +<span id="L1187" class="LineNr">1187 </span> <a href='cell.mu.html#L121'>nil</a> out +<span id="L1188" class="LineNr">1188 </span> <span class="PreProc">return</span> +<span id="L1189" class="LineNr">1189 </span> <span class="Delimiter">}</span> +<span id="L1190" class="LineNr">1190 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span> +<span id="L1191" class="LineNr">1191 </span><span class="Delimiter">}</span> +<span id="L1192" class="LineNr">1192 </span> +<span id="L1193" class="LineNr">1193 </span> +<span id="L1194" class="LineNr">1194 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1194'>apply-cell-isomorphic</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1195" class="LineNr">1195 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '='"</span> +<span id="L1196" class="LineNr">1196 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1197" class="LineNr">1197 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1198" class="LineNr">1198 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1199" class="LineNr">1199 </span> <span class="Delimiter">{</span> +<span id="L1200" class="LineNr">1200 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1201" class="LineNr">1201 </span> compare *args-type, <span class="Constant">0</span>/pair <span id="L1202" class="LineNr">1202 </span> <span class="PreProc">break-if-=</span> -<span id="L1203" class="LineNr">1203 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '<' is not a number"</span> +<span id="L1203" class="LineNr">1203 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '=' are not a list"</span> <span id="L1204" class="LineNr">1204 </span> <span class="PreProc">return</span> <span id="L1205" class="LineNr">1205 </span> <span class="Delimiter">}</span> -<span id="L1206" class="LineNr">1206 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L1207" class="LineNr">1207 </span> compare first-float, *second-value +<span id="L1206" class="LineNr">1206 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1207" class="LineNr">1207 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1208" class="LineNr">1208 </span> <span class="Delimiter">{</span> -<span id="L1209" class="LineNr">1209 </span> <span class="PreProc">break-if-float<</span> -<span id="L1210" class="LineNr">1210 </span> <a href='cell.mu.html#L121'>nil</a> out +<span id="L1209" class="LineNr">1209 </span> <span class="PreProc">break-if-=</span> +<span id="L1210" class="LineNr">1210 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'=' needs 2 args but got 0"</span> <span id="L1211" class="LineNr">1211 </span> <span class="PreProc">return</span> <span id="L1212" class="LineNr">1212 </span> <span class="Delimiter">}</span> -<span id="L1213" class="LineNr">1213 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span>/true -<span id="L1214" class="LineNr">1214 </span><span class="Delimiter">}</span> -<span id="L1215" class="LineNr">1215 </span> -<span id="L1216" class="LineNr">1216 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1216'>apply-></a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1217" class="LineNr">1217 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '>'"</span> -<span id="L1218" class="LineNr">1218 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1219" class="LineNr">1219 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1220" class="LineNr">1220 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1221" class="LineNr">1221 </span> <span class="Delimiter">{</span> -<span id="L1222" class="LineNr">1222 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1223" class="LineNr">1223 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1224" class="LineNr">1224 </span> <span class="PreProc">break-if-=</span> -<span id="L1225" class="LineNr">1225 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '>' are not a list"</span> -<span id="L1226" class="LineNr">1226 </span> <span class="PreProc">return</span> -<span id="L1227" class="LineNr">1227 </span> <span class="Delimiter">}</span> -<span id="L1228" class="LineNr">1228 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1229" class="LineNr">1229 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1230" class="LineNr">1230 </span> <span class="Delimiter">{</span> -<span id="L1231" class="LineNr">1231 </span> <span class="PreProc">break-if-=</span> -<span id="L1232" class="LineNr">1232 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>' needs 2 args but got 0"</span> -<span id="L1233" class="LineNr">1233 </span> <span class="PreProc">return</span> -<span id="L1234" class="LineNr">1234 </span> <span class="Delimiter">}</span> -<span id="L1235" class="LineNr">1235 </span> <span class="muComment"># args->left</span> -<span id="L1236" class="LineNr">1236 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1237" class="LineNr">1237 </span> <span class="muComment"># args->right->left</span> -<span id="L1238" class="LineNr">1238 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1239" class="LineNr">1239 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L1240" class="LineNr">1240 </span> <span class="Delimiter">{</span> -<span id="L1241" class="LineNr">1241 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L1242" class="LineNr">1242 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L1243" class="LineNr">1243 </span> <span class="PreProc">break-if-=</span> -<span id="L1244" class="LineNr">1244 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>' encountered non-pair"</span> -<span id="L1245" class="LineNr">1245 </span> <span class="PreProc">return</span> -<span id="L1246" class="LineNr">1246 </span> <span class="Delimiter">}</span> -<span id="L1247" class="LineNr">1247 </span> <span class="Delimiter">{</span> -<span id="L1248" class="LineNr">1248 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L1249" class="LineNr">1249 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L1250" class="LineNr">1250 </span> <span class="PreProc">break-if-=</span> -<span id="L1251" class="LineNr">1251 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>' needs 2 args but got 1"</span> -<span id="L1252" class="LineNr">1252 </span> <span class="PreProc">return</span> -<span id="L1253" class="LineNr">1253 </span> <span class="Delimiter">}</span> -<span id="L1254" class="LineNr">1254 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L1255" class="LineNr">1255 </span> <span class="muComment"># compare</span> -<span id="L1256" class="LineNr">1256 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1257" class="LineNr">1257 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first -<span id="L1258" class="LineNr">1258 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1259" class="LineNr">1259 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L1260" class="LineNr">1260 </span> <span class="Delimiter">{</span> -<span id="L1261" class="LineNr">1261 </span> <span class="PreProc">break-if-=</span> -<span id="L1262" class="LineNr">1262 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for '>' is not a number"</span> -<span id="L1263" class="LineNr">1263 </span> <span class="PreProc">return</span> -<span id="L1264" class="LineNr">1264 </span> <span class="Delimiter">}</span> -<span id="L1265" class="LineNr">1265 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L1266" class="LineNr">1266 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L1267" class="LineNr">1267 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L1268" class="LineNr">1268 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L1269" class="LineNr">1269 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L1270" class="LineNr">1270 </span> <span class="Delimiter">{</span> -<span id="L1271" class="LineNr">1271 </span> <span class="PreProc">break-if-=</span> -<span id="L1272" class="LineNr">1272 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '>' is not a number"</span> -<span id="L1273" class="LineNr">1273 </span> <span class="PreProc">return</span> -<span id="L1274" class="LineNr">1274 </span> <span class="Delimiter">}</span> -<span id="L1275" class="LineNr">1275 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L1276" class="LineNr">1276 </span> compare first-float, *second-value -<span id="L1277" class="LineNr">1277 </span> <span class="Delimiter">{</span> -<span id="L1278" class="LineNr">1278 </span> <span class="PreProc">break-if-float></span> -<span id="L1279" class="LineNr">1279 </span> <a href='cell.mu.html#L121'>nil</a> out -<span id="L1280" class="LineNr">1280 </span> <span class="PreProc">return</span> -<span id="L1281" class="LineNr">1281 </span> <span class="Delimiter">}</span> -<span id="L1282" class="LineNr">1282 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span>/true -<span id="L1283" class="LineNr">1283 </span><span class="Delimiter">}</span> -<span id="L1284" class="LineNr">1284 </span> -<span id="L1285" class="LineNr">1285 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1285'>apply-<=</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1286" class="LineNr">1286 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '<='"</span> -<span id="L1287" class="LineNr">1287 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1289" class="LineNr">1289 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1290" class="LineNr">1290 </span> <span class="Delimiter">{</span> -<span id="L1291" class="LineNr">1291 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1292" class="LineNr">1292 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1293" class="LineNr">1293 </span> <span class="PreProc">break-if-=</span> -<span id="L1294" class="LineNr">1294 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '<=' are not a list"</span> -<span id="L1295" class="LineNr">1295 </span> <span class="PreProc">return</span> -<span id="L1296" class="LineNr">1296 </span> <span class="Delimiter">}</span> -<span id="L1297" class="LineNr">1297 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1298" class="LineNr">1298 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1299" class="LineNr">1299 </span> <span class="Delimiter">{</span> -<span id="L1300" class="LineNr">1300 </span> <span class="PreProc">break-if-=</span> -<span id="L1301" class="LineNr">1301 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<=' needs 2 args but got 0"</span> -<span id="L1302" class="LineNr">1302 </span> <span class="PreProc">return</span> -<span id="L1303" class="LineNr">1303 </span> <span class="Delimiter">}</span> -<span id="L1304" class="LineNr">1304 </span> <span class="muComment"># args->left</span> -<span id="L1305" class="LineNr">1305 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1306" class="LineNr">1306 </span> <span class="muComment"># args->right->left</span> -<span id="L1307" class="LineNr">1307 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1308" class="LineNr">1308 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L1309" class="LineNr">1309 </span> <span class="Delimiter">{</span> -<span id="L1310" class="LineNr">1310 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L1311" class="LineNr">1311 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L1312" class="LineNr">1312 </span> <span class="PreProc">break-if-=</span> -<span id="L1313" class="LineNr">1313 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<=' encountered non-pair"</span> -<span id="L1314" class="LineNr">1314 </span> <span class="PreProc">return</span> -<span id="L1315" class="LineNr">1315 </span> <span class="Delimiter">}</span> -<span id="L1316" class="LineNr">1316 </span> <span class="Delimiter">{</span> -<span id="L1317" class="LineNr">1317 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L1318" class="LineNr">1318 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L1319" class="LineNr">1319 </span> <span class="PreProc">break-if-=</span> -<span id="L1320" class="LineNr">1320 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<=' needs 2 args but got 1"</span> -<span id="L1321" class="LineNr">1321 </span> <span class="PreProc">return</span> -<span id="L1322" class="LineNr">1322 </span> <span class="Delimiter">}</span> -<span id="L1323" class="LineNr">1323 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L1324" class="LineNr">1324 </span> <span class="muComment"># compare</span> -<span id="L1325" class="LineNr">1325 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1326" class="LineNr">1326 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first -<span id="L1327" class="LineNr">1327 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1328" class="LineNr">1328 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L1329" class="LineNr">1329 </span> <span class="Delimiter">{</span> -<span id="L1330" class="LineNr">1330 </span> <span class="PreProc">break-if-=</span> -<span id="L1331" class="LineNr">1331 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for '<=' is not a number"</span> -<span id="L1332" class="LineNr">1332 </span> <span class="PreProc">return</span> -<span id="L1333" class="LineNr">1333 </span> <span class="Delimiter">}</span> -<span id="L1334" class="LineNr">1334 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L1335" class="LineNr">1335 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L1336" class="LineNr">1336 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L1337" class="LineNr">1337 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L1338" class="LineNr">1338 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L1339" class="LineNr">1339 </span> <span class="Delimiter">{</span> -<span id="L1340" class="LineNr">1340 </span> <span class="PreProc">break-if-=</span> -<span id="L1341" class="LineNr">1341 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '<=' is not a number"</span> -<span id="L1342" class="LineNr">1342 </span> <span class="PreProc">return</span> -<span id="L1343" class="LineNr">1343 </span> <span class="Delimiter">}</span> -<span id="L1344" class="LineNr">1344 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L1345" class="LineNr">1345 </span> compare first-float, *second-value -<span id="L1346" class="LineNr">1346 </span> <span class="Delimiter">{</span> -<span id="L1347" class="LineNr">1347 </span> <span class="PreProc">break-if-float<=</span> -<span id="L1348" class="LineNr">1348 </span> <a href='cell.mu.html#L121'>nil</a> out -<span id="L1349" class="LineNr">1349 </span> <span class="PreProc">return</span> -<span id="L1350" class="LineNr">1350 </span> <span class="Delimiter">}</span> -<span id="L1351" class="LineNr">1351 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span>/true -<span id="L1352" class="LineNr">1352 </span><span class="Delimiter">}</span> -<span id="L1353" class="LineNr">1353 </span> -<span id="L1354" class="LineNr">1354 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1354'>apply->=</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1355" class="LineNr">1355 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '>='"</span> -<span id="L1356" class="LineNr">1356 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1357" class="LineNr">1357 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1358" class="LineNr">1358 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1359" class="LineNr">1359 </span> <span class="Delimiter">{</span> -<span id="L1360" class="LineNr">1360 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1361" class="LineNr">1361 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1362" class="LineNr">1362 </span> <span class="PreProc">break-if-=</span> -<span id="L1363" class="LineNr">1363 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '>=' are not a list"</span> -<span id="L1364" class="LineNr">1364 </span> <span class="PreProc">return</span> -<span id="L1365" class="LineNr">1365 </span> <span class="Delimiter">}</span> -<span id="L1366" class="LineNr">1366 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1367" class="LineNr">1367 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1368" class="LineNr">1368 </span> <span class="Delimiter">{</span> -<span id="L1369" class="LineNr">1369 </span> <span class="PreProc">break-if-=</span> -<span id="L1370" class="LineNr">1370 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>=' needs 2 args but got 0"</span> -<span id="L1371" class="LineNr">1371 </span> <span class="PreProc">return</span> -<span id="L1372" class="LineNr">1372 </span> <span class="Delimiter">}</span> -<span id="L1373" class="LineNr">1373 </span> <span class="muComment"># args->left</span> -<span id="L1374" class="LineNr">1374 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1375" class="LineNr">1375 </span> <span class="muComment"># args->right->left</span> -<span id="L1376" class="LineNr">1376 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1377" class="LineNr">1377 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L1378" class="LineNr">1378 </span> <span class="Delimiter">{</span> -<span id="L1379" class="LineNr">1379 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L1380" class="LineNr">1380 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L1381" class="LineNr">1381 </span> <span class="PreProc">break-if-=</span> -<span id="L1382" class="LineNr">1382 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>=' encountered non-pair"</span> -<span id="L1383" class="LineNr">1383 </span> <span class="PreProc">return</span> -<span id="L1384" class="LineNr">1384 </span> <span class="Delimiter">}</span> -<span id="L1385" class="LineNr">1385 </span> <span class="Delimiter">{</span> -<span id="L1386" class="LineNr">1386 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L1387" class="LineNr">1387 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L1388" class="LineNr">1388 </span> <span class="PreProc">break-if-=</span> -<span id="L1389" class="LineNr">1389 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>=' needs 2 args but got 1"</span> -<span id="L1390" class="LineNr">1390 </span> <span class="PreProc">return</span> -<span id="L1391" class="LineNr">1391 </span> <span class="Delimiter">}</span> -<span id="L1392" class="LineNr">1392 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L1393" class="LineNr">1393 </span> <span class="muComment"># compare</span> -<span id="L1394" class="LineNr">1394 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1395" class="LineNr">1395 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first -<span id="L1396" class="LineNr">1396 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1397" class="LineNr">1397 </span> compare *first-type, <span class="Constant">1</span>/number -<span id="L1398" class="LineNr">1398 </span> <span class="Delimiter">{</span> -<span id="L1399" class="LineNr">1399 </span> <span class="PreProc">break-if-=</span> -<span id="L1400" class="LineNr">1400 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for '>=' is not a number"</span> -<span id="L1401" class="LineNr">1401 </span> <span class="PreProc">return</span> -<span id="L1402" class="LineNr">1402 </span> <span class="Delimiter">}</span> -<span id="L1403" class="LineNr">1403 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data -<span id="L1404" class="LineNr">1404 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value -<span id="L1405" class="LineNr">1405 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L1406" class="LineNr">1406 </span> <span class="PreProc">var</span> second-type/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L1407" class="LineNr">1407 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L1408" class="LineNr">1408 </span> <span class="Delimiter">{</span> -<span id="L1409" class="LineNr">1409 </span> <span class="PreProc">break-if-=</span> -<span id="L1410" class="LineNr">1410 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '>=' is not a number"</span> -<span id="L1411" class="LineNr">1411 </span> <span class="PreProc">return</span> -<span id="L1412" class="LineNr">1412 </span> <span class="Delimiter">}</span> -<span id="L1413" class="LineNr">1413 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L1414" class="LineNr">1414 </span> compare first-float, *second-value -<span id="L1415" class="LineNr">1415 </span> <span class="Delimiter">{</span> -<span id="L1416" class="LineNr">1416 </span> <span class="PreProc">break-if-float>=</span> -<span id="L1417" class="LineNr">1417 </span> <a href='cell.mu.html#L121'>nil</a> out -<span id="L1418" class="LineNr">1418 </span> <span class="PreProc">return</span> -<span id="L1419" class="LineNr">1419 </span> <span class="Delimiter">}</span> -<span id="L1420" class="LineNr">1420 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span>/true -<span id="L1421" class="LineNr">1421 </span><span class="Delimiter">}</span> -<span id="L1422" class="LineNr">1422 </span> -<span id="L1423" class="LineNr">1423 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1423'>apply-print</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1424" class="LineNr">1424 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'print'"</span> -<span id="L1425" class="LineNr">1425 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1426" class="LineNr">1426 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1427" class="LineNr">1427 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1428" class="LineNr">1428 </span> <span class="Delimiter">{</span> -<span id="L1429" class="LineNr">1429 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1430" class="LineNr">1430 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1431" class="LineNr">1431 </span> <span class="PreProc">break-if-=</span> -<span id="L1432" class="LineNr">1432 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'print' are not a list"</span> -<span id="L1433" class="LineNr">1433 </span> <span class="PreProc">return</span> -<span id="L1434" class="LineNr">1434 </span> <span class="Delimiter">}</span> -<span id="L1435" class="LineNr">1435 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1436" class="LineNr">1436 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1437" class="LineNr">1437 </span> <span class="Delimiter">{</span> -<span id="L1438" class="LineNr">1438 </span> <span class="PreProc">break-if-=</span> -<span id="L1439" class="LineNr">1439 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'print' needs 2 args but got 0"</span> -<span id="L1440" class="LineNr">1440 </span> <span class="PreProc">return</span> -<span id="L1441" class="LineNr">1441 </span> <span class="Delimiter">}</span> -<span id="L1442" class="LineNr">1442 </span> <span class="muComment"># screen = args->left</span> -<span id="L1443" class="LineNr">1443 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1444" class="LineNr">1444 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1445" class="LineNr">1445 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1446" class="LineNr">1446 </span> compare *first-type, <span class="Constant">5</span>/screen -<span id="L1447" class="LineNr">1447 </span> <span class="Delimiter">{</span> -<span id="L1448" class="LineNr">1448 </span> <span class="PreProc">break-if-=</span> -<span id="L1449" class="LineNr">1449 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'print' is not a screen"</span> -<span id="L1450" class="LineNr">1450 </span> <span class="PreProc">return</span> -<span id="L1451" class="LineNr">1451 </span> <span class="Delimiter">}</span> -<span id="L1452" class="LineNr">1452 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1453" class="LineNr">1453 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L1454" class="LineNr">1454 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1455" class="LineNr">1455 </span> <span class="muComment"># args->right->left</span> -<span id="L1456" class="LineNr">1456 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1457" class="LineNr">1457 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L1458" class="LineNr">1458 </span> <span class="Delimiter">{</span> -<span id="L1459" class="LineNr">1459 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L1460" class="LineNr">1460 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L1461" class="LineNr">1461 </span> <span class="PreProc">break-if-=</span> -<span id="L1462" class="LineNr">1462 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'print' encountered non-pair"</span> -<span id="L1463" class="LineNr">1463 </span> <span class="PreProc">return</span> -<span id="L1464" class="LineNr">1464 </span> <span class="Delimiter">}</span> -<span id="L1465" class="LineNr">1465 </span> <span class="Delimiter">{</span> -<span id="L1466" class="LineNr">1466 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L1467" class="LineNr">1467 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L1468" class="LineNr">1468 </span> <span class="PreProc">break-if-=</span> -<span id="L1469" class="LineNr">1469 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'print' needs 2 args but got 1"</span> -<span id="L1470" class="LineNr">1470 </span> <span class="PreProc">return</span> -<span id="L1471" class="LineNr">1471 </span> <span class="Delimiter">}</span> -<span id="L1472" class="LineNr">1472 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L1473" class="LineNr">1473 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>) -<span id="L1474" class="LineNr">1474 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage -<span id="L1475" class="LineNr">1475 </span> <a href='print.mu.html#L7'>print-cell</a> second-ah, stream, trace -<span id="L1476" class="LineNr">1476 </span> <a href='../501draw-text.mu.html#L235'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, stream, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg -<span id="L1477" class="LineNr">1477 </span> <span class="muComment"># return what was printed</span> -<span id="L1478" class="LineNr">1478 </span> copy-object second-ah, out -<span id="L1479" class="LineNr">1479 </span><span class="Delimiter">}</span> -<span id="L1480" class="LineNr">1480 </span> -<span id="L1481" class="LineNr">1481 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1481'>apply-clear</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1482" class="LineNr">1482 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'clear'"</span> -<span id="L1483" class="LineNr">1483 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1484" class="LineNr">1484 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1485" class="LineNr">1485 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1486" class="LineNr">1486 </span> <span class="Delimiter">{</span> -<span id="L1487" class="LineNr">1487 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1488" class="LineNr">1488 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1489" class="LineNr">1489 </span> <span class="PreProc">break-if-=</span> -<span id="L1490" class="LineNr">1490 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'clear' are not a list"</span> -<span id="L1491" class="LineNr">1491 </span> <span class="PreProc">return</span> -<span id="L1492" class="LineNr">1492 </span> <span class="Delimiter">}</span> -<span id="L1493" class="LineNr">1493 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1494" class="LineNr">1494 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1495" class="LineNr">1495 </span> <span class="Delimiter">{</span> -<span id="L1496" class="LineNr">1496 </span> <span class="PreProc">break-if-=</span> -<span id="L1497" class="LineNr">1497 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'clear' needs 1 arg but got 0"</span> -<span id="L1498" class="LineNr">1498 </span> <span class="PreProc">return</span> -<span id="L1499" class="LineNr">1499 </span> <span class="Delimiter">}</span> -<span id="L1500" class="LineNr">1500 </span> <span class="muComment"># screen = args->left</span> -<span id="L1501" class="LineNr">1501 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1502" class="LineNr">1502 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1503" class="LineNr">1503 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1504" class="LineNr">1504 </span> compare *first-type, <span class="Constant">5</span>/screen -<span id="L1505" class="LineNr">1505 </span> <span class="Delimiter">{</span> -<span id="L1506" class="LineNr">1506 </span> <span class="PreProc">break-if-=</span> -<span id="L1507" class="LineNr">1507 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'clear' is not a screen"</span> -<span id="L1508" class="LineNr">1508 </span> <span class="PreProc">return</span> -<span id="L1509" class="LineNr">1509 </span> <span class="Delimiter">}</span> -<span id="L1510" class="LineNr">1510 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1511" class="LineNr">1511 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L1512" class="LineNr">1512 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1513" class="LineNr">1513 </span> <span class="muComment">#</span> -<span id="L1514" class="LineNr">1514 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1213" class="LineNr">1213 </span> <span class="muComment"># args->left</span> +<span id="L1214" class="LineNr">1214 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1215" class="LineNr">1215 </span> <span class="muComment"># args->right->left</span> +<span id="L1216" class="LineNr">1216 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1217" class="LineNr">1217 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1218" class="LineNr">1218 </span> <span class="Delimiter">{</span> +<span id="L1219" class="LineNr">1219 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L1220" class="LineNr">1220 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L1221" class="LineNr">1221 </span> <span class="PreProc">break-if-=</span> +<span id="L1222" class="LineNr">1222 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'=' encountered non-pair"</span> +<span id="L1223" class="LineNr">1223 </span> <span class="PreProc">return</span> +<span id="L1224" class="LineNr">1224 </span> <span class="Delimiter">}</span> +<span id="L1225" class="LineNr">1225 </span> <span class="Delimiter">{</span> +<span id="L1226" class="LineNr">1226 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L1227" class="LineNr">1227 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1228" class="LineNr">1228 </span> <span class="PreProc">break-if-=</span> +<span id="L1229" class="LineNr">1229 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'=' needs 2 args but got 1"</span> +<span id="L1230" class="LineNr">1230 </span> <span class="PreProc">return</span> +<span id="L1231" class="LineNr">1231 </span> <span class="Delimiter">}</span> +<span id="L1232" class="LineNr">1232 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L1233" class="LineNr">1233 </span> <span class="muComment"># compare</span> +<span id="L1234" class="LineNr">1234 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1235" class="LineNr">1235 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first +<span id="L1236" class="LineNr">1236 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1237" class="LineNr">1237 </span> <span class="PreProc">var</span> match?/eax: boolean <span class="Special"><-</span> <a href='evaluate.mu.html#L1245'>cell-isomorphic?</a> first, second, trace +<span id="L1238" class="LineNr">1238 </span> compare match?, <span class="Constant">0</span>/false +<span id="L1239" class="LineNr">1239 </span> <span class="Delimiter">{</span> +<span id="L1240" class="LineNr">1240 </span> <span class="PreProc">break-if-!=</span> +<span id="L1241" class="LineNr">1241 </span> <a href='cell.mu.html#L121'>nil</a> out +<span id="L1242" class="LineNr">1242 </span> <span class="PreProc">return</span> +<span id="L1243" class="LineNr">1243 </span> <span class="Delimiter">}</span> +<span id="L1244" class="LineNr">1244 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span>/true +<span id="L1245" class="LineNr">1245 </span><span class="Delimiter">}</span> +<span id="L1246" class="LineNr">1246 </span> +<span id="L1247" class="LineNr">1247 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1247'>apply-not</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1248" class="LineNr">1248 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'not'"</span> +<span id="L1249" class="LineNr">1249 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1250" class="LineNr">1250 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1251" class="LineNr">1251 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1252" class="LineNr">1252 </span> <span class="Delimiter">{</span> +<span id="L1253" class="LineNr">1253 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1254" class="LineNr">1254 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1255" class="LineNr">1255 </span> <span class="PreProc">break-if-=</span> +<span id="L1256" class="LineNr">1256 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'not' are not a list"</span> +<span id="L1257" class="LineNr">1257 </span> <span class="PreProc">return</span> +<span id="L1258" class="LineNr">1258 </span> <span class="Delimiter">}</span> +<span id="L1259" class="LineNr">1259 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1260" class="LineNr">1260 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1261" class="LineNr">1261 </span> <span class="Delimiter">{</span> +<span id="L1262" class="LineNr">1262 </span> <span class="PreProc">break-if-=</span> +<span id="L1263" class="LineNr">1263 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'not' needs 1 arg but got 0"</span> +<span id="L1264" class="LineNr">1264 </span> <span class="PreProc">return</span> +<span id="L1265" class="LineNr">1265 </span> <span class="Delimiter">}</span> +<span id="L1266" class="LineNr">1266 </span> <span class="muComment"># args->left</span> +<span id="L1267" class="LineNr">1267 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1268" class="LineNr">1268 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1269" class="LineNr">1269 </span> <span class="muComment"># not</span> +<span id="L1270" class="LineNr">1270 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> first +<span id="L1271" class="LineNr">1271 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1272" class="LineNr">1272 </span> <span class="Delimiter">{</span> +<span id="L1273" class="LineNr">1273 </span> <span class="PreProc">break-if-!=</span> +<span id="L1274" class="LineNr">1274 </span> <a href='cell.mu.html#L121'>nil</a> out +<span id="L1275" class="LineNr">1275 </span> <span class="PreProc">return</span> +<span id="L1276" class="LineNr">1276 </span> <span class="Delimiter">}</span> +<span id="L1277" class="LineNr">1277 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span> +<span id="L1278" class="LineNr">1278 </span><span class="Delimiter">}</span> +<span id="L1279" class="LineNr">1279 </span> +<span id="L1280" class="LineNr">1280 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1280'>apply-debug</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1281" class="LineNr">1281 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'debug'"</span> +<span id="L1282" class="LineNr">1282 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1283" class="LineNr">1283 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1284" class="LineNr">1284 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1285" class="LineNr">1285 </span> <span class="Delimiter">{</span> +<span id="L1286" class="LineNr">1286 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1287" class="LineNr">1287 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1288" class="LineNr">1288 </span> <span class="PreProc">break-if-=</span> +<span id="L1289" class="LineNr">1289 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'debug' are not a list"</span> +<span id="L1290" class="LineNr">1290 </span> <span class="PreProc">return</span> +<span id="L1291" class="LineNr">1291 </span> <span class="Delimiter">}</span> +<span id="L1292" class="LineNr">1292 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1293" class="LineNr">1293 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1294" class="LineNr">1294 </span> <span class="Delimiter">{</span> +<span id="L1295" class="LineNr">1295 </span> <span class="PreProc">break-if-=</span> +<span id="L1296" class="LineNr">1296 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'debug' needs 1 arg but got 0"</span> +<span id="L1297" class="LineNr">1297 </span> <span class="PreProc">return</span> +<span id="L1298" class="LineNr">1298 </span> <span class="Delimiter">}</span> +<span id="L1299" class="LineNr">1299 </span> <span class="muComment"># dump args->left uglily to screen and wait for a keypress</span> +<span id="L1300" class="LineNr">1300 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1301" class="LineNr">1301 </span> <a href='print.mu.html#L136'>dump-cell-from-cursor-over-full-screen</a> first-ah, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg +<span id="L1302" class="LineNr">1302 </span> <span class="Delimiter">{</span> +<span id="L1303" class="LineNr">1303 </span> <span class="PreProc">var</span> foo/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/keyboard +<span id="L1304" class="LineNr">1304 </span> compare foo, <span class="Constant">0</span> +<span id="L1305" class="LineNr">1305 </span> <span class="PreProc">loop-if-=</span> +<span id="L1306" class="LineNr">1306 </span> <span class="Delimiter">}</span> +<span id="L1307" class="LineNr">1307 </span> <span class="muComment"># return nothing</span> +<span id="L1308" class="LineNr">1308 </span><span class="Delimiter">}</span> +<span id="L1309" class="LineNr">1309 </span> +<span id="L1310" class="LineNr">1310 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1310'>apply-<</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1311" class="LineNr">1311 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '<'"</span> +<span id="L1312" class="LineNr">1312 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1313" class="LineNr">1313 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1314" class="LineNr">1314 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1315" class="LineNr">1315 </span> <span class="Delimiter">{</span> +<span id="L1316" class="LineNr">1316 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1317" class="LineNr">1317 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1318" class="LineNr">1318 </span> <span class="PreProc">break-if-=</span> +<span id="L1319" class="LineNr">1319 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '<' are not a list"</span> +<span id="L1320" class="LineNr">1320 </span> <span class="PreProc">return</span> +<span id="L1321" class="LineNr">1321 </span> <span class="Delimiter">}</span> +<span id="L1322" class="LineNr">1322 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1323" class="LineNr">1323 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1324" class="LineNr">1324 </span> <span class="Delimiter">{</span> +<span id="L1325" class="LineNr">1325 </span> <span class="PreProc">break-if-=</span> +<span id="L1326" class="LineNr">1326 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<' needs 2 args but got 0"</span> +<span id="L1327" class="LineNr">1327 </span> <span class="PreProc">return</span> +<span id="L1328" class="LineNr">1328 </span> <span class="Delimiter">}</span> +<span id="L1329" class="LineNr">1329 </span> <span class="muComment"># args->left</span> +<span id="L1330" class="LineNr">1330 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1331" class="LineNr">1331 </span> <span class="muComment"># args->right->left</span> +<span id="L1332" class="LineNr">1332 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1333" class="LineNr">1333 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1334" class="LineNr">1334 </span> <span class="Delimiter">{</span> +<span id="L1335" class="LineNr">1335 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L1336" class="LineNr">1336 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L1337" class="LineNr">1337 </span> <span class="PreProc">break-if-=</span> +<span id="L1338" class="LineNr">1338 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<' encountered non-pair"</span> +<span id="L1339" class="LineNr">1339 </span> <span class="PreProc">return</span> +<span id="L1340" class="LineNr">1340 </span> <span class="Delimiter">}</span> +<span id="L1341" class="LineNr">1341 </span> <span class="Delimiter">{</span> +<span id="L1342" class="LineNr">1342 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L1343" class="LineNr">1343 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1344" class="LineNr">1344 </span> <span class="PreProc">break-if-=</span> +<span id="L1345" class="LineNr">1345 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<' needs 2 args but got 1"</span> +<span id="L1346" class="LineNr">1346 </span> <span class="PreProc">return</span> +<span id="L1347" class="LineNr">1347 </span> <span class="Delimiter">}</span> +<span id="L1348" class="LineNr">1348 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L1349" class="LineNr">1349 </span> <span class="muComment"># compare</span> +<span id="L1350" class="LineNr">1350 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1351" class="LineNr">1351 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first +<span id="L1352" class="LineNr">1352 </span> <span class="Delimiter">{</span> +<span id="L1353" class="LineNr">1353 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1354" class="LineNr">1354 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L1355" class="LineNr">1355 </span> <span class="PreProc">break-if-=</span> +<span id="L1356" class="LineNr">1356 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for '<' is not a number"</span> +<span id="L1357" class="LineNr">1357 </span> <span class="PreProc">return</span> +<span id="L1358" class="LineNr">1358 </span> <span class="Delimiter">}</span> +<span id="L1359" class="LineNr">1359 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L1360" class="LineNr">1360 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L1361" class="LineNr">1361 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1362" class="LineNr">1362 </span> <span class="Delimiter">{</span> +<span id="L1363" class="LineNr">1363 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L1364" class="LineNr">1364 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L1365" class="LineNr">1365 </span> <span class="PreProc">break-if-=</span> +<span id="L1366" class="LineNr">1366 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '<' is not a number"</span> +<span id="L1367" class="LineNr">1367 </span> <span class="PreProc">return</span> +<span id="L1368" class="LineNr">1368 </span> <span class="Delimiter">}</span> +<span id="L1369" class="LineNr">1369 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1370" class="LineNr">1370 </span> compare first-float, *second-value +<span id="L1371" class="LineNr">1371 </span> <span class="Delimiter">{</span> +<span id="L1372" class="LineNr">1372 </span> <span class="PreProc">break-if-float<</span> +<span id="L1373" class="LineNr">1373 </span> <a href='cell.mu.html#L121'>nil</a> out +<span id="L1374" class="LineNr">1374 </span> <span class="PreProc">return</span> +<span id="L1375" class="LineNr">1375 </span> <span class="Delimiter">}</span> +<span id="L1376" class="LineNr">1376 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span>/true +<span id="L1377" class="LineNr">1377 </span><span class="Delimiter">}</span> +<span id="L1378" class="LineNr">1378 </span> +<span id="L1379" class="LineNr">1379 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1379'>apply-></a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1380" class="LineNr">1380 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '>'"</span> +<span id="L1381" class="LineNr">1381 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1382" class="LineNr">1382 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1383" class="LineNr">1383 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1384" class="LineNr">1384 </span> <span class="Delimiter">{</span> +<span id="L1385" class="LineNr">1385 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1386" class="LineNr">1386 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1387" class="LineNr">1387 </span> <span class="PreProc">break-if-=</span> +<span id="L1388" class="LineNr">1388 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '>' are not a list"</span> +<span id="L1389" class="LineNr">1389 </span> <span class="PreProc">return</span> +<span id="L1390" class="LineNr">1390 </span> <span class="Delimiter">}</span> +<span id="L1391" class="LineNr">1391 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1392" class="LineNr">1392 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1393" class="LineNr">1393 </span> <span class="Delimiter">{</span> +<span id="L1394" class="LineNr">1394 </span> <span class="PreProc">break-if-=</span> +<span id="L1395" class="LineNr">1395 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>' needs 2 args but got 0"</span> +<span id="L1396" class="LineNr">1396 </span> <span class="PreProc">return</span> +<span id="L1397" class="LineNr">1397 </span> <span class="Delimiter">}</span> +<span id="L1398" class="LineNr">1398 </span> <span class="muComment"># args->left</span> +<span id="L1399" class="LineNr">1399 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1400" class="LineNr">1400 </span> <span class="muComment"># args->right->left</span> +<span id="L1401" class="LineNr">1401 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1402" class="LineNr">1402 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1403" class="LineNr">1403 </span> <span class="Delimiter">{</span> +<span id="L1404" class="LineNr">1404 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L1405" class="LineNr">1405 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L1406" class="LineNr">1406 </span> <span class="PreProc">break-if-=</span> +<span id="L1407" class="LineNr">1407 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>' encountered non-pair"</span> +<span id="L1408" class="LineNr">1408 </span> <span class="PreProc">return</span> +<span id="L1409" class="LineNr">1409 </span> <span class="Delimiter">}</span> +<span id="L1410" class="LineNr">1410 </span> <span class="Delimiter">{</span> +<span id="L1411" class="LineNr">1411 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L1412" class="LineNr">1412 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1413" class="LineNr">1413 </span> <span class="PreProc">break-if-=</span> +<span id="L1414" class="LineNr">1414 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>' needs 2 args but got 1"</span> +<span id="L1415" class="LineNr">1415 </span> <span class="PreProc">return</span> +<span id="L1416" class="LineNr">1416 </span> <span class="Delimiter">}</span> +<span id="L1417" class="LineNr">1417 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L1418" class="LineNr">1418 </span> <span class="muComment"># compare</span> +<span id="L1419" class="LineNr">1419 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1420" class="LineNr">1420 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first +<span id="L1421" class="LineNr">1421 </span> <span class="Delimiter">{</span> +<span id="L1422" class="LineNr">1422 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1423" class="LineNr">1423 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L1424" class="LineNr">1424 </span> <span class="PreProc">break-if-=</span> +<span id="L1425" class="LineNr">1425 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for '>' is not a number"</span> +<span id="L1426" class="LineNr">1426 </span> <span class="PreProc">return</span> +<span id="L1427" class="LineNr">1427 </span> <span class="Delimiter">}</span> +<span id="L1428" class="LineNr">1428 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L1429" class="LineNr">1429 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L1430" class="LineNr">1430 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1431" class="LineNr">1431 </span> <span class="Delimiter">{</span> +<span id="L1432" class="LineNr">1432 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L1433" class="LineNr">1433 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L1434" class="LineNr">1434 </span> <span class="PreProc">break-if-=</span> +<span id="L1435" class="LineNr">1435 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '>' is not a number"</span> +<span id="L1436" class="LineNr">1436 </span> <span class="PreProc">return</span> +<span id="L1437" class="LineNr">1437 </span> <span class="Delimiter">}</span> +<span id="L1438" class="LineNr">1438 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1439" class="LineNr">1439 </span> compare first-float, *second-value +<span id="L1440" class="LineNr">1440 </span> <span class="Delimiter">{</span> +<span id="L1441" class="LineNr">1441 </span> <span class="PreProc">break-if-float></span> +<span id="L1442" class="LineNr">1442 </span> <a href='cell.mu.html#L121'>nil</a> out +<span id="L1443" class="LineNr">1443 </span> <span class="PreProc">return</span> +<span id="L1444" class="LineNr">1444 </span> <span class="Delimiter">}</span> +<span id="L1445" class="LineNr">1445 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span>/true +<span id="L1446" class="LineNr">1446 </span><span class="Delimiter">}</span> +<span id="L1447" class="LineNr">1447 </span> +<span id="L1448" class="LineNr">1448 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1448'>apply-<=</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1449" class="LineNr">1449 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '<='"</span> +<span id="L1450" class="LineNr">1450 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1451" class="LineNr">1451 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1452" class="LineNr">1452 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1453" class="LineNr">1453 </span> <span class="Delimiter">{</span> +<span id="L1454" class="LineNr">1454 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1455" class="LineNr">1455 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1456" class="LineNr">1456 </span> <span class="PreProc">break-if-=</span> +<span id="L1457" class="LineNr">1457 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '<=' are not a list"</span> +<span id="L1458" class="LineNr">1458 </span> <span class="PreProc">return</span> +<span id="L1459" class="LineNr">1459 </span> <span class="Delimiter">}</span> +<span id="L1460" class="LineNr">1460 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1461" class="LineNr">1461 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1462" class="LineNr">1462 </span> <span class="Delimiter">{</span> +<span id="L1463" class="LineNr">1463 </span> <span class="PreProc">break-if-=</span> +<span id="L1464" class="LineNr">1464 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<=' needs 2 args but got 0"</span> +<span id="L1465" class="LineNr">1465 </span> <span class="PreProc">return</span> +<span id="L1466" class="LineNr">1466 </span> <span class="Delimiter">}</span> +<span id="L1467" class="LineNr">1467 </span> <span class="muComment"># args->left</span> +<span id="L1468" class="LineNr">1468 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1469" class="LineNr">1469 </span> <span class="muComment"># args->right->left</span> +<span id="L1470" class="LineNr">1470 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1471" class="LineNr">1471 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1472" class="LineNr">1472 </span> <span class="Delimiter">{</span> +<span id="L1473" class="LineNr">1473 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L1474" class="LineNr">1474 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L1475" class="LineNr">1475 </span> <span class="PreProc">break-if-=</span> +<span id="L1476" class="LineNr">1476 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<=' encountered non-pair"</span> +<span id="L1477" class="LineNr">1477 </span> <span class="PreProc">return</span> +<span id="L1478" class="LineNr">1478 </span> <span class="Delimiter">}</span> +<span id="L1479" class="LineNr">1479 </span> <span class="Delimiter">{</span> +<span id="L1480" class="LineNr">1480 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L1481" class="LineNr">1481 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1482" class="LineNr">1482 </span> <span class="PreProc">break-if-=</span> +<span id="L1483" class="LineNr">1483 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'<=' needs 2 args but got 1"</span> +<span id="L1484" class="LineNr">1484 </span> <span class="PreProc">return</span> +<span id="L1485" class="LineNr">1485 </span> <span class="Delimiter">}</span> +<span id="L1486" class="LineNr">1486 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L1487" class="LineNr">1487 </span> <span class="muComment"># compare</span> +<span id="L1488" class="LineNr">1488 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1489" class="LineNr">1489 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first +<span id="L1490" class="LineNr">1490 </span> <span class="Delimiter">{</span> +<span id="L1491" class="LineNr">1491 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1492" class="LineNr">1492 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L1493" class="LineNr">1493 </span> <span class="PreProc">break-if-=</span> +<span id="L1494" class="LineNr">1494 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for '<=' is not a number"</span> +<span id="L1495" class="LineNr">1495 </span> <span class="PreProc">return</span> +<span id="L1496" class="LineNr">1496 </span> <span class="Delimiter">}</span> +<span id="L1497" class="LineNr">1497 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L1498" class="LineNr">1498 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L1499" class="LineNr">1499 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1500" class="LineNr">1500 </span> <span class="Delimiter">{</span> +<span id="L1501" class="LineNr">1501 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L1502" class="LineNr">1502 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L1503" class="LineNr">1503 </span> <span class="PreProc">break-if-=</span> +<span id="L1504" class="LineNr">1504 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '<=' is not a number"</span> +<span id="L1505" class="LineNr">1505 </span> <span class="PreProc">return</span> +<span id="L1506" class="LineNr">1506 </span> <span class="Delimiter">}</span> +<span id="L1507" class="LineNr">1507 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1508" class="LineNr">1508 </span> compare first-float, *second-value +<span id="L1509" class="LineNr">1509 </span> <span class="Delimiter">{</span> +<span id="L1510" class="LineNr">1510 </span> <span class="PreProc">break-if-float<=</span> +<span id="L1511" class="LineNr">1511 </span> <a href='cell.mu.html#L121'>nil</a> out +<span id="L1512" class="LineNr">1512 </span> <span class="PreProc">return</span> +<span id="L1513" class="LineNr">1513 </span> <span class="Delimiter">}</span> +<span id="L1514" class="LineNr">1514 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span>/true <span id="L1515" class="LineNr">1515 </span><span class="Delimiter">}</span> <span id="L1516" class="LineNr">1516 </span> -<span id="L1517" class="LineNr">1517 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1517'>apply-up</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1518" class="LineNr">1518 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'up'"</span> +<span id="L1517" class="LineNr">1517 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1517'>apply->=</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1518" class="LineNr">1518 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply '>='"</span> <span id="L1519" class="LineNr">1519 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah <span id="L1520" class="LineNr">1520 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah <span id="L1521" class="LineNr">1521 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1522" class="LineNr">1522 </span> <span class="Delimiter">{</span> -<span id="L1523" class="LineNr">1523 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1523" class="LineNr">1523 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> <span id="L1524" class="LineNr">1524 </span> compare *args-type, <span class="Constant">0</span>/pair <span id="L1525" class="LineNr">1525 </span> <span class="PreProc">break-if-=</span> -<span id="L1526" class="LineNr">1526 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'up' are not a list"</span> +<span id="L1526" class="LineNr">1526 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to '>=' are not a list"</span> <span id="L1527" class="LineNr">1527 </span> <span class="PreProc">return</span> <span id="L1528" class="LineNr">1528 </span> <span class="Delimiter">}</span> -<span id="L1529" class="LineNr">1529 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args +<span id="L1529" class="LineNr">1529 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args <span id="L1530" class="LineNr">1530 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1531" class="LineNr">1531 </span> <span class="Delimiter">{</span> <span id="L1532" class="LineNr">1532 </span> <span class="PreProc">break-if-=</span> -<span id="L1533" class="LineNr">1533 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'up' needs 1 arg but got 0"</span> +<span id="L1533" class="LineNr">1533 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>=' needs 2 args but got 0"</span> <span id="L1534" class="LineNr">1534 </span> <span class="PreProc">return</span> <span id="L1535" class="LineNr">1535 </span> <span class="Delimiter">}</span> -<span id="L1536" class="LineNr">1536 </span> <span class="muComment"># screen = args->left</span> -<span id="L1537" class="LineNr">1537 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1538" class="LineNr">1538 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1539" class="LineNr">1539 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1540" class="LineNr">1540 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L1536" class="LineNr">1536 </span> <span class="muComment"># args->left</span> +<span id="L1537" class="LineNr">1537 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1538" class="LineNr">1538 </span> <span class="muComment"># args->right->left</span> +<span id="L1539" class="LineNr">1539 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1540" class="LineNr">1540 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah <span id="L1541" class="LineNr">1541 </span> <span class="Delimiter">{</span> -<span id="L1542" class="LineNr">1542 </span> <span class="PreProc">break-if-=</span> -<span id="L1543" class="LineNr">1543 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'up' is not a screen"</span> -<span id="L1544" class="LineNr">1544 </span> <span class="PreProc">return</span> -<span id="L1545" class="LineNr">1545 </span> <span class="Delimiter">}</span> -<span id="L1546" class="LineNr">1546 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1547" class="LineNr">1547 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L1548" class="LineNr">1548 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1549" class="LineNr">1549 </span> <span class="muComment">#</span> -<span id="L1550" class="LineNr">1550 </span> <a href='../501draw-text.mu.html#L34'>move-cursor-up</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1551" class="LineNr">1551 </span><span class="Delimiter">}</span> -<span id="L1552" class="LineNr">1552 </span> -<span id="L1553" class="LineNr">1553 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1553'>apply-down</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1554" class="LineNr">1554 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'down'"</span> -<span id="L1555" class="LineNr">1555 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1556" class="LineNr">1556 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1557" class="LineNr">1557 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1558" class="LineNr">1558 </span> <span class="Delimiter">{</span> -<span id="L1559" class="LineNr">1559 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1560" class="LineNr">1560 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1561" class="LineNr">1561 </span> <span class="PreProc">break-if-=</span> -<span id="L1562" class="LineNr">1562 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'down' are not a list"</span> -<span id="L1563" class="LineNr">1563 </span> <span class="PreProc">return</span> -<span id="L1564" class="LineNr">1564 </span> <span class="Delimiter">}</span> -<span id="L1565" class="LineNr">1565 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1566" class="LineNr">1566 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1567" class="LineNr">1567 </span> <span class="Delimiter">{</span> -<span id="L1568" class="LineNr">1568 </span> <span class="PreProc">break-if-=</span> -<span id="L1569" class="LineNr">1569 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'down' needs 1 arg but got 0"</span> -<span id="L1570" class="LineNr">1570 </span> <span class="PreProc">return</span> -<span id="L1571" class="LineNr">1571 </span> <span class="Delimiter">}</span> -<span id="L1572" class="LineNr">1572 </span> <span class="muComment"># screen = args->left</span> -<span id="L1573" class="LineNr">1573 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1574" class="LineNr">1574 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1575" class="LineNr">1575 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1576" class="LineNr">1576 </span> compare *first-type, <span class="Constant">5</span>/screen -<span id="L1577" class="LineNr">1577 </span> <span class="Delimiter">{</span> -<span id="L1578" class="LineNr">1578 </span> <span class="PreProc">break-if-=</span> -<span id="L1579" class="LineNr">1579 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'down' is not a screen"</span> -<span id="L1580" class="LineNr">1580 </span> <span class="PreProc">return</span> -<span id="L1581" class="LineNr">1581 </span> <span class="Delimiter">}</span> -<span id="L1582" class="LineNr">1582 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1583" class="LineNr">1583 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L1584" class="LineNr">1584 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1585" class="LineNr">1585 </span> <span class="muComment">#</span> -<span id="L1586" class="LineNr">1586 </span> <a href='../501draw-text.mu.html#L47'>move-cursor-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1587" class="LineNr">1587 </span><span class="Delimiter">}</span> -<span id="L1588" class="LineNr">1588 </span> -<span id="L1589" class="LineNr">1589 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1589'>apply-left</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1590" class="LineNr">1590 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'left'"</span> -<span id="L1591" class="LineNr">1591 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1592" class="LineNr">1592 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1593" class="LineNr">1593 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1594" class="LineNr">1594 </span> <span class="Delimiter">{</span> -<span id="L1595" class="LineNr">1595 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1596" class="LineNr">1596 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1597" class="LineNr">1597 </span> <span class="PreProc">break-if-=</span> -<span id="L1598" class="LineNr">1598 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'left' are not a list"</span> -<span id="L1599" class="LineNr">1599 </span> <span class="PreProc">return</span> -<span id="L1600" class="LineNr">1600 </span> <span class="Delimiter">}</span> -<span id="L1601" class="LineNr">1601 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1602" class="LineNr">1602 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1603" class="LineNr">1603 </span> <span class="Delimiter">{</span> -<span id="L1604" class="LineNr">1604 </span> <span class="PreProc">break-if-=</span> -<span id="L1605" class="LineNr">1605 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'left' needs 1 arg but got 0"</span> -<span id="L1606" class="LineNr">1606 </span> <span class="PreProc">return</span> -<span id="L1607" class="LineNr">1607 </span> <span class="Delimiter">}</span> -<span id="L1608" class="LineNr">1608 </span> <span class="muComment"># screen = args->left</span> -<span id="L1609" class="LineNr">1609 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1610" class="LineNr">1610 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1611" class="LineNr">1611 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1612" class="LineNr">1612 </span> compare *first-type, <span class="Constant">5</span>/screen -<span id="L1613" class="LineNr">1613 </span> <span class="Delimiter">{</span> -<span id="L1614" class="LineNr">1614 </span> <span class="PreProc">break-if-=</span> -<span id="L1615" class="LineNr">1615 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'left' is not a screen"</span> -<span id="L1616" class="LineNr">1616 </span> <span class="PreProc">return</span> -<span id="L1617" class="LineNr">1617 </span> <span class="Delimiter">}</span> -<span id="L1618" class="LineNr">1618 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1619" class="LineNr">1619 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L1620" class="LineNr">1620 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1621" class="LineNr">1621 </span> <span class="muComment">#</span> -<span id="L1622" class="LineNr">1622 </span> <a href='../501draw-text.mu.html#L3'>move-cursor-left</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1623" class="LineNr">1623 </span><span class="Delimiter">}</span> -<span id="L1624" class="LineNr">1624 </span> -<span id="L1625" class="LineNr">1625 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1625'>apply-right</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1626" class="LineNr">1626 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'right'"</span> -<span id="L1627" class="LineNr">1627 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1628" class="LineNr">1628 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1629" class="LineNr">1629 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1630" class="LineNr">1630 </span> <span class="Delimiter">{</span> -<span id="L1631" class="LineNr">1631 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1632" class="LineNr">1632 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1633" class="LineNr">1633 </span> <span class="PreProc">break-if-=</span> -<span id="L1634" class="LineNr">1634 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'right' are not a list"</span> -<span id="L1635" class="LineNr">1635 </span> <span class="PreProc">return</span> -<span id="L1636" class="LineNr">1636 </span> <span class="Delimiter">}</span> -<span id="L1637" class="LineNr">1637 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1638" class="LineNr">1638 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1639" class="LineNr">1639 </span> <span class="Delimiter">{</span> -<span id="L1640" class="LineNr">1640 </span> <span class="PreProc">break-if-=</span> -<span id="L1641" class="LineNr">1641 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'right' needs 1 arg but got 0"</span> -<span id="L1642" class="LineNr">1642 </span> <span class="PreProc">return</span> -<span id="L1643" class="LineNr">1643 </span> <span class="Delimiter">}</span> -<span id="L1644" class="LineNr">1644 </span> <span class="muComment"># screen = args->left</span> -<span id="L1645" class="LineNr">1645 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1646" class="LineNr">1646 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1647" class="LineNr">1647 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1648" class="LineNr">1648 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L1542" class="LineNr">1542 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L1543" class="LineNr">1543 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L1544" class="LineNr">1544 </span> <span class="PreProc">break-if-=</span> +<span id="L1545" class="LineNr">1545 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>=' encountered non-pair"</span> +<span id="L1546" class="LineNr">1546 </span> <span class="PreProc">return</span> +<span id="L1547" class="LineNr">1547 </span> <span class="Delimiter">}</span> +<span id="L1548" class="LineNr">1548 </span> <span class="Delimiter">{</span> +<span id="L1549" class="LineNr">1549 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L1550" class="LineNr">1550 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1551" class="LineNr">1551 </span> <span class="PreProc">break-if-=</span> +<span id="L1552" class="LineNr">1552 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'>=' needs 2 args but got 1"</span> +<span id="L1553" class="LineNr">1553 </span> <span class="PreProc">return</span> +<span id="L1554" class="LineNr">1554 </span> <span class="Delimiter">}</span> +<span id="L1555" class="LineNr">1555 </span> <span class="PreProc">var</span> second-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L1556" class="LineNr">1556 </span> <span class="muComment"># compare</span> +<span id="L1557" class="LineNr">1557 </span> <span class="PreProc">var</span> _first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1558" class="LineNr">1558 </span> <span class="PreProc">var</span> first/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _first +<span id="L1559" class="LineNr">1559 </span> <span class="Delimiter">{</span> +<span id="L1560" class="LineNr">1560 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1561" class="LineNr">1561 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L1562" class="LineNr">1562 </span> <span class="PreProc">break-if-=</span> +<span id="L1563" class="LineNr">1563 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for '>=' is not a number"</span> +<span id="L1564" class="LineNr">1564 </span> <span class="PreProc">return</span> +<span id="L1565" class="LineNr">1565 </span> <span class="Delimiter">}</span> +<span id="L1566" class="LineNr">1566 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L1567" class="LineNr">1567 </span> <span class="PreProc">var</span> first-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *first-value +<span id="L1568" class="LineNr">1568 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1569" class="LineNr">1569 </span> <span class="Delimiter">{</span> +<span id="L1570" class="LineNr">1570 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L1571" class="LineNr">1571 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L1572" class="LineNr">1572 </span> <span class="PreProc">break-if-=</span> +<span id="L1573" class="LineNr">1573 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for '>=' is not a number"</span> +<span id="L1574" class="LineNr">1574 </span> <span class="PreProc">return</span> +<span id="L1575" class="LineNr">1575 </span> <span class="Delimiter">}</span> +<span id="L1576" class="LineNr">1576 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1577" class="LineNr">1577 </span> compare first-float, *second-value +<span id="L1578" class="LineNr">1578 </span> <span class="Delimiter">{</span> +<span id="L1579" class="LineNr">1579 </span> <span class="PreProc">break-if-float>=</span> +<span id="L1580" class="LineNr">1580 </span> <a href='cell.mu.html#L121'>nil</a> out +<span id="L1581" class="LineNr">1581 </span> <span class="PreProc">return</span> +<span id="L1582" class="LineNr">1582 </span> <span class="Delimiter">}</span> +<span id="L1583" class="LineNr">1583 </span> <a href='cell.mu.html#L84'>new-integer</a> out, <span class="Constant">1</span>/true +<span id="L1584" class="LineNr">1584 </span><span class="Delimiter">}</span> +<span id="L1585" class="LineNr">1585 </span> +<span id="L1586" class="LineNr">1586 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1586'>apply-print</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1587" class="LineNr">1587 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'print'"</span> +<span id="L1588" class="LineNr">1588 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1589" class="LineNr">1589 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1590" class="LineNr">1590 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1591" class="LineNr">1591 </span> <span class="Delimiter">{</span> +<span id="L1592" class="LineNr">1592 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1593" class="LineNr">1593 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1594" class="LineNr">1594 </span> <span class="PreProc">break-if-=</span> +<span id="L1595" class="LineNr">1595 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'print' are not a list"</span> +<span id="L1596" class="LineNr">1596 </span> <span class="PreProc">return</span> +<span id="L1597" class="LineNr">1597 </span> <span class="Delimiter">}</span> +<span id="L1598" class="LineNr">1598 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1599" class="LineNr">1599 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1600" class="LineNr">1600 </span> <span class="Delimiter">{</span> +<span id="L1601" class="LineNr">1601 </span> <span class="PreProc">break-if-=</span> +<span id="L1602" class="LineNr">1602 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'print' needs 2 args but got 0"</span> +<span id="L1603" class="LineNr">1603 </span> <span class="PreProc">return</span> +<span id="L1604" class="LineNr">1604 </span> <span class="Delimiter">}</span> +<span id="L1605" class="LineNr">1605 </span> <span class="muComment"># screen = args->left</span> +<span id="L1606" class="LineNr">1606 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1607" class="LineNr">1607 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1608" class="LineNr">1608 </span> <span class="Delimiter">{</span> +<span id="L1609" class="LineNr">1609 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1610" class="LineNr">1610 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L1611" class="LineNr">1611 </span> <span class="PreProc">break-if-=</span> +<span id="L1612" class="LineNr">1612 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'print' is not a screen"</span> +<span id="L1613" class="LineNr">1613 </span> <span class="PreProc">return</span> +<span id="L1614" class="LineNr">1614 </span> <span class="Delimiter">}</span> +<span id="L1615" class="LineNr">1615 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1616" class="LineNr">1616 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1617" class="LineNr">1617 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L1618" class="LineNr">1618 </span> <span class="muComment"># args->right->left</span> +<span id="L1619" class="LineNr">1619 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1620" class="LineNr">1620 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L1621" class="LineNr">1621 </span> <span class="Delimiter">{</span> +<span id="L1622" class="LineNr">1622 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L1623" class="LineNr">1623 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L1624" class="LineNr">1624 </span> <span class="PreProc">break-if-=</span> +<span id="L1625" class="LineNr">1625 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'print' encountered non-pair"</span> +<span id="L1626" class="LineNr">1626 </span> <span class="PreProc">return</span> +<span id="L1627" class="LineNr">1627 </span> <span class="Delimiter">}</span> +<span id="L1628" class="LineNr">1628 </span> <span class="Delimiter">{</span> +<span id="L1629" class="LineNr">1629 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L1630" class="LineNr">1630 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L1631" class="LineNr">1631 </span> <span class="PreProc">break-if-=</span> +<span id="L1632" class="LineNr">1632 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'print' needs 2 args but got 1"</span> +<span id="L1633" class="LineNr">1633 </span> <span class="PreProc">return</span> +<span id="L1634" class="LineNr">1634 </span> <span class="Delimiter">}</span> +<span id="L1635" class="LineNr">1635 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L1636" class="LineNr">1636 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>) +<span id="L1637" class="LineNr">1637 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage +<span id="L1638" class="LineNr">1638 </span> <a href='print.mu.html#L7'>print-cell</a> second-ah, stream, trace +<span id="L1639" class="LineNr">1639 </span> <a href='../501draw-text.mu.html#L235'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, stream, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg +<span id="L1640" class="LineNr">1640 </span> <span class="muComment"># return what was printed</span> +<span id="L1641" class="LineNr">1641 </span> copy-object second-ah, out +<span id="L1642" class="LineNr">1642 </span><span class="Delimiter">}</span> +<span id="L1643" class="LineNr">1643 </span> +<span id="L1644" class="LineNr">1644 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1644'>apply-clear</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1645" class="LineNr">1645 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'clear'"</span> +<span id="L1646" class="LineNr">1646 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1647" class="LineNr">1647 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1648" class="LineNr">1648 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args <span id="L1649" class="LineNr">1649 </span> <span class="Delimiter">{</span> -<span id="L1650" class="LineNr">1650 </span> <span class="PreProc">break-if-=</span> -<span id="L1651" class="LineNr">1651 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'right' is not a screen"</span> -<span id="L1652" class="LineNr">1652 </span> <span class="PreProc">return</span> -<span id="L1653" class="LineNr">1653 </span> <span class="Delimiter">}</span> -<span id="L1654" class="LineNr">1654 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1655" class="LineNr">1655 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L1656" class="LineNr">1656 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1657" class="LineNr">1657 </span> <span class="muComment">#</span> -<span id="L1658" class="LineNr">1658 </span> <a href='../501draw-text.mu.html#L16'>move-cursor-right</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1659" class="LineNr">1659 </span><span class="Delimiter">}</span> -<span id="L1660" class="LineNr">1660 </span> -<span id="L1661" class="LineNr">1661 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1661'>apply-cr</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1662" class="LineNr">1662 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'cr'"</span> -<span id="L1663" class="LineNr">1663 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1664" class="LineNr">1664 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1665" class="LineNr">1665 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1666" class="LineNr">1666 </span> <span class="Delimiter">{</span> -<span id="L1667" class="LineNr">1667 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1668" class="LineNr">1668 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1669" class="LineNr">1669 </span> <span class="PreProc">break-if-=</span> -<span id="L1670" class="LineNr">1670 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'cr' are not a list"</span> -<span id="L1671" class="LineNr">1671 </span> <span class="PreProc">return</span> -<span id="L1672" class="LineNr">1672 </span> <span class="Delimiter">}</span> -<span id="L1673" class="LineNr">1673 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1674" class="LineNr">1674 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1675" class="LineNr">1675 </span> <span class="Delimiter">{</span> -<span id="L1676" class="LineNr">1676 </span> <span class="PreProc">break-if-=</span> -<span id="L1677" class="LineNr">1677 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'cr' needs 1 arg but got 0"</span> -<span id="L1678" class="LineNr">1678 </span> <span class="PreProc">return</span> -<span id="L1679" class="LineNr">1679 </span> <span class="Delimiter">}</span> -<span id="L1680" class="LineNr">1680 </span> <span class="muComment"># screen = args->left</span> -<span id="L1681" class="LineNr">1681 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1682" class="LineNr">1682 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1683" class="LineNr">1683 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1684" class="LineNr">1684 </span> compare *first-type, <span class="Constant">5</span>/screen -<span id="L1685" class="LineNr">1685 </span> <span class="Delimiter">{</span> -<span id="L1686" class="LineNr">1686 </span> <span class="PreProc">break-if-=</span> -<span id="L1687" class="LineNr">1687 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'cr' is not a screen"</span> -<span id="L1688" class="LineNr">1688 </span> <span class="PreProc">return</span> -<span id="L1689" class="LineNr">1689 </span> <span class="Delimiter">}</span> -<span id="L1690" class="LineNr">1690 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1691" class="LineNr">1691 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L1692" class="LineNr">1692 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1693" class="LineNr">1693 </span> <span class="muComment">#</span> -<span id="L1694" class="LineNr">1694 </span> <a href='../501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1695" class="LineNr">1695 </span><span class="Delimiter">}</span> -<span id="L1696" class="LineNr">1696 </span> -<span id="L1697" class="LineNr">1697 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1697'>apply-pixel</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1698" class="LineNr">1698 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'pixel'"</span> -<span id="L1699" class="LineNr">1699 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1700" class="LineNr">1700 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1701" class="LineNr">1701 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1650" class="LineNr">1650 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1651" class="LineNr">1651 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1652" class="LineNr">1652 </span> <span class="PreProc">break-if-=</span> +<span id="L1653" class="LineNr">1653 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'clear' are not a list"</span> +<span id="L1654" class="LineNr">1654 </span> <span class="PreProc">return</span> +<span id="L1655" class="LineNr">1655 </span> <span class="Delimiter">}</span> +<span id="L1656" class="LineNr">1656 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1657" class="LineNr">1657 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1658" class="LineNr">1658 </span> <span class="Delimiter">{</span> +<span id="L1659" class="LineNr">1659 </span> <span class="PreProc">break-if-=</span> +<span id="L1660" class="LineNr">1660 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'clear' needs 1 arg but got 0"</span> +<span id="L1661" class="LineNr">1661 </span> <span class="PreProc">return</span> +<span id="L1662" class="LineNr">1662 </span> <span class="Delimiter">}</span> +<span id="L1663" class="LineNr">1663 </span> <span class="muComment"># screen = args->left</span> +<span id="L1664" class="LineNr">1664 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1665" class="LineNr">1665 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1666" class="LineNr">1666 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1667" class="LineNr">1667 </span> compare *first-type, <span class="Constant">3</span>/stream +<span id="L1668" class="LineNr">1668 </span> <span class="Delimiter">{</span> +<span id="L1669" class="LineNr">1669 </span> <span class="PreProc">break-if-!=</span> +<span id="L1670" class="LineNr">1670 </span> <span class="PreProc">var</span> stream-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get first, text-data +<span id="L1671" class="LineNr">1671 </span> <span class="PreProc">var</span> _stream-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *stream-data-ah +<span id="L1672" class="LineNr">1672 </span> <span class="PreProc">var</span> stream-data/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special"><-</span> copy _stream-data +<span id="L1673" class="LineNr">1673 </span> <a href='../106stream.subx.html#L20'>clear-stream</a> stream-data +<span id="L1674" class="LineNr">1674 </span> <span class="PreProc">return</span> +<span id="L1675" class="LineNr">1675 </span> <span class="Delimiter">}</span> +<span id="L1676" class="LineNr">1676 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L1677" class="LineNr">1677 </span> <span class="Delimiter">{</span> +<span id="L1678" class="LineNr">1678 </span> <span class="PreProc">break-if-!=</span> +<span id="L1679" class="LineNr">1679 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1680" class="LineNr">1680 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1681" class="LineNr">1681 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L1682" class="LineNr">1682 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1683" class="LineNr">1683 </span> <span class="PreProc">return</span> +<span id="L1684" class="LineNr">1684 </span> <span class="Delimiter">}</span> +<span id="L1685" class="LineNr">1685 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'clear' is not a <a href='../500fake-screen.mu.html#L14'>screen</a> or a stream"</span> +<span id="L1686" class="LineNr">1686 </span><span class="Delimiter">}</span> +<span id="L1687" class="LineNr">1687 </span> +<span id="L1688" class="LineNr">1688 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1688'>apply-up</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1689" class="LineNr">1689 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'up'"</span> +<span id="L1690" class="LineNr">1690 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1691" class="LineNr">1691 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1692" class="LineNr">1692 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1693" class="LineNr">1693 </span> <span class="Delimiter">{</span> +<span id="L1694" class="LineNr">1694 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1695" class="LineNr">1695 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1696" class="LineNr">1696 </span> <span class="PreProc">break-if-=</span> +<span id="L1697" class="LineNr">1697 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'up' are not a list"</span> +<span id="L1698" class="LineNr">1698 </span> <span class="PreProc">return</span> +<span id="L1699" class="LineNr">1699 </span> <span class="Delimiter">}</span> +<span id="L1700" class="LineNr">1700 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1701" class="LineNr">1701 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1702" class="LineNr">1702 </span> <span class="Delimiter">{</span> -<span id="L1703" class="LineNr">1703 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1704" class="LineNr">1704 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1705" class="LineNr">1705 </span> <span class="PreProc">break-if-=</span> -<span id="L1706" class="LineNr">1706 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'pixel' are not a list"</span> -<span id="L1707" class="LineNr">1707 </span> <span class="PreProc">return</span> -<span id="L1708" class="LineNr">1708 </span> <span class="Delimiter">}</span> -<span id="L1709" class="LineNr">1709 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1710" class="LineNr">1710 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1711" class="LineNr">1711 </span> <span class="Delimiter">{</span> -<span id="L1712" class="LineNr">1712 </span> <span class="PreProc">break-if-=</span> -<span id="L1713" class="LineNr">1713 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 0"</span> -<span id="L1714" class="LineNr">1714 </span> <span class="PreProc">return</span> -<span id="L1715" class="LineNr">1715 </span> <span class="Delimiter">}</span> -<span id="L1716" class="LineNr">1716 </span> <span class="muComment"># screen = args->left</span> -<span id="L1717" class="LineNr">1717 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1718" class="LineNr">1718 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1719" class="LineNr">1719 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1720" class="LineNr">1720 </span> compare *first-type, <span class="Constant">5</span>/screen -<span id="L1721" class="LineNr">1721 </span> <span class="Delimiter">{</span> -<span id="L1722" class="LineNr">1722 </span> <span class="PreProc">break-if-=</span> -<span id="L1723" class="LineNr">1723 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'pixel' is not a screen"</span> -<span id="L1724" class="LineNr">1724 </span> <span class="PreProc">return</span> -<span id="L1725" class="LineNr">1725 </span> <span class="Delimiter">}</span> -<span id="L1726" class="LineNr">1726 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1727" class="LineNr">1727 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L1728" class="LineNr">1728 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1729" class="LineNr">1729 </span> <span class="muComment"># x = args->right->left->value</span> -<span id="L1730" class="LineNr">1730 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1731" class="LineNr">1731 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1732" class="LineNr">1732 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest -<span id="L1733" class="LineNr">1733 </span> <span class="Delimiter">{</span> -<span id="L1734" class="LineNr">1734 </span> <span class="PreProc">var</span> rest-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> -<span id="L1735" class="LineNr">1735 </span> compare *rest-type, <span class="Constant">0</span>/pair -<span id="L1736" class="LineNr">1736 </span> <span class="PreProc">break-if-=</span> -<span id="L1737" class="LineNr">1737 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' encountered non-pair"</span> -<span id="L1738" class="LineNr">1738 </span> <span class="PreProc">return</span> -<span id="L1739" class="LineNr">1739 </span> <span class="Delimiter">}</span> -<span id="L1740" class="LineNr">1740 </span> <span class="Delimiter">{</span> -<span id="L1741" class="LineNr">1741 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest -<span id="L1742" class="LineNr">1742 </span> compare rest-nil?, <span class="Constant">0</span>/false -<span id="L1743" class="LineNr">1743 </span> <span class="PreProc">break-if-=</span> -<span id="L1744" class="LineNr">1744 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 1"</span> -<span id="L1745" class="LineNr">1745 </span> <span class="PreProc">return</span> -<span id="L1746" class="LineNr">1746 </span> <span class="Delimiter">}</span> -<span id="L1747" class="LineNr">1747 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1748" class="LineNr">1748 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L1749" class="LineNr">1749 </span> <span class="PreProc">var</span> second-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L1750" class="LineNr">1750 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L1751" class="LineNr">1751 </span> <span class="Delimiter">{</span> -<span id="L1752" class="LineNr">1752 </span> <span class="PreProc">break-if-=</span> -<span id="L1753" class="LineNr">1753 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'pixel' is not an int (x coordinate)"</span> -<span id="L1754" class="LineNr">1754 </span> <span class="PreProc">return</span> -<span id="L1755" class="LineNr">1755 </span> <span class="Delimiter">}</span> -<span id="L1756" class="LineNr">1756 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L1757" class="LineNr">1757 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert *second-value -<span id="L1758" class="LineNr">1758 </span> <span class="muComment"># y = rest->right->left->value</span> -<span id="L1759" class="LineNr">1759 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1760" class="LineNr">1760 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1761" class="LineNr">1761 </span> rest <span class="Special"><-</span> copy _rest -<span id="L1762" class="LineNr">1762 </span> <span class="Delimiter">{</span> -<span id="L1763" class="LineNr">1763 </span> <span class="PreProc">var</span> rest-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> -<span id="L1764" class="LineNr">1764 </span> compare *rest-type, <span class="Constant">0</span>/pair -<span id="L1765" class="LineNr">1765 </span> <span class="PreProc">break-if-=</span> -<span id="L1766" class="LineNr">1766 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' encountered non-pair"</span> -<span id="L1767" class="LineNr">1767 </span> <span class="PreProc">return</span> -<span id="L1768" class="LineNr">1768 </span> <span class="Delimiter">}</span> -<span id="L1769" class="LineNr">1769 </span> <span class="Delimiter">{</span> -<span id="L1770" class="LineNr">1770 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest -<span id="L1771" class="LineNr">1771 </span> compare rest-nil?, <span class="Constant">0</span>/false -<span id="L1772" class="LineNr">1772 </span> <span class="PreProc">break-if-=</span> -<span id="L1773" class="LineNr">1773 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 2"</span> -<span id="L1774" class="LineNr">1774 </span> <span class="PreProc">return</span> -<span id="L1775" class="LineNr">1775 </span> <span class="Delimiter">}</span> -<span id="L1776" class="LineNr">1776 </span> <span class="PreProc">var</span> third-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1777" class="LineNr">1777 </span> <span class="PreProc">var</span> third/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah -<span id="L1778" class="LineNr">1778 </span> <span class="PreProc">var</span> third-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get third, <span class="PreProc">type</span> -<span id="L1779" class="LineNr">1779 </span> compare *third-type, <span class="Constant">1</span>/number -<span id="L1780" class="LineNr">1780 </span> <span class="Delimiter">{</span> -<span id="L1781" class="LineNr">1781 </span> <span class="PreProc">break-if-=</span> -<span id="L1782" class="LineNr">1782 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"third arg for 'pixel' is not an int (y coordinate)"</span> -<span id="L1783" class="LineNr">1783 </span> <span class="PreProc">return</span> -<span id="L1784" class="LineNr">1784 </span> <span class="Delimiter">}</span> -<span id="L1785" class="LineNr">1785 </span> <span class="PreProc">var</span> third-value/eax: (addr float) <span class="Special"><-</span> get third, number-data -<span id="L1786" class="LineNr">1786 </span> <span class="PreProc">var</span> y/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> convert *third-value -<span id="L1787" class="LineNr">1787 </span> <span class="muComment"># color = rest->right->left->value</span> -<span id="L1788" class="LineNr">1788 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right -<span id="L1789" class="LineNr">1789 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah -<span id="L1790" class="LineNr">1790 </span> rest <span class="Special"><-</span> copy _rest -<span id="L1791" class="LineNr">1791 </span> <span class="Delimiter">{</span> -<span id="L1792" class="LineNr">1792 </span> <span class="PreProc">var</span> rest-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> -<span id="L1793" class="LineNr">1793 </span> compare *rest-type, <span class="Constant">0</span>/pair -<span id="L1794" class="LineNr">1794 </span> <span class="PreProc">break-if-=</span> -<span id="L1795" class="LineNr">1795 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' encountered non-pair"</span> -<span id="L1796" class="LineNr">1796 </span> <span class="PreProc">return</span> -<span id="L1797" class="LineNr">1797 </span> <span class="Delimiter">}</span> -<span id="L1798" class="LineNr">1798 </span> <span class="Delimiter">{</span> -<span id="L1799" class="LineNr">1799 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> rest -<span id="L1800" class="LineNr">1800 </span> compare rest-nil?, <span class="Constant">0</span>/false -<span id="L1801" class="LineNr">1801 </span> <span class="PreProc">break-if-=</span> -<span id="L1802" class="LineNr">1802 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 3"</span> -<span id="L1803" class="LineNr">1803 </span> <span class="PreProc">return</span> -<span id="L1804" class="LineNr">1804 </span> <span class="Delimiter">}</span> -<span id="L1805" class="LineNr">1805 </span> <span class="PreProc">var</span> fourth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left -<span id="L1806" class="LineNr">1806 </span> <span class="PreProc">var</span> fourth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fourth-ah -<span id="L1807" class="LineNr">1807 </span> <span class="PreProc">var</span> fourth-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get fourth, <span class="PreProc">type</span> -<span id="L1808" class="LineNr">1808 </span> compare *fourth-type, <span class="Constant">1</span>/number -<span id="L1809" class="LineNr">1809 </span> <span class="Delimiter">{</span> -<span id="L1810" class="LineNr">1810 </span> <span class="PreProc">break-if-=</span> -<span id="L1811" class="LineNr">1811 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fourth arg for 'pixel' is not an int (color; 0..0xff)"</span> -<span id="L1812" class="LineNr">1812 </span> <span class="PreProc">return</span> -<span id="L1813" class="LineNr">1813 </span> <span class="Delimiter">}</span> -<span id="L1814" class="LineNr">1814 </span> <span class="PreProc">var</span> fourth-value/eax: (addr float) <span class="Special"><-</span> get fourth, number-data -<span id="L1815" class="LineNr">1815 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> convert *fourth-value -<span id="L1816" class="LineNr">1816 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color -<span id="L1817" class="LineNr">1817 </span> <span class="muComment"># return nothing</span> -<span id="L1818" class="LineNr">1818 </span><span class="Delimiter">}</span> -<span id="L1819" class="LineNr">1819 </span> -<span id="L1820" class="LineNr">1820 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1820'>apply-wait-for-key</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1821" class="LineNr">1821 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'key'"</span> -<span id="L1822" class="LineNr">1822 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1823" class="LineNr">1823 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1824" class="LineNr">1824 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1825" class="LineNr">1825 </span> <span class="Delimiter">{</span> -<span id="L1826" class="LineNr">1826 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1827" class="LineNr">1827 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1828" class="LineNr">1828 </span> <span class="PreProc">break-if-=</span> -<span id="L1829" class="LineNr">1829 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'key' are not a list"</span> -<span id="L1830" class="LineNr">1830 </span> <span class="PreProc">return</span> -<span id="L1831" class="LineNr">1831 </span> <span class="Delimiter">}</span> -<span id="L1832" class="LineNr">1832 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1833" class="LineNr">1833 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1834" class="LineNr">1834 </span> <span class="Delimiter">{</span> -<span id="L1835" class="LineNr">1835 </span> <span class="PreProc">break-if-=</span> -<span id="L1836" class="LineNr">1836 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'key' needs 1 arg but got 0"</span> -<span id="L1837" class="LineNr">1837 </span> <span class="PreProc">return</span> -<span id="L1838" class="LineNr">1838 </span> <span class="Delimiter">}</span> -<span id="L1839" class="LineNr">1839 </span> <span class="muComment"># keyboard = args->left</span> -<span id="L1840" class="LineNr">1840 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1841" class="LineNr">1841 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1842" class="LineNr">1842 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1843" class="LineNr">1843 </span> compare *first-type, <span class="Constant">6</span>/keyboard -<span id="L1844" class="LineNr">1844 </span> <span class="Delimiter">{</span> -<span id="L1845" class="LineNr">1845 </span> <span class="PreProc">break-if-=</span> -<span id="L1846" class="LineNr">1846 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'key' is not a keyboard"</span> -<span id="L1847" class="LineNr">1847 </span> <span class="PreProc">return</span> -<span id="L1848" class="LineNr">1848 </span> <span class="Delimiter">}</span> -<span id="L1849" class="LineNr">1849 </span> <span class="PreProc">var</span> keyboard-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get first, keyboard-data -<span id="L1850" class="LineNr">1850 </span> <span class="PreProc">var</span> _keyboard/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-ah -<span id="L1851" class="LineNr">1851 </span> <span class="PreProc">var</span> keyboard/<span class="muRegEcx">ecx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _keyboard -<span id="L1852" class="LineNr">1852 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='primitives.mu.html#L1857'>wait-for-key</a> keyboard -<span id="L1853" class="LineNr">1853 </span> <span class="muComment"># return key typed</span> -<span id="L1854" class="LineNr">1854 </span> <a href='cell.mu.html#L84'>new-integer</a> out, result -<span id="L1855" class="LineNr">1855 </span><span class="Delimiter">}</span> -<span id="L1856" class="LineNr">1856 </span> -<span id="L1857" class="LineNr">1857 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1857'>wait-for-key</a></span> keyboard: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> -<span id="L1858" class="LineNr">1858 </span> <span class="muComment"># if keyboard is 0, use real keyboard</span> -<span id="L1859" class="LineNr">1859 </span> <span class="Delimiter">{</span> -<span id="L1860" class="LineNr">1860 </span> compare keyboard, <span class="Constant">0</span>/real-keyboard -<span id="L1861" class="LineNr">1861 </span> <span class="PreProc">break-if-!=</span> -<span id="L1862" class="LineNr">1862 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/real-keyboard -<span id="L1863" class="LineNr">1863 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy key -<span id="L1864" class="LineNr">1864 </span> <span class="PreProc">return</span> result -<span id="L1865" class="LineNr">1865 </span> <span class="Delimiter">}</span> -<span id="L1866" class="LineNr">1866 </span> <span class="muComment"># otherwise read from fake keyboard</span> -<span id="L1867" class="LineNr">1867 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> keyboard -<span id="L1868" class="LineNr">1868 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy g -<span id="L1869" class="LineNr">1869 </span> <span class="PreProc">return</span> result -<span id="L1870" class="LineNr">1870 </span><span class="Delimiter">}</span> -<span id="L1871" class="LineNr">1871 </span> -<span id="L1872" class="LineNr">1872 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1872'>apply-stream</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1873" class="LineNr">1873 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply stream"</span> -<span id="L1874" class="LineNr">1874 </span> <a href='cell.mu.html#L58'>allocate-stream</a> out -<span id="L1875" class="LineNr">1875 </span><span class="Delimiter">}</span> -<span id="L1876" class="LineNr">1876 </span> -<span id="L1877" class="LineNr">1877 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1877'>apply-write</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1878" class="LineNr">1878 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'write'"</span> -<span id="L1879" class="LineNr">1879 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1880" class="LineNr">1880 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1881" class="LineNr">1881 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1703" class="LineNr">1703 </span> <span class="PreProc">break-if-=</span> +<span id="L1704" class="LineNr">1704 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'up' needs 1 arg but got 0"</span> +<span id="L1705" class="LineNr">1705 </span> <span class="PreProc">return</span> +<span id="L1706" class="LineNr">1706 </span> <span class="Delimiter">}</span> +<span id="L1707" class="LineNr">1707 </span> <span class="muComment"># screen = args->left</span> +<span id="L1708" class="LineNr">1708 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1709" class="LineNr">1709 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1710" class="LineNr">1710 </span> <span class="Delimiter">{</span> +<span id="L1711" class="LineNr">1711 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1712" class="LineNr">1712 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L1713" class="LineNr">1713 </span> <span class="PreProc">break-if-=</span> +<span id="L1714" class="LineNr">1714 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'up' is not a screen"</span> +<span id="L1715" class="LineNr">1715 </span> <span class="PreProc">return</span> +<span id="L1716" class="LineNr">1716 </span> <span class="Delimiter">}</span> +<span id="L1717" class="LineNr">1717 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1718" class="LineNr">1718 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1719" class="LineNr">1719 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L1720" class="LineNr">1720 </span> <span class="muComment">#</span> +<span id="L1721" class="LineNr">1721 </span> <a href='../501draw-text.mu.html#L34'>move-cursor-up</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1722" class="LineNr">1722 </span><span class="Delimiter">}</span> +<span id="L1723" class="LineNr">1723 </span> +<span id="L1724" class="LineNr">1724 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1724'>apply-down</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1725" class="LineNr">1725 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'down'"</span> +<span id="L1726" class="LineNr">1726 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1727" class="LineNr">1727 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1728" class="LineNr">1728 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1729" class="LineNr">1729 </span> <span class="Delimiter">{</span> +<span id="L1730" class="LineNr">1730 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1731" class="LineNr">1731 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1732" class="LineNr">1732 </span> <span class="PreProc">break-if-=</span> +<span id="L1733" class="LineNr">1733 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'down' are not a list"</span> +<span id="L1734" class="LineNr">1734 </span> <span class="PreProc">return</span> +<span id="L1735" class="LineNr">1735 </span> <span class="Delimiter">}</span> +<span id="L1736" class="LineNr">1736 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1737" class="LineNr">1737 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1738" class="LineNr">1738 </span> <span class="Delimiter">{</span> +<span id="L1739" class="LineNr">1739 </span> <span class="PreProc">break-if-=</span> +<span id="L1740" class="LineNr">1740 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'down' needs 1 arg but got 0"</span> +<span id="L1741" class="LineNr">1741 </span> <span class="PreProc">return</span> +<span id="L1742" class="LineNr">1742 </span> <span class="Delimiter">}</span> +<span id="L1743" class="LineNr">1743 </span> <span class="muComment"># screen = args->left</span> +<span id="L1744" class="LineNr">1744 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1745" class="LineNr">1745 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1746" class="LineNr">1746 </span> <span class="Delimiter">{</span> +<span id="L1747" class="LineNr">1747 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1748" class="LineNr">1748 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L1749" class="LineNr">1749 </span> <span class="PreProc">break-if-=</span> +<span id="L1750" class="LineNr">1750 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'down' is not a screen"</span> +<span id="L1751" class="LineNr">1751 </span> <span class="PreProc">return</span> +<span id="L1752" class="LineNr">1752 </span> <span class="Delimiter">}</span> +<span id="L1753" class="LineNr">1753 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1754" class="LineNr">1754 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1755" class="LineNr">1755 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L1756" class="LineNr">1756 </span> <span class="muComment">#</span> +<span id="L1757" class="LineNr">1757 </span> <a href='../501draw-text.mu.html#L47'>move-cursor-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1758" class="LineNr">1758 </span><span class="Delimiter">}</span> +<span id="L1759" class="LineNr">1759 </span> +<span id="L1760" class="LineNr">1760 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1760'>apply-left</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1761" class="LineNr">1761 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'left'"</span> +<span id="L1762" class="LineNr">1762 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1763" class="LineNr">1763 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1764" class="LineNr">1764 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1765" class="LineNr">1765 </span> <span class="Delimiter">{</span> +<span id="L1766" class="LineNr">1766 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1767" class="LineNr">1767 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1768" class="LineNr">1768 </span> <span class="PreProc">break-if-=</span> +<span id="L1769" class="LineNr">1769 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'left' are not a list"</span> +<span id="L1770" class="LineNr">1770 </span> <span class="PreProc">return</span> +<span id="L1771" class="LineNr">1771 </span> <span class="Delimiter">}</span> +<span id="L1772" class="LineNr">1772 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1773" class="LineNr">1773 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1774" class="LineNr">1774 </span> <span class="Delimiter">{</span> +<span id="L1775" class="LineNr">1775 </span> <span class="PreProc">break-if-=</span> +<span id="L1776" class="LineNr">1776 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'left' needs 1 arg but got 0"</span> +<span id="L1777" class="LineNr">1777 </span> <span class="PreProc">return</span> +<span id="L1778" class="LineNr">1778 </span> <span class="Delimiter">}</span> +<span id="L1779" class="LineNr">1779 </span> <span class="muComment"># screen = args->left</span> +<span id="L1780" class="LineNr">1780 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1781" class="LineNr">1781 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1782" class="LineNr">1782 </span> <span class="Delimiter">{</span> +<span id="L1783" class="LineNr">1783 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1784" class="LineNr">1784 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L1785" class="LineNr">1785 </span> <span class="PreProc">break-if-=</span> +<span id="L1786" class="LineNr">1786 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'left' is not a screen"</span> +<span id="L1787" class="LineNr">1787 </span> <span class="PreProc">return</span> +<span id="L1788" class="LineNr">1788 </span> <span class="Delimiter">}</span> +<span id="L1789" class="LineNr">1789 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1790" class="LineNr">1790 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1791" class="LineNr">1791 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L1792" class="LineNr">1792 </span> <span class="muComment">#</span> +<span id="L1793" class="LineNr">1793 </span> <a href='../501draw-text.mu.html#L3'>move-cursor-left</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1794" class="LineNr">1794 </span><span class="Delimiter">}</span> +<span id="L1795" class="LineNr">1795 </span> +<span id="L1796" class="LineNr">1796 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1796'>apply-right</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1797" class="LineNr">1797 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'right'"</span> +<span id="L1798" class="LineNr">1798 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1799" class="LineNr">1799 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1800" class="LineNr">1800 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1801" class="LineNr">1801 </span> <span class="Delimiter">{</span> +<span id="L1802" class="LineNr">1802 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1803" class="LineNr">1803 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1804" class="LineNr">1804 </span> <span class="PreProc">break-if-=</span> +<span id="L1805" class="LineNr">1805 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'right' are not a list"</span> +<span id="L1806" class="LineNr">1806 </span> <span class="PreProc">return</span> +<span id="L1807" class="LineNr">1807 </span> <span class="Delimiter">}</span> +<span id="L1808" class="LineNr">1808 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1809" class="LineNr">1809 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1810" class="LineNr">1810 </span> <span class="Delimiter">{</span> +<span id="L1811" class="LineNr">1811 </span> <span class="PreProc">break-if-=</span> +<span id="L1812" class="LineNr">1812 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'right' needs 1 arg but got 0"</span> +<span id="L1813" class="LineNr">1813 </span> <span class="PreProc">return</span> +<span id="L1814" class="LineNr">1814 </span> <span class="Delimiter">}</span> +<span id="L1815" class="LineNr">1815 </span> <span class="muComment"># screen = args->left</span> +<span id="L1816" class="LineNr">1816 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1817" class="LineNr">1817 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1818" class="LineNr">1818 </span> <span class="Delimiter">{</span> +<span id="L1819" class="LineNr">1819 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1820" class="LineNr">1820 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L1821" class="LineNr">1821 </span> <span class="PreProc">break-if-=</span> +<span id="L1822" class="LineNr">1822 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'right' is not a screen"</span> +<span id="L1823" class="LineNr">1823 </span> <span class="PreProc">return</span> +<span id="L1824" class="LineNr">1824 </span> <span class="Delimiter">}</span> +<span id="L1825" class="LineNr">1825 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1826" class="LineNr">1826 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1827" class="LineNr">1827 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L1828" class="LineNr">1828 </span> <span class="muComment">#</span> +<span id="L1829" class="LineNr">1829 </span> <a href='../501draw-text.mu.html#L16'>move-cursor-right</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1830" class="LineNr">1830 </span><span class="Delimiter">}</span> +<span id="L1831" class="LineNr">1831 </span> +<span id="L1832" class="LineNr">1832 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1832'>apply-cr</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1833" class="LineNr">1833 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'cr'"</span> +<span id="L1834" class="LineNr">1834 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1835" class="LineNr">1835 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1836" class="LineNr">1836 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1837" class="LineNr">1837 </span> <span class="Delimiter">{</span> +<span id="L1838" class="LineNr">1838 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1839" class="LineNr">1839 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1840" class="LineNr">1840 </span> <span class="PreProc">break-if-=</span> +<span id="L1841" class="LineNr">1841 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'cr' are not a list"</span> +<span id="L1842" class="LineNr">1842 </span> <span class="PreProc">return</span> +<span id="L1843" class="LineNr">1843 </span> <span class="Delimiter">}</span> +<span id="L1844" class="LineNr">1844 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1845" class="LineNr">1845 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L1846" class="LineNr">1846 </span> <span class="Delimiter">{</span> +<span id="L1847" class="LineNr">1847 </span> <span class="PreProc">break-if-=</span> +<span id="L1848" class="LineNr">1848 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'cr' needs 1 arg but got 0"</span> +<span id="L1849" class="LineNr">1849 </span> <span class="PreProc">return</span> +<span id="L1850" class="LineNr">1850 </span> <span class="Delimiter">}</span> +<span id="L1851" class="LineNr">1851 </span> <span class="muComment"># screen = args->left</span> +<span id="L1852" class="LineNr">1852 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1853" class="LineNr">1853 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1854" class="LineNr">1854 </span> <span class="Delimiter">{</span> +<span id="L1855" class="LineNr">1855 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1856" class="LineNr">1856 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L1857" class="LineNr">1857 </span> <span class="PreProc">break-if-=</span> +<span id="L1858" class="LineNr">1858 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'cr' is not a screen"</span> +<span id="L1859" class="LineNr">1859 </span> <span class="PreProc">return</span> +<span id="L1860" class="LineNr">1860 </span> <span class="Delimiter">}</span> +<span id="L1861" class="LineNr">1861 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1862" class="LineNr">1862 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1863" class="LineNr">1863 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L1864" class="LineNr">1864 </span> <span class="muComment">#</span> +<span id="L1865" class="LineNr">1865 </span> <a href='../501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1866" class="LineNr">1866 </span><span class="Delimiter">}</span> +<span id="L1867" class="LineNr">1867 </span> +<span id="L1868" class="LineNr">1868 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1868'>apply-pixel</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1869" class="LineNr">1869 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'pixel'"</span> +<span id="L1870" class="LineNr">1870 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1871" class="LineNr">1871 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1872" class="LineNr">1872 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1873" class="LineNr">1873 </span> <span class="Delimiter">{</span> +<span id="L1874" class="LineNr">1874 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1875" class="LineNr">1875 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1876" class="LineNr">1876 </span> <span class="PreProc">break-if-=</span> +<span id="L1877" class="LineNr">1877 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'pixel' are not a list"</span> +<span id="L1878" class="LineNr">1878 </span> <span class="PreProc">return</span> +<span id="L1879" class="LineNr">1879 </span> <span class="Delimiter">}</span> +<span id="L1880" class="LineNr">1880 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L1881" class="LineNr">1881 </span> compare empty-args?, <span class="Constant">0</span>/false <span id="L1882" class="LineNr">1882 </span> <span class="Delimiter">{</span> -<span id="L1883" class="LineNr">1883 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1884" class="LineNr">1884 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1885" class="LineNr">1885 </span> <span class="PreProc">break-if-=</span> -<span id="L1886" class="LineNr">1886 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'write' are not a list"</span> -<span id="L1887" class="LineNr">1887 </span> <span class="PreProc">return</span> -<span id="L1888" class="LineNr">1888 </span> <span class="Delimiter">}</span> -<span id="L1889" class="LineNr">1889 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1890" class="LineNr">1890 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1891" class="LineNr">1891 </span> <span class="Delimiter">{</span> -<span id="L1892" class="LineNr">1892 </span> <span class="PreProc">break-if-=</span> -<span id="L1893" class="LineNr">1893 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'write' needs 2 args but got 0"</span> -<span id="L1894" class="LineNr">1894 </span> <span class="PreProc">return</span> -<span id="L1895" class="LineNr">1895 </span> <span class="Delimiter">}</span> -<span id="L1896" class="LineNr">1896 </span> <span class="muComment"># stream = args->left</span> -<span id="L1897" class="LineNr">1897 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1898" class="LineNr">1898 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1899" class="LineNr">1899 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1900" class="LineNr">1900 </span> compare *first-type, <span class="Constant">3</span>/stream -<span id="L1901" class="LineNr">1901 </span> <span class="Delimiter">{</span> -<span id="L1902" class="LineNr">1902 </span> <span class="PreProc">break-if-=</span> -<span id="L1903" class="LineNr">1903 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'write' is not a stream"</span> -<span id="L1904" class="LineNr">1904 </span> <span class="PreProc">return</span> -<span id="L1905" class="LineNr">1905 </span> <span class="Delimiter">}</span> -<span id="L1906" class="LineNr">1906 </span> <span class="PreProc">var</span> stream-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get first, text-data -<span id="L1907" class="LineNr">1907 </span> <span class="PreProc">var</span> _stream-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *stream-data-ah -<span id="L1908" class="LineNr">1908 </span> <span class="PreProc">var</span> stream-data/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special"><-</span> copy _stream-data -<span id="L1909" class="LineNr">1909 </span> <span class="muComment"># args->right->left</span> -<span id="L1910" class="LineNr">1910 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right -<span id="L1911" class="LineNr">1911 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L1912" class="LineNr">1912 </span> <span class="Delimiter">{</span> -<span id="L1913" class="LineNr">1913 </span> <span class="PreProc">var</span> right-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> -<span id="L1914" class="LineNr">1914 </span> compare *right-type, <span class="Constant">0</span>/pair -<span id="L1915" class="LineNr">1915 </span> <span class="PreProc">break-if-=</span> -<span id="L1916" class="LineNr">1916 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'write' encountered non-pair"</span> -<span id="L1917" class="LineNr">1917 </span> <span class="PreProc">return</span> -<span id="L1918" class="LineNr">1918 </span> <span class="Delimiter">}</span> -<span id="L1919" class="LineNr">1919 </span> <span class="Delimiter">{</span> -<span id="L1920" class="LineNr">1920 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right -<span id="L1921" class="LineNr">1921 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false -<span id="L1922" class="LineNr">1922 </span> <span class="PreProc">break-if-=</span> -<span id="L1923" class="LineNr">1923 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'write' needs 2 args but got 1"</span> -<span id="L1924" class="LineNr">1924 </span> <span class="PreProc">return</span> -<span id="L1925" class="LineNr">1925 </span> <span class="Delimiter">}</span> -<span id="L1926" class="LineNr">1926 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left -<span id="L1927" class="LineNr">1927 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah -<span id="L1928" class="LineNr">1928 </span> <span class="PreProc">var</span> second-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> -<span id="L1929" class="LineNr">1929 </span> compare *second-type, <span class="Constant">1</span>/number -<span id="L1930" class="LineNr">1930 </span> <span class="Delimiter">{</span> -<span id="L1931" class="LineNr">1931 </span> <span class="PreProc">break-if-=</span> -<span id="L1932" class="LineNr">1932 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'write' is not a number/grapheme"</span> -<span id="L1933" class="LineNr">1933 </span> <span class="PreProc">return</span> -<span id="L1934" class="LineNr">1934 </span> <span class="Delimiter">}</span> -<span id="L1935" class="LineNr">1935 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data -<span id="L1936" class="LineNr">1936 </span> <span class="PreProc">var</span> x-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *second-value -<span id="L1937" class="LineNr">1937 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> convert x-float -<span id="L1938" class="LineNr">1938 </span> <span class="PreProc">var</span> x-grapheme/eax: grapheme <span class="Special"><-</span> copy x -<span id="L1939" class="LineNr">1939 </span> <a href='../403unicode.mu.html#L176'>write-grapheme</a> stream-data, x-grapheme -<span id="L1940" class="LineNr">1940 </span> <span class="muComment"># return the stream</span> -<span id="L1941" class="LineNr">1941 </span> copy-object first-ah, out -<span id="L1942" class="LineNr">1942 </span><span class="Delimiter">}</span> -<span id="L1943" class="LineNr">1943 </span> -<span id="L1944" class="LineNr">1944 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1944'>apply-lines</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1945" class="LineNr">1945 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'lines'"</span> -<span id="L1946" class="LineNr">1946 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1947" class="LineNr">1947 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1948" class="LineNr">1948 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1883" class="LineNr">1883 </span> <span class="PreProc">break-if-=</span> +<span id="L1884" class="LineNr">1884 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 0"</span> +<span id="L1885" class="LineNr">1885 </span> <span class="PreProc">return</span> +<span id="L1886" class="LineNr">1886 </span> <span class="Delimiter">}</span> +<span id="L1887" class="LineNr">1887 </span> <span class="muComment"># screen = args->left</span> +<span id="L1888" class="LineNr">1888 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L1889" class="LineNr">1889 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L1890" class="LineNr">1890 </span> <span class="Delimiter">{</span> +<span id="L1891" class="LineNr">1891 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L1892" class="LineNr">1892 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L1893" class="LineNr">1893 </span> <span class="PreProc">break-if-=</span> +<span id="L1894" class="LineNr">1894 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'pixel' is not a screen"</span> +<span id="L1895" class="LineNr">1895 </span> <span class="PreProc">return</span> +<span id="L1896" class="LineNr">1896 </span> <span class="Delimiter">}</span> +<span id="L1897" class="LineNr">1897 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L1898" class="LineNr">1898 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L1899" class="LineNr">1899 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L1900" class="LineNr">1900 </span> <span class="muComment"># x = args->right->left->value</span> +<span id="L1901" class="LineNr">1901 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L1902" class="LineNr">1902 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1903" class="LineNr">1903 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L1904" class="LineNr">1904 </span> <span class="Delimiter">{</span> +<span id="L1905" class="LineNr">1905 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L1906" class="LineNr">1906 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L1907" class="LineNr">1907 </span> <span class="PreProc">break-if-=</span> +<span id="L1908" class="LineNr">1908 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' encountered non-pair"</span> +<span id="L1909" class="LineNr">1909 </span> <span class="PreProc">return</span> +<span id="L1910" class="LineNr">1910 </span> <span class="Delimiter">}</span> +<span id="L1911" class="LineNr">1911 </span> <span class="Delimiter">{</span> +<span id="L1912" class="LineNr">1912 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L1913" class="LineNr">1913 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L1914" class="LineNr">1914 </span> <span class="PreProc">break-if-=</span> +<span id="L1915" class="LineNr">1915 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 1"</span> +<span id="L1916" class="LineNr">1916 </span> <span class="PreProc">return</span> +<span id="L1917" class="LineNr">1917 </span> <span class="Delimiter">}</span> +<span id="L1918" class="LineNr">1918 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1919" class="LineNr">1919 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L1920" class="LineNr">1920 </span> <span class="Delimiter">{</span> +<span id="L1921" class="LineNr">1921 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L1922" class="LineNr">1922 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L1923" class="LineNr">1923 </span> <span class="PreProc">break-if-=</span> +<span id="L1924" class="LineNr">1924 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'pixel' is not an int (x coordinate)"</span> +<span id="L1925" class="LineNr">1925 </span> <span class="PreProc">return</span> +<span id="L1926" class="LineNr">1926 </span> <span class="Delimiter">}</span> +<span id="L1927" class="LineNr">1927 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L1928" class="LineNr">1928 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert *second-value +<span id="L1929" class="LineNr">1929 </span> <span class="muComment"># y = rest->right->left->value</span> +<span id="L1930" class="LineNr">1930 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1931" class="LineNr">1931 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1932" class="LineNr">1932 </span> rest <span class="Special"><-</span> copy _rest +<span id="L1933" class="LineNr">1933 </span> <span class="Delimiter">{</span> +<span id="L1934" class="LineNr">1934 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L1935" class="LineNr">1935 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L1936" class="LineNr">1936 </span> <span class="PreProc">break-if-=</span> +<span id="L1937" class="LineNr">1937 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' encountered non-pair"</span> +<span id="L1938" class="LineNr">1938 </span> <span class="PreProc">return</span> +<span id="L1939" class="LineNr">1939 </span> <span class="Delimiter">}</span> +<span id="L1940" class="LineNr">1940 </span> <span class="Delimiter">{</span> +<span id="L1941" class="LineNr">1941 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L1942" class="LineNr">1942 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L1943" class="LineNr">1943 </span> <span class="PreProc">break-if-=</span> +<span id="L1944" class="LineNr">1944 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 2"</span> +<span id="L1945" class="LineNr">1945 </span> <span class="PreProc">return</span> +<span id="L1946" class="LineNr">1946 </span> <span class="Delimiter">}</span> +<span id="L1947" class="LineNr">1947 </span> <span class="PreProc">var</span> third-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1948" class="LineNr">1948 </span> <span class="PreProc">var</span> third/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah <span id="L1949" class="LineNr">1949 </span> <span class="Delimiter">{</span> -<span id="L1950" class="LineNr">1950 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1951" class="LineNr">1951 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1950" class="LineNr">1950 </span> <span class="PreProc">var</span> third-type/eax: (addr int) <span class="Special"><-</span> get third, <span class="PreProc">type</span> +<span id="L1951" class="LineNr">1951 </span> compare *third-type, <span class="Constant">1</span>/number <span id="L1952" class="LineNr">1952 </span> <span class="PreProc">break-if-=</span> -<span id="L1953" class="LineNr">1953 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'lines' are not a list"</span> +<span id="L1953" class="LineNr">1953 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"third arg for 'pixel' is not an int (y coordinate)"</span> <span id="L1954" class="LineNr">1954 </span> <span class="PreProc">return</span> <span id="L1955" class="LineNr">1955 </span> <span class="Delimiter">}</span> -<span id="L1956" class="LineNr">1956 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L1957" class="LineNr">1957 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L1958" class="LineNr">1958 </span> <span class="Delimiter">{</span> -<span id="L1959" class="LineNr">1959 </span> <span class="PreProc">break-if-=</span> -<span id="L1960" class="LineNr">1960 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'lines' needs 1 arg but got 0"</span> -<span id="L1961" class="LineNr">1961 </span> <span class="PreProc">return</span> -<span id="L1962" class="LineNr">1962 </span> <span class="Delimiter">}</span> -<span id="L1963" class="LineNr">1963 </span> <span class="muComment"># screen = args->left</span> -<span id="L1964" class="LineNr">1964 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L1965" class="LineNr">1965 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L1966" class="LineNr">1966 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L1967" class="LineNr">1967 </span> compare *first-type, <span class="Constant">5</span>/screen -<span id="L1968" class="LineNr">1968 </span> <span class="Delimiter">{</span> -<span id="L1969" class="LineNr">1969 </span> <span class="PreProc">break-if-=</span> -<span id="L1970" class="LineNr">1970 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'lines' is not a screen"</span> -<span id="L1971" class="LineNr">1971 </span> <span class="PreProc">return</span> -<span id="L1972" class="LineNr">1972 </span> <span class="Delimiter">}</span> -<span id="L1973" class="LineNr">1973 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L1974" class="LineNr">1974 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L1975" class="LineNr">1975 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L1976" class="LineNr">1976 </span> <span class="muComment"># compute dimensions</span> -<span id="L1977" class="LineNr">1977 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L1978" class="LineNr">1978 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L1979" class="LineNr">1979 </span> dummy, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1980" class="LineNr">1980 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert height -<span id="L1981" class="LineNr">1981 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L1982" class="LineNr">1982 </span><span class="Delimiter">}</span> -<span id="L1983" class="LineNr">1983 </span> -<span id="L1984" class="LineNr">1984 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1984'>apply-abort</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1985" class="LineNr">1985 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"aa"</span> -<span id="L1986" class="LineNr">1986 </span><span class="Delimiter">}</span> -<span id="L1987" class="LineNr">1987 </span> -<span id="L1988" class="LineNr">1988 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1988'>apply-columns</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L1989" class="LineNr">1989 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'columns'"</span> -<span id="L1990" class="LineNr">1990 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L1991" class="LineNr">1991 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L1992" class="LineNr">1992 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L1993" class="LineNr">1993 </span> <span class="Delimiter">{</span> -<span id="L1994" class="LineNr">1994 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L1995" class="LineNr">1995 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L1996" class="LineNr">1996 </span> <span class="PreProc">break-if-=</span> -<span id="L1997" class="LineNr">1997 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'columns' are not a list"</span> -<span id="L1998" class="LineNr">1998 </span> <span class="PreProc">return</span> -<span id="L1999" class="LineNr">1999 </span> <span class="Delimiter">}</span> -<span id="L2000" class="LineNr">2000 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L2001" class="LineNr">2001 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L2002" class="LineNr">2002 </span> <span class="Delimiter">{</span> -<span id="L2003" class="LineNr">2003 </span> <span class="PreProc">break-if-=</span> -<span id="L2004" class="LineNr">2004 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'columns' needs 1 arg but got 0"</span> -<span id="L2005" class="LineNr">2005 </span> <span class="PreProc">return</span> -<span id="L2006" class="LineNr">2006 </span> <span class="Delimiter">}</span> -<span id="L2007" class="LineNr">2007 </span> <span class="muComment"># screen = args->left</span> -<span id="L2008" class="LineNr">2008 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L2009" class="LineNr">2009 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L2010" class="LineNr">2010 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L2011" class="LineNr">2011 </span> compare *first-type, <span class="Constant">5</span>/screen -<span id="L2012" class="LineNr">2012 </span> <span class="Delimiter">{</span> -<span id="L2013" class="LineNr">2013 </span> <span class="PreProc">break-if-=</span> -<span id="L2014" class="LineNr">2014 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'columns' is not a screen"</span> -<span id="L2015" class="LineNr">2015 </span> <span class="PreProc">return</span> -<span id="L2016" class="LineNr">2016 </span> <span class="Delimiter">}</span> -<span id="L2017" class="LineNr">2017 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L2018" class="LineNr">2018 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L2019" class="LineNr">2019 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L2020" class="LineNr">2020 </span> <span class="muComment"># compute dimensions</span> -<span id="L2021" class="LineNr">2021 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L2022" class="LineNr">2022 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L2023" class="LineNr">2023 </span> width, dummy <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L2024" class="LineNr">2024 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert width -<span id="L2025" class="LineNr">2025 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L2026" class="LineNr">2026 </span><span class="Delimiter">}</span> -<span id="L2027" class="LineNr">2027 </span> -<span id="L2028" class="LineNr">2028 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2028'>apply-width</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L2029" class="LineNr">2029 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'width'"</span> -<span id="L2030" class="LineNr">2030 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L2031" class="LineNr">2031 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L2032" class="LineNr">2032 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L2033" class="LineNr">2033 </span> <span class="Delimiter">{</span> -<span id="L2034" class="LineNr">2034 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L2035" class="LineNr">2035 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L2036" class="LineNr">2036 </span> <span class="PreProc">break-if-=</span> -<span id="L2037" class="LineNr">2037 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'width' are not a list"</span> -<span id="L2038" class="LineNr">2038 </span> <span class="PreProc">return</span> -<span id="L2039" class="LineNr">2039 </span> <span class="Delimiter">}</span> -<span id="L2040" class="LineNr">2040 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L2041" class="LineNr">2041 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L2042" class="LineNr">2042 </span> <span class="Delimiter">{</span> -<span id="L2043" class="LineNr">2043 </span> <span class="PreProc">break-if-=</span> -<span id="L2044" class="LineNr">2044 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'width' needs 1 arg but got 0"</span> -<span id="L2045" class="LineNr">2045 </span> <span class="PreProc">return</span> -<span id="L2046" class="LineNr">2046 </span> <span class="Delimiter">}</span> -<span id="L2047" class="LineNr">2047 </span> <span class="muComment"># screen = args->left</span> -<span id="L2048" class="LineNr">2048 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L2049" class="LineNr">2049 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L2050" class="LineNr">2050 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L2051" class="LineNr">2051 </span> compare *first-type, <span class="Constant">5</span>/screen -<span id="L2052" class="LineNr">2052 </span> <span class="Delimiter">{</span> -<span id="L2053" class="LineNr">2053 </span> <span class="PreProc">break-if-=</span> -<span id="L2054" class="LineNr">2054 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'width' is not a screen"</span> -<span id="L2055" class="LineNr">2055 </span> <span class="PreProc">return</span> -<span id="L2056" class="LineNr">2056 </span> <span class="Delimiter">}</span> -<span id="L2057" class="LineNr">2057 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L2058" class="LineNr">2058 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L2059" class="LineNr">2059 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L2060" class="LineNr">2060 </span> <span class="muComment"># compute dimensions</span> -<span id="L2061" class="LineNr">2061 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L2062" class="LineNr">2062 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L2063" class="LineNr">2063 </span> width, dummy <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L2064" class="LineNr">2064 </span> width <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width -<span id="L2065" class="LineNr">2065 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert width -<span id="L2066" class="LineNr">2066 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L2067" class="LineNr">2067 </span><span class="Delimiter">}</span> -<span id="L2068" class="LineNr">2068 </span> -<span id="L2069" class="LineNr">2069 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2069'>apply-height</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L2070" class="LineNr">2070 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'height'"</span> -<span id="L2071" class="LineNr">2071 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah -<span id="L2072" class="LineNr">2072 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah -<span id="L2073" class="LineNr">2073 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args -<span id="L2074" class="LineNr">2074 </span> <span class="Delimiter">{</span> -<span id="L2075" class="LineNr">2075 </span> <span class="PreProc">var</span> args-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> -<span id="L2076" class="LineNr">2076 </span> compare *args-type, <span class="Constant">0</span>/pair -<span id="L2077" class="LineNr">2077 </span> <span class="PreProc">break-if-=</span> -<span id="L2078" class="LineNr">2078 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'height' are not a list"</span> -<span id="L2079" class="LineNr">2079 </span> <span class="PreProc">return</span> -<span id="L2080" class="LineNr">2080 </span> <span class="Delimiter">}</span> -<span id="L2081" class="LineNr">2081 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> args -<span id="L2082" class="LineNr">2082 </span> compare empty-args?, <span class="Constant">0</span>/false -<span id="L2083" class="LineNr">2083 </span> <span class="Delimiter">{</span> -<span id="L2084" class="LineNr">2084 </span> <span class="PreProc">break-if-=</span> -<span id="L2085" class="LineNr">2085 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'height' needs 1 arg but got 0"</span> -<span id="L2086" class="LineNr">2086 </span> <span class="PreProc">return</span> -<span id="L2087" class="LineNr">2087 </span> <span class="Delimiter">}</span> -<span id="L2088" class="LineNr">2088 </span> <span class="muComment"># screen = args->left</span> -<span id="L2089" class="LineNr">2089 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left -<span id="L2090" class="LineNr">2090 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah -<span id="L2091" class="LineNr">2091 </span> <span class="PreProc">var</span> first-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> -<span id="L2092" class="LineNr">2092 </span> compare *first-type, <span class="Constant">5</span>/screen -<span id="L2093" class="LineNr">2093 </span> <span class="Delimiter">{</span> -<span id="L2094" class="LineNr">2094 </span> <span class="PreProc">break-if-=</span> -<span id="L2095" class="LineNr">2095 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'height' is not a screen"</span> -<span id="L2096" class="LineNr">2096 </span> <span class="PreProc">return</span> -<span id="L2097" class="LineNr">2097 </span> <span class="Delimiter">}</span> -<span id="L2098" class="LineNr">2098 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data -<span id="L2099" class="LineNr">2099 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah -<span id="L2100" class="LineNr">2100 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen -<span id="L2101" class="LineNr">2101 </span> <span class="muComment"># compute dimensions</span> -<span id="L2102" class="LineNr">2102 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L2103" class="LineNr">2103 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L2104" class="LineNr">2104 </span> dummy, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L2105" class="LineNr">2105 </span> height <span class="Special"><-</span> shift-left <span class="Constant">4</span>/log2-font-height -<span id="L2106" class="LineNr">2106 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert height -<span id="L2107" class="LineNr">2107 </span> <a href='cell.mu.html#L97'>new-float</a> out, result -<span id="L2108" class="LineNr">2108 </span><span class="Delimiter">}</span> +<span id="L1956" class="LineNr">1956 </span> <span class="PreProc">var</span> third-value/eax: (addr float) <span class="Special"><-</span> get third, number-data +<span id="L1957" class="LineNr">1957 </span> <span class="PreProc">var</span> y/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> convert *third-value +<span id="L1958" class="LineNr">1958 </span> <span class="muComment"># color = rest->right->left->value</span> +<span id="L1959" class="LineNr">1959 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L1960" class="LineNr">1960 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L1961" class="LineNr">1961 </span> rest <span class="Special"><-</span> copy _rest +<span id="L1962" class="LineNr">1962 </span> <span class="Delimiter">{</span> +<span id="L1963" class="LineNr">1963 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L1964" class="LineNr">1964 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L1965" class="LineNr">1965 </span> <span class="PreProc">break-if-=</span> +<span id="L1966" class="LineNr">1966 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' encountered non-pair"</span> +<span id="L1967" class="LineNr">1967 </span> <span class="PreProc">return</span> +<span id="L1968" class="LineNr">1968 </span> <span class="Delimiter">}</span> +<span id="L1969" class="LineNr">1969 </span> <span class="Delimiter">{</span> +<span id="L1970" class="LineNr">1970 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L1971" class="LineNr">1971 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L1972" class="LineNr">1972 </span> <span class="PreProc">break-if-=</span> +<span id="L1973" class="LineNr">1973 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'pixel' needs 4 args but got 3"</span> +<span id="L1974" class="LineNr">1974 </span> <span class="PreProc">return</span> +<span id="L1975" class="LineNr">1975 </span> <span class="Delimiter">}</span> +<span id="L1976" class="LineNr">1976 </span> <span class="PreProc">var</span> fourth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L1977" class="LineNr">1977 </span> <span class="PreProc">var</span> fourth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fourth-ah +<span id="L1978" class="LineNr">1978 </span> <span class="Delimiter">{</span> +<span id="L1979" class="LineNr">1979 </span> <span class="PreProc">var</span> fourth-type/eax: (addr int) <span class="Special"><-</span> get fourth, <span class="PreProc">type</span> +<span id="L1980" class="LineNr">1980 </span> compare *fourth-type, <span class="Constant">1</span>/number +<span id="L1981" class="LineNr">1981 </span> <span class="PreProc">break-if-=</span> +<span id="L1982" class="LineNr">1982 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fourth arg for 'pixel' is not an int (color; 0..0xff)"</span> +<span id="L1983" class="LineNr">1983 </span> <span class="PreProc">return</span> +<span id="L1984" class="LineNr">1984 </span> <span class="Delimiter">}</span> +<span id="L1985" class="LineNr">1985 </span> <span class="PreProc">var</span> fourth-value/eax: (addr float) <span class="Special"><-</span> get fourth, number-data +<span id="L1986" class="LineNr">1986 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> convert *fourth-value +<span id="L1987" class="LineNr">1987 </span> <a href='../500fake-screen.mu.html#L483'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color +<span id="L1988" class="LineNr">1988 </span> <span class="muComment"># return nothing</span> +<span id="L1989" class="LineNr">1989 </span><span class="Delimiter">}</span> +<span id="L1990" class="LineNr">1990 </span> +<span id="L1991" class="LineNr">1991 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L1991'>apply-line</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L1992" class="LineNr">1992 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'line'"</span> +<span id="L1993" class="LineNr">1993 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L1994" class="LineNr">1994 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L1995" class="LineNr">1995 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L1996" class="LineNr">1996 </span> <span class="Delimiter">{</span> +<span id="L1997" class="LineNr">1997 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L1998" class="LineNr">1998 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L1999" class="LineNr">1999 </span> <span class="PreProc">break-if-=</span> +<span id="L2000" class="LineNr">2000 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'line' are not a list"</span> +<span id="L2001" class="LineNr">2001 </span> <span class="PreProc">return</span> +<span id="L2002" class="LineNr">2002 </span> <span class="Delimiter">}</span> +<span id="L2003" class="LineNr">2003 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L2004" class="LineNr">2004 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L2005" class="LineNr">2005 </span> <span class="Delimiter">{</span> +<span id="L2006" class="LineNr">2006 </span> <span class="PreProc">break-if-=</span> +<span id="L2007" class="LineNr">2007 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' needs 6 args but got 0"</span> +<span id="L2008" class="LineNr">2008 </span> <span class="PreProc">return</span> +<span id="L2009" class="LineNr">2009 </span> <span class="Delimiter">}</span> +<span id="L2010" class="LineNr">2010 </span> <span class="muComment"># screen = args->left</span> +<span id="L2011" class="LineNr">2011 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L2012" class="LineNr">2012 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L2013" class="LineNr">2013 </span> <span class="Delimiter">{</span> +<span id="L2014" class="LineNr">2014 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L2015" class="LineNr">2015 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L2016" class="LineNr">2016 </span> <span class="PreProc">break-if-=</span> +<span id="L2017" class="LineNr">2017 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'line' is not a screen"</span> +<span id="L2018" class="LineNr">2018 </span> <span class="PreProc">return</span> +<span id="L2019" class="LineNr">2019 </span> <span class="Delimiter">}</span> +<span id="L2020" class="LineNr">2020 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L2021" class="LineNr">2021 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L2022" class="LineNr">2022 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L2023" class="LineNr">2023 </span> <span class="muComment"># x1 = args->right->left->value</span> +<span id="L2024" class="LineNr">2024 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L2025" class="LineNr">2025 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2026" class="LineNr">2026 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2027" class="LineNr">2027 </span> <span class="Delimiter">{</span> +<span id="L2028" class="LineNr">2028 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2029" class="LineNr">2029 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2030" class="LineNr">2030 </span> <span class="PreProc">break-if-=</span> +<span id="L2031" class="LineNr">2031 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' encountered non-pair"</span> +<span id="L2032" class="LineNr">2032 </span> <span class="PreProc">return</span> +<span id="L2033" class="LineNr">2033 </span> <span class="Delimiter">}</span> +<span id="L2034" class="LineNr">2034 </span> <span class="Delimiter">{</span> +<span id="L2035" class="LineNr">2035 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2036" class="LineNr">2036 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2037" class="LineNr">2037 </span> <span class="PreProc">break-if-=</span> +<span id="L2038" class="LineNr">2038 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' needs 6 args but got 1"</span> +<span id="L2039" class="LineNr">2039 </span> <span class="PreProc">return</span> +<span id="L2040" class="LineNr">2040 </span> <span class="Delimiter">}</span> +<span id="L2041" class="LineNr">2041 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2042" class="LineNr">2042 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L2043" class="LineNr">2043 </span> <span class="Delimiter">{</span> +<span id="L2044" class="LineNr">2044 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L2045" class="LineNr">2045 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L2046" class="LineNr">2046 </span> <span class="PreProc">break-if-=</span> +<span id="L2047" class="LineNr">2047 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'line' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> x coordinate of start point)"</span> +<span id="L2048" class="LineNr">2048 </span> <span class="PreProc">return</span> +<span id="L2049" class="LineNr">2049 </span> <span class="Delimiter">}</span> +<span id="L2050" class="LineNr">2050 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L2051" class="LineNr">2051 </span> <span class="PreProc">var</span> x1/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert *second-value +<span id="L2052" class="LineNr">2052 </span> <span class="muComment"># y1 = rest->right->left->value</span> +<span id="L2053" class="LineNr">2053 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2054" class="LineNr">2054 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2055" class="LineNr">2055 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2056" class="LineNr">2056 </span> <span class="Delimiter">{</span> +<span id="L2057" class="LineNr">2057 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2058" class="LineNr">2058 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2059" class="LineNr">2059 </span> <span class="PreProc">break-if-=</span> +<span id="L2060" class="LineNr">2060 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' encountered non-pair"</span> +<span id="L2061" class="LineNr">2061 </span> <span class="PreProc">return</span> +<span id="L2062" class="LineNr">2062 </span> <span class="Delimiter">}</span> +<span id="L2063" class="LineNr">2063 </span> <span class="Delimiter">{</span> +<span id="L2064" class="LineNr">2064 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2065" class="LineNr">2065 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2066" class="LineNr">2066 </span> <span class="PreProc">break-if-=</span> +<span id="L2067" class="LineNr">2067 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' needs 6 args but got 2"</span> +<span id="L2068" class="LineNr">2068 </span> <span class="PreProc">return</span> +<span id="L2069" class="LineNr">2069 </span> <span class="Delimiter">}</span> +<span id="L2070" class="LineNr">2070 </span> <span class="PreProc">var</span> third-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2071" class="LineNr">2071 </span> <span class="PreProc">var</span> third/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah +<span id="L2072" class="LineNr">2072 </span> <span class="Delimiter">{</span> +<span id="L2073" class="LineNr">2073 </span> <span class="PreProc">var</span> third-type/eax: (addr int) <span class="Special"><-</span> get third, <span class="PreProc">type</span> +<span id="L2074" class="LineNr">2074 </span> compare *third-type, <span class="Constant">1</span>/number +<span id="L2075" class="LineNr">2075 </span> <span class="PreProc">break-if-=</span> +<span id="L2076" class="LineNr">2076 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"third arg for 'line' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> y coordinate of start point)"</span> +<span id="L2077" class="LineNr">2077 </span> <span class="PreProc">return</span> +<span id="L2078" class="LineNr">2078 </span> <span class="Delimiter">}</span> +<span id="L2079" class="LineNr">2079 </span> <span class="PreProc">var</span> third-value/eax: (addr float) <span class="Special"><-</span> get third, number-data +<span id="L2080" class="LineNr">2080 </span> <span class="PreProc">var</span> y1/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> convert *third-value +<span id="L2081" class="LineNr">2081 </span> <span class="muComment"># x2 = rest->right->left->value</span> +<span id="L2082" class="LineNr">2082 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2083" class="LineNr">2083 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2084" class="LineNr">2084 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2085" class="LineNr">2085 </span> <span class="Delimiter">{</span> +<span id="L2086" class="LineNr">2086 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2087" class="LineNr">2087 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2088" class="LineNr">2088 </span> <span class="PreProc">break-if-=</span> +<span id="L2089" class="LineNr">2089 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' encountered non-pair"</span> +<span id="L2090" class="LineNr">2090 </span> <span class="PreProc">return</span> +<span id="L2091" class="LineNr">2091 </span> <span class="Delimiter">}</span> +<span id="L2092" class="LineNr">2092 </span> <span class="Delimiter">{</span> +<span id="L2093" class="LineNr">2093 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2094" class="LineNr">2094 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2095" class="LineNr">2095 </span> <span class="PreProc">break-if-=</span> +<span id="L2096" class="LineNr">2096 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' needs 6 args but got 3"</span> +<span id="L2097" class="LineNr">2097 </span> <span class="PreProc">return</span> +<span id="L2098" class="LineNr">2098 </span> <span class="Delimiter">}</span> +<span id="L2099" class="LineNr">2099 </span> <span class="PreProc">var</span> fourth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2100" class="LineNr">2100 </span> <span class="PreProc">var</span> fourth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fourth-ah +<span id="L2101" class="LineNr">2101 </span> <span class="Delimiter">{</span> +<span id="L2102" class="LineNr">2102 </span> <span class="PreProc">var</span> fourth-type/eax: (addr int) <span class="Special"><-</span> get fourth, <span class="PreProc">type</span> +<span id="L2103" class="LineNr">2103 </span> compare *fourth-type, <span class="Constant">1</span>/number +<span id="L2104" class="LineNr">2104 </span> <span class="PreProc">break-if-=</span> +<span id="L2105" class="LineNr">2105 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fourth arg for 'line' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> x coordinate of end point)"</span> +<span id="L2106" class="LineNr">2106 </span> <span class="PreProc">return</span> +<span id="L2107" class="LineNr">2107 </span> <span class="Delimiter">}</span> +<span id="L2108" class="LineNr">2108 </span> <span class="PreProc">var</span> fourth-value/eax: (addr float) <span class="Special"><-</span> get fourth, number-data +<span id="L2109" class="LineNr">2109 </span> <span class="PreProc">var</span> x2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> convert *fourth-value +<span id="L2110" class="LineNr">2110 </span> <span class="muComment"># y2 = rest->right->left->value</span> +<span id="L2111" class="LineNr">2111 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2112" class="LineNr">2112 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2113" class="LineNr">2113 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2114" class="LineNr">2114 </span> <span class="Delimiter">{</span> +<span id="L2115" class="LineNr">2115 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2116" class="LineNr">2116 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2117" class="LineNr">2117 </span> <span class="PreProc">break-if-=</span> +<span id="L2118" class="LineNr">2118 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' encountered non-pair"</span> +<span id="L2119" class="LineNr">2119 </span> <span class="PreProc">return</span> +<span id="L2120" class="LineNr">2120 </span> <span class="Delimiter">}</span> +<span id="L2121" class="LineNr">2121 </span> <span class="Delimiter">{</span> +<span id="L2122" class="LineNr">2122 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2123" class="LineNr">2123 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2124" class="LineNr">2124 </span> <span class="PreProc">break-if-=</span> +<span id="L2125" class="LineNr">2125 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' needs 6 args but got 4"</span> +<span id="L2126" class="LineNr">2126 </span> <span class="PreProc">return</span> +<span id="L2127" class="LineNr">2127 </span> <span class="Delimiter">}</span> +<span id="L2128" class="LineNr">2128 </span> <span class="PreProc">var</span> fifth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2129" class="LineNr">2129 </span> <span class="PreProc">var</span> fifth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fifth-ah +<span id="L2130" class="LineNr">2130 </span> <span class="Delimiter">{</span> +<span id="L2131" class="LineNr">2131 </span> <span class="PreProc">var</span> fifth-type/eax: (addr int) <span class="Special"><-</span> get fifth, <span class="PreProc">type</span> +<span id="L2132" class="LineNr">2132 </span> compare *fifth-type, <span class="Constant">1</span>/number +<span id="L2133" class="LineNr">2133 </span> <span class="PreProc">break-if-=</span> +<span id="L2134" class="LineNr">2134 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fifth arg for 'line' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> y coordinate of end point)"</span> +<span id="L2135" class="LineNr">2135 </span> <span class="PreProc">return</span> +<span id="L2136" class="LineNr">2136 </span> <span class="Delimiter">}</span> +<span id="L2137" class="LineNr">2137 </span> <span class="PreProc">var</span> fifth-value/eax: (addr float) <span class="Special"><-</span> get fifth, number-data +<span id="L2138" class="LineNr">2138 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> convert *fifth-value +<span id="L2139" class="LineNr">2139 </span> <span class="PreProc">var</span> y2: int +<span id="L2140" class="LineNr">2140 </span> copy-to y2, tmp +<span id="L2141" class="LineNr">2141 </span> <span class="muComment"># color = rest->right->left->value</span> +<span id="L2142" class="LineNr">2142 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2143" class="LineNr">2143 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2144" class="LineNr">2144 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2145" class="LineNr">2145 </span> <span class="Delimiter">{</span> +<span id="L2146" class="LineNr">2146 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2147" class="LineNr">2147 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2148" class="LineNr">2148 </span> <span class="PreProc">break-if-=</span> +<span id="L2149" class="LineNr">2149 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' encountered non-pair"</span> +<span id="L2150" class="LineNr">2150 </span> <span class="PreProc">return</span> +<span id="L2151" class="LineNr">2151 </span> <span class="Delimiter">}</span> +<span id="L2152" class="LineNr">2152 </span> <span class="Delimiter">{</span> +<span id="L2153" class="LineNr">2153 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2154" class="LineNr">2154 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2155" class="LineNr">2155 </span> <span class="PreProc">break-if-=</span> +<span id="L2156" class="LineNr">2156 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'line' needs 6 args but got 5"</span> +<span id="L2157" class="LineNr">2157 </span> <span class="PreProc">return</span> +<span id="L2158" class="LineNr">2158 </span> <span class="Delimiter">}</span> +<span id="L2159" class="LineNr">2159 </span> <span class="PreProc">var</span> sixth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2160" class="LineNr">2160 </span> <span class="PreProc">var</span> sixth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sixth-ah +<span id="L2161" class="LineNr">2161 </span> <span class="Delimiter">{</span> +<span id="L2162" class="LineNr">2162 </span> <span class="PreProc">var</span> sixth-type/eax: (addr int) <span class="Special"><-</span> get sixth, <span class="PreProc">type</span> +<span id="L2163" class="LineNr">2163 </span> compare *sixth-type, <span class="Constant">1</span>/number +<span id="L2164" class="LineNr">2164 </span> <span class="PreProc">break-if-=</span> +<span id="L2165" class="LineNr">2165 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"sixth arg for 'line' is not an int (color; 0..0xff)"</span> +<span id="L2166" class="LineNr">2166 </span> <span class="PreProc">return</span> +<span id="L2167" class="LineNr">2167 </span> <span class="Delimiter">}</span> +<span id="L2168" class="LineNr">2168 </span> <span class="PreProc">var</span> sixth-value/eax: (addr float) <span class="Special"><-</span> get sixth, number-data +<span id="L2169" class="LineNr">2169 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> convert *sixth-value +<span id="L2170" class="LineNr">2170 </span> <a href='../507line.mu.html#L1'>draw-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x1, y1, x2, y2, color +<span id="L2171" class="LineNr">2171 </span> <span class="muComment"># return nothing</span> +<span id="L2172" class="LineNr">2172 </span><span class="Delimiter">}</span> +<span id="L2173" class="LineNr">2173 </span> +<span id="L2174" class="LineNr">2174 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2174'>apply-hline</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L2175" class="LineNr">2175 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'hline'"</span> +<span id="L2176" class="LineNr">2176 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L2177" class="LineNr">2177 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L2178" class="LineNr">2178 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L2179" class="LineNr">2179 </span> <span class="Delimiter">{</span> +<span id="L2180" class="LineNr">2180 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L2181" class="LineNr">2181 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L2182" class="LineNr">2182 </span> <span class="PreProc">break-if-=</span> +<span id="L2183" class="LineNr">2183 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'hline' are not a list"</span> +<span id="L2184" class="LineNr">2184 </span> <span class="PreProc">return</span> +<span id="L2185" class="LineNr">2185 </span> <span class="Delimiter">}</span> +<span id="L2186" class="LineNr">2186 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L2187" class="LineNr">2187 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L2188" class="LineNr">2188 </span> <span class="Delimiter">{</span> +<span id="L2189" class="LineNr">2189 </span> <span class="PreProc">break-if-=</span> +<span id="L2190" class="LineNr">2190 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'hline' needs 5 args but got 0"</span> +<span id="L2191" class="LineNr">2191 </span> <span class="PreProc">return</span> +<span id="L2192" class="LineNr">2192 </span> <span class="Delimiter">}</span> +<span id="L2193" class="LineNr">2193 </span> <span class="muComment"># screen = args->left</span> +<span id="L2194" class="LineNr">2194 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L2195" class="LineNr">2195 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L2196" class="LineNr">2196 </span> <span class="Delimiter">{</span> +<span id="L2197" class="LineNr">2197 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L2198" class="LineNr">2198 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L2199" class="LineNr">2199 </span> <span class="PreProc">break-if-=</span> +<span id="L2200" class="LineNr">2200 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'hline' is not a screen"</span> +<span id="L2201" class="LineNr">2201 </span> <span class="PreProc">return</span> +<span id="L2202" class="LineNr">2202 </span> <span class="Delimiter">}</span> +<span id="L2203" class="LineNr">2203 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L2204" class="LineNr">2204 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L2205" class="LineNr">2205 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L2206" class="LineNr">2206 </span> <span class="muComment"># y = args->right->left->value</span> +<span id="L2207" class="LineNr">2207 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L2208" class="LineNr">2208 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2209" class="LineNr">2209 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2210" class="LineNr">2210 </span> <span class="Delimiter">{</span> +<span id="L2211" class="LineNr">2211 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2212" class="LineNr">2212 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2213" class="LineNr">2213 </span> <span class="PreProc">break-if-=</span> +<span id="L2214" class="LineNr">2214 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'hline' encountered non-pair"</span> +<span id="L2215" class="LineNr">2215 </span> <span class="PreProc">return</span> +<span id="L2216" class="LineNr">2216 </span> <span class="Delimiter">}</span> +<span id="L2217" class="LineNr">2217 </span> <span class="Delimiter">{</span> +<span id="L2218" class="LineNr">2218 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2219" class="LineNr">2219 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2220" class="LineNr">2220 </span> <span class="PreProc">break-if-=</span> +<span id="L2221" class="LineNr">2221 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'hline' needs 5 args but got 1"</span> +<span id="L2222" class="LineNr">2222 </span> <span class="PreProc">return</span> +<span id="L2223" class="LineNr">2223 </span> <span class="Delimiter">}</span> +<span id="L2224" class="LineNr">2224 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2225" class="LineNr">2225 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L2226" class="LineNr">2226 </span> <span class="Delimiter">{</span> +<span id="L2227" class="LineNr">2227 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L2228" class="LineNr">2228 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L2229" class="LineNr">2229 </span> <span class="PreProc">break-if-=</span> +<span id="L2230" class="LineNr">2230 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'hline' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> y coordinate)"</span> +<span id="L2231" class="LineNr">2231 </span> <span class="PreProc">return</span> +<span id="L2232" class="LineNr">2232 </span> <span class="Delimiter">}</span> +<span id="L2233" class="LineNr">2233 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L2234" class="LineNr">2234 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert *second-value +<span id="L2235" class="LineNr">2235 </span> <span class="muComment"># x1 = rest->right->left->value</span> +<span id="L2236" class="LineNr">2236 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2237" class="LineNr">2237 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2238" class="LineNr">2238 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2239" class="LineNr">2239 </span> <span class="Delimiter">{</span> +<span id="L2240" class="LineNr">2240 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2241" class="LineNr">2241 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2242" class="LineNr">2242 </span> <span class="PreProc">break-if-=</span> +<span id="L2243" class="LineNr">2243 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'hline' encountered non-pair"</span> +<span id="L2244" class="LineNr">2244 </span> <span class="PreProc">return</span> +<span id="L2245" class="LineNr">2245 </span> <span class="Delimiter">}</span> +<span id="L2246" class="LineNr">2246 </span> <span class="Delimiter">{</span> +<span id="L2247" class="LineNr">2247 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2248" class="LineNr">2248 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2249" class="LineNr">2249 </span> <span class="PreProc">break-if-=</span> +<span id="L2250" class="LineNr">2250 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'hline' needs 5 args but got 2"</span> +<span id="L2251" class="LineNr">2251 </span> <span class="PreProc">return</span> +<span id="L2252" class="LineNr">2252 </span> <span class="Delimiter">}</span> +<span id="L2253" class="LineNr">2253 </span> <span class="PreProc">var</span> third-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2254" class="LineNr">2254 </span> <span class="PreProc">var</span> third/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah +<span id="L2255" class="LineNr">2255 </span> <span class="Delimiter">{</span> +<span id="L2256" class="LineNr">2256 </span> <span class="PreProc">var</span> third-type/eax: (addr int) <span class="Special"><-</span> get third, <span class="PreProc">type</span> +<span id="L2257" class="LineNr">2257 </span> compare *third-type, <span class="Constant">1</span>/number +<span id="L2258" class="LineNr">2258 </span> <span class="PreProc">break-if-=</span> +<span id="L2259" class="LineNr">2259 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"third arg for 'hline' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> x coordinate of start point)"</span> +<span id="L2260" class="LineNr">2260 </span> <span class="PreProc">return</span> +<span id="L2261" class="LineNr">2261 </span> <span class="Delimiter">}</span> +<span id="L2262" class="LineNr">2262 </span> <span class="PreProc">var</span> third-value/eax: (addr float) <span class="Special"><-</span> get third, number-data +<span id="L2263" class="LineNr">2263 </span> <span class="PreProc">var</span> x1/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> convert *third-value +<span id="L2264" class="LineNr">2264 </span> <span class="muComment"># x2 = rest->right->left->value</span> +<span id="L2265" class="LineNr">2265 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2266" class="LineNr">2266 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2267" class="LineNr">2267 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2268" class="LineNr">2268 </span> <span class="Delimiter">{</span> +<span id="L2269" class="LineNr">2269 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2270" class="LineNr">2270 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2271" class="LineNr">2271 </span> <span class="PreProc">break-if-=</span> +<span id="L2272" class="LineNr">2272 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'hline' encountered non-pair"</span> +<span id="L2273" class="LineNr">2273 </span> <span class="PreProc">return</span> +<span id="L2274" class="LineNr">2274 </span> <span class="Delimiter">}</span> +<span id="L2275" class="LineNr">2275 </span> <span class="Delimiter">{</span> +<span id="L2276" class="LineNr">2276 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2277" class="LineNr">2277 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2278" class="LineNr">2278 </span> <span class="PreProc">break-if-=</span> +<span id="L2279" class="LineNr">2279 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'hline' needs 5 args but got 3"</span> +<span id="L2280" class="LineNr">2280 </span> <span class="PreProc">return</span> +<span id="L2281" class="LineNr">2281 </span> <span class="Delimiter">}</span> +<span id="L2282" class="LineNr">2282 </span> <span class="PreProc">var</span> fourth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2283" class="LineNr">2283 </span> <span class="PreProc">var</span> fourth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fourth-ah +<span id="L2284" class="LineNr">2284 </span> <span class="Delimiter">{</span> +<span id="L2285" class="LineNr">2285 </span> <span class="PreProc">var</span> fourth-type/eax: (addr int) <span class="Special"><-</span> get fourth, <span class="PreProc">type</span> +<span id="L2286" class="LineNr">2286 </span> compare *fourth-type, <span class="Constant">1</span>/number +<span id="L2287" class="LineNr">2287 </span> <span class="PreProc">break-if-=</span> +<span id="L2288" class="LineNr">2288 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fourth arg for 'hline' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> x coordinate of end point)"</span> +<span id="L2289" class="LineNr">2289 </span> <span class="PreProc">return</span> +<span id="L2290" class="LineNr">2290 </span> <span class="Delimiter">}</span> +<span id="L2291" class="LineNr">2291 </span> <span class="PreProc">var</span> fourth-value/eax: (addr float) <span class="Special"><-</span> get fourth, number-data +<span id="L2292" class="LineNr">2292 </span> <span class="PreProc">var</span> x2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> convert *fourth-value +<span id="L2293" class="LineNr">2293 </span> <span class="muComment"># color = rest->right->left->value</span> +<span id="L2294" class="LineNr">2294 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2295" class="LineNr">2295 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2296" class="LineNr">2296 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2297" class="LineNr">2297 </span> <span class="Delimiter">{</span> +<span id="L2298" class="LineNr">2298 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2299" class="LineNr">2299 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2300" class="LineNr">2300 </span> <span class="PreProc">break-if-=</span> +<span id="L2301" class="LineNr">2301 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'hline' encountered non-pair"</span> +<span id="L2302" class="LineNr">2302 </span> <span class="PreProc">return</span> +<span id="L2303" class="LineNr">2303 </span> <span class="Delimiter">}</span> +<span id="L2304" class="LineNr">2304 </span> <span class="Delimiter">{</span> +<span id="L2305" class="LineNr">2305 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2306" class="LineNr">2306 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2307" class="LineNr">2307 </span> <span class="PreProc">break-if-=</span> +<span id="L2308" class="LineNr">2308 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'hline' needs 5 args but got 5"</span> +<span id="L2309" class="LineNr">2309 </span> <span class="PreProc">return</span> +<span id="L2310" class="LineNr">2310 </span> <span class="Delimiter">}</span> +<span id="L2311" class="LineNr">2311 </span> <span class="PreProc">var</span> fifth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2312" class="LineNr">2312 </span> <span class="PreProc">var</span> fifth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fifth-ah +<span id="L2313" class="LineNr">2313 </span> <span class="Delimiter">{</span> +<span id="L2314" class="LineNr">2314 </span> <span class="PreProc">var</span> fifth-type/eax: (addr int) <span class="Special"><-</span> get fifth, <span class="PreProc">type</span> +<span id="L2315" class="LineNr">2315 </span> compare *fifth-type, <span class="Constant">1</span>/number +<span id="L2316" class="LineNr">2316 </span> <span class="PreProc">break-if-=</span> +<span id="L2317" class="LineNr">2317 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fifth arg for 'hline' is not an int (color; 0..0xff)"</span> +<span id="L2318" class="LineNr">2318 </span> <span class="PreProc">return</span> +<span id="L2319" class="LineNr">2319 </span> <span class="Delimiter">}</span> +<span id="L2320" class="LineNr">2320 </span> <span class="PreProc">var</span> fifth-value/eax: (addr float) <span class="Special"><-</span> get fifth, number-data +<span id="L2321" class="LineNr">2321 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> convert *fifth-value +<span id="L2322" class="LineNr">2322 </span> <a href='../507line.mu.html#L64'>draw-horizontal-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, y, x1, x2, color +<span id="L2323" class="LineNr">2323 </span> <span class="muComment"># return nothing</span> +<span id="L2324" class="LineNr">2324 </span><span class="Delimiter">}</span> +<span id="L2325" class="LineNr">2325 </span> +<span id="L2326" class="LineNr">2326 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2326'>apply-vline</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L2327" class="LineNr">2327 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'vline'"</span> +<span id="L2328" class="LineNr">2328 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L2329" class="LineNr">2329 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L2330" class="LineNr">2330 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L2331" class="LineNr">2331 </span> <span class="Delimiter">{</span> +<span id="L2332" class="LineNr">2332 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L2333" class="LineNr">2333 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L2334" class="LineNr">2334 </span> <span class="PreProc">break-if-=</span> +<span id="L2335" class="LineNr">2335 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'vline' are not a list"</span> +<span id="L2336" class="LineNr">2336 </span> <span class="PreProc">return</span> +<span id="L2337" class="LineNr">2337 </span> <span class="Delimiter">}</span> +<span id="L2338" class="LineNr">2338 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L2339" class="LineNr">2339 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L2340" class="LineNr">2340 </span> <span class="Delimiter">{</span> +<span id="L2341" class="LineNr">2341 </span> <span class="PreProc">break-if-=</span> +<span id="L2342" class="LineNr">2342 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'vline' needs 5 args but got 0"</span> +<span id="L2343" class="LineNr">2343 </span> <span class="PreProc">return</span> +<span id="L2344" class="LineNr">2344 </span> <span class="Delimiter">}</span> +<span id="L2345" class="LineNr">2345 </span> <span class="muComment"># screen = args->left</span> +<span id="L2346" class="LineNr">2346 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L2347" class="LineNr">2347 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L2348" class="LineNr">2348 </span> <span class="Delimiter">{</span> +<span id="L2349" class="LineNr">2349 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L2350" class="LineNr">2350 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L2351" class="LineNr">2351 </span> <span class="PreProc">break-if-=</span> +<span id="L2352" class="LineNr">2352 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'vline' is not a screen"</span> +<span id="L2353" class="LineNr">2353 </span> <span class="PreProc">return</span> +<span id="L2354" class="LineNr">2354 </span> <span class="Delimiter">}</span> +<span id="L2355" class="LineNr">2355 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L2356" class="LineNr">2356 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L2357" class="LineNr">2357 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L2358" class="LineNr">2358 </span> <span class="muComment"># x = args->right->left->value</span> +<span id="L2359" class="LineNr">2359 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L2360" class="LineNr">2360 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2361" class="LineNr">2361 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2362" class="LineNr">2362 </span> <span class="Delimiter">{</span> +<span id="L2363" class="LineNr">2363 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2364" class="LineNr">2364 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2365" class="LineNr">2365 </span> <span class="PreProc">break-if-=</span> +<span id="L2366" class="LineNr">2366 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'vline' encountered non-pair"</span> +<span id="L2367" class="LineNr">2367 </span> <span class="PreProc">return</span> +<span id="L2368" class="LineNr">2368 </span> <span class="Delimiter">}</span> +<span id="L2369" class="LineNr">2369 </span> <span class="Delimiter">{</span> +<span id="L2370" class="LineNr">2370 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2371" class="LineNr">2371 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2372" class="LineNr">2372 </span> <span class="PreProc">break-if-=</span> +<span id="L2373" class="LineNr">2373 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'vline' needs 5 args but got 1"</span> +<span id="L2374" class="LineNr">2374 </span> <span class="PreProc">return</span> +<span id="L2375" class="LineNr">2375 </span> <span class="Delimiter">}</span> +<span id="L2376" class="LineNr">2376 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2377" class="LineNr">2377 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L2378" class="LineNr">2378 </span> <span class="Delimiter">{</span> +<span id="L2379" class="LineNr">2379 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L2380" class="LineNr">2380 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L2381" class="LineNr">2381 </span> <span class="PreProc">break-if-=</span> +<span id="L2382" class="LineNr">2382 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'vline' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> x coordinate)"</span> +<span id="L2383" class="LineNr">2383 </span> <span class="PreProc">return</span> +<span id="L2384" class="LineNr">2384 </span> <span class="Delimiter">}</span> +<span id="L2385" class="LineNr">2385 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L2386" class="LineNr">2386 </span> <span class="PreProc">var</span> x/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert *second-value +<span id="L2387" class="LineNr">2387 </span> <span class="muComment"># y1 = rest->right->left->value</span> +<span id="L2388" class="LineNr">2388 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2389" class="LineNr">2389 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2390" class="LineNr">2390 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2391" class="LineNr">2391 </span> <span class="Delimiter">{</span> +<span id="L2392" class="LineNr">2392 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2393" class="LineNr">2393 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2394" class="LineNr">2394 </span> <span class="PreProc">break-if-=</span> +<span id="L2395" class="LineNr">2395 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'vline' encountered non-pair"</span> +<span id="L2396" class="LineNr">2396 </span> <span class="PreProc">return</span> +<span id="L2397" class="LineNr">2397 </span> <span class="Delimiter">}</span> +<span id="L2398" class="LineNr">2398 </span> <span class="Delimiter">{</span> +<span id="L2399" class="LineNr">2399 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2400" class="LineNr">2400 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2401" class="LineNr">2401 </span> <span class="PreProc">break-if-=</span> +<span id="L2402" class="LineNr">2402 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'vline' needs 5 args but got 2"</span> +<span id="L2403" class="LineNr">2403 </span> <span class="PreProc">return</span> +<span id="L2404" class="LineNr">2404 </span> <span class="Delimiter">}</span> +<span id="L2405" class="LineNr">2405 </span> <span class="PreProc">var</span> third-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2406" class="LineNr">2406 </span> <span class="PreProc">var</span> third/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah +<span id="L2407" class="LineNr">2407 </span> <span class="Delimiter">{</span> +<span id="L2408" class="LineNr">2408 </span> <span class="PreProc">var</span> third-type/eax: (addr int) <span class="Special"><-</span> get third, <span class="PreProc">type</span> +<span id="L2409" class="LineNr">2409 </span> compare *third-type, <span class="Constant">1</span>/number +<span id="L2410" class="LineNr">2410 </span> <span class="PreProc">break-if-=</span> +<span id="L2411" class="LineNr">2411 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"third arg for 'vline' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> y coordinate of start point)"</span> +<span id="L2412" class="LineNr">2412 </span> <span class="PreProc">return</span> +<span id="L2413" class="LineNr">2413 </span> <span class="Delimiter">}</span> +<span id="L2414" class="LineNr">2414 </span> <span class="PreProc">var</span> third-value/eax: (addr float) <span class="Special"><-</span> get third, number-data +<span id="L2415" class="LineNr">2415 </span> <span class="PreProc">var</span> y1/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> convert *third-value +<span id="L2416" class="LineNr">2416 </span> <span class="muComment"># y2 = rest->right->left->value</span> +<span id="L2417" class="LineNr">2417 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2418" class="LineNr">2418 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2419" class="LineNr">2419 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2420" class="LineNr">2420 </span> <span class="Delimiter">{</span> +<span id="L2421" class="LineNr">2421 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2422" class="LineNr">2422 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2423" class="LineNr">2423 </span> <span class="PreProc">break-if-=</span> +<span id="L2424" class="LineNr">2424 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'vline' encountered non-pair"</span> +<span id="L2425" class="LineNr">2425 </span> <span class="PreProc">return</span> +<span id="L2426" class="LineNr">2426 </span> <span class="Delimiter">}</span> +<span id="L2427" class="LineNr">2427 </span> <span class="Delimiter">{</span> +<span id="L2428" class="LineNr">2428 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2429" class="LineNr">2429 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2430" class="LineNr">2430 </span> <span class="PreProc">break-if-=</span> +<span id="L2431" class="LineNr">2431 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'vline' needs 5 args but got 3"</span> +<span id="L2432" class="LineNr">2432 </span> <span class="PreProc">return</span> +<span id="L2433" class="LineNr">2433 </span> <span class="Delimiter">}</span> +<span id="L2434" class="LineNr">2434 </span> <span class="PreProc">var</span> fourth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2435" class="LineNr">2435 </span> <span class="PreProc">var</span> fourth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fourth-ah +<span id="L2436" class="LineNr">2436 </span> <span class="Delimiter">{</span> +<span id="L2437" class="LineNr">2437 </span> <span class="PreProc">var</span> fourth-type/eax: (addr int) <span class="Special"><-</span> get fourth, <span class="PreProc">type</span> +<span id="L2438" class="LineNr">2438 </span> compare *fourth-type, <span class="Constant">1</span>/number +<span id="L2439" class="LineNr">2439 </span> <span class="PreProc">break-if-=</span> +<span id="L2440" class="LineNr">2440 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fourth arg for 'vline' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> y coordinate of end point)"</span> +<span id="L2441" class="LineNr">2441 </span> <span class="PreProc">return</span> +<span id="L2442" class="LineNr">2442 </span> <span class="Delimiter">}</span> +<span id="L2443" class="LineNr">2443 </span> <span class="PreProc">var</span> fourth-value/eax: (addr float) <span class="Special"><-</span> get fourth, number-data +<span id="L2444" class="LineNr">2444 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> convert *fourth-value +<span id="L2445" class="LineNr">2445 </span> <span class="muComment"># color = rest->right->left->value</span> +<span id="L2446" class="LineNr">2446 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2447" class="LineNr">2447 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2448" class="LineNr">2448 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2449" class="LineNr">2449 </span> <span class="Delimiter">{</span> +<span id="L2450" class="LineNr">2450 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2451" class="LineNr">2451 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2452" class="LineNr">2452 </span> <span class="PreProc">break-if-=</span> +<span id="L2453" class="LineNr">2453 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'vline' encountered non-pair"</span> +<span id="L2454" class="LineNr">2454 </span> <span class="PreProc">return</span> +<span id="L2455" class="LineNr">2455 </span> <span class="Delimiter">}</span> +<span id="L2456" class="LineNr">2456 </span> <span class="Delimiter">{</span> +<span id="L2457" class="LineNr">2457 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2458" class="LineNr">2458 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2459" class="LineNr">2459 </span> <span class="PreProc">break-if-=</span> +<span id="L2460" class="LineNr">2460 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'vline' needs 5 args but got 5"</span> +<span id="L2461" class="LineNr">2461 </span> <span class="PreProc">return</span> +<span id="L2462" class="LineNr">2462 </span> <span class="Delimiter">}</span> +<span id="L2463" class="LineNr">2463 </span> <span class="PreProc">var</span> fifth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2464" class="LineNr">2464 </span> <span class="PreProc">var</span> fifth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fifth-ah +<span id="L2465" class="LineNr">2465 </span> <span class="Delimiter">{</span> +<span id="L2466" class="LineNr">2466 </span> <span class="PreProc">var</span> fifth-type/eax: (addr int) <span class="Special"><-</span> get fifth, <span class="PreProc">type</span> +<span id="L2467" class="LineNr">2467 </span> compare *fifth-type, <span class="Constant">1</span>/number +<span id="L2468" class="LineNr">2468 </span> <span class="PreProc">break-if-=</span> +<span id="L2469" class="LineNr">2469 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fifth arg for 'vline' is not an int (color; 0..0xff)"</span> +<span id="L2470" class="LineNr">2470 </span> <span class="PreProc">return</span> +<span id="L2471" class="LineNr">2471 </span> <span class="Delimiter">}</span> +<span id="L2472" class="LineNr">2472 </span> <span class="PreProc">var</span> fifth-value/eax: (addr float) <span class="Special"><-</span> get fifth, number-data +<span id="L2473" class="LineNr">2473 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> convert *fifth-value +<span id="L2474" class="LineNr">2474 </span> <a href='../507line.mu.html#L75'>draw-vertical-line</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y1, y2, color +<span id="L2475" class="LineNr">2475 </span> <span class="muComment"># return nothing</span> +<span id="L2476" class="LineNr">2476 </span><span class="Delimiter">}</span> +<span id="L2477" class="LineNr">2477 </span> +<span id="L2478" class="LineNr">2478 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2478'>apply-circle</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L2479" class="LineNr">2479 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'circle'"</span> +<span id="L2480" class="LineNr">2480 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L2481" class="LineNr">2481 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L2482" class="LineNr">2482 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L2483" class="LineNr">2483 </span> <span class="Delimiter">{</span> +<span id="L2484" class="LineNr">2484 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L2485" class="LineNr">2485 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L2486" class="LineNr">2486 </span> <span class="PreProc">break-if-=</span> +<span id="L2487" class="LineNr">2487 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'circle' are not a list"</span> +<span id="L2488" class="LineNr">2488 </span> <span class="PreProc">return</span> +<span id="L2489" class="LineNr">2489 </span> <span class="Delimiter">}</span> +<span id="L2490" class="LineNr">2490 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L2491" class="LineNr">2491 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L2492" class="LineNr">2492 </span> <span class="Delimiter">{</span> +<span id="L2493" class="LineNr">2493 </span> <span class="PreProc">break-if-=</span> +<span id="L2494" class="LineNr">2494 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'circle' needs 5 args but got 0"</span> +<span id="L2495" class="LineNr">2495 </span> <span class="PreProc">return</span> +<span id="L2496" class="LineNr">2496 </span> <span class="Delimiter">}</span> +<span id="L2497" class="LineNr">2497 </span> <span class="muComment"># screen = args->left</span> +<span id="L2498" class="LineNr">2498 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L2499" class="LineNr">2499 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L2500" class="LineNr">2500 </span> <span class="Delimiter">{</span> +<span id="L2501" class="LineNr">2501 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L2502" class="LineNr">2502 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L2503" class="LineNr">2503 </span> <span class="PreProc">break-if-=</span> +<span id="L2504" class="LineNr">2504 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'circle' is not a screen"</span> +<span id="L2505" class="LineNr">2505 </span> <span class="PreProc">return</span> +<span id="L2506" class="LineNr">2506 </span> <span class="Delimiter">}</span> +<span id="L2507" class="LineNr">2507 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L2508" class="LineNr">2508 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L2509" class="LineNr">2509 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L2510" class="LineNr">2510 </span> <span class="muComment"># cx = args->right->left->value</span> +<span id="L2511" class="LineNr">2511 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L2512" class="LineNr">2512 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2513" class="LineNr">2513 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2514" class="LineNr">2514 </span> <span class="Delimiter">{</span> +<span id="L2515" class="LineNr">2515 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2516" class="LineNr">2516 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2517" class="LineNr">2517 </span> <span class="PreProc">break-if-=</span> +<span id="L2518" class="LineNr">2518 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'circle' encountered non-pair"</span> +<span id="L2519" class="LineNr">2519 </span> <span class="PreProc">return</span> +<span id="L2520" class="LineNr">2520 </span> <span class="Delimiter">}</span> +<span id="L2521" class="LineNr">2521 </span> <span class="Delimiter">{</span> +<span id="L2522" class="LineNr">2522 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2523" class="LineNr">2523 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2524" class="LineNr">2524 </span> <span class="PreProc">break-if-=</span> +<span id="L2525" class="LineNr">2525 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'circle' needs 5 args but got 1"</span> +<span id="L2526" class="LineNr">2526 </span> <span class="PreProc">return</span> +<span id="L2527" class="LineNr">2527 </span> <span class="Delimiter">}</span> +<span id="L2528" class="LineNr">2528 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2529" class="LineNr">2529 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L2530" class="LineNr">2530 </span> <span class="Delimiter">{</span> +<span id="L2531" class="LineNr">2531 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L2532" class="LineNr">2532 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L2533" class="LineNr">2533 </span> <span class="PreProc">break-if-=</span> +<span id="L2534" class="LineNr">2534 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'circle' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> x coordinate of center)"</span> +<span id="L2535" class="LineNr">2535 </span> <span class="PreProc">return</span> +<span id="L2536" class="LineNr">2536 </span> <span class="Delimiter">}</span> +<span id="L2537" class="LineNr">2537 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L2538" class="LineNr">2538 </span> <span class="PreProc">var</span> cx/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert *second-value +<span id="L2539" class="LineNr">2539 </span> <span class="muComment"># cy = rest->right->left->value</span> +<span id="L2540" class="LineNr">2540 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2541" class="LineNr">2541 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2542" class="LineNr">2542 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2543" class="LineNr">2543 </span> <span class="Delimiter">{</span> +<span id="L2544" class="LineNr">2544 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2545" class="LineNr">2545 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2546" class="LineNr">2546 </span> <span class="PreProc">break-if-=</span> +<span id="L2547" class="LineNr">2547 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'circle' encountered non-pair"</span> +<span id="L2548" class="LineNr">2548 </span> <span class="PreProc">return</span> +<span id="L2549" class="LineNr">2549 </span> <span class="Delimiter">}</span> +<span id="L2550" class="LineNr">2550 </span> <span class="Delimiter">{</span> +<span id="L2551" class="LineNr">2551 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2552" class="LineNr">2552 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2553" class="LineNr">2553 </span> <span class="PreProc">break-if-=</span> +<span id="L2554" class="LineNr">2554 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'circle' needs 5 args but got 2"</span> +<span id="L2555" class="LineNr">2555 </span> <span class="PreProc">return</span> +<span id="L2556" class="LineNr">2556 </span> <span class="Delimiter">}</span> +<span id="L2557" class="LineNr">2557 </span> <span class="PreProc">var</span> third-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2558" class="LineNr">2558 </span> <span class="PreProc">var</span> third/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah +<span id="L2559" class="LineNr">2559 </span> <span class="Delimiter">{</span> +<span id="L2560" class="LineNr">2560 </span> <span class="PreProc">var</span> third-type/eax: (addr int) <span class="Special"><-</span> get third, <span class="PreProc">type</span> +<span id="L2561" class="LineNr">2561 </span> compare *third-type, <span class="Constant">1</span>/number +<span id="L2562" class="LineNr">2562 </span> <span class="PreProc">break-if-=</span> +<span id="L2563" class="LineNr">2563 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"third arg for 'circle' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> y coordinate of center)"</span> +<span id="L2564" class="LineNr">2564 </span> <span class="PreProc">return</span> +<span id="L2565" class="LineNr">2565 </span> <span class="Delimiter">}</span> +<span id="L2566" class="LineNr">2566 </span> <span class="PreProc">var</span> third-value/eax: (addr float) <span class="Special"><-</span> get third, number-data +<span id="L2567" class="LineNr">2567 </span> <span class="PreProc">var</span> cy/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> convert *third-value +<span id="L2568" class="LineNr">2568 </span> <span class="muComment"># r = rest->right->left->value</span> +<span id="L2569" class="LineNr">2569 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2570" class="LineNr">2570 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2571" class="LineNr">2571 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2572" class="LineNr">2572 </span> <span class="Delimiter">{</span> +<span id="L2573" class="LineNr">2573 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2574" class="LineNr">2574 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2575" class="LineNr">2575 </span> <span class="PreProc">break-if-=</span> +<span id="L2576" class="LineNr">2576 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'circle' encountered non-pair"</span> +<span id="L2577" class="LineNr">2577 </span> <span class="PreProc">return</span> +<span id="L2578" class="LineNr">2578 </span> <span class="Delimiter">}</span> +<span id="L2579" class="LineNr">2579 </span> <span class="Delimiter">{</span> +<span id="L2580" class="LineNr">2580 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2581" class="LineNr">2581 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2582" class="LineNr">2582 </span> <span class="PreProc">break-if-=</span> +<span id="L2583" class="LineNr">2583 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'circle' needs 5 args but got 3"</span> +<span id="L2584" class="LineNr">2584 </span> <span class="PreProc">return</span> +<span id="L2585" class="LineNr">2585 </span> <span class="Delimiter">}</span> +<span id="L2586" class="LineNr">2586 </span> <span class="PreProc">var</span> fourth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2587" class="LineNr">2587 </span> <span class="PreProc">var</span> fourth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fourth-ah +<span id="L2588" class="LineNr">2588 </span> <span class="Delimiter">{</span> +<span id="L2589" class="LineNr">2589 </span> <span class="PreProc">var</span> fourth-type/eax: (addr int) <span class="Special"><-</span> get fourth, <span class="PreProc">type</span> +<span id="L2590" class="LineNr">2590 </span> compare *fourth-type, <span class="Constant">1</span>/number +<span id="L2591" class="LineNr">2591 </span> <span class="PreProc">break-if-=</span> +<span id="L2592" class="LineNr">2592 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fourth arg for 'circle' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> radius)"</span> +<span id="L2593" class="LineNr">2593 </span> <span class="PreProc">return</span> +<span id="L2594" class="LineNr">2594 </span> <span class="Delimiter">}</span> +<span id="L2595" class="LineNr">2595 </span> <span class="PreProc">var</span> fourth-value/eax: (addr float) <span class="Special"><-</span> get fourth, number-data +<span id="L2596" class="LineNr">2596 </span> <span class="PreProc">var</span> r/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> convert *fourth-value +<span id="L2597" class="LineNr">2597 </span> <span class="muComment"># color = rest->right->left->value</span> +<span id="L2598" class="LineNr">2598 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2599" class="LineNr">2599 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2600" class="LineNr">2600 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2601" class="LineNr">2601 </span> <span class="Delimiter">{</span> +<span id="L2602" class="LineNr">2602 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2603" class="LineNr">2603 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2604" class="LineNr">2604 </span> <span class="PreProc">break-if-=</span> +<span id="L2605" class="LineNr">2605 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'circle' encountered non-pair"</span> +<span id="L2606" class="LineNr">2606 </span> <span class="PreProc">return</span> +<span id="L2607" class="LineNr">2607 </span> <span class="Delimiter">}</span> +<span id="L2608" class="LineNr">2608 </span> <span class="Delimiter">{</span> +<span id="L2609" class="LineNr">2609 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2610" class="LineNr">2610 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2611" class="LineNr">2611 </span> <span class="PreProc">break-if-=</span> +<span id="L2612" class="LineNr">2612 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'circle' needs 5 args but got 5"</span> +<span id="L2613" class="LineNr">2613 </span> <span class="PreProc">return</span> +<span id="L2614" class="LineNr">2614 </span> <span class="Delimiter">}</span> +<span id="L2615" class="LineNr">2615 </span> <span class="PreProc">var</span> fifth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2616" class="LineNr">2616 </span> <span class="PreProc">var</span> fifth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fifth-ah +<span id="L2617" class="LineNr">2617 </span> <span class="Delimiter">{</span> +<span id="L2618" class="LineNr">2618 </span> <span class="PreProc">var</span> fifth-type/eax: (addr int) <span class="Special"><-</span> get fifth, <span class="PreProc">type</span> +<span id="L2619" class="LineNr">2619 </span> compare *fifth-type, <span class="Constant">1</span>/number +<span id="L2620" class="LineNr">2620 </span> <span class="PreProc">break-if-=</span> +<span id="L2621" class="LineNr">2621 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fifth arg for 'circle' is not an int (color; 0..0xff)"</span> +<span id="L2622" class="LineNr">2622 </span> <span class="PreProc">return</span> +<span id="L2623" class="LineNr">2623 </span> <span class="Delimiter">}</span> +<span id="L2624" class="LineNr">2624 </span> <span class="PreProc">var</span> fifth-value/eax: (addr float) <span class="Special"><-</span> get fifth, number-data +<span id="L2625" class="LineNr">2625 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> convert *fifth-value +<span id="L2626" class="LineNr">2626 </span> <a href='../508circle.mu.html#L1'>draw-circle</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, cx, cy, r, color +<span id="L2627" class="LineNr">2627 </span> <span class="muComment"># return nothing</span> +<span id="L2628" class="LineNr">2628 </span><span class="Delimiter">}</span> +<span id="L2629" class="LineNr">2629 </span> +<span id="L2630" class="LineNr">2630 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2630'>apply-bezier</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L2631" class="LineNr">2631 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'bezier'"</span> +<span id="L2632" class="LineNr">2632 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L2633" class="LineNr">2633 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L2634" class="LineNr">2634 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L2635" class="LineNr">2635 </span> <span class="Delimiter">{</span> +<span id="L2636" class="LineNr">2636 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L2637" class="LineNr">2637 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L2638" class="LineNr">2638 </span> <span class="PreProc">break-if-=</span> +<span id="L2639" class="LineNr">2639 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'bezier' are not a list"</span> +<span id="L2640" class="LineNr">2640 </span> <span class="PreProc">return</span> +<span id="L2641" class="LineNr">2641 </span> <span class="Delimiter">}</span> +<span id="L2642" class="LineNr">2642 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L2643" class="LineNr">2643 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L2644" class="LineNr">2644 </span> <span class="Delimiter">{</span> +<span id="L2645" class="LineNr">2645 </span> <span class="PreProc">break-if-=</span> +<span id="L2646" class="LineNr">2646 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' needs 8 args but got 0"</span> +<span id="L2647" class="LineNr">2647 </span> <span class="PreProc">return</span> +<span id="L2648" class="LineNr">2648 </span> <span class="Delimiter">}</span> +<span id="L2649" class="LineNr">2649 </span> <span class="muComment"># screen = args->left</span> +<span id="L2650" class="LineNr">2650 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L2651" class="LineNr">2651 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L2652" class="LineNr">2652 </span> <span class="Delimiter">{</span> +<span id="L2653" class="LineNr">2653 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L2654" class="LineNr">2654 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L2655" class="LineNr">2655 </span> <span class="PreProc">break-if-=</span> +<span id="L2656" class="LineNr">2656 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'bezier' is not a screen"</span> +<span id="L2657" class="LineNr">2657 </span> <span class="PreProc">return</span> +<span id="L2658" class="LineNr">2658 </span> <span class="Delimiter">}</span> +<span id="L2659" class="LineNr">2659 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L2660" class="LineNr">2660 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L2661" class="LineNr">2661 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L2662" class="LineNr">2662 </span> <span class="muComment"># x0 = args->right->left->value</span> +<span id="L2663" class="LineNr">2663 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L2664" class="LineNr">2664 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2665" class="LineNr">2665 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2666" class="LineNr">2666 </span> <span class="Delimiter">{</span> +<span id="L2667" class="LineNr">2667 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2668" class="LineNr">2668 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2669" class="LineNr">2669 </span> <span class="PreProc">break-if-=</span> +<span id="L2670" class="LineNr">2670 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' encountered non-pair"</span> +<span id="L2671" class="LineNr">2671 </span> <span class="PreProc">return</span> +<span id="L2672" class="LineNr">2672 </span> <span class="Delimiter">}</span> +<span id="L2673" class="LineNr">2673 </span> <span class="Delimiter">{</span> +<span id="L2674" class="LineNr">2674 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2675" class="LineNr">2675 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2676" class="LineNr">2676 </span> <span class="PreProc">break-if-=</span> +<span id="L2677" class="LineNr">2677 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' needs 8 args but got 1"</span> +<span id="L2678" class="LineNr">2678 </span> <span class="PreProc">return</span> +<span id="L2679" class="LineNr">2679 </span> <span class="Delimiter">}</span> +<span id="L2680" class="LineNr">2680 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2681" class="LineNr">2681 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L2682" class="LineNr">2682 </span> <span class="Delimiter">{</span> +<span id="L2683" class="LineNr">2683 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L2684" class="LineNr">2684 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L2685" class="LineNr">2685 </span> <span class="PreProc">break-if-=</span> +<span id="L2686" class="LineNr">2686 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'bezier' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> x coordinate of start point)"</span> +<span id="L2687" class="LineNr">2687 </span> <span class="PreProc">return</span> +<span id="L2688" class="LineNr">2688 </span> <span class="Delimiter">}</span> +<span id="L2689" class="LineNr">2689 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L2690" class="LineNr">2690 </span> <span class="PreProc">var</span> x0/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert *second-value +<span id="L2691" class="LineNr">2691 </span> <span class="muComment"># y0 = rest->right->left->value</span> +<span id="L2692" class="LineNr">2692 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2693" class="LineNr">2693 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2694" class="LineNr">2694 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2695" class="LineNr">2695 </span> <span class="Delimiter">{</span> +<span id="L2696" class="LineNr">2696 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2697" class="LineNr">2697 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2698" class="LineNr">2698 </span> <span class="PreProc">break-if-=</span> +<span id="L2699" class="LineNr">2699 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' encountered non-pair"</span> +<span id="L2700" class="LineNr">2700 </span> <span class="PreProc">return</span> +<span id="L2701" class="LineNr">2701 </span> <span class="Delimiter">}</span> +<span id="L2702" class="LineNr">2702 </span> <span class="Delimiter">{</span> +<span id="L2703" class="LineNr">2703 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2704" class="LineNr">2704 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2705" class="LineNr">2705 </span> <span class="PreProc">break-if-=</span> +<span id="L2706" class="LineNr">2706 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' needs 8 args but got 2"</span> +<span id="L2707" class="LineNr">2707 </span> <span class="PreProc">return</span> +<span id="L2708" class="LineNr">2708 </span> <span class="Delimiter">}</span> +<span id="L2709" class="LineNr">2709 </span> <span class="PreProc">var</span> third-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2710" class="LineNr">2710 </span> <span class="PreProc">var</span> third/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *third-ah +<span id="L2711" class="LineNr">2711 </span> <span class="Delimiter">{</span> +<span id="L2712" class="LineNr">2712 </span> <span class="PreProc">var</span> third-type/eax: (addr int) <span class="Special"><-</span> get third, <span class="PreProc">type</span> +<span id="L2713" class="LineNr">2713 </span> compare *third-type, <span class="Constant">1</span>/number +<span id="L2714" class="LineNr">2714 </span> <span class="PreProc">break-if-=</span> +<span id="L2715" class="LineNr">2715 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"third arg for 'bezier' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> y coordinate of start point)"</span> +<span id="L2716" class="LineNr">2716 </span> <span class="PreProc">return</span> +<span id="L2717" class="LineNr">2717 </span> <span class="Delimiter">}</span> +<span id="L2718" class="LineNr">2718 </span> <span class="PreProc">var</span> third-value/eax: (addr float) <span class="Special"><-</span> get third, number-data +<span id="L2719" class="LineNr">2719 </span> <span class="PreProc">var</span> y0/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> convert *third-value +<span id="L2720" class="LineNr">2720 </span> <span class="muComment"># x1 = rest->right->left->value</span> +<span id="L2721" class="LineNr">2721 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2722" class="LineNr">2722 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2723" class="LineNr">2723 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2724" class="LineNr">2724 </span> <span class="Delimiter">{</span> +<span id="L2725" class="LineNr">2725 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2726" class="LineNr">2726 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2727" class="LineNr">2727 </span> <span class="PreProc">break-if-=</span> +<span id="L2728" class="LineNr">2728 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' encountered non-pair"</span> +<span id="L2729" class="LineNr">2729 </span> <span class="PreProc">return</span> +<span id="L2730" class="LineNr">2730 </span> <span class="Delimiter">}</span> +<span id="L2731" class="LineNr">2731 </span> <span class="Delimiter">{</span> +<span id="L2732" class="LineNr">2732 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2733" class="LineNr">2733 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2734" class="LineNr">2734 </span> <span class="PreProc">break-if-=</span> +<span id="L2735" class="LineNr">2735 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' needs 8 args but got 3"</span> +<span id="L2736" class="LineNr">2736 </span> <span class="PreProc">return</span> +<span id="L2737" class="LineNr">2737 </span> <span class="Delimiter">}</span> +<span id="L2738" class="LineNr">2738 </span> <span class="PreProc">var</span> fourth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2739" class="LineNr">2739 </span> <span class="PreProc">var</span> fourth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fourth-ah +<span id="L2740" class="LineNr">2740 </span> <span class="Delimiter">{</span> +<span id="L2741" class="LineNr">2741 </span> <span class="PreProc">var</span> fourth-type/eax: (addr int) <span class="Special"><-</span> get fourth, <span class="PreProc">type</span> +<span id="L2742" class="LineNr">2742 </span> compare *fourth-type, <span class="Constant">1</span>/number +<span id="L2743" class="LineNr">2743 </span> <span class="PreProc">break-if-=</span> +<span id="L2744" class="LineNr">2744 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fourth arg for 'bezier' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> x coordinate of control point)"</span> +<span id="L2745" class="LineNr">2745 </span> <span class="PreProc">return</span> +<span id="L2746" class="LineNr">2746 </span> <span class="Delimiter">}</span> +<span id="L2747" class="LineNr">2747 </span> <span class="PreProc">var</span> fourth-value/eax: (addr float) <span class="Special"><-</span> get fourth, number-data +<span id="L2748" class="LineNr">2748 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> convert *fourth-value +<span id="L2749" class="LineNr">2749 </span> <span class="PreProc">var</span> x1: int +<span id="L2750" class="LineNr">2750 </span> copy-to x1, tmp +<span id="L2751" class="LineNr">2751 </span> <span class="muComment"># y1 = rest->right->left->value</span> +<span id="L2752" class="LineNr">2752 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2753" class="LineNr">2753 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2754" class="LineNr">2754 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2755" class="LineNr">2755 </span> <span class="Delimiter">{</span> +<span id="L2756" class="LineNr">2756 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2757" class="LineNr">2757 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2758" class="LineNr">2758 </span> <span class="PreProc">break-if-=</span> +<span id="L2759" class="LineNr">2759 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' encountered non-pair"</span> +<span id="L2760" class="LineNr">2760 </span> <span class="PreProc">return</span> +<span id="L2761" class="LineNr">2761 </span> <span class="Delimiter">}</span> +<span id="L2762" class="LineNr">2762 </span> <span class="Delimiter">{</span> +<span id="L2763" class="LineNr">2763 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2764" class="LineNr">2764 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2765" class="LineNr">2765 </span> <span class="PreProc">break-if-=</span> +<span id="L2766" class="LineNr">2766 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' needs 8 args but got 4"</span> +<span id="L2767" class="LineNr">2767 </span> <span class="PreProc">return</span> +<span id="L2768" class="LineNr">2768 </span> <span class="Delimiter">}</span> +<span id="L2769" class="LineNr">2769 </span> <span class="PreProc">var</span> fifth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2770" class="LineNr">2770 </span> <span class="PreProc">var</span> fifth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *fifth-ah +<span id="L2771" class="LineNr">2771 </span> <span class="Delimiter">{</span> +<span id="L2772" class="LineNr">2772 </span> <span class="PreProc">var</span> fifth-type/eax: (addr int) <span class="Special"><-</span> get fifth, <span class="PreProc">type</span> +<span id="L2773" class="LineNr">2773 </span> compare *fifth-type, <span class="Constant">1</span>/number +<span id="L2774" class="LineNr">2774 </span> <span class="PreProc">break-if-=</span> +<span id="L2775" class="LineNr">2775 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"fifth arg for 'bezier' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> y coordinate of control point)"</span> +<span id="L2776" class="LineNr">2776 </span> <span class="PreProc">return</span> +<span id="L2777" class="LineNr">2777 </span> <span class="Delimiter">}</span> +<span id="L2778" class="LineNr">2778 </span> <span class="PreProc">var</span> fifth-value/eax: (addr float) <span class="Special"><-</span> get fifth, number-data +<span id="L2779" class="LineNr">2779 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> convert *fifth-value +<span id="L2780" class="LineNr">2780 </span> <span class="PreProc">var</span> y1: int +<span id="L2781" class="LineNr">2781 </span> copy-to y1, tmp +<span id="L2782" class="LineNr">2782 </span> <span class="muComment"># x2 = rest->right->left->value</span> +<span id="L2783" class="LineNr">2783 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2784" class="LineNr">2784 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2785" class="LineNr">2785 </span> <span class="PreProc">var</span> rest/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _rest +<span id="L2786" class="LineNr">2786 </span> <span class="Delimiter">{</span> +<span id="L2787" class="LineNr">2787 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2788" class="LineNr">2788 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2789" class="LineNr">2789 </span> <span class="PreProc">break-if-=</span> +<span id="L2790" class="LineNr">2790 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' encountered non-pair"</span> +<span id="L2791" class="LineNr">2791 </span> <span class="PreProc">return</span> +<span id="L2792" class="LineNr">2792 </span> <span class="Delimiter">}</span> +<span id="L2793" class="LineNr">2793 </span> <span class="Delimiter">{</span> +<span id="L2794" class="LineNr">2794 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2795" class="LineNr">2795 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2796" class="LineNr">2796 </span> <span class="PreProc">break-if-=</span> +<span id="L2797" class="LineNr">2797 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' needs 8 args but got 3"</span> +<span id="L2798" class="LineNr">2798 </span> <span class="PreProc">return</span> +<span id="L2799" class="LineNr">2799 </span> <span class="Delimiter">}</span> +<span id="L2800" class="LineNr">2800 </span> <span class="PreProc">var</span> sixth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2801" class="LineNr">2801 </span> <span class="PreProc">var</span> sixth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *sixth-ah +<span id="L2802" class="LineNr">2802 </span> <span class="Delimiter">{</span> +<span id="L2803" class="LineNr">2803 </span> <span class="PreProc">var</span> sixth-type/eax: (addr int) <span class="Special"><-</span> get sixth, <span class="PreProc">type</span> +<span id="L2804" class="LineNr">2804 </span> compare *sixth-type, <span class="Constant">1</span>/number +<span id="L2805" class="LineNr">2805 </span> <span class="PreProc">break-if-=</span> +<span id="L2806" class="LineNr">2806 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"sixth arg for 'bezier' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> x coordinate of end point)"</span> +<span id="L2807" class="LineNr">2807 </span> <span class="PreProc">return</span> +<span id="L2808" class="LineNr">2808 </span> <span class="Delimiter">}</span> +<span id="L2809" class="LineNr">2809 </span> <span class="PreProc">var</span> sixth-value/eax: (addr float) <span class="Special"><-</span> get sixth, number-data +<span id="L2810" class="LineNr">2810 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> convert *sixth-value +<span id="L2811" class="LineNr">2811 </span> <span class="PreProc">var</span> x2: int +<span id="L2812" class="LineNr">2812 </span> copy-to x2, tmp +<span id="L2813" class="LineNr">2813 </span> <span class="muComment"># y2 = rest->right->left->value</span> +<span id="L2814" class="LineNr">2814 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2815" class="LineNr">2815 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2816" class="LineNr">2816 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2817" class="LineNr">2817 </span> <span class="Delimiter">{</span> +<span id="L2818" class="LineNr">2818 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2819" class="LineNr">2819 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2820" class="LineNr">2820 </span> <span class="PreProc">break-if-=</span> +<span id="L2821" class="LineNr">2821 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' encountered non-pair"</span> +<span id="L2822" class="LineNr">2822 </span> <span class="PreProc">return</span> +<span id="L2823" class="LineNr">2823 </span> <span class="Delimiter">}</span> +<span id="L2824" class="LineNr">2824 </span> <span class="Delimiter">{</span> +<span id="L2825" class="LineNr">2825 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2826" class="LineNr">2826 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2827" class="LineNr">2827 </span> <span class="PreProc">break-if-=</span> +<span id="L2828" class="LineNr">2828 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' needs 8 args but got 4"</span> +<span id="L2829" class="LineNr">2829 </span> <span class="PreProc">return</span> +<span id="L2830" class="LineNr">2830 </span> <span class="Delimiter">}</span> +<span id="L2831" class="LineNr">2831 </span> <span class="PreProc">var</span> seventh-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2832" class="LineNr">2832 </span> <span class="PreProc">var</span> seventh/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *seventh-ah +<span id="L2833" class="LineNr">2833 </span> <span class="Delimiter">{</span> +<span id="L2834" class="LineNr">2834 </span> <span class="PreProc">var</span> seventh-type/eax: (addr int) <span class="Special"><-</span> get seventh, <span class="PreProc">type</span> +<span id="L2835" class="LineNr">2835 </span> compare *seventh-type, <span class="Constant">1</span>/number +<span id="L2836" class="LineNr">2836 </span> <span class="PreProc">break-if-=</span> +<span id="L2837" class="LineNr">2837 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"seventh arg for 'bezier' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> y coordinate of end point)"</span> +<span id="L2838" class="LineNr">2838 </span> <span class="PreProc">return</span> +<span id="L2839" class="LineNr">2839 </span> <span class="Delimiter">}</span> +<span id="L2840" class="LineNr">2840 </span> <span class="PreProc">var</span> seventh-value/eax: (addr float) <span class="Special"><-</span> get seventh, number-data +<span id="L2841" class="LineNr">2841 </span> <span class="PreProc">var</span> tmp/eax: int <span class="Special"><-</span> convert *seventh-value +<span id="L2842" class="LineNr">2842 </span> <span class="PreProc">var</span> y2: int +<span id="L2843" class="LineNr">2843 </span> copy-to y2, tmp +<span id="L2844" class="LineNr">2844 </span> <span class="muComment"># color = rest->right->left->value</span> +<span id="L2845" class="LineNr">2845 </span> <span class="PreProc">var</span> rest-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, right +<span id="L2846" class="LineNr">2846 </span> <span class="PreProc">var</span> _rest/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *rest-ah +<span id="L2847" class="LineNr">2847 </span> rest <span class="Special"><-</span> copy _rest +<span id="L2848" class="LineNr">2848 </span> <span class="Delimiter">{</span> +<span id="L2849" class="LineNr">2849 </span> <span class="PreProc">var</span> rest-type/eax: (addr int) <span class="Special"><-</span> get rest, <span class="PreProc">type</span> +<span id="L2850" class="LineNr">2850 </span> compare *rest-type, <span class="Constant">0</span>/pair +<span id="L2851" class="LineNr">2851 </span> <span class="PreProc">break-if-=</span> +<span id="L2852" class="LineNr">2852 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' encountered non-pair"</span> +<span id="L2853" class="LineNr">2853 </span> <span class="PreProc">return</span> +<span id="L2854" class="LineNr">2854 </span> <span class="Delimiter">}</span> +<span id="L2855" class="LineNr">2855 </span> <span class="Delimiter">{</span> +<span id="L2856" class="LineNr">2856 </span> <span class="PreProc">var</span> rest-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> rest +<span id="L2857" class="LineNr">2857 </span> compare rest-nil?, <span class="Constant">0</span>/false +<span id="L2858" class="LineNr">2858 </span> <span class="PreProc">break-if-=</span> +<span id="L2859" class="LineNr">2859 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'bezier' needs 8 args but got 5"</span> +<span id="L2860" class="LineNr">2860 </span> <span class="PreProc">return</span> +<span id="L2861" class="LineNr">2861 </span> <span class="Delimiter">}</span> +<span id="L2862" class="LineNr">2862 </span> <span class="PreProc">var</span> eighth-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left +<span id="L2863" class="LineNr">2863 </span> <span class="PreProc">var</span> eighth/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *eighth-ah +<span id="L2864" class="LineNr">2864 </span> <span class="Delimiter">{</span> +<span id="L2865" class="LineNr">2865 </span> <span class="PreProc">var</span> eighth-type/eax: (addr int) <span class="Special"><-</span> get eighth, <span class="PreProc">type</span> +<span id="L2866" class="LineNr">2866 </span> compare *eighth-type, <span class="Constant">1</span>/number +<span id="L2867" class="LineNr">2867 </span> <span class="PreProc">break-if-=</span> +<span id="L2868" class="LineNr">2868 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"eighth arg for 'bezier' is not an int (color; 0..0xff)"</span> +<span id="L2869" class="LineNr">2869 </span> <span class="PreProc">return</span> +<span id="L2870" class="LineNr">2870 </span> <span class="Delimiter">}</span> +<span id="L2871" class="LineNr">2871 </span> <span class="PreProc">var</span> eighth-value/eax: (addr float) <span class="Special"><-</span> get eighth, number-data +<span id="L2872" class="LineNr">2872 </span> <span class="PreProc">var</span> color/eax: int <span class="Special"><-</span> convert *eighth-value +<span id="L2873" class="LineNr">2873 </span> <a href='../509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x0, y0, x1, y1, x2, y2, color +<span id="L2874" class="LineNr">2874 </span> <span class="muComment"># return nothing</span> +<span id="L2875" class="LineNr">2875 </span><span class="Delimiter">}</span> +<span id="L2876" class="LineNr">2876 </span> +<span id="L2877" class="LineNr">2877 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2877'>apply-wait-for-key</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L2878" class="LineNr">2878 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'key'"</span> +<span id="L2879" class="LineNr">2879 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L2880" class="LineNr">2880 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L2881" class="LineNr">2881 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L2882" class="LineNr">2882 </span> <span class="Delimiter">{</span> +<span id="L2883" class="LineNr">2883 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L2884" class="LineNr">2884 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L2885" class="LineNr">2885 </span> <span class="PreProc">break-if-=</span> +<span id="L2886" class="LineNr">2886 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'key' are not a list"</span> +<span id="L2887" class="LineNr">2887 </span> <span class="PreProc">return</span> +<span id="L2888" class="LineNr">2888 </span> <span class="Delimiter">}</span> +<span id="L2889" class="LineNr">2889 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L2890" class="LineNr">2890 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L2891" class="LineNr">2891 </span> <span class="Delimiter">{</span> +<span id="L2892" class="LineNr">2892 </span> <span class="PreProc">break-if-=</span> +<span id="L2893" class="LineNr">2893 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'key' needs 1 arg but got 0"</span> +<span id="L2894" class="LineNr">2894 </span> <span class="PreProc">return</span> +<span id="L2895" class="LineNr">2895 </span> <span class="Delimiter">}</span> +<span id="L2896" class="LineNr">2896 </span> <span class="muComment"># keyboard = args->left</span> +<span id="L2897" class="LineNr">2897 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L2898" class="LineNr">2898 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L2899" class="LineNr">2899 </span> <span class="Delimiter">{</span> +<span id="L2900" class="LineNr">2900 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L2901" class="LineNr">2901 </span> compare *first-type, <span class="Constant">6</span>/keyboard +<span id="L2902" class="LineNr">2902 </span> <span class="PreProc">break-if-=</span> +<span id="L2903" class="LineNr">2903 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'key' is not a keyboard"</span> +<span id="L2904" class="LineNr">2904 </span> <span class="PreProc">return</span> +<span id="L2905" class="LineNr">2905 </span> <span class="Delimiter">}</span> +<span id="L2906" class="LineNr">2906 </span> <span class="PreProc">var</span> keyboard-ah/eax: (addr handle <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> get first, keyboard-data +<span id="L2907" class="LineNr">2907 </span> <span class="PreProc">var</span> _keyboard/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *keyboard-ah +<span id="L2908" class="LineNr">2908 </span> <span class="PreProc">var</span> keyboard/<span class="muRegEcx">ecx</span>: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _keyboard +<span id="L2909" class="LineNr">2909 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> <a href='primitives.mu.html#L2914'>wait-for-key</a> keyboard +<span id="L2910" class="LineNr">2910 </span> <span class="muComment"># return key typed</span> +<span id="L2911" class="LineNr">2911 </span> <a href='cell.mu.html#L84'>new-integer</a> out, result +<span id="L2912" class="LineNr">2912 </span><span class="Delimiter">}</span> +<span id="L2913" class="LineNr">2913 </span> +<span id="L2914" class="LineNr">2914 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2914'>wait-for-key</a></span> keyboard: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L2915" class="LineNr">2915 </span> <span class="muComment"># if keyboard is 0, use real keyboard</span> +<span id="L2916" class="LineNr">2916 </span> <span class="Delimiter">{</span> +<span id="L2917" class="LineNr">2917 </span> compare keyboard, <span class="Constant">0</span>/real-keyboard +<span id="L2918" class="LineNr">2918 </span> <span class="PreProc">break-if-!=</span> +<span id="L2919" class="LineNr">2919 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special"><-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> <span class="Constant">0</span>/real-keyboard +<span id="L2920" class="LineNr">2920 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy key +<span id="L2921" class="LineNr">2921 </span> <span class="PreProc">return</span> result +<span id="L2922" class="LineNr">2922 </span> <span class="Delimiter">}</span> +<span id="L2923" class="LineNr">2923 </span> <span class="muComment"># otherwise read from fake keyboard</span> +<span id="L2924" class="LineNr">2924 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special"><-</span> <a href='gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> keyboard +<span id="L2925" class="LineNr">2925 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy g +<span id="L2926" class="LineNr">2926 </span> <span class="PreProc">return</span> result +<span id="L2927" class="LineNr">2927 </span><span class="Delimiter">}</span> +<span id="L2928" class="LineNr">2928 </span> +<span id="L2929" class="LineNr">2929 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2929'>apply-stream</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L2930" class="LineNr">2930 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply stream"</span> +<span id="L2931" class="LineNr">2931 </span> <a href='cell.mu.html#L58'>allocate-stream</a> out +<span id="L2932" class="LineNr">2932 </span><span class="Delimiter">}</span> +<span id="L2933" class="LineNr">2933 </span> +<span id="L2934" class="LineNr">2934 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L2934'>apply-write</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L2935" class="LineNr">2935 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'write'"</span> +<span id="L2936" class="LineNr">2936 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L2937" class="LineNr">2937 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L2938" class="LineNr">2938 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L2939" class="LineNr">2939 </span> <span class="Delimiter">{</span> +<span id="L2940" class="LineNr">2940 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L2941" class="LineNr">2941 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L2942" class="LineNr">2942 </span> <span class="PreProc">break-if-=</span> +<span id="L2943" class="LineNr">2943 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'write' are not a list"</span> +<span id="L2944" class="LineNr">2944 </span> <span class="PreProc">return</span> +<span id="L2945" class="LineNr">2945 </span> <span class="Delimiter">}</span> +<span id="L2946" class="LineNr">2946 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L2947" class="LineNr">2947 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L2948" class="LineNr">2948 </span> <span class="Delimiter">{</span> +<span id="L2949" class="LineNr">2949 </span> <span class="PreProc">break-if-=</span> +<span id="L2950" class="LineNr">2950 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'write' needs 2 args but got 0"</span> +<span id="L2951" class="LineNr">2951 </span> <span class="PreProc">return</span> +<span id="L2952" class="LineNr">2952 </span> <span class="Delimiter">}</span> +<span id="L2953" class="LineNr">2953 </span> <span class="muComment"># stream = args->left</span> +<span id="L2954" class="LineNr">2954 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L2955" class="LineNr">2955 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L2956" class="LineNr">2956 </span> <span class="Delimiter">{</span> +<span id="L2957" class="LineNr">2957 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L2958" class="LineNr">2958 </span> compare *first-type, <span class="Constant">3</span>/stream +<span id="L2959" class="LineNr">2959 </span> <span class="PreProc">break-if-=</span> +<span id="L2960" class="LineNr">2960 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'write' is not a stream"</span> +<span id="L2961" class="LineNr">2961 </span> <span class="PreProc">return</span> +<span id="L2962" class="LineNr">2962 </span> <span class="Delimiter">}</span> +<span id="L2963" class="LineNr">2963 </span> <span class="PreProc">var</span> stream-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get first, text-data +<span id="L2964" class="LineNr">2964 </span> <span class="PreProc">var</span> _stream-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *stream-data-ah +<span id="L2965" class="LineNr">2965 </span> <span class="PreProc">var</span> stream-data/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special"><-</span> copy _stream-data +<span id="L2966" class="LineNr">2966 </span> <span class="muComment"># args->right->left</span> +<span id="L2967" class="LineNr">2967 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L2968" class="LineNr">2968 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L2969" class="LineNr">2969 </span> <span class="Delimiter">{</span> +<span id="L2970" class="LineNr">2970 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L2971" class="LineNr">2971 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L2972" class="LineNr">2972 </span> <span class="PreProc">break-if-=</span> +<span id="L2973" class="LineNr">2973 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'write' encountered non-pair"</span> +<span id="L2974" class="LineNr">2974 </span> <span class="PreProc">return</span> +<span id="L2975" class="LineNr">2975 </span> <span class="Delimiter">}</span> +<span id="L2976" class="LineNr">2976 </span> <span class="Delimiter">{</span> +<span id="L2977" class="LineNr">2977 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L2978" class="LineNr">2978 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L2979" class="LineNr">2979 </span> <span class="PreProc">break-if-=</span> +<span id="L2980" class="LineNr">2980 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'write' needs 2 args but got 1"</span> +<span id="L2981" class="LineNr">2981 </span> <span class="PreProc">return</span> +<span id="L2982" class="LineNr">2982 </span> <span class="Delimiter">}</span> +<span id="L2983" class="LineNr">2983 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L2984" class="LineNr">2984 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L2985" class="LineNr">2985 </span> <span class="Delimiter">{</span> +<span id="L2986" class="LineNr">2986 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L2987" class="LineNr">2987 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L2988" class="LineNr">2988 </span> <span class="PreProc">break-if-=</span> +<span id="L2989" class="LineNr">2989 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'write' is not a number/grapheme"</span> +<span id="L2990" class="LineNr">2990 </span> <span class="PreProc">return</span> +<span id="L2991" class="LineNr">2991 </span> <span class="Delimiter">}</span> +<span id="L2992" class="LineNr">2992 </span> <span class="PreProc">var</span> second-value/eax: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L2993" class="LineNr">2993 </span> <span class="PreProc">var</span> x-float/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> copy *second-value +<span id="L2994" class="LineNr">2994 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> convert x-float +<span id="L2995" class="LineNr">2995 </span> <span class="PreProc">var</span> x-grapheme/eax: grapheme <span class="Special"><-</span> copy x +<span id="L2996" class="LineNr">2996 </span> <a href='../403unicode.mu.html#L176'>write-grapheme</a> stream-data, x-grapheme +<span id="L2997" class="LineNr">2997 </span> <span class="muComment"># return the stream</span> +<span id="L2998" class="LineNr">2998 </span> copy-object first-ah, out +<span id="L2999" class="LineNr">2999 </span><span class="Delimiter">}</span> +<span id="L3000" class="LineNr">3000 </span> +<span id="L3001" class="LineNr">3001 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L3001'>apply-rewind</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L3002" class="LineNr">3002 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'rewind'"</span> +<span id="L3003" class="LineNr">3003 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L3004" class="LineNr">3004 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L3005" class="LineNr">3005 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L3006" class="LineNr">3006 </span> <span class="Delimiter">{</span> +<span id="L3007" class="LineNr">3007 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L3008" class="LineNr">3008 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L3009" class="LineNr">3009 </span> <span class="PreProc">break-if-=</span> +<span id="L3010" class="LineNr">3010 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'rewind' are not a list"</span> +<span id="L3011" class="LineNr">3011 </span> <span class="PreProc">return</span> +<span id="L3012" class="LineNr">3012 </span> <span class="Delimiter">}</span> +<span id="L3013" class="LineNr">3013 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L3014" class="LineNr">3014 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L3015" class="LineNr">3015 </span> <span class="Delimiter">{</span> +<span id="L3016" class="LineNr">3016 </span> <span class="PreProc">break-if-=</span> +<span id="L3017" class="LineNr">3017 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'rewind' needs 1 arg but got 0"</span> +<span id="L3018" class="LineNr">3018 </span> <span class="PreProc">return</span> +<span id="L3019" class="LineNr">3019 </span> <span class="Delimiter">}</span> +<span id="L3020" class="LineNr">3020 </span> <span class="muComment"># stream = args->left</span> +<span id="L3021" class="LineNr">3021 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L3022" class="LineNr">3022 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L3023" class="LineNr">3023 </span> <span class="Delimiter">{</span> +<span id="L3024" class="LineNr">3024 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L3025" class="LineNr">3025 </span> compare *first-type, <span class="Constant">3</span>/stream +<span id="L3026" class="LineNr">3026 </span> <span class="PreProc">break-if-=</span> +<span id="L3027" class="LineNr">3027 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'rewind' is not a stream"</span> +<span id="L3028" class="LineNr">3028 </span> <span class="PreProc">return</span> +<span id="L3029" class="LineNr">3029 </span> <span class="Delimiter">}</span> +<span id="L3030" class="LineNr">3030 </span> <span class="PreProc">var</span> stream-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get first, text-data +<span id="L3031" class="LineNr">3031 </span> <span class="PreProc">var</span> _stream-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *stream-data-ah +<span id="L3032" class="LineNr">3032 </span> <span class="PreProc">var</span> stream-data/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special"><-</span> copy _stream-data +<span id="L3033" class="LineNr">3033 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> stream-data +<span id="L3034" class="LineNr">3034 </span> copy-object first-ah, out +<span id="L3035" class="LineNr">3035 </span><span class="Delimiter">}</span> +<span id="L3036" class="LineNr">3036 </span> +<span id="L3037" class="LineNr">3037 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L3037'>apply-read</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L3038" class="LineNr">3038 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'read'"</span> +<span id="L3039" class="LineNr">3039 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L3040" class="LineNr">3040 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L3041" class="LineNr">3041 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L3042" class="LineNr">3042 </span> <span class="Delimiter">{</span> +<span id="L3043" class="LineNr">3043 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L3044" class="LineNr">3044 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L3045" class="LineNr">3045 </span> <span class="PreProc">break-if-=</span> +<span id="L3046" class="LineNr">3046 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'read' are not a list"</span> +<span id="L3047" class="LineNr">3047 </span> <span class="PreProc">return</span> +<span id="L3048" class="LineNr">3048 </span> <span class="Delimiter">}</span> +<span id="L3049" class="LineNr">3049 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L3050" class="LineNr">3050 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L3051" class="LineNr">3051 </span> <span class="Delimiter">{</span> +<span id="L3052" class="LineNr">3052 </span> <span class="PreProc">break-if-=</span> +<span id="L3053" class="LineNr">3053 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'read' needs 1 arg but got 0"</span> +<span id="L3054" class="LineNr">3054 </span> <span class="PreProc">return</span> +<span id="L3055" class="LineNr">3055 </span> <span class="Delimiter">}</span> +<span id="L3056" class="LineNr">3056 </span> <span class="muComment"># stream = args->left</span> +<span id="L3057" class="LineNr">3057 </span> <span class="PreProc">var</span> first-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L3058" class="LineNr">3058 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L3059" class="LineNr">3059 </span> <span class="Delimiter">{</span> +<span id="L3060" class="LineNr">3060 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L3061" class="LineNr">3061 </span> compare *first-type, <span class="Constant">3</span>/stream +<span id="L3062" class="LineNr">3062 </span> <span class="PreProc">break-if-=</span> +<span id="L3063" class="LineNr">3063 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'read' is not a stream"</span> +<span id="L3064" class="LineNr">3064 </span> <span class="PreProc">return</span> +<span id="L3065" class="LineNr">3065 </span> <span class="Delimiter">}</span> +<span id="L3066" class="LineNr">3066 </span> <span class="PreProc">var</span> stream-data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get first, text-data +<span id="L3067" class="LineNr">3067 </span> <span class="PreProc">var</span> _stream-data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *stream-data-ah +<span id="L3068" class="LineNr">3068 </span> <span class="PreProc">var</span> stream-data/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special"><-</span> copy _stream-data +<span id="L3069" class="LineNr">3069 </span><span class="CommentedCode">#? rewind-stream stream-data</span> +<span id="L3070" class="LineNr">3070 </span> <span class="PreProc">var</span> result-grapheme/eax: grapheme <span class="Special"><-</span> <a href='../403unicode.mu.html#L92'>read-grapheme</a> stream-data +<span id="L3071" class="LineNr">3071 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy result-grapheme +<span id="L3072" class="LineNr">3072 </span> <a href='cell.mu.html#L84'>new-integer</a> out, result +<span id="L3073" class="LineNr">3073 </span><span class="Delimiter">}</span> +<span id="L3074" class="LineNr">3074 </span> +<span id="L3075" class="LineNr">3075 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L3075'>apply-lines</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L3076" class="LineNr">3076 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'lines'"</span> +<span id="L3077" class="LineNr">3077 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L3078" class="LineNr">3078 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L3079" class="LineNr">3079 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L3080" class="LineNr">3080 </span> <span class="Delimiter">{</span> +<span id="L3081" class="LineNr">3081 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L3082" class="LineNr">3082 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L3083" class="LineNr">3083 </span> <span class="PreProc">break-if-=</span> +<span id="L3084" class="LineNr">3084 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'lines' are not a list"</span> +<span id="L3085" class="LineNr">3085 </span> <span class="PreProc">return</span> +<span id="L3086" class="LineNr">3086 </span> <span class="Delimiter">}</span> +<span id="L3087" class="LineNr">3087 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L3088" class="LineNr">3088 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L3089" class="LineNr">3089 </span> <span class="Delimiter">{</span> +<span id="L3090" class="LineNr">3090 </span> <span class="PreProc">break-if-=</span> +<span id="L3091" class="LineNr">3091 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'lines' needs 1 arg but got 0"</span> +<span id="L3092" class="LineNr">3092 </span> <span class="PreProc">return</span> +<span id="L3093" class="LineNr">3093 </span> <span class="Delimiter">}</span> +<span id="L3094" class="LineNr">3094 </span> <span class="muComment"># screen = args->left</span> +<span id="L3095" class="LineNr">3095 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L3096" class="LineNr">3096 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L3097" class="LineNr">3097 </span> <span class="Delimiter">{</span> +<span id="L3098" class="LineNr">3098 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L3099" class="LineNr">3099 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L3100" class="LineNr">3100 </span> <span class="PreProc">break-if-=</span> +<span id="L3101" class="LineNr">3101 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'lines' is not a screen"</span> +<span id="L3102" class="LineNr">3102 </span> <span class="PreProc">return</span> +<span id="L3103" class="LineNr">3103 </span> <span class="Delimiter">}</span> +<span id="L3104" class="LineNr">3104 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L3105" class="LineNr">3105 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L3106" class="LineNr">3106 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L3107" class="LineNr">3107 </span> <span class="muComment"># compute dimensions</span> +<span id="L3108" class="LineNr">3108 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L3109" class="LineNr">3109 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L3110" class="LineNr">3110 </span> dummy, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L3111" class="LineNr">3111 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert height +<span id="L3112" class="LineNr">3112 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L3113" class="LineNr">3113 </span><span class="Delimiter">}</span> +<span id="L3114" class="LineNr">3114 </span> +<span id="L3115" class="LineNr">3115 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L3115'>apply-abort</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L3116" class="LineNr">3116 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"aa"</span> +<span id="L3117" class="LineNr">3117 </span><span class="Delimiter">}</span> +<span id="L3118" class="LineNr">3118 </span> +<span id="L3119" class="LineNr">3119 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L3119'>apply-columns</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L3120" class="LineNr">3120 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'columns'"</span> +<span id="L3121" class="LineNr">3121 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L3122" class="LineNr">3122 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L3123" class="LineNr">3123 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L3124" class="LineNr">3124 </span> <span class="Delimiter">{</span> +<span id="L3125" class="LineNr">3125 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L3126" class="LineNr">3126 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L3127" class="LineNr">3127 </span> <span class="PreProc">break-if-=</span> +<span id="L3128" class="LineNr">3128 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'columns' are not a list"</span> +<span id="L3129" class="LineNr">3129 </span> <span class="PreProc">return</span> +<span id="L3130" class="LineNr">3130 </span> <span class="Delimiter">}</span> +<span id="L3131" class="LineNr">3131 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L3132" class="LineNr">3132 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L3133" class="LineNr">3133 </span> <span class="Delimiter">{</span> +<span id="L3134" class="LineNr">3134 </span> <span class="PreProc">break-if-=</span> +<span id="L3135" class="LineNr">3135 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'columns' needs 1 arg but got 0"</span> +<span id="L3136" class="LineNr">3136 </span> <span class="PreProc">return</span> +<span id="L3137" class="LineNr">3137 </span> <span class="Delimiter">}</span> +<span id="L3138" class="LineNr">3138 </span> <span class="muComment"># screen = args->left</span> +<span id="L3139" class="LineNr">3139 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L3140" class="LineNr">3140 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L3141" class="LineNr">3141 </span> <span class="Delimiter">{</span> +<span id="L3142" class="LineNr">3142 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L3143" class="LineNr">3143 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L3144" class="LineNr">3144 </span> <span class="PreProc">break-if-=</span> +<span id="L3145" class="LineNr">3145 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'columns' is not a screen"</span> +<span id="L3146" class="LineNr">3146 </span> <span class="PreProc">return</span> +<span id="L3147" class="LineNr">3147 </span> <span class="Delimiter">}</span> +<span id="L3148" class="LineNr">3148 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L3149" class="LineNr">3149 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L3150" class="LineNr">3150 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L3151" class="LineNr">3151 </span> <span class="muComment"># compute dimensions</span> +<span id="L3152" class="LineNr">3152 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L3153" class="LineNr">3153 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L3154" class="LineNr">3154 </span> width, dummy <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L3155" class="LineNr">3155 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert width +<span id="L3156" class="LineNr">3156 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L3157" class="LineNr">3157 </span><span class="Delimiter">}</span> +<span id="L3158" class="LineNr">3158 </span> +<span id="L3159" class="LineNr">3159 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L3159'>apply-width</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L3160" class="LineNr">3160 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'width'"</span> +<span id="L3161" class="LineNr">3161 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L3162" class="LineNr">3162 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L3163" class="LineNr">3163 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L3164" class="LineNr">3164 </span> <span class="Delimiter">{</span> +<span id="L3165" class="LineNr">3165 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L3166" class="LineNr">3166 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L3167" class="LineNr">3167 </span> <span class="PreProc">break-if-=</span> +<span id="L3168" class="LineNr">3168 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'width' are not a list"</span> +<span id="L3169" class="LineNr">3169 </span> <span class="PreProc">return</span> +<span id="L3170" class="LineNr">3170 </span> <span class="Delimiter">}</span> +<span id="L3171" class="LineNr">3171 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L3172" class="LineNr">3172 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L3173" class="LineNr">3173 </span> <span class="Delimiter">{</span> +<span id="L3174" class="LineNr">3174 </span> <span class="PreProc">break-if-=</span> +<span id="L3175" class="LineNr">3175 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'width' needs 1 arg but got 0"</span> +<span id="L3176" class="LineNr">3176 </span> <span class="PreProc">return</span> +<span id="L3177" class="LineNr">3177 </span> <span class="Delimiter">}</span> +<span id="L3178" class="LineNr">3178 </span> <span class="muComment"># screen = args->left</span> +<span id="L3179" class="LineNr">3179 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L3180" class="LineNr">3180 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L3181" class="LineNr">3181 </span> <span class="Delimiter">{</span> +<span id="L3182" class="LineNr">3182 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L3183" class="LineNr">3183 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L3184" class="LineNr">3184 </span> <span class="PreProc">break-if-=</span> +<span id="L3185" class="LineNr">3185 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'width' is not a screen"</span> +<span id="L3186" class="LineNr">3186 </span> <span class="PreProc">return</span> +<span id="L3187" class="LineNr">3187 </span> <span class="Delimiter">}</span> +<span id="L3188" class="LineNr">3188 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L3189" class="LineNr">3189 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L3190" class="LineNr">3190 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L3191" class="LineNr">3191 </span> <span class="muComment"># compute dimensions</span> +<span id="L3192" class="LineNr">3192 </span> <span class="PreProc">var</span> width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L3193" class="LineNr">3193 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L3194" class="LineNr">3194 </span> width, dummy <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L3195" class="LineNr">3195 </span> width <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width +<span id="L3196" class="LineNr">3196 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert width +<span id="L3197" class="LineNr">3197 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L3198" class="LineNr">3198 </span><span class="Delimiter">}</span> +<span id="L3199" class="LineNr">3199 </span> +<span id="L3200" class="LineNr">3200 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L3200'>apply-height</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L3201" class="LineNr">3201 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'height'"</span> +<span id="L3202" class="LineNr">3202 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L3203" class="LineNr">3203 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L3204" class="LineNr">3204 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L3205" class="LineNr">3205 </span> <span class="Delimiter">{</span> +<span id="L3206" class="LineNr">3206 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L3207" class="LineNr">3207 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L3208" class="LineNr">3208 </span> <span class="PreProc">break-if-=</span> +<span id="L3209" class="LineNr">3209 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'height' are not a list"</span> +<span id="L3210" class="LineNr">3210 </span> <span class="PreProc">return</span> +<span id="L3211" class="LineNr">3211 </span> <span class="Delimiter">}</span> +<span id="L3212" class="LineNr">3212 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L3213" class="LineNr">3213 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L3214" class="LineNr">3214 </span> <span class="Delimiter">{</span> +<span id="L3215" class="LineNr">3215 </span> <span class="PreProc">break-if-=</span> +<span id="L3216" class="LineNr">3216 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'height' needs 1 arg but got 0"</span> +<span id="L3217" class="LineNr">3217 </span> <span class="PreProc">return</span> +<span id="L3218" class="LineNr">3218 </span> <span class="Delimiter">}</span> +<span id="L3219" class="LineNr">3219 </span> <span class="muComment"># screen = args->left</span> +<span id="L3220" class="LineNr">3220 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L3221" class="LineNr">3221 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L3222" class="LineNr">3222 </span> <span class="Delimiter">{</span> +<span id="L3223" class="LineNr">3223 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L3224" class="LineNr">3224 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L3225" class="LineNr">3225 </span> <span class="PreProc">break-if-=</span> +<span id="L3226" class="LineNr">3226 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'height' is not a screen"</span> +<span id="L3227" class="LineNr">3227 </span> <span class="PreProc">return</span> +<span id="L3228" class="LineNr">3228 </span> <span class="Delimiter">}</span> +<span id="L3229" class="LineNr">3229 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L3230" class="LineNr">3230 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *screen-ah +<span id="L3231" class="LineNr">3231 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _screen +<span id="L3232" class="LineNr">3232 </span> <span class="muComment"># compute dimensions</span> +<span id="L3233" class="LineNr">3233 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L3234" class="LineNr">3234 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> +<span id="L3235" class="LineNr">3235 </span> dummy, height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L86'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L3236" class="LineNr">3236 </span> height <span class="Special"><-</span> shift-left <span class="Constant">4</span>/log2-font-height +<span id="L3237" class="LineNr">3237 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> convert height +<span id="L3238" class="LineNr">3238 </span> <a href='cell.mu.html#L97'>new-float</a> out, result +<span id="L3239" class="LineNr">3239 </span><span class="Delimiter">}</span> +<span id="L3240" class="LineNr">3240 </span> +<span id="L3241" class="LineNr">3241 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L3241'>apply-new-screen</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L3242" class="LineNr">3242 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'screen'"</span> +<span id="L3243" class="LineNr">3243 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L3244" class="LineNr">3244 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L3245" class="LineNr">3245 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L3246" class="LineNr">3246 </span> <span class="Delimiter">{</span> +<span id="L3247" class="LineNr">3247 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L3248" class="LineNr">3248 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L3249" class="LineNr">3249 </span> <span class="PreProc">break-if-=</span> +<span id="L3250" class="LineNr">3250 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'screen' are not a list"</span> +<span id="L3251" class="LineNr">3251 </span> <span class="PreProc">return</span> +<span id="L3252" class="LineNr">3252 </span> <span class="Delimiter">}</span> +<span id="L3253" class="LineNr">3253 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L3254" class="LineNr">3254 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L3255" class="LineNr">3255 </span> <span class="Delimiter">{</span> +<span id="L3256" class="LineNr">3256 </span> <span class="PreProc">break-if-=</span> +<span id="L3257" class="LineNr">3257 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'screen' needs 2 args but got 0"</span> +<span id="L3258" class="LineNr">3258 </span> <span class="PreProc">return</span> +<span id="L3259" class="LineNr">3259 </span> <span class="Delimiter">}</span> +<span id="L3260" class="LineNr">3260 </span> <span class="muComment"># args->left->value</span> +<span id="L3261" class="LineNr">3261 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L3262" class="LineNr">3262 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L3263" class="LineNr">3263 </span> <span class="Delimiter">{</span> +<span id="L3264" class="LineNr">3264 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L3265" class="LineNr">3265 </span> compare *first-type, <span class="Constant">1</span>/number +<span id="L3266" class="LineNr">3266 </span> <span class="PreProc">break-if-=</span> +<span id="L3267" class="LineNr">3267 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'screen' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> width in pixels)"</span> +<span id="L3268" class="LineNr">3268 </span> <span class="PreProc">return</span> +<span id="L3269" class="LineNr">3269 </span> <span class="Delimiter">}</span> +<span id="L3270" class="LineNr">3270 </span> <span class="PreProc">var</span> first-value-a/<span class="muRegEcx">ecx</span>: (addr float) <span class="Special"><-</span> get first, number-data +<span id="L3271" class="LineNr">3271 </span> <span class="PreProc">var</span> first-value/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> convert *first-value-a +<span id="L3272" class="LineNr">3272 </span> <span class="muComment"># args->right->left->value</span> +<span id="L3273" class="LineNr">3273 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L3274" class="LineNr">3274 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L3275" class="LineNr">3275 </span> <span class="Delimiter">{</span> +<span id="L3276" class="LineNr">3276 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L3277" class="LineNr">3277 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L3278" class="LineNr">3278 </span> <span class="PreProc">break-if-=</span> +<span id="L3279" class="LineNr">3279 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'screen' encountered non-pair"</span> +<span id="L3280" class="LineNr">3280 </span> <span class="PreProc">return</span> +<span id="L3281" class="LineNr">3281 </span> <span class="Delimiter">}</span> +<span id="L3282" class="LineNr">3282 </span> <span class="Delimiter">{</span> +<span id="L3283" class="LineNr">3283 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L3284" class="LineNr">3284 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L3285" class="LineNr">3285 </span> <span class="PreProc">break-if-=</span> +<span id="L3286" class="LineNr">3286 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'screen' needs 2 args but got 1"</span> +<span id="L3287" class="LineNr">3287 </span> <span class="PreProc">return</span> +<span id="L3288" class="LineNr">3288 </span> <span class="Delimiter">}</span> +<span id="L3289" class="LineNr">3289 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L3290" class="LineNr">3290 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L3291" class="LineNr">3291 </span> <span class="Delimiter">{</span> +<span id="L3292" class="LineNr">3292 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L3293" class="LineNr">3293 </span> compare *second-type, <span class="Constant">1</span>/number +<span id="L3294" class="LineNr">3294 </span> <span class="PreProc">break-if-=</span> +<span id="L3295" class="LineNr">3295 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'screen' is not a number (<a href='../500fake-screen.mu.html#L14'>screen</a> height in pixels)"</span> +<span id="L3296" class="LineNr">3296 </span> <span class="PreProc">return</span> +<span id="L3297" class="LineNr">3297 </span> <span class="Delimiter">}</span> +<span id="L3298" class="LineNr">3298 </span> <span class="PreProc">var</span> second-value-a/<span class="muRegEdx">edx</span>: (addr float) <span class="Special"><-</span> get second, number-data +<span id="L3299" class="LineNr">3299 </span> <span class="PreProc">var</span> second-value/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> convert *second-value-a +<span id="L3300" class="LineNr">3300 </span> <span class="muComment"># create fake screen</span> +<span id="L3301" class="LineNr">3301 </span> <a href='cell.mu.html#L154'>new-fake-screen</a> out, first-value, second-value, <span class="Constant">1</span>/pixel-graphics +<span id="L3302" class="LineNr">3302 </span><span class="Delimiter">}</span> +<span id="L3303" class="LineNr">3303 </span> +<span id="L3304" class="LineNr">3304 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L3304'>apply-blit</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), out: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L3305" class="LineNr">3305 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"eval"</span>, <span class="Constant">"apply 'blit'"</span> +<span id="L3306" class="LineNr">3306 </span> <span class="PreProc">var</span> args-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args-ah +<span id="L3307" class="LineNr">3307 </span> <span class="PreProc">var</span> _args/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *args-ah +<span id="L3308" class="LineNr">3308 </span> <span class="PreProc">var</span> args/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _args +<span id="L3309" class="LineNr">3309 </span> <span class="Delimiter">{</span> +<span id="L3310" class="LineNr">3310 </span> <span class="PreProc">var</span> args-type/eax: (addr int) <span class="Special"><-</span> get args, <span class="PreProc">type</span> +<span id="L3311" class="LineNr">3311 </span> compare *args-type, <span class="Constant">0</span>/pair +<span id="L3312" class="LineNr">3312 </span> <span class="PreProc">break-if-=</span> +<span id="L3313" class="LineNr">3313 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"args to 'blit' are not a list"</span> +<span id="L3314" class="LineNr">3314 </span> <span class="PreProc">return</span> +<span id="L3315" class="LineNr">3315 </span> <span class="Delimiter">}</span> +<span id="L3316" class="LineNr">3316 </span> <span class="PreProc">var</span> empty-args?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> args +<span id="L3317" class="LineNr">3317 </span> compare empty-args?, <span class="Constant">0</span>/false +<span id="L3318" class="LineNr">3318 </span> <span class="Delimiter">{</span> +<span id="L3319" class="LineNr">3319 </span> <span class="PreProc">break-if-=</span> +<span id="L3320" class="LineNr">3320 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'blit' needs 2 args but got 0"</span> +<span id="L3321" class="LineNr">3321 </span> <span class="PreProc">return</span> +<span id="L3322" class="LineNr">3322 </span> <span class="Delimiter">}</span> +<span id="L3323" class="LineNr">3323 </span> <span class="muComment"># screen = args->left</span> +<span id="L3324" class="LineNr">3324 </span> <span class="PreProc">var</span> first-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, left +<span id="L3325" class="LineNr">3325 </span> <span class="PreProc">var</span> first/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *first-ah +<span id="L3326" class="LineNr">3326 </span> <span class="Delimiter">{</span> +<span id="L3327" class="LineNr">3327 </span> <span class="PreProc">var</span> first-type/eax: (addr int) <span class="Special"><-</span> get first, <span class="PreProc">type</span> +<span id="L3328" class="LineNr">3328 </span> compare *first-type, <span class="Constant">5</span>/screen +<span id="L3329" class="LineNr">3329 </span> <span class="PreProc">break-if-=</span> +<span id="L3330" class="LineNr">3330 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"first arg for 'blit' is not a screen"</span> +<span id="L3331" class="LineNr">3331 </span> <span class="PreProc">return</span> +<span id="L3332" class="LineNr">3332 </span> <span class="Delimiter">}</span> +<span id="L3333" class="LineNr">3333 </span> <span class="PreProc">var</span> src-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get first, screen-data +<span id="L3334" class="LineNr">3334 </span> <span class="PreProc">var</span> _src/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *src-ah +<span id="L3335" class="LineNr">3335 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> copy _src +<span id="L3336" class="LineNr">3336 </span> <span class="muComment"># args->right->left</span> +<span id="L3337" class="LineNr">3337 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get args, right +<span id="L3338" class="LineNr">3338 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L3339" class="LineNr">3339 </span> <span class="Delimiter">{</span> +<span id="L3340" class="LineNr">3340 </span> <span class="PreProc">var</span> right-type/eax: (addr int) <span class="Special"><-</span> get right, <span class="PreProc">type</span> +<span id="L3341" class="LineNr">3341 </span> compare *right-type, <span class="Constant">0</span>/pair +<span id="L3342" class="LineNr">3342 </span> <span class="PreProc">break-if-=</span> +<span id="L3343" class="LineNr">3343 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'blit' encountered non-pair"</span> +<span id="L3344" class="LineNr">3344 </span> <span class="PreProc">return</span> +<span id="L3345" class="LineNr">3345 </span> <span class="Delimiter">}</span> +<span id="L3346" class="LineNr">3346 </span> <span class="Delimiter">{</span> +<span id="L3347" class="LineNr">3347 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right +<span id="L3348" class="LineNr">3348 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false +<span id="L3349" class="LineNr">3349 </span> <span class="PreProc">break-if-=</span> +<span id="L3350" class="LineNr">3350 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"'blit' needs 2 args but got 1"</span> +<span id="L3351" class="LineNr">3351 </span> <span class="PreProc">return</span> +<span id="L3352" class="LineNr">3352 </span> <span class="Delimiter">}</span> +<span id="L3353" class="LineNr">3353 </span> <span class="PreProc">var</span> second-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get right, left +<span id="L3354" class="LineNr">3354 </span> <span class="PreProc">var</span> second/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *second-ah +<span id="L3355" class="LineNr">3355 </span> <span class="Delimiter">{</span> +<span id="L3356" class="LineNr">3356 </span> <span class="PreProc">var</span> second-type/eax: (addr int) <span class="Special"><-</span> get second, <span class="PreProc">type</span> +<span id="L3357" class="LineNr">3357 </span> compare *second-type, <span class="Constant">5</span>/screen +<span id="L3358" class="LineNr">3358 </span> <span class="PreProc">break-if-=</span> +<span id="L3359" class="LineNr">3359 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"second arg for 'blit' is not a screen"</span> +<span id="L3360" class="LineNr">3360 </span> <span class="PreProc">return</span> +<span id="L3361" class="LineNr">3361 </span> <span class="Delimiter">}</span> +<span id="L3362" class="LineNr">3362 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> get second, screen-data +<span id="L3363" class="LineNr">3363 </span> <span class="PreProc">var</span> dest/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *dest-ah +<span id="L3364" class="LineNr">3364 </span> <span class="muComment">#</span> +<span id="L3365" class="LineNr">3365 </span> <a href='../500fake-screen.mu.html#L588'>convert-graphemes-to-pixels</a> src +<span id="L3366" class="LineNr">3366 </span> <a href='../500fake-screen.mu.html#L548'>copy-pixels</a> src, dest +<span id="L3367" class="LineNr">3367 </span><span class="Delimiter">}</span> </pre> </body> </html> diff --git a/html/shell/print.mu.html b/html/shell/print.mu.html index 8194b970..1e7c5374 100644 --- a/html/shell/print.mu.html +++ b/html/shell/print.mu.html @@ -1,35 +1,35 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/print.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -87,8 +87,8 @@ if ('onhashchange' in window) { <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">return</span> <span id="L25" class="LineNr"> 25 </span> <span class="Delimiter">}</span> <span id="L26" class="LineNr"> 26 </span> <span class="Delimiter">{</span> -<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> <a href='print.mu.html#L347'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> in-addr -<span id="L28" class="LineNr"> 28 </span> compare <a href='print.mu.html#L347'>nil?</a>, <span class="Constant">0</span>/false +<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> <a href='print.mu.html#L353'>nil?</a>/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> in-addr +<span id="L28" class="LineNr"> 28 </span> compare <a href='print.mu.html#L353'>nil?</a>, <span class="Constant">0</span>/false <span id="L29" class="LineNr"> 29 </span> <span class="PreProc">break-if-=</span> <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"()"</span> <span id="L31" class="LineNr"> 31 </span> compare overflow?, <span class="Constant">0</span>/false @@ -103,14 +103,14 @@ if ('onhashchange' in window) { <span id="L40" class="LineNr"> 40 </span> compare *in-type, <span class="Constant">0</span>/pair <span id="L41" class="LineNr"> 41 </span> <span class="Delimiter">{</span> <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">break-if-!=</span> -<span id="L43" class="LineNr"> 43 </span> <a href='print.mu.html#L235'>print-pair</a> in-addr, out, trace +<span id="L43" class="LineNr"> 43 </span> <a href='print.mu.html#L234'>print-pair</a> in-addr, out, trace <span id="L44" class="LineNr"> 44 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">return</span> <span id="L46" class="LineNr"> 46 </span> <span class="Delimiter">}</span> <span id="L47" class="LineNr"> 47 </span> compare *in-type, <span class="Constant">1</span>/number <span id="L48" class="LineNr"> 48 </span> <span class="Delimiter">{</span> <span id="L49" class="LineNr"> 49 </span> <span class="PreProc">break-if-!=</span> -<span id="L50" class="LineNr"> 50 </span> <a href='print.mu.html#L209'>print-number</a> in-addr, out, trace +<span id="L50" class="LineNr"> 50 </span> <a href='print.mu.html#L208'>print-number</a> in-addr, out, trace <span id="L51" class="LineNr"> 51 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace <span id="L52" class="LineNr"> 52 </span> <span class="PreProc">return</span> <span id="L53" class="LineNr"> 53 </span> <span class="Delimiter">}</span> @@ -223,7 +223,7 @@ if ('onhashchange' in window) { <span id="L160" class="LineNr">160 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-symbol: no space"</span> <span id="L161" class="LineNr">161 </span> <span class="PreProc">return</span> <span id="L162" class="LineNr">162 </span> <span class="Delimiter">}</span> -<span id="L163" class="LineNr">163 </span> <a href='../113write-stream.subx.html#L8'>write-stream</a> out, data +<span id="L163" class="LineNr">163 </span> <a href='../113write-stream.subx.html#L163'>write-stream-immutable</a> out, data <span id="L164" class="LineNr">164 </span> <span class="muComment"># trace</span> <span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace <span id="L166" class="LineNr">166 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false @@ -242,416 +242,422 @@ if ('onhashchange' in window) { <span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get in, text-data <span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> _data/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah <span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> data/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> copy _data -<span id="L182" class="LineNr">182 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> data -<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> _required-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L194'>stream-size</a> data -<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> required-space/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _required-space -<span id="L185" class="LineNr">185 </span> required-space <span class="Special"><-</span> add <span class="Constant">2</span> <span class="muComment"># for []</span> -<span id="L186" class="LineNr">186 </span> <span class="PreProc">var</span> available-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out -<span id="L187" class="LineNr">187 </span> compare required-space, available-space -<span id="L188" class="LineNr">188 </span> <span class="Delimiter">{</span> -<span id="L189" class="LineNr">189 </span> <span class="PreProc">break-if-<=</span> -<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> -<span id="L191" class="LineNr">191 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-stream: no space"</span> -<span id="L192" class="LineNr">192 </span> <span class="PreProc">return</span> -<span id="L193" class="LineNr">193 </span> <span class="Delimiter">}</span> -<span id="L194" class="LineNr">194 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">"["</span> -<span id="L195" class="LineNr">195 </span> <a href='../113write-stream.subx.html#L8'>write-stream</a> out, data -<span id="L196" class="LineNr">196 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">"]"</span> -<span id="L197" class="LineNr">197 </span> <span class="muComment"># trace</span> -<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace -<span id="L199" class="LineNr">199 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false -<span id="L200" class="LineNr">200 </span> <span class="PreProc">break-if-=</span> -<span id="L201" class="LineNr">201 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> data -<span id="L202" class="LineNr">202 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> stream/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage -<span id="L204" class="LineNr">204 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"=> stream "</span> -<span id="L205" class="LineNr">205 </span> <a href='../113write-stream.subx.html#L8'>write-stream</a> stream, data -<span id="L206" class="LineNr">206 </span> trace trace, <span class="Constant">"print"</span>, stream -<span id="L207" class="LineNr">207 </span><span class="Delimiter">}</span> -<span id="L208" class="LineNr">208 </span> -<span id="L209" class="LineNr">209 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L209'>print-number</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr stream byte), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L210" class="LineNr">210 </span> <span class="PreProc">var</span> available-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out -<span id="L211" class="LineNr">211 </span> compare available-space, <span class="Constant">0x10</span> -<span id="L212" class="LineNr">212 </span> <span class="Delimiter">{</span> -<span id="L213" class="LineNr">213 </span> <span class="PreProc">break-if->=</span> -<span id="L214" class="LineNr">214 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> -<span id="L215" class="LineNr">215 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-number: no space"</span> -<span id="L216" class="LineNr">216 </span> <span class="PreProc">return</span> -<span id="L217" class="LineNr">217 </span> <span class="Delimiter">}</span> -<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L219" class="LineNr">219 </span> <span class="PreProc">var</span> val/eax: (addr float) <span class="Special"><-</span> get in, number-data -<span id="L220" class="LineNr">220 </span> <a href='../412render-float-decimal.mu.html#L163'>write-float-decimal-approximate</a> out, *val, <span class="Constant">0x10</span>/precision -<span id="L221" class="LineNr">221 </span> <span class="muComment"># trace</span> -<span id="L222" class="LineNr">222 </span> <span class="Delimiter">{</span> -<span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace -<span id="L224" class="LineNr">224 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false -<span id="L225" class="LineNr">225 </span> <span class="PreProc">break-if-!=</span> -<span id="L226" class="LineNr">226 </span> <span class="PreProc">return</span> -<span id="L227" class="LineNr">227 </span> <span class="Delimiter">}</span> -<span id="L228" class="LineNr">228 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> stream/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage -<span id="L230" class="LineNr">230 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"=> number "</span> -<span id="L231" class="LineNr">231 </span> <a href='../412render-float-decimal.mu.html#L163'>write-float-decimal-approximate</a> stream, *val, <span class="Constant">0x10</span>/precision -<span id="L232" class="LineNr">232 </span> trace trace, <span class="Constant">"print"</span>, stream -<span id="L233" class="LineNr">233 </span><span class="Delimiter">}</span> -<span id="L234" class="LineNr">234 </span> -<span id="L235" class="LineNr">235 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L235'>print-pair</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr stream byte), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L236" class="LineNr">236 </span> <span class="muComment"># if in starts with a quote, print the quote outside the expression</span> -<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> left-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left -<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> _left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-ah -<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _left -<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> is-quote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"'"</span> -<span id="L242" class="LineNr">242 </span> compare is-quote?, <span class="Constant">0</span>/false -<span id="L243" class="LineNr">243 </span> <span class="Delimiter">{</span> -<span id="L244" class="LineNr">244 </span> <span class="PreProc">break-if-=</span> -<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"'"</span> -<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L247" class="LineNr">247 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace -<span id="L248" class="LineNr">248 </span> <span class="PreProc">return</span> -<span id="L249" class="LineNr">249 </span> <span class="Delimiter">}</span> -<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> is-backquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"`"</span> -<span id="L251" class="LineNr">251 </span> compare is-backquote?, <span class="Constant">0</span>/false -<span id="L252" class="LineNr">252 </span> <span class="Delimiter">{</span> -<span id="L253" class="LineNr">253 </span> <span class="PreProc">break-if-=</span> -<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"`"</span> -<span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L256" class="LineNr">256 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace -<span id="L257" class="LineNr">257 </span> <span class="PreProc">return</span> -<span id="L258" class="LineNr">258 </span> <span class="Delimiter">}</span> -<span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> is-unquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">","</span> -<span id="L260" class="LineNr">260 </span> compare is-unquote?, <span class="Constant">0</span>/false -<span id="L261" class="LineNr">261 </span> <span class="Delimiter">{</span> -<span id="L262" class="LineNr">262 </span> <span class="PreProc">break-if-=</span> -<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">","</span> -<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L265" class="LineNr">265 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace -<span id="L266" class="LineNr">266 </span> <span class="PreProc">return</span> -<span id="L267" class="LineNr">267 </span> <span class="Delimiter">}</span> -<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> is-unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">",@"</span> -<span id="L269" class="LineNr">269 </span> compare is-unquote-splice?, <span class="Constant">0</span>/false -<span id="L270" class="LineNr">270 </span> <span class="Delimiter">{</span> -<span id="L271" class="LineNr">271 </span> <span class="PreProc">break-if-=</span> -<span id="L272" class="LineNr">272 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">",@"</span> -<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L274" class="LineNr">274 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace -<span id="L275" class="LineNr">275 </span> <span class="PreProc">return</span> -<span id="L276" class="LineNr">276 </span> <span class="Delimiter">}</span> -<span id="L277" class="LineNr">277 </span> <span class="muComment">#</span> -<span id="L278" class="LineNr">278 </span> <span class="PreProc">var</span> curr/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L279" class="LineNr">279 </span> <span class="Delimiter">{</span> -<span id="L280" class="LineNr">280 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"("</span> -<span id="L281" class="LineNr">281 </span> compare overflow?, <span class="Constant">0</span>/false -<span id="L282" class="LineNr">282 </span> <span class="PreProc">break-if-=</span> -<span id="L283" class="LineNr">283 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space for '('"</span> -<span id="L284" class="LineNr">284 </span> <span class="PreProc">return</span> -<span id="L285" class="LineNr">285 </span> <span class="Delimiter">}</span> -<span id="L286" class="LineNr">286 </span> $print-pair:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> -<span id="L287" class="LineNr">287 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, left -<span id="L288" class="LineNr">288 </span> <a href='print.mu.html#L7'>print-cell</a> left, out, trace -<span id="L289" class="LineNr">289 </span> <span class="muComment"># errors? skip</span> -<span id="L290" class="LineNr">290 </span> <span class="Delimiter">{</span> -<span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace -<span id="L292" class="LineNr">292 </span> compare error?, <span class="Constant">0</span>/false -<span id="L293" class="LineNr">293 </span> <span class="PreProc">break-if-=</span> -<span id="L294" class="LineNr">294 </span> <span class="PreProc">return</span> -<span id="L295" class="LineNr">295 </span> <span class="Delimiter">}</span> -<span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, right -<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> right-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right -<span id="L298" class="LineNr">298 </span> <span class="Delimiter">{</span> -<span id="L299" class="LineNr">299 </span> compare right-addr, <span class="Constant">0</span> -<span id="L300" class="LineNr">300 </span> <span class="PreProc">break-if-!=</span> -<span id="L301" class="LineNr">301 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"NULL in print!"</span> -<span id="L302" class="LineNr">302 </span> <span class="Delimiter">}</span> -<span id="L303" class="LineNr">303 </span> <span class="Delimiter">{</span> -<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> right-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L347'>nil?</a> right-addr -<span id="L305" class="LineNr">305 </span> compare right-nil?, <span class="Constant">0</span>/false -<span id="L306" class="LineNr">306 </span> <span class="Delimiter">{</span> -<span id="L307" class="LineNr">307 </span> <span class="PreProc">break-if-=</span> -<span id="L308" class="LineNr">308 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"print"</span>, <span class="Constant">"right is nil"</span> -<span id="L309" class="LineNr">309 </span> <span class="PreProc">break</span> $print-pair:<span class="PreProc">loop</span> -<span id="L310" class="LineNr">310 </span> <span class="Delimiter">}</span> -<span id="L311" class="LineNr">311 </span> <span class="Delimiter">}</span> -<span id="L312" class="LineNr">312 </span> <span class="Delimiter">{</span> -<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">" "</span> -<span id="L314" class="LineNr">314 </span> compare overflow?, <span class="Constant">0</span>/false -<span id="L315" class="LineNr">315 </span> <span class="PreProc">break-if-=</span> -<span id="L316" class="LineNr">316 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space"</span> -<span id="L317" class="LineNr">317 </span> <span class="PreProc">return</span> -<span id="L318" class="LineNr">318 </span> <span class="Delimiter">}</span> -<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> right-type-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get right-addr, <span class="PreProc">type</span> -<span id="L320" class="LineNr">320 </span> <span class="Delimiter">{</span> -<span id="L321" class="LineNr">321 </span> compare *right-type-addr, <span class="Constant">0</span>/pair -<span id="L322" class="LineNr">322 </span> <span class="PreProc">break-if-=</span> -<span id="L323" class="LineNr">323 </span> <span class="Delimiter">{</span> -<span id="L324" class="LineNr">324 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">". "</span> -<span id="L325" class="LineNr">325 </span> compare overflow?, <span class="Constant">0</span>/false -<span id="L326" class="LineNr">326 </span> <span class="PreProc">break-if-=</span> -<span id="L327" class="LineNr">327 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space"</span> -<span id="L328" class="LineNr">328 </span> <span class="PreProc">return</span> -<span id="L329" class="LineNr">329 </span> <span class="Delimiter">}</span> -<span id="L330" class="LineNr">330 </span> <a href='print.mu.html#L7'>print-cell</a> right, out, trace -<span id="L331" class="LineNr">331 </span> <span class="PreProc">break</span> $print-pair:<span class="PreProc">loop</span> -<span id="L332" class="LineNr">332 </span> <span class="Delimiter">}</span> -<span id="L333" class="LineNr">333 </span> curr <span class="Special"><-</span> copy right-addr -<span id="L334" class="LineNr">334 </span> <span class="PreProc">loop</span> -<span id="L335" class="LineNr">335 </span> <span class="Delimiter">}</span> -<span id="L336" class="LineNr">336 </span> <span class="Delimiter">{</span> -<span id="L337" class="LineNr">337 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">")"</span> -<span id="L338" class="LineNr">338 </span> compare overflow?, <span class="Constant">0</span>/false -<span id="L339" class="LineNr">339 </span> <span class="PreProc">break-if-=</span> -<span id="L340" class="LineNr">340 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space for ')'"</span> -<span id="L341" class="LineNr">341 </span> <span class="PreProc">return</span> -<span id="L342" class="LineNr">342 </span> <span class="Delimiter">}</span> -<span id="L343" class="LineNr">343 </span><span class="Delimiter">}</span> -<span id="L344" class="LineNr">344 </span> -<span id="L345" class="LineNr">345 </span><span class="muComment"># Most lisps intern nil, but we don't really have globals yet, so we'll be</span> -<span id="L346" class="LineNr">346 </span><span class="muComment"># less efficient for now.</span> -<span id="L347" class="LineNr">347 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L347'>nil?</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L348" class="LineNr">348 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in -<span id="L349" class="LineNr">349 </span> <span class="muComment"># if type != pair, return false</span> -<span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get in, <span class="PreProc">type</span> -<span id="L351" class="LineNr">351 </span> compare *<span class="PreProc">type</span>, <span class="Constant">0</span>/pair -<span id="L352" class="LineNr">352 </span> <span class="Delimiter">{</span> -<span id="L353" class="LineNr">353 </span> <span class="PreProc">break-if-=</span> -<span id="L354" class="LineNr">354 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L355" class="LineNr">355 </span> <span class="Delimiter">}</span> -<span id="L356" class="LineNr">356 </span> <span class="muComment"># if left != null, return false</span> -<span id="L357" class="LineNr">357 </span> <span class="PreProc">var</span> left-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left -<span id="L358" class="LineNr">358 </span> <span class="PreProc">var</span> left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-ah -<span id="L359" class="LineNr">359 </span> compare left, <span class="Constant">0</span> -<span id="L360" class="LineNr">360 </span> <span class="Delimiter">{</span> -<span id="L361" class="LineNr">361 </span> <span class="PreProc">break-if-=</span> -<span id="L362" class="LineNr">362 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L363" class="LineNr">363 </span> <span class="Delimiter">}</span> -<span id="L364" class="LineNr">364 </span> <span class="muComment"># if right != null, return false</span> -<span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right -<span id="L366" class="LineNr">366 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah -<span id="L367" class="LineNr">367 </span> compare right, <span class="Constant">0</span> -<span id="L368" class="LineNr">368 </span> <span class="Delimiter">{</span> -<span id="L369" class="LineNr">369 </span> <span class="PreProc">break-if-=</span> -<span id="L370" class="LineNr">370 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false -<span id="L371" class="LineNr">371 </span> <span class="Delimiter">}</span> -<span id="L372" class="LineNr">372 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true -<span id="L373" class="LineNr">373 </span><span class="Delimiter">}</span> -<span id="L374" class="LineNr">374 </span> -<span id="L375" class="LineNr">375 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L375'>test-print-cell-zero</a></span> <span class="Delimiter">{</span> -<span id="L376" class="LineNr">376 </span> <span class="PreProc">var</span> num-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L377" class="LineNr">377 </span> <span class="PreProc">var</span> num/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address num-storage -<span id="L378" class="LineNr">378 </span> <a href='cell.mu.html#L84'>new-integer</a> num, <span class="Constant">0</span> -<span id="L379" class="LineNr">379 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L380" class="LineNr">380 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L382" class="LineNr">382 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L383" class="LineNr">383 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L384" class="LineNr">384 </span> <a href='print.mu.html#L7'>print-cell</a> num, out, trace -<span id="L385" class="LineNr">385 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"0"</span>, <span class="Constant">"F - test-print-cell-zero"</span> -<span id="L386" class="LineNr">386 </span><span class="Delimiter">}</span> -<span id="L387" class="LineNr">387 </span> -<span id="L388" class="LineNr">388 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L388'>test-print-cell-integer</a></span> <span class="Delimiter">{</span> -<span id="L389" class="LineNr">389 </span> <span class="PreProc">var</span> num-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L390" class="LineNr">390 </span> <span class="PreProc">var</span> num/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address num-storage -<span id="L391" class="LineNr">391 </span> <a href='cell.mu.html#L84'>new-integer</a> num, <span class="Constant">1</span> -<span id="L392" class="LineNr">392 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L393" class="LineNr">393 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L394" class="LineNr">394 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L395" class="LineNr">395 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L396" class="LineNr">396 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L397" class="LineNr">397 </span> <a href='print.mu.html#L7'>print-cell</a> num, out, trace -<span id="L398" class="LineNr">398 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"1"</span>, <span class="Constant">"F - test-print-cell-integer"</span> -<span id="L399" class="LineNr">399 </span><span class="Delimiter">}</span> -<span id="L400" class="LineNr">400 </span> -<span id="L401" class="LineNr">401 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L401'>test-print-cell-integer-2</a></span> <span class="Delimiter">{</span> -<span id="L402" class="LineNr">402 </span> <span class="PreProc">var</span> num-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L403" class="LineNr">403 </span> <span class="PreProc">var</span> num/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address num-storage -<span id="L404" class="LineNr">404 </span> <a href='cell.mu.html#L84'>new-integer</a> num, <span class="Constant">0x30</span> -<span id="L405" class="LineNr">405 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L406" class="LineNr">406 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L407" class="LineNr">407 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L409" class="LineNr">409 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L410" class="LineNr">410 </span> <a href='print.mu.html#L7'>print-cell</a> num, out, trace -<span id="L411" class="LineNr">411 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"48"</span>, <span class="Constant">"F - test-print-cell-integer-2"</span> -<span id="L412" class="LineNr">412 </span><span class="Delimiter">}</span> -<span id="L413" class="LineNr">413 </span> -<span id="L414" class="LineNr">414 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L414'>test-print-cell-fraction</a></span> <span class="Delimiter">{</span> -<span id="L415" class="LineNr">415 </span> <span class="PreProc">var</span> num-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L416" class="LineNr">416 </span> <span class="PreProc">var</span> num/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address num-storage -<span id="L417" class="LineNr">417 </span> <span class="PreProc">var</span> val/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='../408float.mu.html#L18'>rational</a> <span class="Constant">1</span>, <span class="Constant">2</span> -<span id="L418" class="LineNr">418 </span> <a href='cell.mu.html#L97'>new-float</a> num, val -<span id="L419" class="LineNr">419 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L420" class="LineNr">420 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L421" class="LineNr">421 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L422" class="LineNr">422 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L423" class="LineNr">423 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L424" class="LineNr">424 </span> <a href='print.mu.html#L7'>print-cell</a> num, out, trace -<span id="L425" class="LineNr">425 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"0.5"</span>, <span class="Constant">"F - test-print-cell-fraction"</span> -<span id="L426" class="LineNr">426 </span><span class="Delimiter">}</span> -<span id="L427" class="LineNr">427 </span> -<span id="L428" class="LineNr">428 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L428'>test-print-cell-symbol</a></span> <span class="Delimiter">{</span> -<span id="L429" class="LineNr">429 </span> <span class="PreProc">var</span> sym-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L430" class="LineNr">430 </span> <span class="PreProc">var</span> sym/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address sym-storage -<span id="L431" class="LineNr">431 </span> <a href='cell.mu.html#L39'>new-symbol</a> sym, <span class="Constant">"abc"</span> -<span id="L432" class="LineNr">432 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L433" class="LineNr">433 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L434" class="LineNr">434 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L435" class="LineNr">435 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L436" class="LineNr">436 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L437" class="LineNr">437 </span> <a href='print.mu.html#L7'>print-cell</a> sym, out, trace -<span id="L438" class="LineNr">438 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"abc"</span>, <span class="Constant">"F - test-print-cell-symbol"</span> -<span id="L439" class="LineNr">439 </span><span class="Delimiter">}</span> -<span id="L440" class="LineNr">440 </span> -<span id="L441" class="LineNr">441 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L441'>test-print-cell-nil-list</a></span> <span class="Delimiter">{</span> -<span id="L442" class="LineNr">442 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L443" class="LineNr">443 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L444" class="LineNr">444 </span> <a href='cell.mu.html#L102'>allocate-pair</a> <a href='cell.mu.html#L121'>nil</a> -<span id="L445" class="LineNr">445 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L446" class="LineNr">446 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L447" class="LineNr">447 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L448" class="LineNr">448 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L449" class="LineNr">449 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L450" class="LineNr">450 </span> <a href='print.mu.html#L7'>print-cell</a> <a href='cell.mu.html#L121'>nil</a>, out, trace -<span id="L451" class="LineNr">451 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"()"</span>, <span class="Constant">"F - test-print-cell-nil-list"</span> -<span id="L452" class="LineNr">452 </span><span class="Delimiter">}</span> -<span id="L453" class="LineNr">453 </span> -<span id="L454" class="LineNr">454 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L454'>test-print-cell-singleton-list</a></span> <span class="Delimiter">{</span> -<span id="L455" class="LineNr">455 </span> <span class="muComment"># list</span> -<span id="L456" class="LineNr">456 </span> <span class="PreProc">var</span> left-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L457" class="LineNr">457 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address left-storage -<span id="L458" class="LineNr">458 </span> <a href='cell.mu.html#L39'>new-symbol</a> left, <span class="Constant">"abc"</span> -<span id="L459" class="LineNr">459 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L460" class="LineNr">460 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L461" class="LineNr">461 </span> <a href='cell.mu.html#L102'>allocate-pair</a> <a href='cell.mu.html#L121'>nil</a> -<span id="L462" class="LineNr">462 </span> <span class="PreProc">var</span> list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L463" class="LineNr">463 </span> <span class="PreProc">var</span> list/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address list-storage -<span id="L464" class="LineNr">464 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *nil -<span id="L465" class="LineNr">465 </span> <span class="muComment">#</span> -<span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L467" class="LineNr">467 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L468" class="LineNr">468 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L469" class="LineNr">469 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L470" class="LineNr">470 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L471" class="LineNr">471 </span> <a href='print.mu.html#L7'>print-cell</a> list, out, trace -<span id="L472" class="LineNr">472 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"(abc)"</span>, <span class="Constant">"F - test-print-cell-singleton-list"</span> -<span id="L473" class="LineNr">473 </span><span class="Delimiter">}</span> -<span id="L474" class="LineNr">474 </span> -<span id="L475" class="LineNr">475 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L475'>test-print-cell-list</a></span> <span class="Delimiter">{</span> -<span id="L476" class="LineNr">476 </span> <span class="muComment"># list = cons "abc", nil</span> -<span id="L477" class="LineNr">477 </span> <span class="PreProc">var</span> left-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L478" class="LineNr">478 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address left-storage -<span id="L479" class="LineNr">479 </span> <a href='cell.mu.html#L39'>new-symbol</a> left, <span class="Constant">"abc"</span> -<span id="L480" class="LineNr">480 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L481" class="LineNr">481 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L482" class="LineNr">482 </span> <a href='cell.mu.html#L102'>allocate-pair</a> <a href='cell.mu.html#L121'>nil</a> -<span id="L483" class="LineNr">483 </span> <span class="PreProc">var</span> list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L484" class="LineNr">484 </span> <span class="PreProc">var</span> list/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address list-storage -<span id="L485" class="LineNr">485 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *nil -<span id="L486" class="LineNr">486 </span> <span class="muComment"># list = cons 64, list</span> -<span id="L487" class="LineNr">487 </span> <a href='cell.mu.html#L84'>new-integer</a> left, <span class="Constant">0x40</span> -<span id="L488" class="LineNr">488 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *list -<span id="L489" class="LineNr">489 </span> <span class="muComment">#</span> -<span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L491" class="LineNr">491 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L492" class="LineNr">492 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L493" class="LineNr">493 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L494" class="LineNr">494 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L495" class="LineNr">495 </span> <a href='print.mu.html#L7'>print-cell</a> list, out, trace -<span id="L496" class="LineNr">496 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"(64 abc)"</span>, <span class="Constant">"F - test-print-cell-list"</span> -<span id="L497" class="LineNr">497 </span><span class="Delimiter">}</span> -<span id="L498" class="LineNr">498 </span> -<span id="L499" class="LineNr">499 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L499'>test-print-cell-list-of-nil</a></span> <span class="Delimiter">{</span> -<span id="L500" class="LineNr">500 </span> <span class="muComment"># list = cons "abc", nil</span> -<span id="L501" class="LineNr">501 </span> <span class="PreProc">var</span> left-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L502" class="LineNr">502 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address left-storage -<span id="L503" class="LineNr">503 </span> <a href='cell.mu.html#L102'>allocate-pair</a> left -<span id="L504" class="LineNr">504 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L505" class="LineNr">505 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L506" class="LineNr">506 </span> <a href='cell.mu.html#L102'>allocate-pair</a> <a href='cell.mu.html#L121'>nil</a> -<span id="L507" class="LineNr">507 </span> <span class="PreProc">var</span> list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L508" class="LineNr">508 </span> <span class="PreProc">var</span> list/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address list-storage -<span id="L509" class="LineNr">509 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *nil -<span id="L510" class="LineNr">510 </span> <span class="muComment"># list = cons 64, list</span> -<span id="L511" class="LineNr">511 </span> <a href='cell.mu.html#L84'>new-integer</a> left, <span class="Constant">0x40</span> -<span id="L512" class="LineNr">512 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *list -<span id="L513" class="LineNr">513 </span> <span class="muComment">#</span> -<span id="L514" class="LineNr">514 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L515" class="LineNr">515 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L516" class="LineNr">516 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L517" class="LineNr">517 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L518" class="LineNr">518 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L519" class="LineNr">519 </span> <a href='print.mu.html#L7'>print-cell</a> list, out, trace -<span id="L520" class="LineNr">520 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"(64 ())"</span>, <span class="Constant">"F - test-print-cell-list-nil"</span> -<span id="L521" class="LineNr">521 </span><span class="Delimiter">}</span> -<span id="L522" class="LineNr">522 </span> -<span id="L523" class="LineNr">523 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L523'>test-print-dotted-list</a></span> <span class="Delimiter">{</span> -<span id="L524" class="LineNr">524 </span> <span class="muComment"># list = cons 64, "abc"</span> -<span id="L525" class="LineNr">525 </span> <span class="PreProc">var</span> left-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L526" class="LineNr">526 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address left-storage -<span id="L527" class="LineNr">527 </span> <a href='cell.mu.html#L39'>new-symbol</a> left, <span class="Constant">"abc"</span> -<span id="L528" class="LineNr">528 </span> <span class="PreProc">var</span> right-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L529" class="LineNr">529 </span> <span class="PreProc">var</span> right/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address right-storage -<span id="L530" class="LineNr">530 </span> <a href='cell.mu.html#L84'>new-integer</a> right, <span class="Constant">0x40</span> -<span id="L531" class="LineNr">531 </span> <span class="PreProc">var</span> list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L532" class="LineNr">532 </span> <span class="PreProc">var</span> list/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address list-storage -<span id="L533" class="LineNr">533 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *right -<span id="L534" class="LineNr">534 </span> <span class="muComment">#</span> -<span id="L535" class="LineNr">535 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) -<span id="L536" class="LineNr">536 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L537" class="LineNr">537 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L538" class="LineNr">538 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L539" class="LineNr">539 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L540" class="LineNr">540 </span> <a href='print.mu.html#L7'>print-cell</a> list, out, trace -<span id="L541" class="LineNr">541 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"(abc . 64)"</span>, <span class="Constant">"F - test-print-dotted-list"</span> -<span id="L542" class="LineNr">542 </span><span class="Delimiter">}</span> -<span id="L543" class="LineNr">543 </span> -<span id="L544" class="LineNr">544 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L544'>test-print-cell-interrupted</a></span> <span class="Delimiter">{</span> -<span id="L545" class="LineNr">545 </span> <span class="PreProc">var</span> sym-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L546" class="LineNr">546 </span> <span class="PreProc">var</span> sym/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address sym-storage -<span id="L547" class="LineNr">547 </span> <a href='cell.mu.html#L39'>new-symbol</a> sym, <span class="Constant">"abcd"</span> <span class="muComment"># requires 4 bytes</span> -<span id="L548" class="LineNr">548 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">3</span>) <span class="muComment"># space for just 3 bytes</span> -<span id="L549" class="LineNr">549 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L550" class="LineNr">550 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L551" class="LineNr">551 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L552" class="LineNr">552 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L553" class="LineNr">553 </span> <a href='print.mu.html#L7'>print-cell</a> sym, out, trace -<span id="L554" class="LineNr">554 </span> <span class="muComment"># insufficient space to print out the symbol; print out ellipses if we can</span> -<span id="L555" class="LineNr">555 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"..."</span>, <span class="Constant">"F - test-print-cell-interrupted"</span> -<span id="L556" class="LineNr">556 </span><span class="Delimiter">}</span> -<span id="L557" class="LineNr">557 </span> -<span id="L558" class="LineNr">558 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L558'>test-print-cell-impossible</a></span> <span class="Delimiter">{</span> -<span id="L559" class="LineNr">559 </span> <span class="PreProc">var</span> sym-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L560" class="LineNr">560 </span> <span class="PreProc">var</span> sym/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address sym-storage -<span id="L561" class="LineNr">561 </span> <a href='cell.mu.html#L39'>new-symbol</a> sym, <span class="Constant">"abcd"</span> <span class="muComment"># requires 4 bytes</span> -<span id="L562" class="LineNr">562 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">2</span>) -<span id="L563" class="LineNr">563 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L564" class="LineNr">564 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L565" class="LineNr">565 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L566" class="LineNr">566 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L567" class="LineNr">567 </span> <a href='print.mu.html#L7'>print-cell</a> sym, out, trace -<span id="L568" class="LineNr">568 </span> <span class="muComment"># insufficient space even for ellipses; print nothing</span> -<span id="L569" class="LineNr">569 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - test-print-cell-impossible"</span> -<span id="L570" class="LineNr">570 </span><span class="Delimiter">}</span> -<span id="L571" class="LineNr">571 </span> -<span id="L572" class="LineNr">572 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L572'>test-print-cell-interrupted-list</a></span> <span class="Delimiter">{</span> -<span id="L573" class="LineNr">573 </span> <span class="muComment"># list = (abcd) requires 6 bytes</span> -<span id="L574" class="LineNr">574 </span> <span class="PreProc">var</span> left-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L575" class="LineNr">575 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address left-storage -<span id="L576" class="LineNr">576 </span> <a href='cell.mu.html#L39'>new-symbol</a> left, <span class="Constant">"abcd"</span> -<span id="L577" class="LineNr">577 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L578" class="LineNr">578 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage -<span id="L579" class="LineNr">579 </span> <a href='cell.mu.html#L102'>allocate-pair</a> <a href='cell.mu.html#L121'>nil</a> -<span id="L580" class="LineNr">580 </span> <span class="PreProc">var</span> list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) -<span id="L581" class="LineNr">581 </span> <span class="PreProc">var</span> list/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address list-storage -<span id="L582" class="LineNr">582 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *nil -<span id="L583" class="LineNr">583 </span> <span class="muComment">#</span> -<span id="L584" class="LineNr">584 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">4</span>) <span class="muComment"># space for just 4 bytes</span> -<span id="L585" class="LineNr">585 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage -<span id="L586" class="LineNr">586 </span> <span class="PreProc">var</span> trace-storage: trace -<span id="L587" class="LineNr">587 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage -<span id="L588" class="LineNr">588 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible -<span id="L589" class="LineNr">589 </span> <a href='print.mu.html#L7'>print-cell</a> list, out, trace -<span id="L590" class="LineNr">590 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"(..."</span>, <span class="Constant">"F - test-print-cell-interrupted-list"</span> -<span id="L591" class="LineNr">591 </span><span class="Delimiter">}</span> +<span id="L182" class="LineNr">182 </span> <span class="PreProc">var</span> _required-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L194'>stream-size</a> data +<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> required-space/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy _required-space +<span id="L184" class="LineNr">184 </span> required-space <span class="Special"><-</span> add <span class="Constant">2</span> <span class="muComment"># for []</span> +<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> available-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out +<span id="L186" class="LineNr">186 </span> compare required-space, available-space +<span id="L187" class="LineNr">187 </span> <span class="Delimiter">{</span> +<span id="L188" class="LineNr">188 </span> <span class="PreProc">break-if-<=</span> +<span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> +<span id="L190" class="LineNr">190 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-stream: no space"</span> +<span id="L191" class="LineNr">191 </span> <span class="PreProc">return</span> +<span id="L192" class="LineNr">192 </span> <span class="Delimiter">}</span> +<span id="L193" class="LineNr">193 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">"["</span> +<span id="L194" class="LineNr">194 </span> <a href='../113write-stream.subx.html#L163'>write-stream-immutable</a> out, data +<span id="L195" class="LineNr">195 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">"]"</span> +<span id="L196" class="LineNr">196 </span> <span class="muComment"># trace</span> +<span id="L197" class="LineNr">197 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L198" class="LineNr">198 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false +<span id="L199" class="LineNr">199 </span> <span class="PreProc">break-if-=</span> +<span id="L200" class="LineNr">200 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> data +<span id="L201" class="LineNr">201 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L202" class="LineNr">202 </span> <span class="PreProc">var</span> stream/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage +<span id="L203" class="LineNr">203 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"=> stream "</span> +<span id="L204" class="LineNr">204 </span> <a href='../113write-stream.subx.html#L163'>write-stream-immutable</a> stream, data +<span id="L205" class="LineNr">205 </span> trace trace, <span class="Constant">"print"</span>, stream +<span id="L206" class="LineNr">206 </span><span class="Delimiter">}</span> +<span id="L207" class="LineNr">207 </span> +<span id="L208" class="LineNr">208 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L208'>print-number</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr stream byte), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> available-space/eax: int <span class="Special"><-</span> <a href='../108write.subx.html#L176'>space-remaining-in-stream</a> out +<span id="L210" class="LineNr">210 </span> compare available-space, <span class="Constant">0x10</span> +<span id="L211" class="LineNr">211 </span> <span class="Delimiter">{</span> +<span id="L212" class="LineNr">212 </span> <span class="PreProc">break-if->=</span> +<span id="L213" class="LineNr">213 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"..."</span> +<span id="L214" class="LineNr">214 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-number: no space"</span> +<span id="L215" class="LineNr">215 </span> <span class="PreProc">return</span> +<span id="L216" class="LineNr">216 </span> <span class="Delimiter">}</span> +<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in +<span id="L218" class="LineNr">218 </span> <span class="PreProc">var</span> val/eax: (addr float) <span class="Special"><-</span> get in, number-data +<span id="L219" class="LineNr">219 </span> <a href='../412render-float-decimal.mu.html#L163'>write-float-decimal-approximate</a> out, *val, <span class="Constant">0x10</span>/precision +<span id="L220" class="LineNr">220 </span> <span class="muComment"># trace</span> +<span id="L221" class="LineNr">221 </span> <span class="Delimiter">{</span> +<span id="L222" class="LineNr">222 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace +<span id="L223" class="LineNr">223 </span> compare <a href='trace.mu.html#L123'>should-trace?</a>, <span class="Constant">0</span>/false +<span id="L224" class="LineNr">224 </span> <span class="PreProc">break-if-!=</span> +<span id="L225" class="LineNr">225 </span> <span class="PreProc">return</span> +<span id="L226" class="LineNr">226 </span> <span class="Delimiter">}</span> +<span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L228" class="LineNr">228 </span> <span class="PreProc">var</span> stream/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage +<span id="L229" class="LineNr">229 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"=> number "</span> +<span id="L230" class="LineNr">230 </span> <a href='../412render-float-decimal.mu.html#L163'>write-float-decimal-approximate</a> stream, *val, <span class="Constant">0x10</span>/precision +<span id="L231" class="LineNr">231 </span> trace trace, <span class="Constant">"print"</span>, stream +<span id="L232" class="LineNr">232 </span><span class="Delimiter">}</span> +<span id="L233" class="LineNr">233 </span> +<span id="L234" class="LineNr">234 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L234'>print-pair</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr stream byte), trace: (addr trace) <span class="Delimiter">{</span> +<span id="L235" class="LineNr">235 </span> <span class="muComment"># if in starts with a quote, print the quote outside the expression</span> +<span id="L236" class="LineNr">236 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in +<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> left-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left +<span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> _left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-ah +<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _left +<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> is-quote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"'"</span> +<span id="L241" class="LineNr">241 </span> compare is-quote?, <span class="Constant">0</span>/false +<span id="L242" class="LineNr">242 </span> <span class="Delimiter">{</span> +<span id="L243" class="LineNr">243 </span> <span class="PreProc">break-if-=</span> +<span id="L244" class="LineNr">244 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"'"</span> +<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L246" class="LineNr">246 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace +<span id="L247" class="LineNr">247 </span> <span class="PreProc">return</span> +<span id="L248" class="LineNr">248 </span> <span class="Delimiter">}</span> +<span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> is-backquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">"`"</span> +<span id="L250" class="LineNr">250 </span> compare is-backquote?, <span class="Constant">0</span>/false +<span id="L251" class="LineNr">251 </span> <span class="Delimiter">{</span> +<span id="L252" class="LineNr">252 </span> <span class="PreProc">break-if-=</span> +<span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"`"</span> +<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L255" class="LineNr">255 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace +<span id="L256" class="LineNr">256 </span> <span class="PreProc">return</span> +<span id="L257" class="LineNr">257 </span> <span class="Delimiter">}</span> +<span id="L258" class="LineNr">258 </span> <span class="PreProc">var</span> is-unquote?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">","</span> +<span id="L259" class="LineNr">259 </span> compare is-unquote?, <span class="Constant">0</span>/false +<span id="L260" class="LineNr">260 </span> <span class="Delimiter">{</span> +<span id="L261" class="LineNr">261 </span> <span class="PreProc">break-if-=</span> +<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">","</span> +<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L264" class="LineNr">264 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace +<span id="L265" class="LineNr">265 </span> <span class="PreProc">return</span> +<span id="L266" class="LineNr">266 </span> <span class="Delimiter">}</span> +<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> is-unquote-splice?/eax: boolean <span class="Special"><-</span> <a href='cell.mu.html#L44'>symbol-equal?</a> left, <span class="Constant">",@"</span> +<span id="L268" class="LineNr">268 </span> compare is-unquote-splice?, <span class="Constant">0</span>/false +<span id="L269" class="LineNr">269 </span> <span class="Delimiter">{</span> +<span id="L270" class="LineNr">270 </span> <span class="PreProc">break-if-=</span> +<span id="L271" class="LineNr">271 </span> <span class="PreProc">var</span> dummy/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">",@"</span> +<span id="L272" class="LineNr">272 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L273" class="LineNr">273 </span> <a href='print.mu.html#L7'>print-cell</a> right-ah, out, trace +<span id="L274" class="LineNr">274 </span> <span class="PreProc">return</span> +<span id="L275" class="LineNr">275 </span> <span class="Delimiter">}</span> +<span id="L276" class="LineNr">276 </span> <span class="muComment">#</span> +<span id="L277" class="LineNr">277 </span> <span class="PreProc">var</span> curr/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in +<span id="L278" class="LineNr">278 </span> <span class="Delimiter">{</span> +<span id="L279" class="LineNr">279 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">"("</span> +<span id="L280" class="LineNr">280 </span> compare overflow?, <span class="Constant">0</span>/false +<span id="L281" class="LineNr">281 </span> <span class="PreProc">break-if-=</span> +<span id="L282" class="LineNr">282 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space for '('"</span> +<span id="L283" class="LineNr">283 </span> <span class="PreProc">return</span> +<span id="L284" class="LineNr">284 </span> <span class="Delimiter">}</span> +<span id="L285" class="LineNr">285 </span> $print-pair:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> +<span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, left +<span id="L287" class="LineNr">287 </span> <a href='print.mu.html#L7'>print-cell</a> left, out, trace +<span id="L288" class="LineNr">288 </span> <span class="muComment"># errors? skip</span> +<span id="L289" class="LineNr">289 </span> <span class="Delimiter">{</span> +<span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace +<span id="L291" class="LineNr">291 </span> compare error?, <span class="Constant">0</span>/false +<span id="L292" class="LineNr">292 </span> <span class="PreProc">break-if-=</span> +<span id="L293" class="LineNr">293 </span> <span class="PreProc">return</span> +<span id="L294" class="LineNr">294 </span> <span class="Delimiter">}</span> +<span id="L295" class="LineNr">295 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get curr, right +<span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> right-addr/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right +<span id="L297" class="LineNr">297 </span> <span class="Delimiter">{</span> +<span id="L298" class="LineNr">298 </span> compare right-addr, <span class="Constant">0</span> +<span id="L299" class="LineNr">299 </span> <span class="PreProc">break-if-!=</span> +<span id="L300" class="LineNr">300 </span> <span class="Delimiter">{</span> +<span id="L301" class="LineNr">301 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">" ... NULL"</span> +<span id="L302" class="LineNr">302 </span> compare overflow?, <span class="Constant">0</span>/false +<span id="L303" class="LineNr">303 </span> <span class="PreProc">break-if-=</span> +<span id="L304" class="LineNr">304 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space for ' ... NULL'"</span> +<span id="L305" class="LineNr">305 </span> <span class="PreProc">return</span> +<span id="L306" class="LineNr">306 </span> <span class="Delimiter">}</span> +<span id="L307" class="LineNr">307 </span> <span class="PreProc">return</span> +<span id="L308" class="LineNr">308 </span> <span class="Delimiter">}</span> +<span id="L309" class="LineNr">309 </span> <span class="Delimiter">{</span> +<span id="L310" class="LineNr">310 </span> <span class="PreProc">var</span> right-nil?/eax: boolean <span class="Special"><-</span> <a href='print.mu.html#L353'>nil?</a> right-addr +<span id="L311" class="LineNr">311 </span> compare right-nil?, <span class="Constant">0</span>/false +<span id="L312" class="LineNr">312 </span> <span class="Delimiter">{</span> +<span id="L313" class="LineNr">313 </span> <span class="PreProc">break-if-=</span> +<span id="L314" class="LineNr">314 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">"print"</span>, <span class="Constant">"right is nil"</span> +<span id="L315" class="LineNr">315 </span> <span class="PreProc">break</span> $print-pair:<span class="PreProc">loop</span> +<span id="L316" class="LineNr">316 </span> <span class="Delimiter">}</span> +<span id="L317" class="LineNr">317 </span> <span class="Delimiter">}</span> +<span id="L318" class="LineNr">318 </span> <span class="Delimiter">{</span> +<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">" "</span> +<span id="L320" class="LineNr">320 </span> compare overflow?, <span class="Constant">0</span>/false +<span id="L321" class="LineNr">321 </span> <span class="PreProc">break-if-=</span> +<span id="L322" class="LineNr">322 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space"</span> +<span id="L323" class="LineNr">323 </span> <span class="PreProc">return</span> +<span id="L324" class="LineNr">324 </span> <span class="Delimiter">}</span> +<span id="L325" class="LineNr">325 </span> <span class="PreProc">var</span> right-type-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get right-addr, <span class="PreProc">type</span> +<span id="L326" class="LineNr">326 </span> <span class="Delimiter">{</span> +<span id="L327" class="LineNr">327 </span> compare *right-type-addr, <span class="Constant">0</span>/pair +<span id="L328" class="LineNr">328 </span> <span class="PreProc">break-if-=</span> +<span id="L329" class="LineNr">329 </span> <span class="Delimiter">{</span> +<span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">". "</span> +<span id="L331" class="LineNr">331 </span> compare overflow?, <span class="Constant">0</span>/false +<span id="L332" class="LineNr">332 </span> <span class="PreProc">break-if-=</span> +<span id="L333" class="LineNr">333 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space"</span> +<span id="L334" class="LineNr">334 </span> <span class="PreProc">return</span> +<span id="L335" class="LineNr">335 </span> <span class="Delimiter">}</span> +<span id="L336" class="LineNr">336 </span> <a href='print.mu.html#L7'>print-cell</a> right, out, trace +<span id="L337" class="LineNr">337 </span> <span class="PreProc">break</span> $print-pair:<span class="PreProc">loop</span> +<span id="L338" class="LineNr">338 </span> <span class="Delimiter">}</span> +<span id="L339" class="LineNr">339 </span> curr <span class="Special"><-</span> copy right-addr +<span id="L340" class="LineNr">340 </span> <span class="PreProc">loop</span> +<span id="L341" class="LineNr">341 </span> <span class="Delimiter">}</span> +<span id="L342" class="LineNr">342 </span> <span class="Delimiter">{</span> +<span id="L343" class="LineNr">343 </span> <span class="PreProc">var</span> overflow?/eax: boolean <span class="Special"><-</span> <a href='../108write.subx.html#L138'>try-write</a> out, <span class="Constant">")"</span> +<span id="L344" class="LineNr">344 </span> compare overflow?, <span class="Constant">0</span>/false +<span id="L345" class="LineNr">345 </span> <span class="PreProc">break-if-=</span> +<span id="L346" class="LineNr">346 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"print-pair: no space for ')'"</span> +<span id="L347" class="LineNr">347 </span> <span class="PreProc">return</span> +<span id="L348" class="LineNr">348 </span> <span class="Delimiter">}</span> +<span id="L349" class="LineNr">349 </span><span class="Delimiter">}</span> +<span id="L350" class="LineNr">350 </span> +<span id="L351" class="LineNr">351 </span><span class="muComment"># Most lisps intern nil, but we don't really have globals yet, so we'll be</span> +<span id="L352" class="LineNr">352 </span><span class="muComment"># less efficient for now.</span> +<span id="L353" class="LineNr">353 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L353'>nil?</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L354" class="LineNr">354 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> copy _in +<span id="L355" class="LineNr">355 </span> <span class="muComment"># if type != pair, return false</span> +<span id="L356" class="LineNr">356 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special"><-</span> get in, <span class="PreProc">type</span> +<span id="L357" class="LineNr">357 </span> compare *<span class="PreProc">type</span>, <span class="Constant">0</span>/pair +<span id="L358" class="LineNr">358 </span> <span class="Delimiter">{</span> +<span id="L359" class="LineNr">359 </span> <span class="PreProc">break-if-=</span> +<span id="L360" class="LineNr">360 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L361" class="LineNr">361 </span> <span class="Delimiter">}</span> +<span id="L362" class="LineNr">362 </span> <span class="muComment"># if left != null, return false</span> +<span id="L363" class="LineNr">363 </span> <span class="PreProc">var</span> left-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, left +<span id="L364" class="LineNr">364 </span> <span class="PreProc">var</span> left/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *left-ah +<span id="L365" class="LineNr">365 </span> compare left, <span class="Constant">0</span> +<span id="L366" class="LineNr">366 </span> <span class="Delimiter">{</span> +<span id="L367" class="LineNr">367 </span> <span class="PreProc">break-if-=</span> +<span id="L368" class="LineNr">368 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L369" class="LineNr">369 </span> <span class="Delimiter">}</span> +<span id="L370" class="LineNr">370 </span> <span class="muComment"># if right != null, return false</span> +<span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> right-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get in, right +<span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> right/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *right-ah +<span id="L373" class="LineNr">373 </span> compare right, <span class="Constant">0</span> +<span id="L374" class="LineNr">374 </span> <span class="Delimiter">{</span> +<span id="L375" class="LineNr">375 </span> <span class="PreProc">break-if-=</span> +<span id="L376" class="LineNr">376 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L377" class="LineNr">377 </span> <span class="Delimiter">}</span> +<span id="L378" class="LineNr">378 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true +<span id="L379" class="LineNr">379 </span><span class="Delimiter">}</span> +<span id="L380" class="LineNr">380 </span> +<span id="L381" class="LineNr">381 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L381'>test-print-cell-zero</a></span> <span class="Delimiter">{</span> +<span id="L382" class="LineNr">382 </span> <span class="PreProc">var</span> num-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L383" class="LineNr">383 </span> <span class="PreProc">var</span> num/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address num-storage +<span id="L384" class="LineNr">384 </span> <a href='cell.mu.html#L84'>new-integer</a> num, <span class="Constant">0</span> +<span id="L385" class="LineNr">385 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L386" class="LineNr">386 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L387" class="LineNr">387 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L388" class="LineNr">388 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L389" class="LineNr">389 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L390" class="LineNr">390 </span> <a href='print.mu.html#L7'>print-cell</a> num, out, trace +<span id="L391" class="LineNr">391 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"0"</span>, <span class="Constant">"F - test-print-cell-zero"</span> +<span id="L392" class="LineNr">392 </span><span class="Delimiter">}</span> +<span id="L393" class="LineNr">393 </span> +<span id="L394" class="LineNr">394 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L394'>test-print-cell-integer</a></span> <span class="Delimiter">{</span> +<span id="L395" class="LineNr">395 </span> <span class="PreProc">var</span> num-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L396" class="LineNr">396 </span> <span class="PreProc">var</span> num/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address num-storage +<span id="L397" class="LineNr">397 </span> <a href='cell.mu.html#L84'>new-integer</a> num, <span class="Constant">1</span> +<span id="L398" class="LineNr">398 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L399" class="LineNr">399 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L400" class="LineNr">400 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L401" class="LineNr">401 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L402" class="LineNr">402 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L403" class="LineNr">403 </span> <a href='print.mu.html#L7'>print-cell</a> num, out, trace +<span id="L404" class="LineNr">404 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"1"</span>, <span class="Constant">"F - test-print-cell-integer"</span> +<span id="L405" class="LineNr">405 </span><span class="Delimiter">}</span> +<span id="L406" class="LineNr">406 </span> +<span id="L407" class="LineNr">407 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L407'>test-print-cell-integer-2</a></span> <span class="Delimiter">{</span> +<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> num-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L409" class="LineNr">409 </span> <span class="PreProc">var</span> num/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address num-storage +<span id="L410" class="LineNr">410 </span> <a href='cell.mu.html#L84'>new-integer</a> num, <span class="Constant">0x30</span> +<span id="L411" class="LineNr">411 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L412" class="LineNr">412 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L413" class="LineNr">413 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L414" class="LineNr">414 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L415" class="LineNr">415 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L416" class="LineNr">416 </span> <a href='print.mu.html#L7'>print-cell</a> num, out, trace +<span id="L417" class="LineNr">417 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"48"</span>, <span class="Constant">"F - test-print-cell-integer-2"</span> +<span id="L418" class="LineNr">418 </span><span class="Delimiter">}</span> +<span id="L419" class="LineNr">419 </span> +<span id="L420" class="LineNr">420 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L420'>test-print-cell-fraction</a></span> <span class="Delimiter">{</span> +<span id="L421" class="LineNr">421 </span> <span class="PreProc">var</span> num-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L422" class="LineNr">422 </span> <span class="PreProc">var</span> num/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address num-storage +<span id="L423" class="LineNr">423 </span> <span class="PreProc">var</span> val/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='../408float.mu.html#L18'>rational</a> <span class="Constant">1</span>, <span class="Constant">2</span> +<span id="L424" class="LineNr">424 </span> <a href='cell.mu.html#L97'>new-float</a> num, val +<span id="L425" class="LineNr">425 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L426" class="LineNr">426 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L427" class="LineNr">427 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L428" class="LineNr">428 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L429" class="LineNr">429 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L430" class="LineNr">430 </span> <a href='print.mu.html#L7'>print-cell</a> num, out, trace +<span id="L431" class="LineNr">431 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"0.5"</span>, <span class="Constant">"F - test-print-cell-fraction"</span> +<span id="L432" class="LineNr">432 </span><span class="Delimiter">}</span> +<span id="L433" class="LineNr">433 </span> +<span id="L434" class="LineNr">434 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L434'>test-print-cell-symbol</a></span> <span class="Delimiter">{</span> +<span id="L435" class="LineNr">435 </span> <span class="PreProc">var</span> sym-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L436" class="LineNr">436 </span> <span class="PreProc">var</span> sym/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address sym-storage +<span id="L437" class="LineNr">437 </span> <a href='cell.mu.html#L39'>new-symbol</a> sym, <span class="Constant">"abc"</span> +<span id="L438" class="LineNr">438 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L439" class="LineNr">439 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L440" class="LineNr">440 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L441" class="LineNr">441 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L442" class="LineNr">442 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L443" class="LineNr">443 </span> <a href='print.mu.html#L7'>print-cell</a> sym, out, trace +<span id="L444" class="LineNr">444 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"abc"</span>, <span class="Constant">"F - test-print-cell-symbol"</span> +<span id="L445" class="LineNr">445 </span><span class="Delimiter">}</span> +<span id="L446" class="LineNr">446 </span> +<span id="L447" class="LineNr">447 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L447'>test-print-cell-nil-list</a></span> <span class="Delimiter">{</span> +<span id="L448" class="LineNr">448 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L449" class="LineNr">449 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L450" class="LineNr">450 </span> <a href='cell.mu.html#L102'>allocate-pair</a> <a href='cell.mu.html#L121'>nil</a> +<span id="L451" class="LineNr">451 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L453" class="LineNr">453 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L454" class="LineNr">454 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L455" class="LineNr">455 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L456" class="LineNr">456 </span> <a href='print.mu.html#L7'>print-cell</a> <a href='cell.mu.html#L121'>nil</a>, out, trace +<span id="L457" class="LineNr">457 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"()"</span>, <span class="Constant">"F - test-print-cell-nil-list"</span> +<span id="L458" class="LineNr">458 </span><span class="Delimiter">}</span> +<span id="L459" class="LineNr">459 </span> +<span id="L460" class="LineNr">460 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L460'>test-print-cell-singleton-list</a></span> <span class="Delimiter">{</span> +<span id="L461" class="LineNr">461 </span> <span class="muComment"># list</span> +<span id="L462" class="LineNr">462 </span> <span class="PreProc">var</span> left-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L463" class="LineNr">463 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address left-storage +<span id="L464" class="LineNr">464 </span> <a href='cell.mu.html#L39'>new-symbol</a> left, <span class="Constant">"abc"</span> +<span id="L465" class="LineNr">465 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L467" class="LineNr">467 </span> <a href='cell.mu.html#L102'>allocate-pair</a> <a href='cell.mu.html#L121'>nil</a> +<span id="L468" class="LineNr">468 </span> <span class="PreProc">var</span> list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L469" class="LineNr">469 </span> <span class="PreProc">var</span> list/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address list-storage +<span id="L470" class="LineNr">470 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *nil +<span id="L471" class="LineNr">471 </span> <span class="muComment">#</span> +<span id="L472" class="LineNr">472 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L473" class="LineNr">473 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L474" class="LineNr">474 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L475" class="LineNr">475 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L476" class="LineNr">476 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L477" class="LineNr">477 </span> <a href='print.mu.html#L7'>print-cell</a> list, out, trace +<span id="L478" class="LineNr">478 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"(abc)"</span>, <span class="Constant">"F - test-print-cell-singleton-list"</span> +<span id="L479" class="LineNr">479 </span><span class="Delimiter">}</span> +<span id="L480" class="LineNr">480 </span> +<span id="L481" class="LineNr">481 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L481'>test-print-cell-list</a></span> <span class="Delimiter">{</span> +<span id="L482" class="LineNr">482 </span> <span class="muComment"># list = cons "abc", nil</span> +<span id="L483" class="LineNr">483 </span> <span class="PreProc">var</span> left-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L484" class="LineNr">484 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address left-storage +<span id="L485" class="LineNr">485 </span> <a href='cell.mu.html#L39'>new-symbol</a> left, <span class="Constant">"abc"</span> +<span id="L486" class="LineNr">486 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L487" class="LineNr">487 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L488" class="LineNr">488 </span> <a href='cell.mu.html#L102'>allocate-pair</a> <a href='cell.mu.html#L121'>nil</a> +<span id="L489" class="LineNr">489 </span> <span class="PreProc">var</span> list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> list/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address list-storage +<span id="L491" class="LineNr">491 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *nil +<span id="L492" class="LineNr">492 </span> <span class="muComment"># list = cons 64, list</span> +<span id="L493" class="LineNr">493 </span> <a href='cell.mu.html#L84'>new-integer</a> left, <span class="Constant">0x40</span> +<span id="L494" class="LineNr">494 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *list +<span id="L495" class="LineNr">495 </span> <span class="muComment">#</span> +<span id="L496" class="LineNr">496 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L497" class="LineNr">497 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L498" class="LineNr">498 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L499" class="LineNr">499 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L500" class="LineNr">500 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L501" class="LineNr">501 </span> <a href='print.mu.html#L7'>print-cell</a> list, out, trace +<span id="L502" class="LineNr">502 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"(64 abc)"</span>, <span class="Constant">"F - test-print-cell-list"</span> +<span id="L503" class="LineNr">503 </span><span class="Delimiter">}</span> +<span id="L504" class="LineNr">504 </span> +<span id="L505" class="LineNr">505 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L505'>test-print-cell-list-of-nil</a></span> <span class="Delimiter">{</span> +<span id="L506" class="LineNr">506 </span> <span class="muComment"># list = cons "abc", nil</span> +<span id="L507" class="LineNr">507 </span> <span class="PreProc">var</span> left-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L508" class="LineNr">508 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address left-storage +<span id="L509" class="LineNr">509 </span> <a href='cell.mu.html#L102'>allocate-pair</a> left +<span id="L510" class="LineNr">510 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L511" class="LineNr">511 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L512" class="LineNr">512 </span> <a href='cell.mu.html#L102'>allocate-pair</a> <a href='cell.mu.html#L121'>nil</a> +<span id="L513" class="LineNr">513 </span> <span class="PreProc">var</span> list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L514" class="LineNr">514 </span> <span class="PreProc">var</span> list/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address list-storage +<span id="L515" class="LineNr">515 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *nil +<span id="L516" class="LineNr">516 </span> <span class="muComment"># list = cons 64, list</span> +<span id="L517" class="LineNr">517 </span> <a href='cell.mu.html#L84'>new-integer</a> left, <span class="Constant">0x40</span> +<span id="L518" class="LineNr">518 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *list +<span id="L519" class="LineNr">519 </span> <span class="muComment">#</span> +<span id="L520" class="LineNr">520 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L521" class="LineNr">521 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L522" class="LineNr">522 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L523" class="LineNr">523 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L524" class="LineNr">524 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L525" class="LineNr">525 </span> <a href='print.mu.html#L7'>print-cell</a> list, out, trace +<span id="L526" class="LineNr">526 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"(64 ())"</span>, <span class="Constant">"F - test-print-cell-list-nil"</span> +<span id="L527" class="LineNr">527 </span><span class="Delimiter">}</span> +<span id="L528" class="LineNr">528 </span> +<span id="L529" class="LineNr">529 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L529'>test-print-dotted-list</a></span> <span class="Delimiter">{</span> +<span id="L530" class="LineNr">530 </span> <span class="muComment"># list = cons 64, "abc"</span> +<span id="L531" class="LineNr">531 </span> <span class="PreProc">var</span> left-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L532" class="LineNr">532 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address left-storage +<span id="L533" class="LineNr">533 </span> <a href='cell.mu.html#L39'>new-symbol</a> left, <span class="Constant">"abc"</span> +<span id="L534" class="LineNr">534 </span> <span class="PreProc">var</span> right-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L535" class="LineNr">535 </span> <span class="PreProc">var</span> right/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address right-storage +<span id="L536" class="LineNr">536 </span> <a href='cell.mu.html#L84'>new-integer</a> right, <span class="Constant">0x40</span> +<span id="L537" class="LineNr">537 </span> <span class="PreProc">var</span> list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L538" class="LineNr">538 </span> <span class="PreProc">var</span> list/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address list-storage +<span id="L539" class="LineNr">539 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *right +<span id="L540" class="LineNr">540 </span> <span class="muComment">#</span> +<span id="L541" class="LineNr">541 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">0x40</span>) +<span id="L542" class="LineNr">542 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L543" class="LineNr">543 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L544" class="LineNr">544 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L545" class="LineNr">545 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L546" class="LineNr">546 </span> <a href='print.mu.html#L7'>print-cell</a> list, out, trace +<span id="L547" class="LineNr">547 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"(abc . 64)"</span>, <span class="Constant">"F - test-print-dotted-list"</span> +<span id="L548" class="LineNr">548 </span><span class="Delimiter">}</span> +<span id="L549" class="LineNr">549 </span> +<span id="L550" class="LineNr">550 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L550'>test-print-cell-interrupted</a></span> <span class="Delimiter">{</span> +<span id="L551" class="LineNr">551 </span> <span class="PreProc">var</span> sym-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L552" class="LineNr">552 </span> <span class="PreProc">var</span> sym/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address sym-storage +<span id="L553" class="LineNr">553 </span> <a href='cell.mu.html#L39'>new-symbol</a> sym, <span class="Constant">"abcd"</span> <span class="muComment"># requires 4 bytes</span> +<span id="L554" class="LineNr">554 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">3</span>) <span class="muComment"># space for just 3 bytes</span> +<span id="L555" class="LineNr">555 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L556" class="LineNr">556 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L557" class="LineNr">557 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L558" class="LineNr">558 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L559" class="LineNr">559 </span> <a href='print.mu.html#L7'>print-cell</a> sym, out, trace +<span id="L560" class="LineNr">560 </span> <span class="muComment"># insufficient space to print out the symbol; print out ellipses if we can</span> +<span id="L561" class="LineNr">561 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"..."</span>, <span class="Constant">"F - test-print-cell-interrupted"</span> +<span id="L562" class="LineNr">562 </span><span class="Delimiter">}</span> +<span id="L563" class="LineNr">563 </span> +<span id="L564" class="LineNr">564 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L564'>test-print-cell-impossible</a></span> <span class="Delimiter">{</span> +<span id="L565" class="LineNr">565 </span> <span class="PreProc">var</span> sym-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L566" class="LineNr">566 </span> <span class="PreProc">var</span> sym/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address sym-storage +<span id="L567" class="LineNr">567 </span> <a href='cell.mu.html#L39'>new-symbol</a> sym, <span class="Constant">"abcd"</span> <span class="muComment"># requires 4 bytes</span> +<span id="L568" class="LineNr">568 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">2</span>) +<span id="L569" class="LineNr">569 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L570" class="LineNr">570 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L571" class="LineNr">571 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L572" class="LineNr">572 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L573" class="LineNr">573 </span> <a href='print.mu.html#L7'>print-cell</a> sym, out, trace +<span id="L574" class="LineNr">574 </span> <span class="muComment"># insufficient space even for ellipses; print nothing</span> +<span id="L575" class="LineNr">575 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">""</span>, <span class="Constant">"F - test-print-cell-impossible"</span> +<span id="L576" class="LineNr">576 </span><span class="Delimiter">}</span> +<span id="L577" class="LineNr">577 </span> +<span id="L578" class="LineNr">578 </span><span class="PreProc">fn</span> <span class="muTest"><a href='print.mu.html#L578'>test-print-cell-interrupted-list</a></span> <span class="Delimiter">{</span> +<span id="L579" class="LineNr">579 </span> <span class="muComment"># list = (abcd) requires 6 bytes</span> +<span id="L580" class="LineNr">580 </span> <span class="PreProc">var</span> left-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L581" class="LineNr">581 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address left-storage +<span id="L582" class="LineNr">582 </span> <a href='cell.mu.html#L39'>new-symbol</a> left, <span class="Constant">"abcd"</span> +<span id="L583" class="LineNr">583 </span> <span class="PreProc">var</span> nil-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L584" class="LineNr">584 </span> <span class="PreProc">var</span> <a href='cell.mu.html#L121'>nil</a>/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address nil-storage +<span id="L585" class="LineNr">585 </span> <a href='cell.mu.html#L102'>allocate-pair</a> <a href='cell.mu.html#L121'>nil</a> +<span id="L586" class="LineNr">586 </span> <span class="PreProc">var</span> list-storage: (handle <a href='cell.mu.html#L1'>cell</a>) +<span id="L587" class="LineNr">587 </span> <span class="PreProc">var</span> list/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> address list-storage +<span id="L588" class="LineNr">588 </span> <a href='cell.mu.html#L116'>new-pair</a> list, *left, *nil +<span id="L589" class="LineNr">589 </span> <span class="muComment">#</span> +<span id="L590" class="LineNr">590 </span> <span class="PreProc">var</span> out-storage: (stream byte <span class="Constant">4</span>) <span class="muComment"># space for just 4 bytes</span> +<span id="L591" class="LineNr">591 </span> <span class="PreProc">var</span> out/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special"><-</span> address out-storage +<span id="L592" class="LineNr">592 </span> <span class="PreProc">var</span> trace-storage: trace +<span id="L593" class="LineNr">593 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> address trace-storage +<span id="L594" class="LineNr">594 </span> <a href='trace.mu.html#L61'>initialize-trace</a> trace, <span class="Constant">1</span>/only-errors, <span class="Constant">0x10</span>/capacity, <span class="Constant">0</span>/visible +<span id="L595" class="LineNr">595 </span> <a href='print.mu.html#L7'>print-cell</a> list, out, trace +<span id="L596" class="LineNr">596 </span> <a href='../109stream-equal.subx.html#L194'>check-stream-equal</a> out, <span class="Constant">"(..."</span>, <span class="Constant">"F - test-print-cell-interrupted-list"</span> +<span id="L597" class="LineNr">597 </span><span class="Delimiter">}</span> </pre> </body> </html> diff --git a/html/shell/read.mu.html b/html/shell/read.mu.html index 4588fdcc..ce1a1275 100644 --- a/html/shell/read.mu.html +++ b/html/shell/read.mu.html @@ -1,32 +1,32 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/read.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .Constant { color: #008787; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/html/shell/sandbox.mu.html b/html/shell/sandbox.mu.html index c7c287c8..f92a3674 100644 --- a/html/shell/sandbox.mu.html +++ b/html/shell/sandbox.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/sandbox.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,7 +16,8 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } @@ -26,12 +27,11 @@ a { color:inherit; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -474,8 +474,8 @@ if ('onhashchange' in window) { <span id="L409" class="LineNr"> 409 </span> <a href='../501draw-text.mu.html#L133'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" go to "</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg <span id="L410" class="LineNr"> 410 </span> $render-sandbox-edit-menu:render-ctrl-m: <span class="Delimiter">{</span> <span id="L411" class="LineNr"> 411 </span> <span class="PreProc">var</span> self/eax: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L901'>has-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L901'>has-trace?</a> self -<span id="L413" class="LineNr"> 413 </span> compare <a href='sandbox.mu.html#L901'>has-trace?</a>, <span class="Constant">0</span>/false +<span id="L412" class="LineNr"> 412 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L907'>has-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L907'>has-trace?</a> self +<span id="L413" class="LineNr"> 413 </span> compare <a href='sandbox.mu.html#L907'>has-trace?</a>, <span class="Constant">0</span>/false <span id="L414" class="LineNr"> 414 </span> <span class="Delimiter">{</span> <span id="L415" class="LineNr"> 415 </span> <span class="PreProc">break-if-=</span> <span id="L416" class="LineNr"> 416 </span> <a href='../501draw-text.mu.html#L133'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">" ^m "</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x38</span>/bg=trace @@ -541,8 +541,8 @@ if ('onhashchange' in window) { <span id="L476" class="LineNr"> 476 </span> <span class="PreProc">var</span> cursor-in-data?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? <span id="L477" class="LineNr"> 477 </span> compare *cursor-in-data?, <span class="Constant">0</span>/false <span id="L478" class="LineNr"> 478 </span> <span class="PreProc">break-if-=</span> -<span id="L479" class="LineNr"> 479 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L901'>has-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L901'>has-trace?</a> self -<span id="L480" class="LineNr"> 480 </span> compare <a href='sandbox.mu.html#L901'>has-trace?</a>, <span class="Constant">0</span>/false +<span id="L479" class="LineNr"> 479 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L907'>has-trace?</a>/eax: boolean <span class="Special"><-</span> <a href='sandbox.mu.html#L907'>has-trace?</a> self +<span id="L480" class="LineNr"> 480 </span> compare <a href='sandbox.mu.html#L907'>has-trace?</a>, <span class="Constant">0</span>/false <span id="L481" class="LineNr"> 481 </span> <span class="Delimiter">{</span> <span id="L482" class="LineNr"> 482 </span> <span class="PreProc">break-if-=</span> <span id="L483" class="LineNr"> 483 </span> <span class="PreProc">var</span> cursor-in-data?/eax: (addr boolean) <span class="Special"><-</span> get self, cursor-in-data? @@ -678,489 +678,489 @@ if ('onhashchange' in window) { <span id="L613" class="LineNr"> 613 </span> <a href='cell.mu.html#L195'>rewind-keyboard-var</a> inner-keyboard-var <span class="muComment"># don't clear keys from before</span> <span id="L614" class="LineNr"> 614 </span> <span class="muComment">#</span> <span id="L615" class="LineNr"> 615 </span> <a href='environment.mu.html#L372'>read-and-evaluate-and-save-gap-buffer-to-globals</a> data-ah, eval-result-ah, globals, definitions-created, trace, inner-screen-var, inner-keyboard-var -<span id="L616" class="LineNr"> 616 </span> <span class="muComment"># if necessary, initialize a new gap-buffer for sandbox</span> +<span id="L616" class="LineNr"> 616 </span> <span class="PreProc">var</span> error?/eax: boolean <span class="Special"><-</span> <a href='trace.mu.html#L94'>has-errors?</a> trace <span id="L617" class="LineNr"> 617 </span> <span class="Delimiter">{</span> -<span id="L618" class="LineNr"> 618 </span> compare globals, <span class="Constant">0</span> +<span id="L618" class="LineNr"> 618 </span> compare error?, <span class="Constant">0</span>/false <span id="L619" class="LineNr"> 619 </span> <span class="PreProc">break-if-=</span> -<span id="L620" class="LineNr"> 620 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> definitions-created -<span id="L621" class="LineNr"> 621 </span> <span class="PreProc">var</span> no-definitions?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> definitions-created -<span id="L622" class="LineNr"> 622 </span> compare no-definitions?, <span class="Constant">0</span>/false -<span id="L623" class="LineNr"> 623 </span> <span class="PreProc">break-if-!=</span> -<span id="L624" class="LineNr"> 624 </span> <span class="muComment"># some definitions were created; clear the gap buffer</span> -<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L626" class="LineNr"> 626 </span> <span class="PreProc">var</span> capacity/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L43'>gap-buffer-capacity</a> data -<span id="L627" class="LineNr"> 627 </span> <a href='../120allocate.subx.html#L43'>allocate</a> data-ah -<span id="L628" class="LineNr"> 628 </span> <span class="PreProc">var</span> new-data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah -<span id="L629" class="LineNr"> 629 </span> <a href='gap-buffer.mu.html#L11'>initialize-gap-buffer</a> new-data, capacity -<span id="L630" class="LineNr"> 630 </span> <span class="Delimiter">}</span> -<span id="L631" class="LineNr"> 631 </span> <span class="muComment"># print</span> -<span id="L632" class="LineNr"> 632 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, value -<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> value/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah -<span id="L634" class="LineNr"> 634 </span> <a href='../106stream.subx.html#L20'>clear-stream</a> value -<span id="L635" class="LineNr"> 635 </span> <a href='print.mu.html#L7'>print-cell</a> eval-result-ah, value, trace -<span id="L636" class="LineNr"> 636 </span><span class="Delimiter">}</span> -<span id="L637" class="LineNr"> 637 </span> -<span id="L638" class="LineNr"> 638 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L638'>test-run-integer</a></span> <span class="Delimiter">{</span> -<span id="L639" class="LineNr"> 639 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L640" class="LineNr"> 640 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L641" class="LineNr"> 641 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"1"</span> -<span id="L642" class="LineNr"> 642 </span> <span class="muComment"># eval</span> -<span id="L643" class="LineNr"> 643 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L644" class="LineNr"> 644 </span> <span class="muComment"># setup: screen</span> -<span id="L645" class="LineNr"> 645 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L646" class="LineNr"> 646 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L647" class="LineNr"> 647 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L648" class="LineNr"> 648 </span> <span class="muComment">#</span> -<span id="L649" class="LineNr"> 649 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L650" class="LineNr"> 650 </span> <span class="muComment"># skip one line of padding</span> -<span id="L651" class="LineNr"> 651 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L638'>test-run-integer</a>/0"</span> -<span id="L652" class="LineNr"> 652 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L638'>test-run-integer</a>/1"</span> -<span id="L653" class="LineNr"> 653 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L638'>test-run-integer</a>/2"</span> -<span id="L654" class="LineNr"> 654 </span><span class="Delimiter">}</span> -<span id="L655" class="LineNr"> 655 </span> -<span id="L656" class="LineNr"> 656 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L656'>test-run-negative-integer</a></span> <span class="Delimiter">{</span> -<span id="L657" class="LineNr"> 657 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L658" class="LineNr"> 658 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L659" class="LineNr"> 659 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"-1"</span> -<span id="L660" class="LineNr"> 660 </span> <span class="muComment"># eval</span> -<span id="L661" class="LineNr"> 661 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L662" class="LineNr"> 662 </span> <span class="muComment"># setup: screen</span> -<span id="L663" class="LineNr"> 663 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L664" class="LineNr"> 664 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L665" class="LineNr"> 665 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L666" class="LineNr"> 666 </span> <span class="muComment">#</span> -<span id="L667" class="LineNr"> 667 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L668" class="LineNr"> 668 </span> <span class="muComment"># skip one line of padding</span> -<span id="L669" class="LineNr"> 669 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" -1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L656'>test-run-negative-integer</a>/0"</span> -<span id="L670" class="LineNr"> 670 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L656'>test-run-negative-integer</a>/1"</span> -<span id="L671" class="LineNr"> 671 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => -1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L656'>test-run-negative-integer</a>/2"</span> -<span id="L672" class="LineNr"> 672 </span><span class="Delimiter">}</span> -<span id="L673" class="LineNr"> 673 </span> -<span id="L674" class="LineNr"> 674 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L674'>test-run-error-invalid-integer</a></span> <span class="Delimiter">{</span> -<span id="L675" class="LineNr"> 675 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L676" class="LineNr"> 676 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L677" class="LineNr"> 677 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"1a"</span> -<span id="L678" class="LineNr"> 678 </span> <span class="muComment"># eval</span> -<span id="L679" class="LineNr"> 679 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L680" class="LineNr"> 680 </span> <span class="muComment"># setup: screen</span> -<span id="L681" class="LineNr"> 681 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L682" class="LineNr"> 682 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L683" class="LineNr"> 683 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L684" class="LineNr"> 684 </span> <span class="muComment">#</span> -<span id="L685" class="LineNr"> 685 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L686" class="LineNr"> 686 </span> <span class="muComment"># skip one line of padding</span> -<span id="L687" class="LineNr"> 687 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 1a "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L674'>test-run-error-invalid-integer</a>/0"</span> -<span id="L688" class="LineNr"> 688 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L674'>test-run-error-invalid-integer</a>/1"</span> -<span id="L689" class="LineNr"> 689 </span> <a href='../504test-screen.mu.html#L71'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc</span>/fg=<span class="Special"><a href='trace.mu.html#L197'>error</a></span>, <span class="Constant">3</span>/y, <span class="Constant">" unbound symbol: 1a "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L674'>test-run-error-invalid-integer</a>/2"</span> -<span id="L690" class="LineNr"> 690 </span><span class="Delimiter">}</span> -<span id="L691" class="LineNr"> 691 </span> -<span id="L692" class="LineNr"> 692 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L692'>test-run-error-unknown-symbol</a></span> <span class="Delimiter">{</span> -<span id="L693" class="LineNr"> 693 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L694" class="LineNr"> 694 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L695" class="LineNr"> 695 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"a"</span> -<span id="L696" class="LineNr"> 696 </span> <span class="muComment"># eval</span> -<span id="L697" class="LineNr"> 697 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L698" class="LineNr"> 698 </span> <span class="muComment"># setup: screen</span> -<span id="L699" class="LineNr"> 699 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L701" class="LineNr"> 701 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L702" class="LineNr"> 702 </span> <span class="muComment">#</span> -<span id="L703" class="LineNr"> 703 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L704" class="LineNr"> 704 </span> <span class="muComment"># skip one line of padding</span> -<span id="L705" class="LineNr"> 705 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" a "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L692'>test-run-error-unknown-symbol</a>/0"</span> -<span id="L706" class="LineNr"> 706 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L692'>test-run-error-unknown-symbol</a>/1"</span> -<span id="L707" class="LineNr"> 707 </span> <a href='../504test-screen.mu.html#L71'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc</span>/fg=<span class="Special"><a href='trace.mu.html#L197'>error</a></span>, <span class="Constant">3</span>/y, <span class="Constant">" unbound symbol: a "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L692'>test-run-error-unknown-symbol</a>/2"</span> -<span id="L708" class="LineNr"> 708 </span><span class="Delimiter">}</span> -<span id="L709" class="LineNr"> 709 </span> -<span id="L710" class="LineNr"> 710 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L710'>test-run-with-spaces</a></span> <span class="Delimiter">{</span> -<span id="L711" class="LineNr"> 711 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L712" class="LineNr"> 712 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L713" class="LineNr"> 713 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">" 1 \n"</span> -<span id="L714" class="LineNr"> 714 </span> <span class="muComment"># eval</span> -<span id="L715" class="LineNr"> 715 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L716" class="LineNr"> 716 </span> <span class="muComment"># setup: screen</span> -<span id="L717" class="LineNr"> 717 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L718" class="LineNr"> 718 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L719" class="LineNr"> 719 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L720" class="LineNr"> 720 </span> <span class="muComment">#</span> -<span id="L721" class="LineNr"> 721 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L722" class="LineNr"> 722 </span> <span class="muComment"># skip one line of padding</span> -<span id="L723" class="LineNr"> 723 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L710'>test-run-with-spaces</a>/0"</span> -<span id="L724" class="LineNr"> 724 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L710'>test-run-with-spaces</a>/1"</span> -<span id="L725" class="LineNr"> 725 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L710'>test-run-with-spaces</a>/2"</span> -<span id="L726" class="LineNr"> 726 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" => 1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L710'>test-run-with-spaces</a>/3"</span> -<span id="L727" class="LineNr"> 727 </span><span class="Delimiter">}</span> -<span id="L728" class="LineNr"> 728 </span> -<span id="L729" class="LineNr"> 729 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L729'>test-run-quote</a></span> <span class="Delimiter">{</span> -<span id="L730" class="LineNr"> 730 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L731" class="LineNr"> 731 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L732" class="LineNr"> 732 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'a"</span> -<span id="L733" class="LineNr"> 733 </span> <span class="muComment"># eval</span> -<span id="L734" class="LineNr"> 734 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L735" class="LineNr"> 735 </span> <span class="muComment"># setup: screen</span> -<span id="L736" class="LineNr"> 736 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L737" class="LineNr"> 737 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L738" class="LineNr"> 738 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L739" class="LineNr"> 739 </span> <span class="muComment">#</span> -<span id="L740" class="LineNr"> 740 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L741" class="LineNr"> 741 </span> <span class="muComment"># skip one line of padding</span> -<span id="L742" class="LineNr"> 742 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 'a "</span>, <span class="Constant">"F - test-run-quote/0"</span> -<span id="L743" class="LineNr"> 743 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L729'>test-run-quote</a>/1"</span> -<span id="L744" class="LineNr"> 744 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => a "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L729'>test-run-quote</a>/2"</span> -<span id="L745" class="LineNr"> 745 </span><span class="Delimiter">}</span> -<span id="L746" class="LineNr"> 746 </span> -<span id="L747" class="LineNr"> 747 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L747'>test-run-dotted-list</a></span> <span class="Delimiter">{</span> -<span id="L748" class="LineNr"> 748 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L749" class="LineNr"> 749 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L750" class="LineNr"> 750 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'(a . b)"</span> -<span id="L751" class="LineNr"> 751 </span> <span class="muComment"># eval</span> -<span id="L752" class="LineNr"> 752 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L753" class="LineNr"> 753 </span> <span class="muComment"># setup: screen</span> -<span id="L754" class="LineNr"> 754 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L755" class="LineNr"> 755 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L756" class="LineNr"> 756 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L757" class="LineNr"> 757 </span> <span class="muComment">#</span> -<span id="L758" class="LineNr"> 758 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L759" class="LineNr"> 759 </span> <span class="muComment"># skip one line of padding</span> -<span id="L760" class="LineNr"> 760 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" '(a . b) "</span>, <span class="Constant">"F - test-run-dotted-list/0"</span> -<span id="L761" class="LineNr"> 761 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L747'>test-run-dotted-list</a>/1"</span> -<span id="L762" class="LineNr"> 762 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => (a . b) "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L747'>test-run-dotted-list</a>/2"</span> -<span id="L763" class="LineNr"> 763 </span><span class="Delimiter">}</span> -<span id="L764" class="LineNr"> 764 </span> -<span id="L765" class="LineNr"> 765 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L765'>test-run-dot-and-list</a></span> <span class="Delimiter">{</span> -<span id="L766" class="LineNr"> 766 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L767" class="LineNr"> 767 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L768" class="LineNr"> 768 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'(a . (b))"</span> -<span id="L769" class="LineNr"> 769 </span> <span class="muComment"># eval</span> -<span id="L770" class="LineNr"> 770 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L771" class="LineNr"> 771 </span> <span class="muComment"># setup: screen</span> -<span id="L772" class="LineNr"> 772 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L773" class="LineNr"> 773 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L774" class="LineNr"> 774 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L775" class="LineNr"> 775 </span> <span class="muComment">#</span> -<span id="L776" class="LineNr"> 776 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L777" class="LineNr"> 777 </span> <span class="muComment"># skip one line of padding</span> -<span id="L778" class="LineNr"> 778 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" '(a . (b)) "</span>, <span class="Constant">"F - test-run-dot-and-list/0"</span> -<span id="L779" class="LineNr"> 779 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L765'>test-run-dot-and-list</a>/1"</span> -<span id="L780" class="LineNr"> 780 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => (a b) "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L765'>test-run-dot-and-list</a>/2"</span> -<span id="L781" class="LineNr"> 781 </span><span class="Delimiter">}</span> -<span id="L782" class="LineNr"> 782 </span> -<span id="L783" class="LineNr"> 783 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L783'>test-run-final-dot</a></span> <span class="Delimiter">{</span> -<span id="L784" class="LineNr"> 784 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L785" class="LineNr"> 785 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L786" class="LineNr"> 786 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'(a .)"</span> -<span id="L787" class="LineNr"> 787 </span> <span class="muComment"># eval</span> -<span id="L788" class="LineNr"> 788 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L789" class="LineNr"> 789 </span> <span class="muComment"># setup: screen</span> -<span id="L790" class="LineNr"> 790 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L791" class="LineNr"> 791 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L792" class="LineNr"> 792 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L793" class="LineNr"> 793 </span> <span class="muComment">#</span> -<span id="L794" class="LineNr"> 794 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L795" class="LineNr"> 795 </span> <span class="muComment"># skip one line of padding</span> -<span id="L796" class="LineNr"> 796 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" '(a .) "</span>, <span class="Constant">"F - test-run-final-dot/0"</span> -<span id="L797" class="LineNr"> 797 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L783'>test-run-final-dot</a>/1"</span> -<span id="L798" class="LineNr"> 798 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" '. )' makes no sense "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L783'>test-run-final-dot</a>/2"</span> -<span id="L799" class="LineNr"> 799 </span> <span class="muComment"># further errors may occur</span> -<span id="L800" class="LineNr"> 800 </span><span class="Delimiter">}</span> -<span id="L801" class="LineNr"> 801 </span> -<span id="L802" class="LineNr"> 802 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L802'>test-run-double-dot</a></span> <span class="Delimiter">{</span> -<span id="L803" class="LineNr"> 803 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L804" class="LineNr"> 804 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L805" class="LineNr"> 805 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'(a . .)"</span> -<span id="L806" class="LineNr"> 806 </span> <span class="muComment"># eval</span> -<span id="L807" class="LineNr"> 807 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L808" class="LineNr"> 808 </span> <span class="muComment"># setup: screen</span> -<span id="L809" class="LineNr"> 809 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L810" class="LineNr"> 810 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L811" class="LineNr"> 811 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L812" class="LineNr"> 812 </span> <span class="muComment">#</span> -<span id="L813" class="LineNr"> 813 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L814" class="LineNr"> 814 </span> <span class="muComment"># skip one line of padding</span> -<span id="L815" class="LineNr"> 815 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" '(a . .) "</span>, <span class="Constant">"F - test-run-double-dot/0"</span> -<span id="L816" class="LineNr"> 816 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L802'>test-run-double-dot</a>/1"</span> -<span id="L817" class="LineNr"> 817 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" '. .' makes no sense "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L802'>test-run-double-dot</a>/2"</span> -<span id="L818" class="LineNr"> 818 </span> <span class="muComment"># further errors may occur</span> -<span id="L819" class="LineNr"> 819 </span><span class="Delimiter">}</span> -<span id="L820" class="LineNr"> 820 </span> -<span id="L821" class="LineNr"> 821 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L821'>test-run-multiple-expressions-after-dot</a></span> <span class="Delimiter">{</span> -<span id="L822" class="LineNr"> 822 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L823" class="LineNr"> 823 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L824" class="LineNr"> 824 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'(a . b c)"</span> -<span id="L825" class="LineNr"> 825 </span> <span class="muComment"># eval</span> -<span id="L826" class="LineNr"> 826 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L827" class="LineNr"> 827 </span> <span class="muComment"># setup: screen</span> -<span id="L828" class="LineNr"> 828 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L830" class="LineNr"> 830 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L831" class="LineNr"> 831 </span> <span class="muComment">#</span> -<span id="L832" class="LineNr"> 832 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L833" class="LineNr"> 833 </span> <span class="muComment"># skip one line of padding</span> -<span id="L834" class="LineNr"> 834 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" '(a . b c) "</span>, <span class="Constant">"F - test-run-multiple-expressions-after-dot/0"</span> -<span id="L835" class="LineNr"> 835 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L821'>test-run-multiple-expressions-after-dot</a>/1"</span> -<span id="L836" class="LineNr"> 836 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" cannot have multiple expressions between '.' and ')' "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L821'>test-run-multiple-expressions-after-dot</a>/2"</span> -<span id="L837" class="LineNr"> 837 </span> <span class="muComment"># further errors may occur</span> -<span id="L838" class="LineNr"> 838 </span><span class="Delimiter">}</span> -<span id="L839" class="LineNr"> 839 </span> -<span id="L840" class="LineNr"> 840 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L840'>test-run-stream</a></span> <span class="Delimiter">{</span> -<span id="L841" class="LineNr"> 841 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L842" class="LineNr"> 842 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L843" class="LineNr"> 843 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"[a b]"</span> -<span id="L844" class="LineNr"> 844 </span> <span class="muComment"># eval</span> -<span id="L845" class="LineNr"> 845 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L846" class="LineNr"> 846 </span> <span class="muComment"># setup: screen</span> -<span id="L847" class="LineNr"> 847 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L848" class="LineNr"> 848 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L849" class="LineNr"> 849 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L850" class="LineNr"> 850 </span> <span class="muComment">#</span> -<span id="L851" class="LineNr"> 851 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L852" class="LineNr"> 852 </span> <span class="muComment"># skip one line of padding</span> -<span id="L853" class="LineNr"> 853 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" [a b] "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L840'>test-run-stream</a>/0"</span> -<span id="L854" class="LineNr"> 854 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L840'>test-run-stream</a>/1"</span> -<span id="L855" class="LineNr"> 855 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => [a b] "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L840'>test-run-stream</a>/2"</span> -<span id="L856" class="LineNr"> 856 </span><span class="Delimiter">}</span> -<span id="L857" class="LineNr"> 857 </span> -<span id="L858" class="LineNr"> 858 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a></span> <span class="Delimiter">{</span> -<span id="L859" class="LineNr"> 859 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L860" class="LineNr"> 860 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L861" class="LineNr"> 861 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"12"</span> -<span id="L862" class="LineNr"> 862 </span> <span class="muComment"># eval</span> -<span id="L863" class="LineNr"> 863 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L864" class="LineNr"> 864 </span> <span class="muComment"># setup: screen</span> -<span id="L865" class="LineNr"> 865 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L866" class="LineNr"> 866 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L867" class="LineNr"> 867 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L868" class="LineNr"> 868 </span> <span class="muComment">#</span> -<span id="L869" class="LineNr"> 869 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L870" class="LineNr"> 870 </span> <span class="muComment"># skip one line of padding</span> -<span id="L871" class="LineNr"> 871 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/pre-0"</span> -<span id="L872" class="LineNr"> 872 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/pre-0/cursor"</span> -<span id="L873" class="LineNr"> 873 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/pre-1"</span> -<span id="L874" class="LineNr"> 874 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/pre-1/cursor"</span> -<span id="L875" class="LineNr"> 875 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/pre-2"</span> -<span id="L876" class="LineNr"> 876 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/pre-2/cursor"</span> -<span id="L877" class="LineNr"> 877 </span> <span class="muComment"># move cursor into trace</span> -<span id="L878" class="LineNr"> 878 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xd</span>/ctrl-m, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L879" class="LineNr"> 879 </span> <span class="muComment">#</span> -<span id="L880" class="LineNr"> 880 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L881" class="LineNr"> 881 </span> <span class="muComment"># skip one line of padding</span> -<span id="L882" class="LineNr"> 882 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/trace-0"</span> -<span id="L883" class="LineNr"> 883 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/trace-0/cursor"</span> -<span id="L884" class="LineNr"> 884 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/trace-1"</span> -<span id="L885" class="LineNr"> 885 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/trace-1/cursor"</span> -<span id="L886" class="LineNr"> 886 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/trace-2"</span> -<span id="L887" class="LineNr"> 887 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/trace-2/cursor"</span> -<span id="L888" class="LineNr"> 888 </span> <span class="muComment"># move cursor into input</span> -<span id="L889" class="LineNr"> 889 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xd</span>/ctrl-m, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L890" class="LineNr"> 890 </span> <span class="muComment">#</span> -<span id="L891" class="LineNr"> 891 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L892" class="LineNr"> 892 </span> <span class="muComment"># skip one line of padding</span> -<span id="L893" class="LineNr"> 893 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/input-0"</span> -<span id="L894" class="LineNr"> 894 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/input-0/cursor"</span> -<span id="L895" class="LineNr"> 895 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/input-1"</span> -<span id="L896" class="LineNr"> 896 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/input-1/cursor"</span> -<span id="L897" class="LineNr"> 897 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/input-2"</span> -<span id="L898" class="LineNr"> 898 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L858'>test-run-move-cursor-into-trace</a>/input-2/cursor"</span> -<span id="L899" class="LineNr"> 899 </span><span class="Delimiter">}</span> -<span id="L900" class="LineNr"> 900 </span> -<span id="L901" class="LineNr"> 901 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L901'>has-trace?</a></span> _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L902" class="LineNr"> 902 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self -<span id="L903" class="LineNr"> 903 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get self, trace -<span id="L904" class="LineNr"> 904 </span> <span class="PreProc">var</span> _trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah -<span id="L905" class="LineNr"> 905 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> copy _trace -<span id="L906" class="LineNr"> 906 </span> compare trace, <span class="Constant">0</span> -<span id="L907" class="LineNr"> 907 </span> <span class="Delimiter">{</span> -<span id="L908" class="LineNr"> 908 </span> <span class="PreProc">break-if-!=</span> -<span id="L909" class="LineNr"> 909 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> -<span id="L910" class="LineNr"> 910 </span> <span class="Delimiter">}</span> -<span id="L911" class="LineNr"> 911 </span> <span class="PreProc">var</span> first-free/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get trace, first-free -<span id="L912" class="LineNr"> 912 </span> compare *first-free, <span class="Constant">0</span> +<span id="L620" class="LineNr"> 620 </span> <span class="PreProc">return</span> +<span id="L621" class="LineNr"> 621 </span> <span class="Delimiter">}</span> +<span id="L622" class="LineNr"> 622 </span> <span class="muComment"># if necessary, initialize a new gap-buffer for sandbox</span> +<span id="L623" class="LineNr"> 623 </span> <span class="Delimiter">{</span> +<span id="L624" class="LineNr"> 624 </span> compare globals, <span class="Constant">0</span> +<span id="L625" class="LineNr"> 625 </span> <span class="PreProc">break-if-=</span> +<span id="L626" class="LineNr"> 626 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> definitions-created +<span id="L627" class="LineNr"> 627 </span> <span class="PreProc">var</span> no-definitions?/eax: boolean <span class="Special"><-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> definitions-created +<span id="L628" class="LineNr"> 628 </span> compare no-definitions?, <span class="Constant">0</span>/false +<span id="L629" class="LineNr"> 629 </span> <span class="PreProc">break-if-!=</span> +<span id="L630" class="LineNr"> 630 </span> <span class="muComment"># some definitions were created; clear the gap buffer</span> +<span id="L631" class="LineNr"> 631 </span> <span class="PreProc">var</span> data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L632" class="LineNr"> 632 </span> <span class="PreProc">var</span> capacity/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> <a href='gap-buffer.mu.html#L43'>gap-buffer-capacity</a> data +<span id="L633" class="LineNr"> 633 </span> <a href='../120allocate.subx.html#L43'>allocate</a> data-ah +<span id="L634" class="LineNr"> 634 </span> <span class="PreProc">var</span> new-data/eax: (addr <a href='gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *data-ah +<span id="L635" class="LineNr"> 635 </span> <a href='gap-buffer.mu.html#L11'>initialize-gap-buffer</a> new-data, capacity +<span id="L636" class="LineNr"> 636 </span> <span class="Delimiter">}</span> +<span id="L637" class="LineNr"> 637 </span> <span class="muComment"># print</span> +<span id="L638" class="LineNr"> 638 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle stream byte) <span class="Special"><-</span> get self, value +<span id="L639" class="LineNr"> 639 </span> <span class="PreProc">var</span> value/eax: (addr stream byte) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *value-ah +<span id="L640" class="LineNr"> 640 </span> <a href='../106stream.subx.html#L20'>clear-stream</a> value +<span id="L641" class="LineNr"> 641 </span> <a href='print.mu.html#L7'>print-cell</a> eval-result-ah, value, trace +<span id="L642" class="LineNr"> 642 </span><span class="Delimiter">}</span> +<span id="L643" class="LineNr"> 643 </span> +<span id="L644" class="LineNr"> 644 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L644'>test-run-integer</a></span> <span class="Delimiter">{</span> +<span id="L645" class="LineNr"> 645 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L646" class="LineNr"> 646 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L647" class="LineNr"> 647 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"1"</span> +<span id="L648" class="LineNr"> 648 </span> <span class="muComment"># eval</span> +<span id="L649" class="LineNr"> 649 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L650" class="LineNr"> 650 </span> <span class="muComment"># setup: screen</span> +<span id="L651" class="LineNr"> 651 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L652" class="LineNr"> 652 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L653" class="LineNr"> 653 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L654" class="LineNr"> 654 </span> <span class="muComment">#</span> +<span id="L655" class="LineNr"> 655 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L656" class="LineNr"> 656 </span> <span class="muComment"># skip one line of padding</span> +<span id="L657" class="LineNr"> 657 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L644'>test-run-integer</a>/0"</span> +<span id="L658" class="LineNr"> 658 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L644'>test-run-integer</a>/1"</span> +<span id="L659" class="LineNr"> 659 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L644'>test-run-integer</a>/2"</span> +<span id="L660" class="LineNr"> 660 </span><span class="Delimiter">}</span> +<span id="L661" class="LineNr"> 661 </span> +<span id="L662" class="LineNr"> 662 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L662'>test-run-negative-integer</a></span> <span class="Delimiter">{</span> +<span id="L663" class="LineNr"> 663 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L664" class="LineNr"> 664 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L665" class="LineNr"> 665 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"-1"</span> +<span id="L666" class="LineNr"> 666 </span> <span class="muComment"># eval</span> +<span id="L667" class="LineNr"> 667 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L668" class="LineNr"> 668 </span> <span class="muComment"># setup: screen</span> +<span id="L669" class="LineNr"> 669 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L670" class="LineNr"> 670 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L671" class="LineNr"> 671 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L672" class="LineNr"> 672 </span> <span class="muComment">#</span> +<span id="L673" class="LineNr"> 673 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L674" class="LineNr"> 674 </span> <span class="muComment"># skip one line of padding</span> +<span id="L675" class="LineNr"> 675 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" -1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L662'>test-run-negative-integer</a>/0"</span> +<span id="L676" class="LineNr"> 676 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L662'>test-run-negative-integer</a>/1"</span> +<span id="L677" class="LineNr"> 677 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => -1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L662'>test-run-negative-integer</a>/2"</span> +<span id="L678" class="LineNr"> 678 </span><span class="Delimiter">}</span> +<span id="L679" class="LineNr"> 679 </span> +<span id="L680" class="LineNr"> 680 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L680'>test-run-error-invalid-integer</a></span> <span class="Delimiter">{</span> +<span id="L681" class="LineNr"> 681 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L682" class="LineNr"> 682 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L683" class="LineNr"> 683 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"1a"</span> +<span id="L684" class="LineNr"> 684 </span> <span class="muComment"># eval</span> +<span id="L685" class="LineNr"> 685 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L686" class="LineNr"> 686 </span> <span class="muComment"># setup: screen</span> +<span id="L687" class="LineNr"> 687 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L688" class="LineNr"> 688 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L689" class="LineNr"> 689 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L690" class="LineNr"> 690 </span> <span class="muComment">#</span> +<span id="L691" class="LineNr"> 691 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L692" class="LineNr"> 692 </span> <span class="muComment"># skip one line of padding</span> +<span id="L693" class="LineNr"> 693 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 1a "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L680'>test-run-error-invalid-integer</a>/0"</span> +<span id="L694" class="LineNr"> 694 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L680'>test-run-error-invalid-integer</a>/1"</span> +<span id="L695" class="LineNr"> 695 </span> <a href='../504test-screen.mu.html#L71'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc</span>/fg=<span class="Special"><a href='trace.mu.html#L197'>error</a></span>, <span class="Constant">3</span>/y, <span class="Constant">" unbound symbol: 1a "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L680'>test-run-error-invalid-integer</a>/2"</span> +<span id="L696" class="LineNr"> 696 </span><span class="Delimiter">}</span> +<span id="L697" class="LineNr"> 697 </span> +<span id="L698" class="LineNr"> 698 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L698'>test-run-error-unknown-symbol</a></span> <span class="Delimiter">{</span> +<span id="L699" class="LineNr"> 699 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L700" class="LineNr"> 700 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L701" class="LineNr"> 701 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"a"</span> +<span id="L702" class="LineNr"> 702 </span> <span class="muComment"># eval</span> +<span id="L703" class="LineNr"> 703 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L704" class="LineNr"> 704 </span> <span class="muComment"># setup: screen</span> +<span id="L705" class="LineNr"> 705 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L706" class="LineNr"> 706 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L707" class="LineNr"> 707 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L708" class="LineNr"> 708 </span> <span class="muComment">#</span> +<span id="L709" class="LineNr"> 709 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L710" class="LineNr"> 710 </span> <span class="muComment"># skip one line of padding</span> +<span id="L711" class="LineNr"> 711 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" a "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L698'>test-run-error-unknown-symbol</a>/0"</span> +<span id="L712" class="LineNr"> 712 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L698'>test-run-error-unknown-symbol</a>/1"</span> +<span id="L713" class="LineNr"> 713 </span> <a href='../504test-screen.mu.html#L71'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xc</span>/fg=<span class="Special"><a href='trace.mu.html#L197'>error</a></span>, <span class="Constant">3</span>/y, <span class="Constant">" unbound symbol: a "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L698'>test-run-error-unknown-symbol</a>/2"</span> +<span id="L714" class="LineNr"> 714 </span><span class="Delimiter">}</span> +<span id="L715" class="LineNr"> 715 </span> +<span id="L716" class="LineNr"> 716 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L716'>test-run-with-spaces</a></span> <span class="Delimiter">{</span> +<span id="L717" class="LineNr"> 717 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L718" class="LineNr"> 718 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L719" class="LineNr"> 719 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">" 1 \n"</span> +<span id="L720" class="LineNr"> 720 </span> <span class="muComment"># eval</span> +<span id="L721" class="LineNr"> 721 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L722" class="LineNr"> 722 </span> <span class="muComment"># setup: screen</span> +<span id="L723" class="LineNr"> 723 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L724" class="LineNr"> 724 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L725" class="LineNr"> 725 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L726" class="LineNr"> 726 </span> <span class="muComment">#</span> +<span id="L727" class="LineNr"> 727 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L728" class="LineNr"> 728 </span> <span class="muComment"># skip one line of padding</span> +<span id="L729" class="LineNr"> 729 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L716'>test-run-with-spaces</a>/0"</span> +<span id="L730" class="LineNr"> 730 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L716'>test-run-with-spaces</a>/1"</span> +<span id="L731" class="LineNr"> 731 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L716'>test-run-with-spaces</a>/2"</span> +<span id="L732" class="LineNr"> 732 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" => 1 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L716'>test-run-with-spaces</a>/3"</span> +<span id="L733" class="LineNr"> 733 </span><span class="Delimiter">}</span> +<span id="L734" class="LineNr"> 734 </span> +<span id="L735" class="LineNr"> 735 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L735'>test-run-quote</a></span> <span class="Delimiter">{</span> +<span id="L736" class="LineNr"> 736 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L737" class="LineNr"> 737 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L738" class="LineNr"> 738 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'a"</span> +<span id="L739" class="LineNr"> 739 </span> <span class="muComment"># eval</span> +<span id="L740" class="LineNr"> 740 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L741" class="LineNr"> 741 </span> <span class="muComment"># setup: screen</span> +<span id="L742" class="LineNr"> 742 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L743" class="LineNr"> 743 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L744" class="LineNr"> 744 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L745" class="LineNr"> 745 </span> <span class="muComment">#</span> +<span id="L746" class="LineNr"> 746 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L747" class="LineNr"> 747 </span> <span class="muComment"># skip one line of padding</span> +<span id="L748" class="LineNr"> 748 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 'a "</span>, <span class="Constant">"F - test-run-quote/0"</span> +<span id="L749" class="LineNr"> 749 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L735'>test-run-quote</a>/1"</span> +<span id="L750" class="LineNr"> 750 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => a "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L735'>test-run-quote</a>/2"</span> +<span id="L751" class="LineNr"> 751 </span><span class="Delimiter">}</span> +<span id="L752" class="LineNr"> 752 </span> +<span id="L753" class="LineNr"> 753 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L753'>test-run-dotted-list</a></span> <span class="Delimiter">{</span> +<span id="L754" class="LineNr"> 754 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L755" class="LineNr"> 755 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L756" class="LineNr"> 756 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'(a . b)"</span> +<span id="L757" class="LineNr"> 757 </span> <span class="muComment"># eval</span> +<span id="L758" class="LineNr"> 758 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L759" class="LineNr"> 759 </span> <span class="muComment"># setup: screen</span> +<span id="L760" class="LineNr"> 760 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L761" class="LineNr"> 761 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L762" class="LineNr"> 762 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L763" class="LineNr"> 763 </span> <span class="muComment">#</span> +<span id="L764" class="LineNr"> 764 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L765" class="LineNr"> 765 </span> <span class="muComment"># skip one line of padding</span> +<span id="L766" class="LineNr"> 766 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" '(a . b) "</span>, <span class="Constant">"F - test-run-dotted-list/0"</span> +<span id="L767" class="LineNr"> 767 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L753'>test-run-dotted-list</a>/1"</span> +<span id="L768" class="LineNr"> 768 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => (a . b) "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L753'>test-run-dotted-list</a>/2"</span> +<span id="L769" class="LineNr"> 769 </span><span class="Delimiter">}</span> +<span id="L770" class="LineNr"> 770 </span> +<span id="L771" class="LineNr"> 771 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L771'>test-run-dot-and-list</a></span> <span class="Delimiter">{</span> +<span id="L772" class="LineNr"> 772 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L773" class="LineNr"> 773 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L774" class="LineNr"> 774 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'(a . (b))"</span> +<span id="L775" class="LineNr"> 775 </span> <span class="muComment"># eval</span> +<span id="L776" class="LineNr"> 776 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L777" class="LineNr"> 777 </span> <span class="muComment"># setup: screen</span> +<span id="L778" class="LineNr"> 778 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L779" class="LineNr"> 779 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L780" class="LineNr"> 780 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L781" class="LineNr"> 781 </span> <span class="muComment">#</span> +<span id="L782" class="LineNr"> 782 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L783" class="LineNr"> 783 </span> <span class="muComment"># skip one line of padding</span> +<span id="L784" class="LineNr"> 784 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" '(a . (b)) "</span>, <span class="Constant">"F - test-run-dot-and-list/0"</span> +<span id="L785" class="LineNr"> 785 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L771'>test-run-dot-and-list</a>/1"</span> +<span id="L786" class="LineNr"> 786 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => (a b) "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L771'>test-run-dot-and-list</a>/2"</span> +<span id="L787" class="LineNr"> 787 </span><span class="Delimiter">}</span> +<span id="L788" class="LineNr"> 788 </span> +<span id="L789" class="LineNr"> 789 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L789'>test-run-final-dot</a></span> <span class="Delimiter">{</span> +<span id="L790" class="LineNr"> 790 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L791" class="LineNr"> 791 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L792" class="LineNr"> 792 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'(a .)"</span> +<span id="L793" class="LineNr"> 793 </span> <span class="muComment"># eval</span> +<span id="L794" class="LineNr"> 794 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L795" class="LineNr"> 795 </span> <span class="muComment"># setup: screen</span> +<span id="L796" class="LineNr"> 796 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L797" class="LineNr"> 797 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L798" class="LineNr"> 798 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L799" class="LineNr"> 799 </span> <span class="muComment">#</span> +<span id="L800" class="LineNr"> 800 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L801" class="LineNr"> 801 </span> <span class="muComment"># skip one line of padding</span> +<span id="L802" class="LineNr"> 802 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" '(a .) "</span>, <span class="Constant">"F - test-run-final-dot/0"</span> +<span id="L803" class="LineNr"> 803 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L789'>test-run-final-dot</a>/1"</span> +<span id="L804" class="LineNr"> 804 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" '. )' makes no sense "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L789'>test-run-final-dot</a>/2"</span> +<span id="L805" class="LineNr"> 805 </span> <span class="muComment"># further errors may occur</span> +<span id="L806" class="LineNr"> 806 </span><span class="Delimiter">}</span> +<span id="L807" class="LineNr"> 807 </span> +<span id="L808" class="LineNr"> 808 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L808'>test-run-double-dot</a></span> <span class="Delimiter">{</span> +<span id="L809" class="LineNr"> 809 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L810" class="LineNr"> 810 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L811" class="LineNr"> 811 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'(a . .)"</span> +<span id="L812" class="LineNr"> 812 </span> <span class="muComment"># eval</span> +<span id="L813" class="LineNr"> 813 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L814" class="LineNr"> 814 </span> <span class="muComment"># setup: screen</span> +<span id="L815" class="LineNr"> 815 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L816" class="LineNr"> 816 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L817" class="LineNr"> 817 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L818" class="LineNr"> 818 </span> <span class="muComment">#</span> +<span id="L819" class="LineNr"> 819 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L820" class="LineNr"> 820 </span> <span class="muComment"># skip one line of padding</span> +<span id="L821" class="LineNr"> 821 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" '(a . .) "</span>, <span class="Constant">"F - test-run-double-dot/0"</span> +<span id="L822" class="LineNr"> 822 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L808'>test-run-double-dot</a>/1"</span> +<span id="L823" class="LineNr"> 823 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" '. .' makes no sense "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L808'>test-run-double-dot</a>/2"</span> +<span id="L824" class="LineNr"> 824 </span> <span class="muComment"># further errors may occur</span> +<span id="L825" class="LineNr"> 825 </span><span class="Delimiter">}</span> +<span id="L826" class="LineNr"> 826 </span> +<span id="L827" class="LineNr"> 827 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L827'>test-run-multiple-expressions-after-dot</a></span> <span class="Delimiter">{</span> +<span id="L828" class="LineNr"> 828 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L830" class="LineNr"> 830 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"'(a . b c)"</span> +<span id="L831" class="LineNr"> 831 </span> <span class="muComment"># eval</span> +<span id="L832" class="LineNr"> 832 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L833" class="LineNr"> 833 </span> <span class="muComment"># setup: screen</span> +<span id="L834" class="LineNr"> 834 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L835" class="LineNr"> 835 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L836" class="LineNr"> 836 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L837" class="LineNr"> 837 </span> <span class="muComment">#</span> +<span id="L838" class="LineNr"> 838 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L839" class="LineNr"> 839 </span> <span class="muComment"># skip one line of padding</span> +<span id="L840" class="LineNr"> 840 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" '(a . b c) "</span>, <span class="Constant">"F - test-run-multiple-expressions-after-dot/0"</span> +<span id="L841" class="LineNr"> 841 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L827'>test-run-multiple-expressions-after-dot</a>/1"</span> +<span id="L842" class="LineNr"> 842 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" cannot have multiple expressions between '.' and ')' "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L827'>test-run-multiple-expressions-after-dot</a>/2"</span> +<span id="L843" class="LineNr"> 843 </span> <span class="muComment"># further errors may occur</span> +<span id="L844" class="LineNr"> 844 </span><span class="Delimiter">}</span> +<span id="L845" class="LineNr"> 845 </span> +<span id="L846" class="LineNr"> 846 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L846'>test-run-stream</a></span> <span class="Delimiter">{</span> +<span id="L847" class="LineNr"> 847 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L848" class="LineNr"> 848 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L849" class="LineNr"> 849 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"[a b]"</span> +<span id="L850" class="LineNr"> 850 </span> <span class="muComment"># eval</span> +<span id="L851" class="LineNr"> 851 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L852" class="LineNr"> 852 </span> <span class="muComment"># setup: screen</span> +<span id="L853" class="LineNr"> 853 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L854" class="LineNr"> 854 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L855" class="LineNr"> 855 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L856" class="LineNr"> 856 </span> <span class="muComment">#</span> +<span id="L857" class="LineNr"> 857 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L858" class="LineNr"> 858 </span> <span class="muComment"># skip one line of padding</span> +<span id="L859" class="LineNr"> 859 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" [a b] "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L846'>test-run-stream</a>/0"</span> +<span id="L860" class="LineNr"> 860 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L846'>test-run-stream</a>/1"</span> +<span id="L861" class="LineNr"> 861 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => [a b] "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L846'>test-run-stream</a>/2"</span> +<span id="L862" class="LineNr"> 862 </span><span class="Delimiter">}</span> +<span id="L863" class="LineNr"> 863 </span> +<span id="L864" class="LineNr"> 864 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a></span> <span class="Delimiter">{</span> +<span id="L865" class="LineNr"> 865 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L866" class="LineNr"> 866 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L867" class="LineNr"> 867 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"12"</span> +<span id="L868" class="LineNr"> 868 </span> <span class="muComment"># eval</span> +<span id="L869" class="LineNr"> 869 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L870" class="LineNr"> 870 </span> <span class="muComment"># setup: screen</span> +<span id="L871" class="LineNr"> 871 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L872" class="LineNr"> 872 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L873" class="LineNr"> 873 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L874" class="LineNr"> 874 </span> <span class="muComment">#</span> +<span id="L875" class="LineNr"> 875 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L876" class="LineNr"> 876 </span> <span class="muComment"># skip one line of padding</span> +<span id="L877" class="LineNr"> 877 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/pre-0"</span> +<span id="L878" class="LineNr"> 878 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/pre-0/cursor"</span> +<span id="L879" class="LineNr"> 879 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/pre-1"</span> +<span id="L880" class="LineNr"> 880 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/pre-1/cursor"</span> +<span id="L881" class="LineNr"> 881 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/pre-2"</span> +<span id="L882" class="LineNr"> 882 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/pre-2/cursor"</span> +<span id="L883" class="LineNr"> 883 </span> <span class="muComment"># move cursor into trace</span> +<span id="L884" class="LineNr"> 884 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xd</span>/ctrl-m, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L885" class="LineNr"> 885 </span> <span class="muComment">#</span> +<span id="L886" class="LineNr"> 886 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L887" class="LineNr"> 887 </span> <span class="muComment"># skip one line of padding</span> +<span id="L888" class="LineNr"> 888 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/trace-0"</span> +<span id="L889" class="LineNr"> 889 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/trace-0/cursor"</span> +<span id="L890" class="LineNr"> 890 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/trace-1"</span> +<span id="L891" class="LineNr"> 891 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/trace-1/cursor"</span> +<span id="L892" class="LineNr"> 892 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/trace-2"</span> +<span id="L893" class="LineNr"> 893 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/trace-2/cursor"</span> +<span id="L894" class="LineNr"> 894 </span> <span class="muComment"># move cursor into input</span> +<span id="L895" class="LineNr"> 895 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xd</span>/ctrl-m, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L896" class="LineNr"> 896 </span> <span class="muComment">#</span> +<span id="L897" class="LineNr"> 897 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L898" class="LineNr"> 898 </span> <span class="muComment"># skip one line of padding</span> +<span id="L899" class="LineNr"> 899 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/input-0"</span> +<span id="L900" class="LineNr"> 900 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/input-0/cursor"</span> +<span id="L901" class="LineNr"> 901 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/input-1"</span> +<span id="L902" class="LineNr"> 902 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/input-1/cursor"</span> +<span id="L903" class="LineNr"> 903 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/input-2"</span> +<span id="L904" class="LineNr"> 904 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L864'>test-run-move-cursor-into-trace</a>/input-2/cursor"</span> +<span id="L905" class="LineNr"> 905 </span><span class="Delimiter">}</span> +<span id="L906" class="LineNr"> 906 </span> +<span id="L907" class="LineNr"> 907 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L907'>has-trace?</a></span> _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L908" class="LineNr"> 908 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> copy _self +<span id="L909" class="LineNr"> 909 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special"><-</span> get self, trace +<span id="L910" class="LineNr"> 910 </span> <span class="PreProc">var</span> _trace/eax: (addr trace) <span class="Special"><-</span> <a href='../120allocate.subx.html#L223'>lookup</a> *trace-ah +<span id="L911" class="LineNr"> 911 </span> <span class="PreProc">var</span> trace/<span class="muRegEdx">edx</span>: (addr trace) <span class="Special"><-</span> copy _trace +<span id="L912" class="LineNr"> 912 </span> compare trace, <span class="Constant">0</span> <span id="L913" class="LineNr"> 913 </span> <span class="Delimiter">{</span> -<span id="L914" class="LineNr"> 914 </span> <span class="PreProc">break-if-></span> -<span id="L915" class="LineNr"> 915 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L914" class="LineNr"> 914 </span> <span class="PreProc">break-if-!=</span> +<span id="L915" class="LineNr"> 915 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"null trace"</span> <span id="L916" class="LineNr"> 916 </span> <span class="Delimiter">}</span> -<span id="L917" class="LineNr"> 917 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true -<span id="L918" class="LineNr"> 918 </span><span class="Delimiter">}</span> -<span id="L919" class="LineNr"> 919 </span> -<span id="L920" class="LineNr"> 920 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L920'>test-run-expand-trace</a></span> <span class="Delimiter">{</span> -<span id="L921" class="LineNr"> 921 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L922" class="LineNr"> 922 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L923" class="LineNr"> 923 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"12"</span> -<span id="L924" class="LineNr"> 924 </span> <span class="muComment"># eval</span> -<span id="L925" class="LineNr"> 925 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L926" class="LineNr"> 926 </span> <span class="muComment"># setup: screen</span> -<span id="L927" class="LineNr"> 927 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L928" class="LineNr"> 928 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L929" class="LineNr"> 929 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L930" class="LineNr"> 930 </span> <span class="muComment">#</span> -<span id="L931" class="LineNr"> 931 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L932" class="LineNr"> 932 </span> <span class="muComment"># skip one line of padding</span> -<span id="L933" class="LineNr"> 933 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre0-0"</span> -<span id="L934" class="LineNr"> 934 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre0-0/cursor"</span> -<span id="L935" class="LineNr"> 935 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre0-1"</span> -<span id="L936" class="LineNr"> 936 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre0-1/cursor"</span> -<span id="L937" class="LineNr"> 937 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre0-2"</span> -<span id="L938" class="LineNr"> 938 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre0-2/cursor"</span> -<span id="L939" class="LineNr"> 939 </span> <span class="muComment"># move cursor into trace</span> -<span id="L940" class="LineNr"> 940 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xd</span>/ctrl-m, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L941" class="LineNr"> 941 </span> <span class="muComment">#</span> -<span id="L942" class="LineNr"> 942 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L943" class="LineNr"> 943 </span> <span class="muComment"># skip one line of padding</span> -<span id="L944" class="LineNr"> 944 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre1-0"</span> -<span id="L945" class="LineNr"> 945 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre1-0/cursor"</span> -<span id="L946" class="LineNr"> 946 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre1-1"</span> -<span id="L947" class="LineNr"> 947 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre1-1/cursor"</span> -<span id="L948" class="LineNr"> 948 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre1-2"</span> -<span id="L949" class="LineNr"> 949 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/pre1-2/cursor"</span> -<span id="L950" class="LineNr"> 950 </span> <span class="muComment"># expand</span> -<span id="L951" class="LineNr"> 951 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xa</span>/newline, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L952" class="LineNr"> 952 </span> <span class="muComment">#</span> -<span id="L953" class="LineNr"> 953 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L954" class="LineNr"> 954 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L955" class="LineNr"> 955 </span> <span class="muComment"># skip one line of padding</span> -<span id="L956" class="LineNr"> 956 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/expand-0"</span> -<span id="L957" class="LineNr"> 957 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/expand-0/cursor"</span> -<span id="L958" class="LineNr"> 958 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 toke"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/expand-1"</span> -<span id="L959" class="LineNr"> 959 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||||||"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/expand-1/cursor"</span> -<span id="L960" class="LineNr"> 960 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/expand-2"</span> -<span id="L961" class="LineNr"> 961 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/expand-2/cursor"</span> -<span id="L962" class="LineNr"> 962 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" 1 inse"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/expand-3"</span> -<span id="L963" class="LineNr"> 963 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L920'>test-run-expand-trace</a>/expand-3/cursor"</span> -<span id="L964" class="LineNr"> 964 </span><span class="Delimiter">}</span> -<span id="L965" class="LineNr"> 965 </span> -<span id="L966" class="LineNr"> 966 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a></span> <span class="Delimiter">{</span> -<span id="L967" class="LineNr"> 967 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L968" class="LineNr"> 968 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L969" class="LineNr"> 969 </span> <span class="muComment"># initialize sandbox with a max-depth of 3</span> -<span id="L970" class="LineNr"> 970 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"12"</span> -<span id="L971" class="LineNr"> 971 </span> <span class="muComment"># eval</span> -<span id="L972" class="LineNr"> 972 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L973" class="LineNr"> 973 </span> <span class="muComment"># setup: screen</span> -<span id="L974" class="LineNr"> 974 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L975" class="LineNr"> 975 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L976" class="LineNr"> 976 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L977" class="LineNr"> 977 </span> <span class="muComment">#</span> -<span id="L978" class="LineNr"> 978 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L979" class="LineNr"> 979 </span> <span class="muComment"># skip one line of padding</span> -<span id="L980" class="LineNr"> 980 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre0-0"</span> -<span id="L981" class="LineNr"> 981 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre0-0/cursor"</span> -<span id="L982" class="LineNr"> 982 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre0-1"</span> -<span id="L983" class="LineNr"> 983 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre0-1/cursor"</span> -<span id="L984" class="LineNr"> 984 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre0-2"</span> -<span id="L985" class="LineNr"> 985 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre0-2/cursor"</span> -<span id="L986" class="LineNr"> 986 </span> <span class="muComment"># move cursor into trace</span> -<span id="L987" class="LineNr"> 987 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xd</span>/ctrl-m, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L988" class="LineNr"> 988 </span> <span class="muComment">#</span> -<span id="L989" class="LineNr"> 989 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L990" class="LineNr"> 990 </span> <span class="muComment"># skip one line of padding</span> -<span id="L991" class="LineNr"> 991 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre1-0"</span> -<span id="L992" class="LineNr"> 992 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre1-0/cursor"</span> -<span id="L993" class="LineNr"> 993 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre1-1"</span> -<span id="L994" class="LineNr"> 994 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre1-1/cursor"</span> -<span id="L995" class="LineNr"> 995 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre1-2"</span> -<span id="L996" class="LineNr"> 996 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre1-2/cursor"</span> -<span id="L997" class="LineNr"> 997 </span> <span class="muComment"># expand</span> -<span id="L998" class="LineNr"> 998 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xa</span>/newline, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L999" class="LineNr"> 999 </span> <span class="muComment">#</span> -<span id="L1000" class="LineNr">1000 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1001" class="LineNr">1001 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L1002" class="LineNr">1002 </span> <span class="muComment"># skip one line of padding</span> -<span id="L1003" class="LineNr">1003 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre2-0"</span> -<span id="L1004" class="LineNr">1004 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre2-0/cursor"</span> -<span id="L1005" class="LineNr">1005 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 toke"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre2-1"</span> -<span id="L1006" class="LineNr">1006 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||||||"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre2-1/cursor"</span> -<span id="L1007" class="LineNr">1007 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre2-2"</span> -<span id="L1008" class="LineNr">1008 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre2-2/cursor"</span> -<span id="L1009" class="LineNr">1009 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" 1 inse"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre2-2"</span> -<span id="L1010" class="LineNr">1010 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/pre2-2/cursor"</span> -<span id="L1011" class="LineNr">1011 </span> <span class="muComment"># move cursor down and expand</span> -<span id="L1012" class="LineNr">1012 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L1013" class="LineNr">1013 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L1014" class="LineNr">1014 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xa</span>/newline, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L1015" class="LineNr">1015 </span> <span class="muComment">#</span> -<span id="L1016" class="LineNr">1016 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1017" class="LineNr">1017 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L1018" class="LineNr">1018 </span> <span class="muComment"># screen looks same as if trace max-depth was really high</span> -<span id="L1019" class="LineNr">1019 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-0"</span> -<span id="L1020" class="LineNr">1020 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-0/cursor"</span> -<span id="L1021" class="LineNr">1021 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 toke"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-1"</span> -<span id="L1022" class="LineNr">1022 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-1/cursor"</span> -<span id="L1023" class="LineNr">1023 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" 2 next"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-2"</span> -<span id="L1024" class="LineNr">1024 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" ||||||"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-2/cursor"</span> -<span id="L1025" class="LineNr">1025 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-3"</span> -<span id="L1026" class="LineNr">1026 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-3/cursor"</span> -<span id="L1027" class="LineNr">1027 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>/y, <span class="Constant">" 2 next"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-4"</span> -<span id="L1028" class="LineNr">1028 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">5</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-4/cursor"</span> -<span id="L1029" class="LineNr">1029 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">6</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-5"</span> -<span id="L1030" class="LineNr">1030 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">6</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-5/cursor"</span> -<span id="L1031" class="LineNr">1031 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/y, <span class="Constant">" 2 => 1"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-6"</span> -<span id="L1032" class="LineNr">1032 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">7</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L966'>test-run-can-rerun-when-expanding-trace</a>/expand-6/cursor"</span> -<span id="L1033" class="LineNr">1033 </span><span class="Delimiter">}</span> -<span id="L1034" class="LineNr">1034 </span> -<span id="L1035" class="LineNr">1035 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a></span> <span class="Delimiter">{</span> -<span id="L1036" class="LineNr">1036 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> -<span id="L1037" class="LineNr">1037 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage -<span id="L1038" class="LineNr">1038 </span> <span class="muComment"># initialize sandbox with a max-depth of 3</span> -<span id="L1039" class="LineNr">1039 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"7"</span> -<span id="L1040" class="LineNr">1040 </span> <span class="muComment"># eval</span> -<span id="L1041" class="LineNr">1041 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L1042" class="LineNr">1042 </span> <span class="muComment"># setup: screen</span> -<span id="L1043" class="LineNr">1043 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1044" class="LineNr">1044 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L1045" class="LineNr">1045 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics -<span id="L1046" class="LineNr">1046 </span> <span class="muComment">#</span> -<span id="L1047" class="LineNr">1047 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L1048" class="LineNr">1048 </span> <span class="muComment"># skip one line of padding</span> -<span id="L1049" class="LineNr">1049 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre0-0"</span> -<span id="L1050" class="LineNr">1050 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre0-0/cursor"</span> -<span id="L1051" class="LineNr">1051 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre0-1"</span> -<span id="L1052" class="LineNr">1052 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre0-1/cursor"</span> -<span id="L1053" class="LineNr">1053 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre0-2"</span> -<span id="L1054" class="LineNr">1054 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre0-2/cursor"</span> -<span id="L1055" class="LineNr">1055 </span> <span class="muComment"># move cursor into trace</span> -<span id="L1056" class="LineNr">1056 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xd</span>/ctrl-m, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L1057" class="LineNr">1057 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L1058" class="LineNr">1058 </span> <span class="muComment">#</span> -<span id="L1059" class="LineNr">1059 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre1-0"</span> -<span id="L1060" class="LineNr">1060 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre1-0/cursor"</span> -<span id="L1061" class="LineNr">1061 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre1-1"</span> -<span id="L1062" class="LineNr">1062 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre1-1/cursor"</span> -<span id="L1063" class="LineNr">1063 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre1-2"</span> -<span id="L1064" class="LineNr">1064 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre1-2/cursor"</span> -<span id="L1065" class="LineNr">1065 </span> <span class="muComment"># expand</span> -<span id="L1066" class="LineNr">1066 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xa</span>/newline, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L1067" class="LineNr">1067 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1068" class="LineNr">1068 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L1069" class="LineNr">1069 </span> <span class="muComment">#</span> -<span id="L1070" class="LineNr">1070 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-0"</span> -<span id="L1071" class="LineNr">1071 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-0/cursor"</span> -<span id="L1072" class="LineNr">1072 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 <a href='tokenize.mu.html#L13'>tokenize</a> "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-1"</span> -<span id="L1073" class="LineNr">1073 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" |||||||||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-1/cursor"</span> -<span id="L1074" class="LineNr">1074 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-2"</span> -<span id="L1075" class="LineNr">1075 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-2/cursor"</span> -<span id="L1076" class="LineNr">1076 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" 1 insert parens "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-3"</span> -<span id="L1077" class="LineNr">1077 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-3/cursor"</span> -<span id="L1078" class="LineNr">1078 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>/y, <span class="Constant">" 1 parse "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-4"</span> -<span id="L1079" class="LineNr">1079 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">5</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-4/cursor"</span> -<span id="L1080" class="LineNr">1080 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">6</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-5"</span> -<span id="L1081" class="LineNr">1081 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">6</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-5/cursor"</span> -<span id="L1082" class="LineNr">1082 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/y, <span class="Constant">" 1 transform infix "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-6"</span> -<span id="L1083" class="LineNr">1083 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">7</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-6/cursor"</span> -<span id="L1084" class="LineNr">1084 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">8</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-7"</span> -<span id="L1085" class="LineNr">1085 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">8</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-7/cursor"</span> -<span id="L1086" class="LineNr">1086 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">9</span>/y, <span class="Constant">" 1 <a href='macroexpand.mu.html#L1'>macroexpand</a> 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-8"</span> -<span id="L1087" class="LineNr">1087 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">9</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-8/cursor"</span> -<span id="L1088" class="LineNr">1088 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-9"</span> -<span id="L1089" class="LineNr">1089 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xa</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-9/cursor"</span> -<span id="L1090" class="LineNr">1090 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xb</span>/y, <span class="Constant">" 1 => 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-10"</span> -<span id="L1091" class="LineNr">1091 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xb</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre2-10/cursor"</span> -<span id="L1092" class="LineNr">1092 </span> <span class="muComment"># move cursor down below the macroexpand line and expand</span> -<span id="L1093" class="LineNr">1093 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L1094" class="LineNr">1094 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L1095" class="LineNr">1095 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L1096" class="LineNr">1096 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L1097" class="LineNr">1097 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L1098" class="LineNr">1098 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L917" class="LineNr"> 917 </span> <span class="PreProc">var</span> first-free/<span class="muRegEbx">ebx</span>: (addr int) <span class="Special"><-</span> get trace, first-free +<span id="L918" class="LineNr"> 918 </span> compare *first-free, <span class="Constant">0</span> +<span id="L919" class="LineNr"> 919 </span> <span class="Delimiter">{</span> +<span id="L920" class="LineNr"> 920 </span> <span class="PreProc">break-if-></span> +<span id="L921" class="LineNr"> 921 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false +<span id="L922" class="LineNr"> 922 </span> <span class="Delimiter">}</span> +<span id="L923" class="LineNr"> 923 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true +<span id="L924" class="LineNr"> 924 </span><span class="Delimiter">}</span> +<span id="L925" class="LineNr"> 925 </span> +<span id="L926" class="LineNr"> 926 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L926'>test-run-expand-trace</a></span> <span class="Delimiter">{</span> +<span id="L927" class="LineNr"> 927 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L928" class="LineNr"> 928 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L929" class="LineNr"> 929 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"12"</span> +<span id="L930" class="LineNr"> 930 </span> <span class="muComment"># eval</span> +<span id="L931" class="LineNr"> 931 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L932" class="LineNr"> 932 </span> <span class="muComment"># setup: screen</span> +<span id="L933" class="LineNr"> 933 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L934" class="LineNr"> 934 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L935" class="LineNr"> 935 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L936" class="LineNr"> 936 </span> <span class="muComment">#</span> +<span id="L937" class="LineNr"> 937 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L938" class="LineNr"> 938 </span> <span class="muComment"># skip one line of padding</span> +<span id="L939" class="LineNr"> 939 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre0-0"</span> +<span id="L940" class="LineNr"> 940 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre0-0/cursor"</span> +<span id="L941" class="LineNr"> 941 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre0-1"</span> +<span id="L942" class="LineNr"> 942 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre0-1/cursor"</span> +<span id="L943" class="LineNr"> 943 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre0-2"</span> +<span id="L944" class="LineNr"> 944 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre0-2/cursor"</span> +<span id="L945" class="LineNr"> 945 </span> <span class="muComment"># move cursor into trace</span> +<span id="L946" class="LineNr"> 946 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xd</span>/ctrl-m, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L947" class="LineNr"> 947 </span> <span class="muComment">#</span> +<span id="L948" class="LineNr"> 948 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L949" class="LineNr"> 949 </span> <span class="muComment"># skip one line of padding</span> +<span id="L950" class="LineNr"> 950 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre1-0"</span> +<span id="L951" class="LineNr"> 951 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre1-0/cursor"</span> +<span id="L952" class="LineNr"> 952 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre1-1"</span> +<span id="L953" class="LineNr"> 953 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre1-1/cursor"</span> +<span id="L954" class="LineNr"> 954 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre1-2"</span> +<span id="L955" class="LineNr"> 955 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/pre1-2/cursor"</span> +<span id="L956" class="LineNr"> 956 </span> <span class="muComment"># expand</span> +<span id="L957" class="LineNr"> 957 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xa</span>/newline, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L958" class="LineNr"> 958 </span> <span class="muComment">#</span> +<span id="L959" class="LineNr"> 959 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L960" class="LineNr"> 960 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L961" class="LineNr"> 961 </span> <span class="muComment"># skip one line of padding</span> +<span id="L962" class="LineNr"> 962 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/expand-0"</span> +<span id="L963" class="LineNr"> 963 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/expand-0/cursor"</span> +<span id="L964" class="LineNr"> 964 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 toke"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/expand-1"</span> +<span id="L965" class="LineNr"> 965 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||||||"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/expand-1/cursor"</span> +<span id="L966" class="LineNr"> 966 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/expand-2"</span> +<span id="L967" class="LineNr"> 967 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/expand-2/cursor"</span> +<span id="L968" class="LineNr"> 968 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" 1 inse"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/expand-3"</span> +<span id="L969" class="LineNr"> 969 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/expand-3/cursor"</span> +<span id="L970" class="LineNr"> 970 </span><span class="Delimiter">}</span> +<span id="L971" class="LineNr"> 971 </span> +<span id="L972" class="LineNr"> 972 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a></span> <span class="Delimiter">{</span> +<span id="L973" class="LineNr"> 973 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L974" class="LineNr"> 974 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L975" class="LineNr"> 975 </span> <span class="muComment"># initialize sandbox with a max-depth of 3</span> +<span id="L976" class="LineNr"> 976 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"12"</span> +<span id="L977" class="LineNr"> 977 </span> <span class="muComment"># eval</span> +<span id="L978" class="LineNr"> 978 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L979" class="LineNr"> 979 </span> <span class="muComment"># setup: screen</span> +<span id="L980" class="LineNr"> 980 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L981" class="LineNr"> 981 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L982" class="LineNr"> 982 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L983" class="LineNr"> 983 </span> <span class="muComment">#</span> +<span id="L984" class="LineNr"> 984 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L985" class="LineNr"> 985 </span> <span class="muComment"># skip one line of padding</span> +<span id="L986" class="LineNr"> 986 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre0-0"</span> +<span id="L987" class="LineNr"> 987 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre0-0/cursor"</span> +<span id="L988" class="LineNr"> 988 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre0-1"</span> +<span id="L989" class="LineNr"> 989 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre0-1/cursor"</span> +<span id="L990" class="LineNr"> 990 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre0-2"</span> +<span id="L991" class="LineNr"> 991 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre0-2/cursor"</span> +<span id="L992" class="LineNr"> 992 </span> <span class="muComment"># move cursor into trace</span> +<span id="L993" class="LineNr"> 993 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xd</span>/ctrl-m, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L994" class="LineNr"> 994 </span> <span class="muComment">#</span> +<span id="L995" class="LineNr"> 995 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L996" class="LineNr"> 996 </span> <span class="muComment"># skip one line of padding</span> +<span id="L997" class="LineNr"> 997 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre1-0"</span> +<span id="L998" class="LineNr"> 998 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre1-0/cursor"</span> +<span id="L999" class="LineNr"> 999 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre1-1"</span> +<span id="L1000" class="LineNr">1000 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre1-1/cursor"</span> +<span id="L1001" class="LineNr">1001 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre1-2"</span> +<span id="L1002" class="LineNr">1002 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre1-2/cursor"</span> +<span id="L1003" class="LineNr">1003 </span> <span class="muComment"># expand</span> +<span id="L1004" class="LineNr">1004 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xa</span>/newline, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L1005" class="LineNr">1005 </span> <span class="muComment">#</span> +<span id="L1006" class="LineNr">1006 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1007" class="LineNr">1007 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L1008" class="LineNr">1008 </span> <span class="muComment"># skip one line of padding</span> +<span id="L1009" class="LineNr">1009 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre2-0"</span> +<span id="L1010" class="LineNr">1010 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre2-0/cursor"</span> +<span id="L1011" class="LineNr">1011 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 toke"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre2-1"</span> +<span id="L1012" class="LineNr">1012 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||||||"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre2-1/cursor"</span> +<span id="L1013" class="LineNr">1013 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre2-2"</span> +<span id="L1014" class="LineNr">1014 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre2-2/cursor"</span> +<span id="L1015" class="LineNr">1015 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" 1 inse"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre2-2"</span> +<span id="L1016" class="LineNr">1016 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre2-2/cursor"</span> +<span id="L1017" class="LineNr">1017 </span> <span class="muComment"># move cursor down and expand</span> +<span id="L1018" class="LineNr">1018 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L1019" class="LineNr">1019 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L1020" class="LineNr">1020 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xa</span>/newline, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L1021" class="LineNr">1021 </span> <span class="muComment">#</span> +<span id="L1022" class="LineNr">1022 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1023" class="LineNr">1023 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L1024" class="LineNr">1024 </span> <span class="muComment"># screen looks same as if trace max-depth was really high</span> +<span id="L1025" class="LineNr">1025 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 12 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-0"</span> +<span id="L1026" class="LineNr">1026 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-0/cursor"</span> +<span id="L1027" class="LineNr">1027 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 toke"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-1"</span> +<span id="L1028" class="LineNr">1028 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-1/cursor"</span> +<span id="L1029" class="LineNr">1029 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" 2 next"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-2"</span> +<span id="L1030" class="LineNr">1030 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" ||||||"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-2/cursor"</span> +<span id="L1031" class="LineNr">1031 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-3"</span> +<span id="L1032" class="LineNr">1032 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-3/cursor"</span> +<span id="L1033" class="LineNr">1033 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>/y, <span class="Constant">" 2 next"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-4"</span> +<span id="L1034" class="LineNr">1034 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">5</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-4/cursor"</span> +<span id="L1035" class="LineNr">1035 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">6</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-5"</span> +<span id="L1036" class="LineNr">1036 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">6</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-5/cursor"</span> +<span id="L1037" class="LineNr">1037 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/y, <span class="Constant">" 2 => 1"</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-6"</span> +<span id="L1038" class="LineNr">1038 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">7</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-6/cursor"</span> +<span id="L1039" class="LineNr">1039 </span><span class="Delimiter">}</span> +<span id="L1040" class="LineNr">1040 </span> +<span id="L1041" class="LineNr">1041 </span><span class="PreProc">fn</span> <span class="muTest"><a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a></span> <span class="Delimiter">{</span> +<span id="L1042" class="LineNr">1042 </span> <span class="PreProc">var</span> sandbox-storage: <a href='sandbox.mu.html#L1'>sandbox</a> +<span id="L1043" class="LineNr">1043 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEsi">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special"><-</span> address sandbox-storage +<span id="L1044" class="LineNr">1044 </span> <span class="muComment"># initialize sandbox with a max-depth of 3</span> +<span id="L1045" class="LineNr">1045 </span> <a href='sandbox.mu.html#L41'>initialize-sandbox-with</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">"7"</span> +<span id="L1046" class="LineNr">1046 </span> <span class="muComment"># eval</span> +<span id="L1047" class="LineNr">1047 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x13</span>/ctrl-s, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L1048" class="LineNr">1048 </span> <span class="muComment"># setup: screen</span> +<span id="L1049" class="LineNr">1049 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1050" class="LineNr">1050 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEdi">edi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L1051" class="LineNr">1051 </span> <a href='../500fake-screen.mu.html#L33'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">0</span>/no-pixel-graphics +<span id="L1052" class="LineNr">1052 </span> <span class="muComment">#</span> +<span id="L1053" class="LineNr">1053 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L1054" class="LineNr">1054 </span> <span class="muComment"># skip one line of padding</span> +<span id="L1055" class="LineNr">1055 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre0-0"</span> +<span id="L1056" class="LineNr">1056 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" | "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre0-0/cursor"</span> +<span id="L1057" class="LineNr">1057 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre0-1"</span> +<span id="L1058" class="LineNr">1058 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre0-1/cursor"</span> +<span id="L1059" class="LineNr">1059 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre0-2"</span> +<span id="L1060" class="LineNr">1060 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre0-2/cursor"</span> +<span id="L1061" class="LineNr">1061 </span> <span class="muComment"># move cursor into trace</span> +<span id="L1062" class="LineNr">1062 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xd</span>/ctrl-m, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L1063" class="LineNr">1063 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L1064" class="LineNr">1064 </span> <span class="muComment">#</span> +<span id="L1065" class="LineNr">1065 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre1-0"</span> +<span id="L1066" class="LineNr">1066 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre1-0/cursor"</span> +<span id="L1067" class="LineNr">1067 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre1-1"</span> +<span id="L1068" class="LineNr">1068 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" ||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre1-1/cursor"</span> +<span id="L1069" class="LineNr">1069 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" => 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre1-2"</span> +<span id="L1070" class="LineNr">1070 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre1-2/cursor"</span> +<span id="L1071" class="LineNr">1071 </span> <span class="muComment"># expand</span> +<span id="L1072" class="LineNr">1072 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xa</span>/newline, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L1073" class="LineNr">1073 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1074" class="LineNr">1074 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L1075" class="LineNr">1075 </span> <span class="muComment">#</span> +<span id="L1076" class="LineNr">1076 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-0"</span> +<span id="L1077" class="LineNr">1077 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-0/cursor"</span> +<span id="L1078" class="LineNr">1078 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 <a href='tokenize.mu.html#L13'>tokenize</a> "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-1"</span> +<span id="L1079" class="LineNr">1079 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" |||||||||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-1/cursor"</span> +<span id="L1080" class="LineNr">1080 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-2"</span> +<span id="L1081" class="LineNr">1081 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-2/cursor"</span> +<span id="L1082" class="LineNr">1082 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" 1 insert parens "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-3"</span> +<span id="L1083" class="LineNr">1083 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-3/cursor"</span> +<span id="L1084" class="LineNr">1084 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>/y, <span class="Constant">" 1 parse "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-4"</span> +<span id="L1085" class="LineNr">1085 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">5</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-4/cursor"</span> +<span id="L1086" class="LineNr">1086 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">6</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-5"</span> +<span id="L1087" class="LineNr">1087 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">6</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-5/cursor"</span> +<span id="L1088" class="LineNr">1088 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/y, <span class="Constant">" 1 transform infix "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-6"</span> +<span id="L1089" class="LineNr">1089 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">7</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-6/cursor"</span> +<span id="L1090" class="LineNr">1090 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">8</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-7"</span> +<span id="L1091" class="LineNr">1091 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">8</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-7/cursor"</span> +<span id="L1092" class="LineNr">1092 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">9</span>/y, <span class="Constant">" 1 <a href='macroexpand.mu.html#L1'>macroexpand</a> 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-8"</span> +<span id="L1093" class="LineNr">1093 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">9</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-8/cursor"</span> +<span id="L1094" class="LineNr">1094 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-9"</span> +<span id="L1095" class="LineNr">1095 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xa</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-9/cursor"</span> +<span id="L1096" class="LineNr">1096 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xb</span>/y, <span class="Constant">" 1 => 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-10"</span> +<span id="L1097" class="LineNr">1097 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xb</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-10/cursor"</span> +<span id="L1098" class="LineNr">1098 </span> <span class="muComment"># move cursor down below the macroexpand line and expand</span> <span id="L1099" class="LineNr">1099 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk <span id="L1100" class="LineNr">1100 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor <span id="L1101" class="LineNr">1101 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk @@ -1171,57 +1171,63 @@ if ('onhashchange' in window) { <span id="L1106" class="LineNr">1106 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor <span id="L1107" class="LineNr">1107 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk <span id="L1108" class="LineNr">1108 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L1109" class="LineNr">1109 </span> <span class="muComment">#</span> -<span id="L1110" class="LineNr">1110 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-0"</span> -<span id="L1111" class="LineNr">1111 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-0/cursor"</span> -<span id="L1112" class="LineNr">1112 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 <a href='tokenize.mu.html#L13'>tokenize</a> "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-1"</span> -<span id="L1113" class="LineNr">1113 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-1/cursor"</span> -<span id="L1114" class="LineNr">1114 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-2"</span> -<span id="L1115" class="LineNr">1115 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-2/cursor"</span> -<span id="L1116" class="LineNr">1116 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" 1 insert parens "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-3"</span> -<span id="L1117" class="LineNr">1117 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-3/cursor"</span> -<span id="L1118" class="LineNr">1118 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>/y, <span class="Constant">" 1 parse "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-4"</span> -<span id="L1119" class="LineNr">1119 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">5</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-4/cursor"</span> -<span id="L1120" class="LineNr">1120 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">6</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-5"</span> -<span id="L1121" class="LineNr">1121 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">6</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-5/cursor"</span> -<span id="L1122" class="LineNr">1122 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/y, <span class="Constant">" 1 transform infix "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-6"</span> -<span id="L1123" class="LineNr">1123 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">7</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-6/cursor"</span> -<span id="L1124" class="LineNr">1124 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">8</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-7"</span> -<span id="L1125" class="LineNr">1125 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">8</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-7/cursor"</span> -<span id="L1126" class="LineNr">1126 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">9</span>/y, <span class="Constant">" 1 <a href='macroexpand.mu.html#L1'>macroexpand</a> 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-8"</span> -<span id="L1127" class="LineNr">1127 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">9</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-8/cursor"</span> -<span id="L1128" class="LineNr">1128 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-9"</span> -<span id="L1129" class="LineNr">1129 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xa</span>/y, <span class="Constant">" ||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-9/cursor"</span> -<span id="L1130" class="LineNr">1130 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xb</span>/y, <span class="Constant">" 1 => 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-10"</span> -<span id="L1131" class="LineNr">1131 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xb</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/pre3-10/cursor"</span> -<span id="L1132" class="LineNr">1132 </span> <span class="muComment"># expand</span> -<span id="L1133" class="LineNr">1133 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xa</span>/newline, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk -<span id="L1134" class="LineNr">1134 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> -<span id="L1135" class="LineNr">1135 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor -<span id="L1136" class="LineNr">1136 </span> <span class="muComment"># cursor line is expanded</span> -<span id="L1137" class="LineNr">1137 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-0"</span> -<span id="L1138" class="LineNr">1138 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-0/cursor"</span> -<span id="L1139" class="LineNr">1139 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 <a href='tokenize.mu.html#L13'>tokenize</a> "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-1"</span> -<span id="L1140" class="LineNr">1140 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-1/cursor"</span> -<span id="L1141" class="LineNr">1141 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-2"</span> -<span id="L1142" class="LineNr">1142 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-2/cursor"</span> -<span id="L1143" class="LineNr">1143 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" 1 insert parens "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-3"</span> -<span id="L1144" class="LineNr">1144 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-3/cursor"</span> -<span id="L1145" class="LineNr">1145 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>/y, <span class="Constant">" 1 parse "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-4"</span> -<span id="L1146" class="LineNr">1146 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">5</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-4/cursor"</span> -<span id="L1147" class="LineNr">1147 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">6</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-5"</span> -<span id="L1148" class="LineNr">1148 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">6</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-5/cursor"</span> -<span id="L1149" class="LineNr">1149 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/y, <span class="Constant">" 1 transform infix "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-6"</span> -<span id="L1150" class="LineNr">1150 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">7</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-6/cursor"</span> -<span id="L1151" class="LineNr">1151 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">8</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-7"</span> -<span id="L1152" class="LineNr">1152 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">8</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-7/cursor"</span> -<span id="L1153" class="LineNr">1153 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">9</span>/y, <span class="Constant">" 1 <a href='macroexpand.mu.html#L1'>macroexpand</a> 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-8"</span> -<span id="L1154" class="LineNr">1154 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">9</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-8/cursor"</span> -<span id="L1155" class="LineNr">1155 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa</span>/y, <span class="Constant">" 2 <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-9"</span> -<span id="L1156" class="LineNr">1156 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xa</span>/y, <span class="Constant">" |||||||||||||||||||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-9/cursor"</span> -<span id="L1157" class="LineNr">1157 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xb</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-10"</span> -<span id="L1158" class="LineNr">1158 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xb</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1035'>test-run-preserves-trace-view-on-rerun</a>/expand-10/cursor"</span> -<span id="L1159" class="LineNr">1159 </span><span class="Delimiter">}</span> +<span id="L1109" class="LineNr">1109 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L1110" class="LineNr">1110 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L1111" class="LineNr">1111 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L1112" class="LineNr">1112 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L1113" class="LineNr">1113 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0x6a</span>/j, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L1114" class="LineNr">1114 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L1115" class="LineNr">1115 </span> <span class="muComment">#</span> +<span id="L1116" class="LineNr">1116 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-0"</span> +<span id="L1117" class="LineNr">1117 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-0/cursor"</span> +<span id="L1118" class="LineNr">1118 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 <a href='tokenize.mu.html#L13'>tokenize</a> "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-1"</span> +<span id="L1119" class="LineNr">1119 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-1/cursor"</span> +<span id="L1120" class="LineNr">1120 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-2"</span> +<span id="L1121" class="LineNr">1121 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-2/cursor"</span> +<span id="L1122" class="LineNr">1122 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" 1 insert parens "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-3"</span> +<span id="L1123" class="LineNr">1123 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-3/cursor"</span> +<span id="L1124" class="LineNr">1124 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>/y, <span class="Constant">" 1 parse "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-4"</span> +<span id="L1125" class="LineNr">1125 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">5</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-4/cursor"</span> +<span id="L1126" class="LineNr">1126 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">6</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-5"</span> +<span id="L1127" class="LineNr">1127 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">6</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-5/cursor"</span> +<span id="L1128" class="LineNr">1128 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/y, <span class="Constant">" 1 transform infix "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-6"</span> +<span id="L1129" class="LineNr">1129 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">7</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-6/cursor"</span> +<span id="L1130" class="LineNr">1130 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">8</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-7"</span> +<span id="L1131" class="LineNr">1131 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">8</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-7/cursor"</span> +<span id="L1132" class="LineNr">1132 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">9</span>/y, <span class="Constant">" 1 <a href='macroexpand.mu.html#L1'>macroexpand</a> 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-8"</span> +<span id="L1133" class="LineNr">1133 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">9</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-8/cursor"</span> +<span id="L1134" class="LineNr">1134 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-9"</span> +<span id="L1135" class="LineNr">1135 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xa</span>/y, <span class="Constant">" ||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-9/cursor"</span> +<span id="L1136" class="LineNr">1136 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xb</span>/y, <span class="Constant">" 1 => 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-10"</span> +<span id="L1137" class="LineNr">1137 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xb</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-10/cursor"</span> +<span id="L1138" class="LineNr">1138 </span> <span class="muComment"># expand</span> +<span id="L1139" class="LineNr">1139 </span> <a href='sandbox.mu.html#L453'>edit-sandbox</a> <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0xa</span>/newline, <span class="Constant">0</span>/no-globals, <span class="Constant">0</span>/no-disk +<span id="L1140" class="LineNr">1140 </span> <a href='../500fake-screen.mu.html#L251'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L1141" class="LineNr">1141 </span> <a href='sandbox.mu.html#L81'>render-sandbox</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <a href='sandbox.mu.html#L1'>sandbox</a>, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0x80</span>/width, <span class="Constant">0x10</span>/height, <span class="Constant">1</span>/show-cursor +<span id="L1142" class="LineNr">1142 </span> <span class="muComment"># cursor line is expanded</span> +<span id="L1143" class="LineNr">1143 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">" 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-0"</span> +<span id="L1144" class="LineNr">1144 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-0/cursor"</span> +<span id="L1145" class="LineNr">1145 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">" 1 <a href='tokenize.mu.html#L13'>tokenize</a> "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-1"</span> +<span id="L1146" class="LineNr">1146 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-1/cursor"</span> +<span id="L1147" class="LineNr">1147 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">3</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-2"</span> +<span id="L1148" class="LineNr">1148 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">3</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-2/cursor"</span> +<span id="L1149" class="LineNr">1149 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/y, <span class="Constant">" 1 insert parens "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-3"</span> +<span id="L1150" class="LineNr">1150 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">4</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-3/cursor"</span> +<span id="L1151" class="LineNr">1151 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>/y, <span class="Constant">" 1 parse "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-4"</span> +<span id="L1152" class="LineNr">1152 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">5</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-4/cursor"</span> +<span id="L1153" class="LineNr">1153 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">6</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-5"</span> +<span id="L1154" class="LineNr">1154 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">6</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-5/cursor"</span> +<span id="L1155" class="LineNr">1155 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/y, <span class="Constant">" 1 transform infix "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-6"</span> +<span id="L1156" class="LineNr">1156 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">7</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-6/cursor"</span> +<span id="L1157" class="LineNr">1157 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">8</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-7"</span> +<span id="L1158" class="LineNr">1158 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">8</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-7/cursor"</span> +<span id="L1159" class="LineNr">1159 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">9</span>/y, <span class="Constant">" 1 <a href='macroexpand.mu.html#L1'>macroexpand</a> 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-8"</span> +<span id="L1160" class="LineNr">1160 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">9</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-8/cursor"</span> +<span id="L1161" class="LineNr">1161 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xa</span>/y, <span class="Constant">" 2 <a href='macroexpand.mu.html#L46'>macroexpand-iter</a> 7 "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-9"</span> +<span id="L1162" class="LineNr">1162 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xa</span>/y, <span class="Constant">" |||||||||||||||||||| "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-9/cursor"</span> +<span id="L1163" class="LineNr">1163 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xb</span>/y, <span class="Constant">" ... "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-10"</span> +<span id="L1164" class="LineNr">1164 </span> <a href='../504test-screen.mu.html#L257'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0xb</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-10/cursor"</span> +<span id="L1165" class="LineNr">1165 </span><span class="Delimiter">}</span> </pre> </body> </html> diff --git a/html/shell/tokenize.mu.html b/html/shell/tokenize.mu.html index fc39be2b..f5dd70b5 100644 --- a/html/shell/tokenize.mu.html +++ b/html/shell/tokenize.mu.html @@ -1,36 +1,36 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/tokenize.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } +.muRegEbx { color: #5f00ff; } +.muRegEcx { color: #870000; } .muRegEdx { color: #af5f00; } -.Special { color: #ff6060; } .LineNr { } .muRegEsi { color: #005faf; } -.muRegEbx { color: #5f00ff; } -.Constant { color: #008787; } .muRegEdi { color: #00af00; } -.muRegEcx { color: #870000; } -.Delimiter { color: #c000c0; } +.Constant { color: #008787; } .muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } +.Delimiter { color: #c000c0; } .muComment { color: #005faf; } +.Special { color: #ff6060; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -655,7 +655,7 @@ if ('onhashchange' in window) { <span id="L591" class="LineNr"> 591 </span> <span class="Delimiter">}</span> <span id="L592" class="LineNr"> 592 </span> <span class="muComment"># if not digit grapheme, abort</span> <span id="L593" class="LineNr"> 593 </span> <span class="Delimiter">{</span> -<span id="L594" class="LineNr"> 594 </span> <span class="PreProc">var</span> digit?/eax: boolean <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L296'>decimal-digit?</a> g +<span id="L594" class="LineNr"> 594 </span> <span class="PreProc">var</span> digit?/eax: boolean <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L327'>decimal-digit?</a> g <span id="L595" class="LineNr"> 595 </span> compare digit?, <span class="Constant">0</span>/false <span id="L596" class="LineNr"> 596 </span> <span class="PreProc">break-if-!=</span> <span id="L597" class="LineNr"> 597 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">"invalid number"</span> @@ -702,7 +702,7 @@ if ('onhashchange' in window) { <span id="L638" class="LineNr"> 638 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L639" class="LineNr"> 639 </span> <a href='../108write.subx.html#L11'>write</a> stream, <span class="Constant">"=> "</span> <span id="L640" class="LineNr"> 640 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> out-data -<span id="L641" class="LineNr"> 641 </span> <a href='../113write-stream.subx.html#L8'>write-stream</a> stream, out-data +<span id="L641" class="LineNr"> 641 </span> <a href='../113write-stream.subx.html#L163'>write-stream-immutable</a> stream, out-data <span id="L642" class="LineNr"> 642 </span> trace trace, <span class="Constant">"tokenize"</span>, stream <span id="L643" class="LineNr"> 643 </span> <span class="Delimiter">}</span> <span id="L644" class="LineNr"> 644 </span><span class="Delimiter">}</span> @@ -923,7 +923,7 @@ if ('onhashchange' in window) { <span id="L859" class="LineNr"> 859 </span> <span class="Delimiter">}</span> <span id="L860" class="LineNr"> 860 </span> <span class="Delimiter">{</span> <span id="L861" class="LineNr"> 861 </span> <span class="Delimiter">{</span> -<span id="L862" class="LineNr"> 862 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L296'>decimal-digit?</a> g +<span id="L862" class="LineNr"> 862 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='../126write-int-decimal.subx.html#L327'>decimal-digit?</a> g <span id="L863" class="LineNr"> 863 </span> compare result, <span class="Constant">0</span>/false <span id="L864" class="LineNr"> 864 </span> <span class="PreProc">break-if-!=</span> <span id="L865" class="LineNr"> 865 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false diff --git a/html/shell/trace.mu.html b/html/shell/trace.mu.html index 2d33cef6..86928413 100644 --- a/html/shell/trace.mu.html +++ b/html/shell/trace.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/trace.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -16,22 +16,22 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .LineNr { } .Delimiter { color: #c000c0; } -.muFunction { color: #af5f00; text-decoration: underline; } +.muRegEcx { color: #870000; } +.muRegEdx { color: #af5f00; } .muRegEbx { color: #5f00ff; } .muRegEsi { color: #005faf; } .muRegEdi { color: #00af00; } .Constant { color: #008787; } .Special { color: #ff6060; } .PreProc { color: #c000c0; } -.CommentedCode { color: #8a8a8a; } +.muFunction { color: #af5f00; text-decoration: underline; } .muTest { color: #5f8700; } .muComment { color: #005faf; } -.muRegEcx { color: #870000; } -.muRegEdx { color: #af5f00; } +.CommentedCode { color: #8a8a8a; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ diff --git a/tools/update_html b/tools/update_html index add9a89c..a938cb03 100755 --- a/tools/update_html +++ b/tools/update_html @@ -47,6 +47,14 @@ do process $f done +for f in apps/*.mu +do + ( cd $(dirname $f) + ctags -x ../[0-9]*.subx ../[0-9]*.mu $(basename $f) > /tmp/tags + ) + process $f +done + ( cd shell ctags -x ../boot.subx ../[0-9]*.subx ../[0-9]*.mu *.mu > /tmp/tags ) @@ -72,7 +80,7 @@ do process $f done -for f in linux/advent2020/*.mu linux/advent2017/*.mu +for f in linux/apps/*.subx linux/apps/*.mu do ( cd $(dirname $f) ctags -x ../[0-9]*.subx ../[0-9]*.mu $(basename $f) > /tmp/tags @@ -80,15 +88,28 @@ do process $f done -for dir in linux/raytracing linux/tile +for f in linux/apps/advent2020/*.mu linux/apps/advent2017/*.mu do - ( cd $dir - ctags -x ../[0-9]*.subx ../[0-9]*.mu *.mu > /tmp/tags + ( cd $(dirname $f) + ctags -x ../../[0-9]*.subx ../../[0-9]*.mu $(basename $f) > /tmp/tags ) - for f in $dir/*.mu - do - process $f - done + process $f +done + +( cd linux/tile + ctags -x ../[0-9]*.subx ../[0-9]*.mu *.mu > /tmp/tags +) +for f in linux/tile/*.mu +do + process $f +done + +( cd linux/apps/raytracing + ctags -x ../../[0-9]*.subx ../../[0-9]*.mu *.mu > /tmp/tags +) +for f in linux/apps/raytracing/*.mu +do + process $f done ( cd linux/bootstrap |