This commit is contained in:
Kartik Agaram 2021-10-09 21:07:54 -07:00
parent 1ff9dde13b
commit 1fca8ee13c
97 changed files with 5841 additions and 5671 deletions

View File

@ -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; }
@ -23,7 +23,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -23,7 +23,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

548
html/103glyph.subx.html generated
View File

@ -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 - 103glyph.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; }
@ -23,7 +23,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -167,11 +167,11 @@ if ('onhashchange' in window) {
<span id="L110" class="LineNr">110 </span> 3d/compare-eax-and 8/imm32
<span id="L111" class="LineNr">111 </span> {
<span id="L112" class="LineNr">112 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8
<span id="L113" class="LineNr">113 </span> (<a href='103glyph.subx.html#L173'>draw-narrow-code-point-on-screen-buffer</a> *(ebp+8) %esi *(ebp+0x10) *(ebp+0x14) *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24) *(ebp+0x28))
<span id="L113" class="LineNr">113 </span> (<a href='103glyph.subx.html#L187'>draw-narrow-code-point-on-screen-buffer</a> *(ebp+8) %esi *(ebp+0x10) *(ebp+0x14) *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24) *(ebp+0x28))
<span id="L114" class="LineNr">114 </span> b8/copy-to-eax 1/imm32
<span id="L115" class="LineNr">115 </span> eb/jump $draw-code-point-on-screen-buffer:end/disp8
<span id="L116" class="LineNr">116 </span> }
<span id="L117" class="LineNr">117 </span> (<a href='103glyph.subx.html#L219'>draw-wide-code-point-on-screen-buffer</a> *(ebp+8) %esi *(ebp+0x10) *(ebp+0x14) *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24) *(ebp+0x28))
<span id="L117" class="LineNr">117 </span> (<a href='103glyph.subx.html#L233'>draw-wide-code-point-on-screen-buffer</a> *(ebp+8) %esi *(ebp+0x10) *(ebp+0x14) *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24) *(ebp+0x28))
<span id="L118" class="LineNr">118 </span> b8/copy-to-eax 2/imm32
<span id="L119" class="LineNr">119 </span><span class="Constant">$draw-code-point-on-screen-buffer:end</span>:
<span id="L120" class="LineNr">120 </span> <span class="subxS1Comment"># . restore registers</span>
@ -187,9 +187,9 @@ if ('onhashchange' in window) {
<span id="L130" class="LineNr">130 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L131" class="LineNr">131 </span> <span class="subxComment"># eax = c</span>
<span id="L132" class="LineNr">132 </span> 8b/-&gt; *(ebp+8) 0/r32/eax
<span id="L133" class="LineNr">133 </span> <span class="subxComment"># if (c &gt;= 128) return # characters beyond ASCII currently not supported</span>
<span id="L134" class="LineNr">134 </span> 3d/compare-eax-and 0x80/imm32
<span id="L135" class="LineNr">135 </span> 0f 8d/jump-if-&gt;= $wide-code-point?:end/disp32
<span id="L133" class="LineNr">133 </span> <span class="subxComment"># if (c &gt;= 4352) return false</span>
<span id="L134" class="LineNr">134 </span> 3d/compare-eax-and 0x1100/imm32
<span id="L135" class="LineNr">135 </span> 0f 8d/jump-if-&gt;= $wide-code-point?:return-false/disp32
<span id="L136" class="LineNr">136 </span> <span class="subxComment"># var letter-bitmap/eax = font[c]</span>
<span id="L137" class="LineNr">137 </span> 69/multiply %eax 0x22/imm32/glyph-size 0/r32/eax
<span id="L138" class="LineNr">138 </span> 05/add-to-eax 0x0010000c/imm32/Font <span class="subxComment"># see boot.subx</span>
@ -204,261 +204,275 @@ if ('onhashchange' in window) {
<span id="L147" class="LineNr">147 </span> 5d/pop-to-ebp
<span id="L148" class="LineNr">148 </span> c3/return
<span id="L149" class="LineNr">149 </span>
<span id="L150" class="LineNr">150 </span><span class="subxFunction">combining-code-point?</span>: <span class="subxComment"># c: code-point -&gt; _/eax: boolean</span>
<span id="L151" class="LineNr">151 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L152" class="LineNr">152 </span> 55/push-ebp
<span id="L153" class="LineNr">153 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L154" class="LineNr">154 </span> <span class="subxComment"># eax = c</span>
<span id="L155" class="LineNr">155 </span> 8b/-&gt; *(ebp+8) 0/r32/eax
<span id="L156" class="LineNr">156 </span> <span class="subxComment"># if (c &gt;= 128) return # characters beyond ASCII currently not supported</span>
<span id="L157" class="LineNr">157 </span> 3d/compare-eax-and 0x80/imm32
<span id="L158" class="LineNr">158 </span> 0f 8d/jump-if-&gt;= $combining-code-point?:end/disp32
<span id="L159" class="LineNr">159 </span> <span class="subxComment"># var letter-bitmap/eax = font[c]</span>
<span id="L160" class="LineNr">160 </span> 69/multiply %eax 0x22/imm32/glyph-size 0/r32/eax
<span id="L161" class="LineNr">161 </span> 05/add-to-eax 0x0010000c/imm32/Font <span class="subxComment"># see boot.subx</span>
<span id="L162" class="LineNr">162 </span> <span class="subxComment"># dispatch based on letter-bitmap-&gt;is-combine?</span>
<span id="L163" class="LineNr">163 </span> 8a/byte-&gt; *(eax+1) 0/r32/AL
<span id="L164" class="LineNr">164 </span> 25/and-eax-with 0xff/imm32
<span id="L165" class="LineNr">165 </span><span class="Constant">$combining-code-point?:end</span>:
<span id="L166" class="LineNr">166 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L167" class="LineNr">167 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L168" class="LineNr">168 </span> 5d/pop-to-ebp
<span id="L169" class="LineNr">169 </span> c3/return
<span id="L170" class="LineNr">170 </span>
<span id="L171" class="LineNr">171 </span><span class="subxComment"># buffer: naked address to raw screen RAM without a length</span>
<span id="L172" class="LineNr">172 </span><span class="subxComment"># letter-bitmap: naked address to 8-pixel wide font glyph</span>
<span id="L173" class="LineNr">173 </span><span class="subxFunction">draw-narrow-code-point-on-screen-buffer</span>: <span class="subxComment"># buffer: (addr byte), letter-bitmap: (addr byte), x: int, y: int, color: int, background-color: int, overlay?: boolean, screen-width: int, screen-height: int</span>
<span id="L174" class="LineNr">174 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L175" class="LineNr">175 </span> 55/push-ebp
<span id="L176" class="LineNr">176 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L177" class="LineNr">177 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L178" class="LineNr">178 </span> 52/push-edx
<span id="L179" class="LineNr">179 </span> 53/push-ebx
<span id="L180" class="LineNr">180 </span> 56/push-esi
<span id="L181" class="LineNr">181 </span> 57/push-edi
<span id="L182" class="LineNr">182 </span> <span class="subxComment"># esi = letter-bitmap</span>
<span id="L183" class="LineNr">183 </span> 8b/-&gt; *(ebp+0xc) 6/r32/esi
<span id="L184" class="LineNr">184 </span> <span class="subxComment"># var ycurr/edx: int = y*16</span>
<span id="L185" class="LineNr">185 </span> 8b/-&gt; *(ebp+0x14) 2/r32/edx
<span id="L186" class="LineNr">186 </span> c1 4/subop/shift-left %edx 4/imm8
<span id="L187" class="LineNr">187 </span> <span class="subxComment"># var ymax/edi: int = ycurr + 16</span>
<span id="L188" class="LineNr">188 </span> 8b/-&gt; *(ebp+0x14) 7/r32/edi
<span id="L189" class="LineNr">189 </span> c1 4/subop/shift-left %edi 4/imm8
<span id="L190" class="LineNr">190 </span> 81 0/subop/add %edi 0x10/imm32
<span id="L191" class="LineNr">191 </span> {
<span id="L192" class="LineNr">192 </span> <span class="subxComment"># if (ycurr &gt;= ymax) break</span>
<span id="L193" class="LineNr">193 </span> 39/compare %edx 7/r32/edi
<span id="L194" class="LineNr">194 </span> 0f 8d/jump-if-&gt;= <span class="Constant">break</span>/disp32
<span id="L195" class="LineNr">195 </span> <span class="subxComment"># var row-bitmap/ebx: byte = *letter-bitmap</span>
<span id="L196" class="LineNr">196 </span> bb/copy-to-ebx 0/imm32
<span id="L197" class="LineNr">197 </span> 8a/byte-&gt; *esi 3/r32/BL
<span id="L198" class="LineNr">198 </span> (<a href='103glyph.subx.html#L276'>draw-run-of-pixels-from-glyph</a> *(ebp+8) %ebx *(ebp+0x10) %edx *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24) *(ebp+0x28))
<span id="L199" class="LineNr">199 </span> <span class="subxComment"># ++y</span>
<span id="L200" class="LineNr">200 </span> 42/increment-edx
<span id="L201" class="LineNr">201 </span> <span class="subxComment"># next bitmap row</span>
<span id="L202" class="LineNr">202 </span> 46/increment-esi
<span id="L203" class="LineNr">203 </span> <span class="subxComment">#</span>
<span id="L204" class="LineNr">204 </span> e9/jump <span class="Constant">loop</span>/disp32
<span id="L205" class="LineNr">205 </span> }
<span id="L206" class="LineNr">206 </span><span class="Constant">$draw-narrow-code-point-on-screen-buffer:end</span>:
<span id="L207" class="LineNr">207 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L208" class="LineNr">208 </span> 5f/pop-to-edi
<span id="L209" class="LineNr">209 </span> 5e/pop-to-esi
<span id="L210" class="LineNr">210 </span> 5b/pop-to-ebx
<span id="L211" class="LineNr">211 </span> 5a/pop-to-edx
<span id="L212" class="LineNr">212 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L213" class="LineNr">213 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L214" class="LineNr">214 </span> 5d/pop-to-ebp
<span id="L215" class="LineNr">215 </span> c3/return
<span id="L216" class="LineNr">216 </span>
<span id="L217" class="LineNr">217 </span><span class="subxComment"># buffer: naked address to raw screen RAM without a length</span>
<span id="L218" class="LineNr">218 </span><span class="subxComment"># letter-bitmap: naked address to 16-pixel wide font glyph</span>
<span id="L219" class="LineNr">219 </span><span class="subxFunction">draw-wide-code-point-on-screen-buffer</span>: <span class="subxComment"># buffer: (addr byte), letter-bitmap: (addr byte), x: int, y: int, color: int, background-color: int, overlay?: boolean, screen-width: int, screen-height: int</span>
<span id="L220" class="LineNr">220 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L221" class="LineNr">221 </span> 55/push-ebp
<span id="L222" class="LineNr">222 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L223" class="LineNr">223 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L224" class="LineNr">224 </span> 50/push-eax
<span id="L225" class="LineNr">225 </span> 51/push-ecx
<span id="L226" class="LineNr">226 </span> 52/push-edx
<span id="L227" class="LineNr">227 </span> 53/push-ebx
<span id="L228" class="LineNr">228 </span> 56/push-esi
<span id="L229" class="LineNr">229 </span> 57/push-edi
<span id="L230" class="LineNr">230 </span> <span class="subxComment"># esi = letter-bitmap</span>
<span id="L231" class="LineNr">231 </span> 8b/-&gt; *(ebp+0xc) 6/r32/esi
<span id="L232" class="LineNr">232 </span> <span class="subxComment">#</span>
<span id="L233" class="LineNr">233 </span> bb/copy-to-ebx 0/imm32
<span id="L234" class="LineNr">234 </span> <span class="subxComment"># var ycurr/edx: int = y*16</span>
<span id="L235" class="LineNr">235 </span> 8b/-&gt; *(ebp+0x14) 2/r32/edx
<span id="L236" class="LineNr">236 </span> c1 4/subop/shift-left %edx 4/imm8
<span id="L237" class="LineNr">237 </span> <span class="subxComment"># var ymax/edi: int = ycurr + 16</span>
<span id="L238" class="LineNr">238 </span> 8b/-&gt; *(ebp+0x14) 7/r32/edi
<span id="L239" class="LineNr">239 </span> c1 4/subop/shift-left %edi 4/imm8
<span id="L240" class="LineNr">240 </span> 81 0/subop/add %edi 0x10/imm32
<span id="L241" class="LineNr">241 </span> {
<span id="L242" class="LineNr">242 </span> <span class="subxComment"># if (ycurr &gt;= ymax) break</span>
<span id="L243" class="LineNr">243 </span> 39/compare %edx 7/r32/edi
<span id="L244" class="LineNr">244 </span> 0f 8d/jump-if-&gt;= <span class="Constant">break</span>/disp32
<span id="L245" class="LineNr">245 </span> <span class="subxComment"># var row-bitmap/ebx: byte = *letter-bitmap</span>
<span id="L246" class="LineNr">246 </span> 8a/byte-&gt; *esi 3/r32/BL
<span id="L247" class="LineNr">247 </span> <span class="subxComment"># ecx = x</span>
<span id="L248" class="LineNr">248 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L249" class="LineNr">249 </span> <span class="subxComment"># first half-row</span>
<span id="L250" class="LineNr">250 </span> (<a href='103glyph.subx.html#L276'>draw-run-of-pixels-from-glyph</a> *(ebp+8) %ebx %ecx %edx *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24) *(ebp+0x28))
<span id="L251" class="LineNr">251 </span> <span class="subxComment"># second half-row</span>
<span id="L252" class="LineNr">252 </span> 8a/byte-&gt; *(esi+1) 3/r32/BL
<span id="L253" class="LineNr">253 </span> 41/increment-ecx
<span id="L254" class="LineNr">254 </span> (<a href='103glyph.subx.html#L276'>draw-run-of-pixels-from-glyph</a> *(ebp+8) %ebx %ecx %edx *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24) *(ebp+0x28))
<span id="L255" class="LineNr">255 </span> <span class="subxComment"># ++y</span>
<span id="L256" class="LineNr">256 </span> 42/increment-edx
<span id="L257" class="LineNr">257 </span> <span class="subxComment"># next bitmap row</span>
<span id="L258" class="LineNr">258 </span> 81 0/subop/add %esi 2/imm32
<span id="L259" class="LineNr">259 </span> <span class="subxComment">#</span>
<span id="L260" class="LineNr">260 </span> e9/jump <span class="Constant">loop</span>/disp32
<span id="L261" class="LineNr">261 </span> }
<span id="L262" class="LineNr">262 </span><span class="Constant">$draw-wide-code-point-on-screen-buffer:end</span>:
<span id="L263" class="LineNr">263 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L264" class="LineNr">264 </span> 5f/pop-to-edi
<span id="L265" class="LineNr">265 </span> 5e/pop-to-esi
<span id="L266" class="LineNr">266 </span> 5b/pop-to-ebx
<span id="L267" class="LineNr">267 </span> 5a/pop-to-edx
<span id="L268" class="LineNr">268 </span> 59/pop-to-ecx
<span id="L269" class="LineNr">269 </span> 58/pop-to-eax
<span id="L270" class="LineNr">270 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L271" class="LineNr">271 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L272" class="LineNr">272 </span> 5d/pop-to-ebp
<span id="L273" class="LineNr">273 </span> c3/return
<span id="L274" class="LineNr">274 </span>
<span id="L275" class="LineNr">275 </span><span class="subxComment"># draw 8 pixels from a single glyph byte in a font bitmap</span>
<span id="L276" class="LineNr">276 </span><span class="subxFunction">draw-run-of-pixels-from-glyph</span>: <span class="subxComment"># buffer: (addr byte), glyph-byte: byte, x: int, y: int, color: int, background-color: int, overlay?: boolean, screen-width: int, screen-height: int</span>
<span id="L277" class="LineNr">277 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L278" class="LineNr">278 </span> 55/push-ebp
<span id="L279" class="LineNr">279 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L280" class="LineNr">280 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L281" class="LineNr">281 </span> 50/push-eax
<span id="L282" class="LineNr">282 </span> 51/push-ecx
<span id="L283" class="LineNr">283 </span> 56/push-esi
<span id="L284" class="LineNr">284 </span> <span class="subxComment"># esi = glyph-byte</span>
<span id="L285" class="LineNr">285 </span> 8b/-&gt; *(ebp+0xc) 6/r32/esi
<span id="L286" class="LineNr">286 </span> <span class="subxComment"># var xcurr/eax: int = x*8 + 7</span>
<span id="L287" class="LineNr">287 </span> 8b/-&gt; *(ebp+0x10) 0/r32/eax
<span id="L288" class="LineNr">288 </span> c1 4/subop/shift-left %eax 3/imm8
<span id="L289" class="LineNr">289 </span> 05/add-to-eax 7/imm32
<span id="L290" class="LineNr">290 </span> <span class="subxComment"># var xmin/ecx: int = x*8</span>
<span id="L291" class="LineNr">291 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L292" class="LineNr">292 </span> c1 4/subop/shift-left %ecx 3/imm8
<span id="L293" class="LineNr">293 </span> {
<span id="L294" class="LineNr">294 </span> <span class="subxComment"># if (xcurr &lt; xmin) break</span>
<span id="L295" class="LineNr">295 </span> 39/compare %eax 1/r32/ecx
<span id="L296" class="LineNr">296 </span> 7c/jump-if-&lt; <span class="Constant">break</span>/disp8
<span id="L297" class="LineNr">297 </span> <span class="subxComment"># shift LSB from row-bitmap into carry flag (CF)</span>
<span id="L298" class="LineNr">298 </span> c1 5/subop/shift-right-logical %esi 1/imm8
<span id="L299" class="LineNr">299 </span> <span class="subxComment"># if LSB, draw a pixel in the given color</span>
<span id="L300" class="LineNr">300 </span> {
<span id="L301" class="LineNr">301 </span> 73/jump-if-not-CF <span class="Constant">break</span>/disp8
<span id="L302" class="LineNr">302 </span> (<a href='101screen.subx.html#L21'>pixel-on-screen-buffer</a> *(ebp+8) %eax *(ebp+0x14) *(ebp+0x18) *(ebp+0x24) *(ebp+0x28))
<span id="L303" class="LineNr">303 </span> eb/jump $draw-code-point-on-screen-buffer:continue/disp8
<span id="L304" class="LineNr">304 </span> }
<span id="L305" class="LineNr">305 </span> <span class="subxComment"># otherwise use the background color (except when overlay?)</span>
<span id="L306" class="LineNr">306 </span> {
<span id="L307" class="LineNr">307 </span> 81 7/subop/compare *(ebp+0x20) 0/imm32/false
<span id="L308" class="LineNr">308 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8
<span id="L309" class="LineNr">309 </span> (<a href='101screen.subx.html#L21'>pixel-on-screen-buffer</a> *(ebp+8) %eax *(ebp+0x14) *(ebp+0x1c) *(ebp+0x24) *(ebp+0x28))
<span id="L310" class="LineNr">310 </span> }
<span id="L311" class="LineNr">311 </span><span class="Constant">$draw-code-point-on-screen-buffer:continue</span>:
<span id="L312" class="LineNr">312 </span> <span class="subxComment"># --x</span>
<span id="L313" class="LineNr">313 </span> 48/decrement-eax
<span id="L314" class="LineNr">314 </span> <span class="subxComment">#</span>
<span id="L315" class="LineNr">315 </span> eb/jump <span class="Constant">loop</span>/disp8
<span id="L316" class="LineNr">316 </span> }
<span id="L317" class="LineNr">317 </span><span class="Constant">$draw-run-of-pixels-from-glyph:end</span>:
<span id="L318" class="LineNr">318 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L319" class="LineNr">319 </span> 5e/pop-to-esi
<span id="L320" class="LineNr">320 </span> 59/pop-to-ecx
<span id="L321" class="LineNr">321 </span> 58/pop-to-eax
<span id="L322" class="LineNr">322 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L323" class="LineNr">323 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L324" class="LineNr">324 </span> 5d/pop-to-ebp
<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">cursor-position-on-real-screen</span>: <span class="subxComment"># -&gt; _/eax: int, _/ecx: int</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/&lt;- %ebp 4/r32/esp
<span id="L331" class="LineNr">331 </span> <span class="subxComment"># TODO: support fake screen; we currently assume 'screen' is always 0 (real)</span>
<span id="L332" class="LineNr">332 </span> 8b/-&gt; *<span class="SpecialChar"><a href='103glyph.subx.html#L401'>Real-screen-cursor-x</a></span> 0/r32/eax
<span id="L333" class="LineNr">333 </span> 8b/-&gt; *<span class="SpecialChar"><a href='103glyph.subx.html#L403'>Real-screen-cursor-y</a></span> 1/r32/ecx
<span id="L334" class="LineNr">334 </span><span class="Constant">$cursor-position-on-real-screen:end</span>:
<span id="L335" class="LineNr">335 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L336" class="LineNr">336 </span> 89/&lt;- %esp 5/r32/ebp
<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><span class="subxFunction">set-cursor-position-on-real-screen</span>: <span class="subxComment"># x: int, y: int</span>
<span id="L341" class="LineNr">341 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L342" class="LineNr">342 </span> 55/push-ebp
<span id="L343" class="LineNr">343 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L344" class="LineNr">344 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L345" class="LineNr">345 </span> 50/push-eax
<span id="L346" class="LineNr">346 </span> <span class="subxComment">#</span>
<span id="L347" class="LineNr">347 </span> 8b/-&gt; *(ebp+8) 0/r32/eax
<span id="L348" class="LineNr">348 </span> 89/&lt;- *<span class="SpecialChar"><a href='103glyph.subx.html#L401'>Real-screen-cursor-x</a></span> 0/r32/eax
<span id="L349" class="LineNr">349 </span> 8b/-&gt; *(ebp+0xc) 0/r32/eax
<span id="L350" class="LineNr">350 </span> 89/&lt;- *<span class="SpecialChar"><a href='103glyph.subx.html#L403'>Real-screen-cursor-y</a></span> 0/r32/eax
<span id="L351" class="LineNr">351 </span><span class="Constant">$set-cursor-position-on-real-screen:end</span>:
<span id="L352" class="LineNr">352 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L353" class="LineNr">353 </span> 58/pop-to-eax
<span id="L354" class="LineNr">354 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L355" class="LineNr">355 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L356" class="LineNr">356 </span> 5d/pop-to-ebp
<span id="L357" class="LineNr">357 </span> c3/return
<span id="L358" class="LineNr">358 </span>
<span id="L359" class="LineNr">359 </span><span class="subxComment"># Not a real `show-cursor` primitive:</span>
<span id="L360" class="LineNr">360 </span><span class="subxComment"># - does not clear previous location cursor was shown at.</span>
<span id="L361" class="LineNr">361 </span><span class="subxComment"># - does not preserve what was at the cursor. Caller is responsible for</span>
<span id="L362" class="LineNr">362 </span><span class="subxComment"># tracking what was on the screen at this position before and passing it</span>
<span id="L363" class="LineNr">363 </span><span class="subxComment"># in again.</span>
<span id="L364" class="LineNr">364 </span><span class="subxComment"># - does not stop showing the cursor at this location when the cursor moves</span>
<span id="L365" class="LineNr">365 </span><span class="subxFunction">draw-cursor-on-real-screen</span>: <span class="subxComment"># c: code-point</span>
<span id="L366" class="LineNr">366 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L367" class="LineNr">367 </span> 55/push-ebp
<span id="L368" class="LineNr">368 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L369" class="LineNr">369 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L370" class="LineNr">370 </span> 50/push-eax
<span id="L371" class="LineNr">371 </span> 51/push-ecx
<span id="L372" class="LineNr">372 </span> <span class="subxComment">#</span>
<span id="L373" class="LineNr">373 </span> (<a href='103glyph.subx.html#L327'>cursor-position-on-real-screen</a>) <span class="subxComment"># =&gt; eax, ecx</span>
<span id="L374" class="LineNr">374 </span> (<a href='103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> *(ebp+8) %eax %ecx 0 7) <span class="subxComment"># =&gt; eax</span>
<span id="L375" class="LineNr">375 </span><span class="Constant">$draw-cursor-on-real-screen:end</span>:
<span id="L376" class="LineNr">376 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L377" class="LineNr">377 </span> 59/pop-to-ecx
<span id="L378" class="LineNr">378 </span> 58/pop-to-eax
<span id="L379" class="LineNr">379 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L380" class="LineNr">380 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L381" class="LineNr">381 </span> 5d/pop-to-ebp
<span id="L382" class="LineNr">382 </span> c3/return
<span id="L383" class="LineNr">383 </span>
<span id="L384" class="LineNr">384 </span>== data
<span id="L385" class="LineNr">385 </span>
<span id="L386" class="LineNr">386 </span><span class="subxComment"># The cursor is where certain Mu functions (usually of the form</span>
<span id="L387" class="LineNr">387 </span><span class="subxComment"># 'draw*cursor*') print to by default.</span>
<span id="L388" class="LineNr">388 </span><span class="subxComment">#</span>
<span id="L389" class="LineNr">389 </span><span class="subxComment"># We don't bother displaying the cursor when drawing. It only becomes visible</span>
<span id="L390" class="LineNr">390 </span><span class="subxComment"># on draw-cursor, which is quite rickety (see above)</span>
<span id="L391" class="LineNr">391 </span><span class="subxComment">#</span>
<span id="L392" class="LineNr">392 </span><span class="subxComment"># It's up to applications to manage cursor display:</span>
<span id="L393" class="LineNr">393 </span><span class="subxComment"># - clean up where it used to be</span>
<span id="L394" class="LineNr">394 </span><span class="subxComment"># - display the cursor before waiting for a key</span>
<span id="L395" class="LineNr">395 </span><span class="subxComment"># - ensure its location appropriately suggests the effect keystrokes will have</span>
<span id="L396" class="LineNr">396 </span><span class="subxComment"># - ensure its contents (and colors) appropriately reflect the state of the</span>
<span id="L397" class="LineNr">397 </span><span class="subxComment"># screen</span>
<span id="L398" class="LineNr">398 </span><span class="subxComment">#</span>
<span id="L399" class="LineNr">399 </span><span class="subxComment"># There's no blinking, etc. We aren't using any hardware-supported text mode</span>
<span id="L400" class="LineNr">400 </span><span class="subxComment"># here.</span>
<span id="L401" class="LineNr">401 </span><span class="SpecialChar">Real-screen-cursor-x</span>:
<span id="L402" class="LineNr">402 </span> 0/imm32
<span id="L403" class="LineNr">403 </span><span class="SpecialChar">Real-screen-cursor-y</span>:
<span id="L404" class="LineNr">404 </span> 0/imm32
<span id="L150" class="LineNr">150 </span><span class="Constant">$wide-code-point?:return-false</span>:
<span id="L151" class="LineNr">151 </span> b8/copy-to-eax 0/imm32/false
<span id="L152" class="LineNr">152 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L153" class="LineNr">153 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L154" class="LineNr">154 </span> 5d/pop-to-ebp
<span id="L155" class="LineNr">155 </span> c3/return
<span id="L156" class="LineNr">156 </span>
<span id="L157" class="LineNr">157 </span><span class="subxFunction">combining-code-point?</span>: <span class="subxComment"># c: code-point -&gt; _/eax: boolean</span>
<span id="L158" class="LineNr">158 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L159" class="LineNr">159 </span> 55/push-ebp
<span id="L160" class="LineNr">160 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L161" class="LineNr">161 </span> <span class="subxComment"># eax = c</span>
<span id="L162" class="LineNr">162 </span> 8b/-&gt; *(ebp+8) 0/r32/eax
<span id="L163" class="LineNr">163 </span> <span class="subxComment"># if (c &gt;= 4352) return false</span>
<span id="L164" class="LineNr">164 </span> 3d/compare-eax-and 0x1100/imm32
<span id="L165" class="LineNr">165 </span> 0f 8d/jump-if-&gt;= $combining-code-point?:return-false/disp32
<span id="L166" class="LineNr">166 </span> <span class="subxComment"># var letter-bitmap/eax = font[c]</span>
<span id="L167" class="LineNr">167 </span> 69/multiply %eax 0x22/imm32/glyph-size 0/r32/eax
<span id="L168" class="LineNr">168 </span> 05/add-to-eax 0x0010000c/imm32/Font <span class="subxComment"># see boot.subx</span>
<span id="L169" class="LineNr">169 </span> <span class="subxComment"># dispatch based on letter-bitmap-&gt;is-combine?</span>
<span id="L170" class="LineNr">170 </span> 8a/byte-&gt; *(eax+1) 0/r32/AL
<span id="L171" class="LineNr">171 </span> 25/and-eax-with 0xff/imm32
<span id="L172" class="LineNr">172 </span><span class="Constant">$combining-code-point?:end</span>:
<span id="L173" class="LineNr">173 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L174" class="LineNr">174 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L175" class="LineNr">175 </span> 5d/pop-to-ebp
<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="Constant">$combining-code-point?:return-false</span>:
<span id="L179" class="LineNr">179 </span> b8/copy-to-eax 0/imm32/false
<span id="L180" class="LineNr">180 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L181" class="LineNr">181 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L182" class="LineNr">182 </span> 5d/pop-to-ebp
<span id="L183" class="LineNr">183 </span> c3/return
<span id="L184" class="LineNr">184 </span>
<span id="L185" class="LineNr">185 </span><span class="subxComment"># buffer: naked address to raw screen RAM without a length</span>
<span id="L186" class="LineNr">186 </span><span class="subxComment"># letter-bitmap: naked address to 8-pixel wide font glyph</span>
<span id="L187" class="LineNr">187 </span><span class="subxFunction">draw-narrow-code-point-on-screen-buffer</span>: <span class="subxComment"># buffer: (addr byte), letter-bitmap: (addr byte), x: int, y: int, color: int, background-color: int, overlay?: boolean, screen-width: int, screen-height: int</span>
<span id="L188" class="LineNr">188 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L189" class="LineNr">189 </span> 55/push-ebp
<span id="L190" class="LineNr">190 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L191" class="LineNr">191 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L192" class="LineNr">192 </span> 52/push-edx
<span id="L193" class="LineNr">193 </span> 53/push-ebx
<span id="L194" class="LineNr">194 </span> 56/push-esi
<span id="L195" class="LineNr">195 </span> 57/push-edi
<span id="L196" class="LineNr">196 </span> <span class="subxComment"># esi = letter-bitmap</span>
<span id="L197" class="LineNr">197 </span> 8b/-&gt; *(ebp+0xc) 6/r32/esi
<span id="L198" class="LineNr">198 </span> <span class="subxComment"># var ycurr/edx: int = y*16</span>
<span id="L199" class="LineNr">199 </span> 8b/-&gt; *(ebp+0x14) 2/r32/edx
<span id="L200" class="LineNr">200 </span> c1 4/subop/shift-left %edx 4/imm8
<span id="L201" class="LineNr">201 </span> <span class="subxComment"># var ymax/edi: int = ycurr + 16</span>
<span id="L202" class="LineNr">202 </span> 8b/-&gt; *(ebp+0x14) 7/r32/edi
<span id="L203" class="LineNr">203 </span> c1 4/subop/shift-left %edi 4/imm8
<span id="L204" class="LineNr">204 </span> 81 0/subop/add %edi 0x10/imm32
<span id="L205" class="LineNr">205 </span> {
<span id="L206" class="LineNr">206 </span> <span class="subxComment"># if (ycurr &gt;= ymax) break</span>
<span id="L207" class="LineNr">207 </span> 39/compare %edx 7/r32/edi
<span id="L208" class="LineNr">208 </span> 0f 8d/jump-if-&gt;= <span class="Constant">break</span>/disp32
<span id="L209" class="LineNr">209 </span> <span class="subxComment"># var row-bitmap/ebx: byte = *letter-bitmap</span>
<span id="L210" class="LineNr">210 </span> bb/copy-to-ebx 0/imm32
<span id="L211" class="LineNr">211 </span> 8a/byte-&gt; *esi 3/r32/BL
<span id="L212" class="LineNr">212 </span> (<a href='103glyph.subx.html#L290'>draw-run-of-pixels-from-glyph</a> *(ebp+8) %ebx *(ebp+0x10) %edx *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24) *(ebp+0x28))
<span id="L213" class="LineNr">213 </span> <span class="subxComment"># ++y</span>
<span id="L214" class="LineNr">214 </span> 42/increment-edx
<span id="L215" class="LineNr">215 </span> <span class="subxComment"># next bitmap row</span>
<span id="L216" class="LineNr">216 </span> 46/increment-esi
<span id="L217" class="LineNr">217 </span> <span class="subxComment">#</span>
<span id="L218" class="LineNr">218 </span> e9/jump <span class="Constant">loop</span>/disp32
<span id="L219" class="LineNr">219 </span> }
<span id="L220" class="LineNr">220 </span><span class="Constant">$draw-narrow-code-point-on-screen-buffer:end</span>:
<span id="L221" class="LineNr">221 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L222" class="LineNr">222 </span> 5f/pop-to-edi
<span id="L223" class="LineNr">223 </span> 5e/pop-to-esi
<span id="L224" class="LineNr">224 </span> 5b/pop-to-ebx
<span id="L225" class="LineNr">225 </span> 5a/pop-to-edx
<span id="L226" class="LineNr">226 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L227" class="LineNr">227 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L228" class="LineNr">228 </span> 5d/pop-to-ebp
<span id="L229" class="LineNr">229 </span> c3/return
<span id="L230" class="LineNr">230 </span>
<span id="L231" class="LineNr">231 </span><span class="subxComment"># buffer: naked address to raw screen RAM without a length</span>
<span id="L232" class="LineNr">232 </span><span class="subxComment"># letter-bitmap: naked address to 16-pixel wide font glyph</span>
<span id="L233" class="LineNr">233 </span><span class="subxFunction">draw-wide-code-point-on-screen-buffer</span>: <span class="subxComment"># buffer: (addr byte), letter-bitmap: (addr byte), x: int, y: int, color: int, background-color: int, overlay?: boolean, screen-width: int, screen-height: int</span>
<span id="L234" class="LineNr">234 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L235" class="LineNr">235 </span> 55/push-ebp
<span id="L236" class="LineNr">236 </span> 89/&lt;- %ebp 4/r32/esp
<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"># esi = letter-bitmap</span>
<span id="L245" class="LineNr">245 </span> 8b/-&gt; *(ebp+0xc) 6/r32/esi
<span id="L246" class="LineNr">246 </span> <span class="subxComment">#</span>
<span id="L247" class="LineNr">247 </span> bb/copy-to-ebx 0/imm32
<span id="L248" class="LineNr">248 </span> <span class="subxComment"># var ycurr/edx: int = y*16</span>
<span id="L249" class="LineNr">249 </span> 8b/-&gt; *(ebp+0x14) 2/r32/edx
<span id="L250" class="LineNr">250 </span> c1 4/subop/shift-left %edx 4/imm8
<span id="L251" class="LineNr">251 </span> <span class="subxComment"># var ymax/edi: int = ycurr + 16</span>
<span id="L252" class="LineNr">252 </span> 8b/-&gt; *(ebp+0x14) 7/r32/edi
<span id="L253" class="LineNr">253 </span> c1 4/subop/shift-left %edi 4/imm8
<span id="L254" class="LineNr">254 </span> 81 0/subop/add %edi 0x10/imm32
<span id="L255" class="LineNr">255 </span> {
<span id="L256" class="LineNr">256 </span> <span class="subxComment"># if (ycurr &gt;= ymax) break</span>
<span id="L257" class="LineNr">257 </span> 39/compare %edx 7/r32/edi
<span id="L258" class="LineNr">258 </span> 0f 8d/jump-if-&gt;= <span class="Constant">break</span>/disp32
<span id="L259" class="LineNr">259 </span> <span class="subxComment"># var row-bitmap/ebx: byte = *letter-bitmap</span>
<span id="L260" class="LineNr">260 </span> 8a/byte-&gt; *esi 3/r32/BL
<span id="L261" class="LineNr">261 </span> <span class="subxComment"># ecx = x</span>
<span id="L262" class="LineNr">262 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L263" class="LineNr">263 </span> <span class="subxComment"># first half-row</span>
<span id="L264" class="LineNr">264 </span> (<a href='103glyph.subx.html#L290'>draw-run-of-pixels-from-glyph</a> *(ebp+8) %ebx %ecx %edx *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24) *(ebp+0x28))
<span id="L265" class="LineNr">265 </span> <span class="subxComment"># second half-row</span>
<span id="L266" class="LineNr">266 </span> 8a/byte-&gt; *(esi+1) 3/r32/BL
<span id="L267" class="LineNr">267 </span> 41/increment-ecx
<span id="L268" class="LineNr">268 </span> (<a href='103glyph.subx.html#L290'>draw-run-of-pixels-from-glyph</a> *(ebp+8) %ebx %ecx %edx *(ebp+0x18) *(ebp+0x1c) *(ebp+0x20) *(ebp+0x24) *(ebp+0x28))
<span id="L269" class="LineNr">269 </span> <span class="subxComment"># ++y</span>
<span id="L270" class="LineNr">270 </span> 42/increment-edx
<span id="L271" class="LineNr">271 </span> <span class="subxComment"># next bitmap row</span>
<span id="L272" class="LineNr">272 </span> 81 0/subop/add %esi 2/imm32
<span id="L273" class="LineNr">273 </span> <span class="subxComment">#</span>
<span id="L274" class="LineNr">274 </span> e9/jump <span class="Constant">loop</span>/disp32
<span id="L275" class="LineNr">275 </span> }
<span id="L276" class="LineNr">276 </span><span class="Constant">$draw-wide-code-point-on-screen-buffer:end</span>:
<span id="L277" class="LineNr">277 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L278" class="LineNr">278 </span> 5f/pop-to-edi
<span id="L279" class="LineNr">279 </span> 5e/pop-to-esi
<span id="L280" class="LineNr">280 </span> 5b/pop-to-ebx
<span id="L281" class="LineNr">281 </span> 5a/pop-to-edx
<span id="L282" class="LineNr">282 </span> 59/pop-to-ecx
<span id="L283" class="LineNr">283 </span> 58/pop-to-eax
<span id="L284" class="LineNr">284 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L285" class="LineNr">285 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L286" class="LineNr">286 </span> 5d/pop-to-ebp
<span id="L287" class="LineNr">287 </span> c3/return
<span id="L288" class="LineNr">288 </span>
<span id="L289" class="LineNr">289 </span><span class="subxComment"># draw 8 pixels from a single glyph byte in a font bitmap</span>
<span id="L290" class="LineNr">290 </span><span class="subxFunction">draw-run-of-pixels-from-glyph</span>: <span class="subxComment"># buffer: (addr byte), glyph-byte: byte, x: int, y: int, color: int, background-color: int, overlay?: boolean, screen-width: int, screen-height: int</span>
<span id="L291" class="LineNr">291 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L292" class="LineNr">292 </span> 55/push-ebp
<span id="L293" class="LineNr">293 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L294" class="LineNr">294 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L295" class="LineNr">295 </span> 50/push-eax
<span id="L296" class="LineNr">296 </span> 51/push-ecx
<span id="L297" class="LineNr">297 </span> 56/push-esi
<span id="L298" class="LineNr">298 </span> <span class="subxComment"># esi = glyph-byte</span>
<span id="L299" class="LineNr">299 </span> 8b/-&gt; *(ebp+0xc) 6/r32/esi
<span id="L300" class="LineNr">300 </span> <span class="subxComment"># var xcurr/eax: int = x*8 + 7</span>
<span id="L301" class="LineNr">301 </span> 8b/-&gt; *(ebp+0x10) 0/r32/eax
<span id="L302" class="LineNr">302 </span> c1 4/subop/shift-left %eax 3/imm8
<span id="L303" class="LineNr">303 </span> 05/add-to-eax 7/imm32
<span id="L304" class="LineNr">304 </span> <span class="subxComment"># var xmin/ecx: int = x*8</span>
<span id="L305" class="LineNr">305 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L306" class="LineNr">306 </span> c1 4/subop/shift-left %ecx 3/imm8
<span id="L307" class="LineNr">307 </span> {
<span id="L308" class="LineNr">308 </span> <span class="subxComment"># if (xcurr &lt; xmin) break</span>
<span id="L309" class="LineNr">309 </span> 39/compare %eax 1/r32/ecx
<span id="L310" class="LineNr">310 </span> 7c/jump-if-&lt; <span class="Constant">break</span>/disp8
<span id="L311" class="LineNr">311 </span> <span class="subxComment"># shift LSB from row-bitmap into carry flag (CF)</span>
<span id="L312" class="LineNr">312 </span> c1 5/subop/shift-right-logical %esi 1/imm8
<span id="L313" class="LineNr">313 </span> <span class="subxComment"># if LSB, draw a pixel in the given color</span>
<span id="L314" class="LineNr">314 </span> {
<span id="L315" class="LineNr">315 </span> 73/jump-if-not-CF <span class="Constant">break</span>/disp8
<span id="L316" class="LineNr">316 </span> (<a href='101screen.subx.html#L21'>pixel-on-screen-buffer</a> *(ebp+8) %eax *(ebp+0x14) *(ebp+0x18) *(ebp+0x24) *(ebp+0x28))
<span id="L317" class="LineNr">317 </span> eb/jump $draw-code-point-on-screen-buffer:continue/disp8
<span id="L318" class="LineNr">318 </span> }
<span id="L319" class="LineNr">319 </span> <span class="subxComment"># otherwise use the background color (except when overlay?)</span>
<span id="L320" class="LineNr">320 </span> {
<span id="L321" class="LineNr">321 </span> 81 7/subop/compare *(ebp+0x20) 0/imm32/false
<span id="L322" class="LineNr">322 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8
<span id="L323" class="LineNr">323 </span> (<a href='101screen.subx.html#L21'>pixel-on-screen-buffer</a> *(ebp+8) %eax *(ebp+0x14) *(ebp+0x1c) *(ebp+0x24) *(ebp+0x28))
<span id="L324" class="LineNr">324 </span> }
<span id="L325" class="LineNr">325 </span><span class="Constant">$draw-code-point-on-screen-buffer:continue</span>:
<span id="L326" class="LineNr">326 </span> <span class="subxComment"># --x</span>
<span id="L327" class="LineNr">327 </span> 48/decrement-eax
<span id="L328" class="LineNr">328 </span> <span class="subxComment">#</span>
<span id="L329" class="LineNr">329 </span> eb/jump <span class="Constant">loop</span>/disp8
<span id="L330" class="LineNr">330 </span> }
<span id="L331" class="LineNr">331 </span><span class="Constant">$draw-run-of-pixels-from-glyph:end</span>:
<span id="L332" class="LineNr">332 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L333" class="LineNr">333 </span> 5e/pop-to-esi
<span id="L334" class="LineNr">334 </span> 59/pop-to-ecx
<span id="L335" class="LineNr">335 </span> 58/pop-to-eax
<span id="L336" class="LineNr">336 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L337" class="LineNr">337 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L338" class="LineNr">338 </span> 5d/pop-to-ebp
<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="subxFunction">cursor-position-on-real-screen</span>: <span class="subxComment"># -&gt; _/eax: int, _/ecx: int</span>
<span id="L342" class="LineNr">342 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L343" class="LineNr">343 </span> 55/push-ebp
<span id="L344" class="LineNr">344 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L345" class="LineNr">345 </span> <span class="subxComment"># TODO: support fake screen; we currently assume 'screen' is always 0 (real)</span>
<span id="L346" class="LineNr">346 </span> 8b/-&gt; *<span class="SpecialChar"><a href='103glyph.subx.html#L415'>Real-screen-cursor-x</a></span> 0/r32/eax
<span id="L347" class="LineNr">347 </span> 8b/-&gt; *<span class="SpecialChar"><a href='103glyph.subx.html#L417'>Real-screen-cursor-y</a></span> 1/r32/ecx
<span id="L348" class="LineNr">348 </span><span class="Constant">$cursor-position-on-real-screen:end</span>:
<span id="L349" class="LineNr">349 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L350" class="LineNr">350 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L351" class="LineNr">351 </span> 5d/pop-to-ebp
<span id="L352" class="LineNr">352 </span> c3/return
<span id="L353" class="LineNr">353 </span>
<span id="L354" class="LineNr">354 </span><span class="subxFunction">set-cursor-position-on-real-screen</span>: <span class="subxComment"># x: int, y: int</span>
<span id="L355" class="LineNr">355 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L356" class="LineNr">356 </span> 55/push-ebp
<span id="L357" class="LineNr">357 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L358" class="LineNr">358 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L359" class="LineNr">359 </span> 50/push-eax
<span id="L360" class="LineNr">360 </span> <span class="subxComment">#</span>
<span id="L361" class="LineNr">361 </span> 8b/-&gt; *(ebp+8) 0/r32/eax
<span id="L362" class="LineNr">362 </span> 89/&lt;- *<span class="SpecialChar"><a href='103glyph.subx.html#L415'>Real-screen-cursor-x</a></span> 0/r32/eax
<span id="L363" class="LineNr">363 </span> 8b/-&gt; *(ebp+0xc) 0/r32/eax
<span id="L364" class="LineNr">364 </span> 89/&lt;- *<span class="SpecialChar"><a href='103glyph.subx.html#L417'>Real-screen-cursor-y</a></span> 0/r32/eax
<span id="L365" class="LineNr">365 </span><span class="Constant">$set-cursor-position-on-real-screen:end</span>:
<span id="L366" class="LineNr">366 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L367" class="LineNr">367 </span> 58/pop-to-eax
<span id="L368" class="LineNr">368 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L369" class="LineNr">369 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L370" class="LineNr">370 </span> 5d/pop-to-ebp
<span id="L371" class="LineNr">371 </span> c3/return
<span id="L372" class="LineNr">372 </span>
<span id="L373" class="LineNr">373 </span><span class="subxComment"># Not a real `show-cursor` primitive:</span>
<span id="L374" class="LineNr">374 </span><span class="subxComment"># - does not clear previous location cursor was shown at.</span>
<span id="L375" class="LineNr">375 </span><span class="subxComment"># - does not preserve what was at the cursor. Caller is responsible for</span>
<span id="L376" class="LineNr">376 </span><span class="subxComment"># tracking what was on the screen at this position before and passing it</span>
<span id="L377" class="LineNr">377 </span><span class="subxComment"># in again.</span>
<span id="L378" class="LineNr">378 </span><span class="subxComment"># - does not stop showing the cursor at this location when the cursor moves</span>
<span id="L379" class="LineNr">379 </span><span class="subxFunction">draw-cursor-on-real-screen</span>: <span class="subxComment"># c: code-point</span>
<span id="L380" class="LineNr">380 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L381" class="LineNr">381 </span> 55/push-ebp
<span id="L382" class="LineNr">382 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L383" class="LineNr">383 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L384" class="LineNr">384 </span> 50/push-eax
<span id="L385" class="LineNr">385 </span> 51/push-ecx
<span id="L386" class="LineNr">386 </span> <span class="subxComment">#</span>
<span id="L387" class="LineNr">387 </span> (<a href='103glyph.subx.html#L341'>cursor-position-on-real-screen</a>) <span class="subxComment"># =&gt; eax, ecx</span>
<span id="L388" class="LineNr">388 </span> (<a href='103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> *(ebp+8) %eax %ecx 0 7) <span class="subxComment"># =&gt; eax</span>
<span id="L389" class="LineNr">389 </span><span class="Constant">$draw-cursor-on-real-screen:end</span>:
<span id="L390" class="LineNr">390 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L391" class="LineNr">391 </span> 59/pop-to-ecx
<span id="L392" class="LineNr">392 </span> 58/pop-to-eax
<span id="L393" class="LineNr">393 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L394" class="LineNr">394 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L395" class="LineNr">395 </span> 5d/pop-to-ebp
<span id="L396" class="LineNr">396 </span> c3/return
<span id="L397" class="LineNr">397 </span>
<span id="L398" class="LineNr">398 </span>== data
<span id="L399" class="LineNr">399 </span>
<span id="L400" class="LineNr">400 </span><span class="subxComment"># The cursor is where certain Mu functions (usually of the form</span>
<span id="L401" class="LineNr">401 </span><span class="subxComment"># 'draw*cursor*') print to by default.</span>
<span id="L402" class="LineNr">402 </span><span class="subxComment">#</span>
<span id="L403" class="LineNr">403 </span><span class="subxComment"># We don't bother displaying the cursor when drawing. It only becomes visible</span>
<span id="L404" class="LineNr">404 </span><span class="subxComment"># on draw-cursor, which is quite rickety (see above)</span>
<span id="L405" class="LineNr">405 </span><span class="subxComment">#</span>
<span id="L406" class="LineNr">406 </span><span class="subxComment"># It's up to applications to manage cursor display:</span>
<span id="L407" class="LineNr">407 </span><span class="subxComment"># - clean up where it used to be</span>
<span id="L408" class="LineNr">408 </span><span class="subxComment"># - display the cursor before waiting for a key</span>
<span id="L409" class="LineNr">409 </span><span class="subxComment"># - ensure its location appropriately suggests the effect keystrokes will have</span>
<span id="L410" class="LineNr">410 </span><span class="subxComment"># - ensure its contents (and colors) appropriately reflect the state of the</span>
<span id="L411" class="LineNr">411 </span><span class="subxComment"># screen</span>
<span id="L412" class="LineNr">412 </span><span class="subxComment">#</span>
<span id="L413" class="LineNr">413 </span><span class="subxComment"># There's no blinking, etc. We aren't using any hardware-supported text mode</span>
<span id="L414" class="LineNr">414 </span><span class="subxComment"># here.</span>
<span id="L415" class="LineNr">415 </span><span class="SpecialChar">Real-screen-cursor-x</span>:
<span id="L416" class="LineNr">416 </span> 0/imm32
<span id="L417" class="LineNr">417 </span><span class="SpecialChar">Real-screen-cursor-y</span>:
<span id="L418" class="LineNr">418 </span> 0/imm32
</pre>
</body>
</html>

14
html/104test.subx.html generated
View File

@ -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; }
@ -23,7 +23,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -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 */

View File

@ -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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -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 */
@ -364,8 +364,8 @@ if ('onhashchange' in window) {
<span id="L304" class="LineNr">304 </span> c3/return
<span id="L305" class="LineNr">305 </span>
<span id="L306" class="LineNr">306 </span><span class="Constant">$_append-4:<a href='317abort.subx.html#L5'>abort</a></span>:
<span id="L307" class="LineNr">307 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;_append-4: stream full at &quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L308" class="LineNr">308 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 %eax 3 0)
<span id="L307" class="LineNr">307 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;_append-4: stream full at &quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L308" class="LineNr">308 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 %eax 3 0)
<span id="L309" class="LineNr">309 </span> (<a href='317abort.subx.html#L5'>abort</a> <span class="Constant">&quot;&quot;</span>)
<span id="L310" class="LineNr">310 </span> <span class="subxComment"># never gets here</span>
<span id="L311" class="LineNr">311 </span>

View File

@ -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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -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 */

View File

@ -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; }
@ -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 */

View File

@ -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; }
@ -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 */

View File

@ -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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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 - 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; }
@ -27,7 +27,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -322,36 +322,36 @@ if ('onhashchange' in window) {
<span id="L261" class="LineNr">261 </span> c3/return
<span id="L262" class="LineNr">262 </span>
<span id="L263" class="LineNr">263 </span><span class="Constant">$lookup:<a href='317abort.subx.html#L5'>abort</a></span>:
<span id="L264" class="LineNr">264 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;lookup failed: (&quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L265" class="LineNr">265 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+8) 3 0)
<span id="L266" class="LineNr">266 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;, &quot;</span> 3 0)
<span id="L267" class="LineNr">267 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0xc) 3 0)
<span id="L268" class="LineNr">268 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;) -&gt; &quot;</span> 3 0)
<span id="L269" class="LineNr">269 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L270" class="LineNr">270 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;. Contents of a few words starting from address 0: &quot;</span> 3 0)
<span id="L264" class="LineNr">264 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;lookup failed: (&quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L265" class="LineNr">265 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+8) 3 0)
<span id="L266" class="LineNr">266 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;, &quot;</span> 3 0)
<span id="L267" class="LineNr">267 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0xc) 3 0)
<span id="L268" class="LineNr">268 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;) -&gt; &quot;</span> 3 0)
<span id="L269" class="LineNr">269 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L270" class="LineNr">270 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;. Contents of a few words starting from address 0: &quot;</span> 3 0)
<span id="L271" class="LineNr">271 </span> b8/copy-to-eax 0/imm32
<span id="L272" class="LineNr">272 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 2 0)
<span id="L273" class="LineNr">273 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L272" class="LineNr">272 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 2 0)
<span id="L273" class="LineNr">273 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L274" class="LineNr">274 </span> 40/increment-eax
<span id="L275" class="LineNr">275 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L276" class="LineNr">276 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L275" class="LineNr">275 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L276" class="LineNr">276 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L277" class="LineNr">277 </span> 40/increment-eax
<span id="L278" class="LineNr">278 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L279" class="LineNr">279 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L278" class="LineNr">278 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L279" class="LineNr">279 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L280" class="LineNr">280 </span> 40/increment-eax
<span id="L281" class="LineNr">281 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L282" class="LineNr">282 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L281" class="LineNr">281 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L282" class="LineNr">282 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L283" class="LineNr">283 </span> 40/increment-eax
<span id="L284" class="LineNr">284 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L285" class="LineNr">285 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L284" class="LineNr">284 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L285" class="LineNr">285 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L286" class="LineNr">286 </span> 40/increment-eax
<span id="L287" class="LineNr">287 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L288" class="LineNr">288 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L287" class="LineNr">287 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L288" class="LineNr">288 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L289" class="LineNr">289 </span> 40/increment-eax
<span id="L290" class="LineNr">290 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L291" class="LineNr">291 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L290" class="LineNr">290 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L291" class="LineNr">291 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 2 0)
<span id="L292" class="LineNr">292 </span> 40/increment-eax
<span id="L293" class="LineNr">293 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L293" class="LineNr">293 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *eax 3 0)
<span id="L294" class="LineNr">294 </span> (<a href='317abort.subx.html#L5'>abort</a> <span class="Constant">&quot;\n&quot;</span>)
<span id="L295" class="LineNr">295 </span> <span class="subxComment"># never gets here</span>
<span id="L296" class="LineNr">296 </span>

View File

@ -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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -27,7 +27,7 @@ a { color:inherit; }
-->
</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-&gt;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, &quot;Abc&quot;)</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">&quot;Abc&quot;</span>/imm32

View File

@ -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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -27,7 +27,7 @@ a { color:inherit; }
-->
</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, &quot;-9&quot;, 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">&quot;F - test-write-int32-decimal-negative&quot;</span>/imm32

View File

@ -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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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 - 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; }
@ -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 */

View File

@ -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; }
@ -23,7 +23,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -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 */

View File

@ -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; }
@ -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 */

View File

@ -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; }
@ -24,7 +24,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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 - 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; }
@ -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 */

14
html/312copy.subx.html generated
View File

@ -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 - 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; }
@ -23,7 +23,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -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 */
@ -82,13 +82,13 @@ if ('onhashchange' in window) {
<span id="L26" class="LineNr">26 </span> 39/compare %eax 1/r32/ecx
<span id="L27" class="LineNr">27 </span> 0f 82/jump-if-unsigned&lt; $__check-mu-array-bounds:end/disp32 <span class="subxComment"># negative index should always abort</span>
<span id="L28" class="LineNr">28 </span> <span class="subxComment"># abort if necessary</span>
<span id="L29" class="LineNr">29 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;fn &quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L30" class="LineNr">30 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0x14) 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L31" class="LineNr">31 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;: offset &quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L32" class="LineNr">32 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 %eax 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L33" class="LineNr">33 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; is too large for array '&quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L34" class="LineNr">34 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0x18) 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L35" class="LineNr">35 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;'&quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L29" class="LineNr">29 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;fn &quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L30" class="LineNr">30 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0x14) 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L31" class="LineNr">31 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;: offset &quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L32" class="LineNr">32 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 %eax 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L33" class="LineNr">33 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; is too large for array '&quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L34" class="LineNr">34 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0x18) 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L35" class="LineNr">35 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;'&quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L36" class="LineNr">36 </span> (<a href='317abort.subx.html#L5'>abort</a> <span class="Constant">&quot;&quot;</span>)
<span id="L37" class="LineNr">37 </span> <span class="subxComment"># never gets here</span>
<span id="L38" class="LineNr">38 </span><span class="Constant">$__check-mu-array-bounds:end</span>:
@ -102,11 +102,11 @@ if ('onhashchange' in window) {
<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="subxMinorFunction">__check-mu-array-bounds:overflow</span>:
<span id="L49" class="LineNr">49 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;fn &quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L50" class="LineNr">50 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0x14) 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L51" class="LineNr">51 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;: offset to array '&quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L52" class="LineNr">52 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0x18) 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L53" class="LineNr">53 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;' overflowed 32 bits&quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L49" class="LineNr">49 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;fn &quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L50" class="LineNr">50 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0x14) 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L51" class="LineNr">51 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;: offset to array '&quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L52" class="LineNr">52 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0x18) 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L53" class="LineNr">53 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;' overflowed 32 bits&quot;</span> 3 0) <span class="subxComment"># 3=cyan</span>
<span id="L54" class="LineNr">54 </span> (<a href='317abort.subx.html#L5'>abort</a> <span class="Constant">&quot;&quot;</span>)
<span id="L55" class="LineNr">55 </span> <span class="subxComment"># never gets here</span>
<span id="L56" class="LineNr">56 </span>

View File

@ -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 - 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; }
@ -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 */

View File

@ -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; }
@ -24,7 +24,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -92,12 +92,12 @@ if ('onhashchange' in window) {
<span id="L34" class="LineNr"> 34 </span> <span class="subxComment">#</span>
<span id="L35" class="LineNr"> 35 </span> 89/&lt;- %edx 4/r32/esp
<span id="L36" class="LineNr"> 36 </span> <span class="subxComment"># save old cursor position</span>
<span id="L37" class="LineNr"> 37 </span> (<a href='500fake-screen.mu.html#L230'>cursor-position</a> 0) <span class="subxComment"># =&gt; eax, ecx</span>
<span id="L37" class="LineNr"> 37 </span> (<a href='500fake-screen.mu.html#L251'>cursor-position</a> 0) <span class="subxComment"># =&gt; eax, ecx</span>
<span id="L38" class="LineNr"> 38 </span> <span class="subxComment"># print at top-right</span>
<span id="L39" class="LineNr"> 39 </span> (<a href='500fake-screen.mu.html#L246'>set-cursor-position</a> 0 0x70 0)
<span id="L40" class="LineNr"> 40 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 %edx 0xf 0xc)
<span id="L39" class="LineNr"> 39 </span> (<a href='500fake-screen.mu.html#L267'>set-cursor-position</a> 0 0x70 0)
<span id="L40" class="LineNr"> 40 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 %edx 0xf 0xc)
<span id="L41" class="LineNr"> 41 </span> <span class="subxComment"># restore cursor position</span>
<span id="L42" class="LineNr"> 42 </span> (<a href='500fake-screen.mu.html#L246'>set-cursor-position</a> %eax %ecx)
<span id="L42" class="LineNr"> 42 </span> (<a href='500fake-screen.mu.html#L267'>set-cursor-position</a> %eax %ecx)
<span id="L43" class="LineNr"> 43 </span><span class="Constant">$show-stack-state:end</span>:
<span id="L44" class="LineNr"> 44 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L45" class="LineNr"> 45 </span> 5a/pop-to-edx
@ -122,13 +122,13 @@ if ('onhashchange' in window) {
<span id="L64" class="LineNr"> 64 </span> {
<span id="L65" class="LineNr"> 65 </span> 81 7/subop/compare *<span class="SpecialChar"><a href='315stack-debug.subx.html#L121'>Really-debug-print</a></span> 0/imm32/false
<span id="L66" class="LineNr"> 66 </span> 74/jump-if-= <span class="Constant">break</span>/disp8
<span id="L67" class="LineNr"> 67 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+8) *(ebp+0xc) *(ebp+0x10))
<span id="L67" class="LineNr"> 67 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+8) *(ebp+0xc) *(ebp+0x10))
<span id="L68" class="LineNr"> 68 </span> <span class="subxComment"># clear the screen and continue if we got too close to the bottom</span>
<span id="L69" class="LineNr"> 69 </span> (<a href='500fake-screen.mu.html#L230'>cursor-position</a> 0) <span class="subxComment"># =&gt; eax, ecx</span>
<span id="L69" class="LineNr"> 69 </span> (<a href='500fake-screen.mu.html#L251'>cursor-position</a> 0) <span class="subxComment"># =&gt; eax, ecx</span>
<span id="L70" class="LineNr"> 70 </span> 81 7/subop/compare %ecx 0x28/imm32
<span id="L71" class="LineNr"> 71 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8
<span id="L72" class="LineNr"> 72 </span> (<a href='500fake-screen.mu.html#L307'>clear-screen</a> 0)
<span id="L73" class="LineNr"> 73 </span> (<a href='500fake-screen.mu.html#L246'>set-cursor-position</a> 0 0 0)
<span id="L72" class="LineNr"> 72 </span> (<a href='500fake-screen.mu.html#L328'>clear-screen</a> 0)
<span id="L73" class="LineNr"> 73 </span> (<a href='500fake-screen.mu.html#L267'>set-cursor-position</a> 0 0 0)
<span id="L74" class="LineNr"> 74 </span> }
<span id="L75" class="LineNr"> 75 </span><span class="Constant">$debug-print:end</span>:
<span id="L76" class="LineNr"> 76 </span> <span class="subxS1Comment"># . restore registers</span>

View File

@ -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; }
@ -24,7 +24,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -24,7 +24,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -65,8 +65,8 @@ if ('onhashchange' in window) {
<span id="L7" class="LineNr"> 7 </span> 55/push-ebp
<span id="L8" class="LineNr"> 8 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L9" class="LineNr"> 9 </span> <span class="subxComment">#</span>
<span id="L10" class="LineNr"> 10 </span> (<a href='103glyph.subx.html#L340'>set-cursor-position-on-real-screen</a> 0 0)
<span id="L11" class="LineNr"> 11 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+8) 0xf 0xc) <span class="subxComment"># 0/real-screen, 0xf/fg=white, 0xc/bg=red</span>
<span id="L10" class="LineNr"> 10 </span> (<a href='103glyph.subx.html#L354'>set-cursor-position-on-real-screen</a> 0 0)
<span id="L11" class="LineNr"> 11 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+8) 0xf 0xc) <span class="subxComment"># 0/real-screen, 0xf/fg=white, 0xc/bg=red</span>
<span id="L12" class="LineNr"> 12 </span> (<a href='317abort.subx.html#L21'>dump-call-stack</a>)
<span id="L13" class="LineNr"> 13 </span> <span class="subxComment"># crash</span>
<span id="L14" class="LineNr"> 14 </span> {
@ -101,9 +101,9 @@ if ('onhashchange' in window) {
<span id="L43" class="LineNr"> 43 </span> 81 7/subop/compare %ebx 0/imm32
<span id="L44" class="LineNr"> 44 </span> 0f 84/jump-if-= <span class="Constant">break</span>/disp32
<span id="L45" class="LineNr"> 45 </span> <span class="subxComment"># loop body</span>
<span id="L46" class="LineNr"> 46 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;\n&quot;</span> 0 0xc)
<span id="L47" class="LineNr"> 47 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebx+4) 0xf 0xc)
<span id="L48" class="LineNr"> 48 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 0 0xc)
<span id="L46" class="LineNr"> 46 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;\n&quot;</span> 0 0xc)
<span id="L47" class="LineNr"> 47 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebx+4) 0xf 0xc)
<span id="L48" class="LineNr"> 48 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot; &quot;</span> 0 0xc)
<span id="L49" class="LineNr"> 49 </span> (<a href='317abort.subx.html#L233'>containing-function</a> %edx *(ebx+4)) <span class="subxComment"># =&gt; eax, ecx</span>
<span id="L50" class="LineNr"> 50 </span> (<a href='317abort.subx.html#L294'>draw-slice-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 %eax %ecx 0 0xc)
<span id="L51" class="LineNr"> 51 </span> <span class="subxComment"># loop update</span>
@ -190,7 +190,7 @@ if ('onhashchange' in window) {
<span id="L132" class="LineNr">132 </span> 3d/compare-eax-and 0/imm32
<span id="L133" class="LineNr">133 </span> {
<span id="L134" class="LineNr">134 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8
<span id="L135" class="LineNr">135 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;done loading&quot;</span> 7 0)
<span id="L135" class="LineNr">135 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;done loading&quot;</span> 7 0)
<span id="L136" class="LineNr">136 </span> {
<span id="L137" class="LineNr">137 </span> eb/jump <span class="Constant">loop</span>/disp8
<span id="L138" class="LineNr">138 </span> }
@ -198,7 +198,7 @@ if ('onhashchange' in window) {
<span id="L140" class="LineNr">140 </span> 3d/compare-eax-and 0xa/imm32/newline
<span id="L141" class="LineNr">141 </span> {
<span id="L142" class="LineNr">142 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8
<span id="L143" class="LineNr">143 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;unexpected newline&quot;</span> 7 0)
<span id="L143" class="LineNr">143 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;unexpected newline&quot;</span> 7 0)
<span id="L144" class="LineNr">144 </span> {
<span id="L145" class="LineNr">145 </span> eb/jump <span class="Constant">loop</span>/disp8
<span id="L146" class="LineNr">146 </span> }
@ -231,7 +231,7 @@ if ('onhashchange' in window) {
<span id="L173" class="LineNr">173 </span> 3d/compare-eax-and 0/imm32
<span id="L174" class="LineNr">174 </span> {
<span id="L175" class="LineNr">175 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8
<span id="L176" class="LineNr">176 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;done loading&quot;</span> 7 0)
<span id="L176" class="LineNr">176 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;done loading&quot;</span> 7 0)
<span id="L177" class="LineNr">177 </span> {
<span id="L178" class="LineNr">178 </span> eb/jump <span class="Constant">loop</span>/disp8
<span id="L179" class="LineNr">179 </span> }
@ -239,7 +239,7 @@ if ('onhashchange' in window) {
<span id="L181" class="LineNr">181 </span> 3d/compare-eax-and 0x20/imm32/space
<span id="L182" class="LineNr">182 </span> {
<span id="L183" class="LineNr">183 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8
<span id="L184" class="LineNr">184 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;unexpected space&quot;</span> 7 0)
<span id="L184" class="LineNr">184 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;unexpected space&quot;</span> 7 0)
<span id="L185" class="LineNr">185 </span> {
<span id="L186" class="LineNr">186 </span> eb/jump <span class="Constant">loop</span>/disp8
<span id="L187" class="LineNr">187 </span> }
@ -310,8 +310,8 @@ if ('onhashchange' in window) {
<span id="L252" class="LineNr">252 </span> 39/compare %ecx 2/r32/edx
<span id="L253" class="LineNr">253 </span> {
<span id="L254" class="LineNr">254 </span> 0f 82/jump-if-addr&lt; <span class="Constant">break</span>/disp32
<span id="L255" class="LineNr">255 </span> (<a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;failed to find function for address &quot;</span> 7 0)
<span id="L256" class="LineNr">256 </span> (<a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0xc) 7 0)
<span id="L255" class="LineNr">255 </span> (<a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 <span class="Constant">&quot;failed to find function for address &quot;</span> 7 0)
<span id="L256" class="LineNr">256 </span> (<a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> 0 *(ebp+0xc) 7 0)
<span id="L257" class="LineNr">257 </span> {
<span id="L258" class="LineNr">258 </span> eb/jump <span class="Constant">loop</span>/disp8
<span id="L259" class="LineNr">259 </span> }
@ -369,7 +369,7 @@ if ('onhashchange' in window) {
<span id="L311" class="LineNr">311 </span> 73/jump-if-addr&gt;= <span class="Constant">break</span>/disp8
<span id="L312" class="LineNr">312 </span> <span class="subxComment"># print *curr</span>
<span id="L313" class="LineNr">313 </span> 8a/byte-&gt; *ecx 0/r32/eax
<span id="L314" class="LineNr">314 </span> (<a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> *(ebp+8) %eax *(ebp+0x14) *(ebp+0x18))
<span id="L314" class="LineNr">314 </span> (<a href='501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> *(ebp+8) %eax *(ebp+0x14) *(ebp+0x18))
<span id="L315" class="LineNr">315 </span> <span class="subxComment">#</span>
<span id="L316" class="LineNr">316 </span> 41/increment-ecx
<span id="L317" class="LineNr">317 </span> <span class="subxComment">#</span>

View File

@ -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 - 318debug-counter.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; }
@ -23,7 +23,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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 - 319timer.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; }
@ -23,7 +23,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

22
html/400.mu.html generated
View File

@ -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 - 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; }
@ -23,7 +23,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -61,10 +61,10 @@ if ('onhashchange' in window) {
<span id="L4" class="LineNr"> 4 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> c: code-point, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int
<span id="L5" class="LineNr"> 5 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L43'>draw-code-point-on-screen-array</a> screen-data: (addr array byte), c: code-point, x: int, y: int, color: int, background-color: int, screen-width: int, screen-height: int<span class="PreProc"> -&gt; </span>_/eax: int
<span id="L6" class="LineNr"> 6 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L127'>wide-code-point?</a> c: code-point<span class="PreProc"> -&gt; </span>_/eax: boolean
<span id="L7" class="LineNr"> 7 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L150'>combining-code-point?</a> c: code-point<span class="PreProc"> -&gt; </span>_/eax: boolean
<span id="L8" class="LineNr"> 8 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L327'>cursor-position-on-real-screen</a><span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int
<span id="L9" class="LineNr"> 9 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L340'>set-cursor-position-on-real-screen</a> x: int, y: int
<span id="L10" class="LineNr"> 10 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L365'>draw-cursor-on-real-screen</a> c: code-point
<span id="L7" class="LineNr"> 7 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L157'>combining-code-point?</a> c: code-point<span class="PreProc"> -&gt; </span>_/eax: boolean
<span id="L8" class="LineNr"> 8 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L341'>cursor-position-on-real-screen</a><span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int
<span id="L9" class="LineNr"> 9 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L354'>set-cursor-position-on-real-screen</a> x: int, y: int
<span id="L10" class="LineNr"> 10 </span><span class="PreProc">sig</span> <a href='103glyph.subx.html#L379'>draw-cursor-on-real-screen</a> c: code-point
<span id="L11" class="LineNr"> 11 </span><span class="PreProc">sig</span> <a href='316colors.subx.html#L7'>color-rgb</a> color: int<span class="PreProc"> -&gt; </span>_/<span class="muRegEcx">ecx</span>: int, _/<span class="muRegEdx">edx</span>: int, _/<span class="muRegEbx">ebx</span>: int
<span id="L12" class="LineNr"> 12 </span>
<span id="L13" class="LineNr"> 13 </span><span class="muComment"># timer</span>

View File

@ -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 - 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; }
@ -30,7 +30,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -95,21 +95,21 @@ if ('onhashchange' in window) {
<span id="L31" class="LineNr"> 31 </span> <span class="Delimiter">{</span>
<span id="L32" class="LineNr"> 32 </span> compare init?, <span class="Constant">0</span>/false
<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#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L17'>test-unicode-serialization-and-deserialization</a>: &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L34" class="LineNr"> 34 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L17'>test-unicode-serialization-and-deserialization</a>: &quot;</span>, <span class="Constant">3</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> init? <span class="Special">&lt;-</span> copy <span class="Constant">0</span>/false
<span id="L37" class="LineNr"> 37 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, i, <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#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;/&quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L37" class="LineNr"> 37 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, i, <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#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;/&quot;</span>, <span class="Constant">3</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">var</span> x/eax: int <span class="Special">&lt;-</span> copy g
<span id="L41" class="LineNr"> 41 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L41" class="LineNr"> 41 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L42" class="LineNr"> 42 </span> <span class="Delimiter">}</span>
<span id="L43" class="LineNr"> 43 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;/&quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L43" class="LineNr"> 43 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;/&quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L44" class="LineNr"> 44 </span> <span class="Delimiter">{</span>
<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special">&lt;-</span> copy c2
<span id="L46" class="LineNr"> 46 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x2, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L46" class="LineNr"> 46 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x2, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L47" class="LineNr"> 47 </span> <span class="Delimiter">}</span>
<span id="L48" class="LineNr"> 48 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L48" class="LineNr"> 48 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L49" class="LineNr"> 49 </span> <span class="Delimiter">}</span>
<span id="L50" class="LineNr"> 50 </span> i <span class="Special">&lt;-</span> add <span class="Constant">0xf</span> <span class="muComment"># to speed things up; ensure increment is not a power of 2</span>
<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">loop</span>

14
html/408float.mu.html generated
View File

@ -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 - 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; }
@ -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 */

14
html/411string.mu.html generated
View File

@ -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 - 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; }
@ -29,7 +29,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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 - 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; }
@ -30,7 +30,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -219,7 +219,7 @@ if ('onhashchange' in window) {
<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L157" class="LineNr">157 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> result/eax: int <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L117'>draw-stream-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, s, x, width, y, color, background-color
<span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> result/eax: int <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L124'>draw-stream-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, s, x, width, y, color, background-color
<span id="L159" class="LineNr">159 </span> <span class="PreProc">return</span> result
<span id="L160" class="LineNr">160 </span><span class="Delimiter">}</span>
<span id="L161" class="LineNr">161 </span>

File diff suppressed because it is too large Load Diff

View File

@ -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 - 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; }
@ -29,7 +29,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -66,14 +66,14 @@ if ('onhashchange' in window) {
<span id="L3" class="LineNr"> 3 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L3'>move-cursor-left</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="L4" class="LineNr"> 4 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L5" class="LineNr"> 5 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L6" class="LineNr"> 6 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L6" class="LineNr"> 6 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L7" class="LineNr"> 7 </span> compare cursor-x, <span class="Constant">0</span>
<span id="L8" class="LineNr"> 8 </span> <span class="Delimiter">{</span>
<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L10" class="LineNr"> 10 </span> <span class="PreProc">return</span>
<span id="L11" class="LineNr"> 11 </span> <span class="Delimiter">}</span>
<span id="L12" class="LineNr"> 12 </span> cursor-x <span class="Special">&lt;-</span> decrement
<span id="L13" class="LineNr"> 13 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L13" class="LineNr"> 13 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L14" class="LineNr"> 14 </span><span class="Delimiter">}</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='501draw-text.mu.html#L16'>move-cursor-right</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>
@ -84,27 +84,27 @@ if ('onhashchange' in window) {
<span id="L21" class="LineNr"> 21 </span> limit <span class="Special">&lt;-</span> decrement
<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L24" class="LineNr"> 24 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L24" class="LineNr"> 24 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L25" class="LineNr"> 25 </span> compare cursor-x, limit
<span id="L26" class="LineNr"> 26 </span> <span class="Delimiter">{</span>
<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">return</span>
<span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">}</span>
<span id="L30" class="LineNr"> 30 </span> cursor-x <span class="Special">&lt;-</span> increment
<span id="L31" class="LineNr"> 31 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L31" class="LineNr"> 31 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L32" class="LineNr"> 32 </span><span class="Delimiter">}</span>
<span id="L33" class="LineNr"> 33 </span>
<span id="L34" class="LineNr"> 34 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L34'>move-cursor-up</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="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L37" class="LineNr"> 37 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L37" class="LineNr"> 37 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L38" class="LineNr"> 38 </span> compare cursor-y, <span class="Constant">0</span>
<span id="L39" class="LineNr"> 39 </span> <span class="Delimiter">{</span>
<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">return</span>
<span id="L42" class="LineNr"> 42 </span> <span class="Delimiter">}</span>
<span id="L43" class="LineNr"> 43 </span> cursor-y <span class="Special">&lt;-</span> decrement
<span id="L44" class="LineNr"> 44 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L44" class="LineNr"> 44 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<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="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L47'>move-cursor-down</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>
@ -115,14 +115,14 @@ if ('onhashchange' in window) {
<span id="L52" class="LineNr"> 52 </span> limit <span class="Special">&lt;-</span> decrement
<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L55" class="LineNr"> 55 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L55" class="LineNr"> 55 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L56" class="LineNr"> 56 </span> compare cursor-y, limit
<span id="L57" class="LineNr"> 57 </span> <span class="Delimiter">{</span>
<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">return</span>
<span id="L60" class="LineNr"> 60 </span> <span class="Delimiter">}</span>
<span id="L61" class="LineNr"> 61 </span> cursor-y <span class="Special">&lt;-</span> increment
<span id="L62" class="LineNr"> 62 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L62" class="LineNr"> 62 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L63" class="LineNr"> 63 </span><span class="Delimiter">}</span>
<span id="L64" class="LineNr"> 64 </span>
<span id="L65" class="LineNr"> 65 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</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>
@ -133,7 +133,7 @@ if ('onhashchange' in window) {
<span id="L70" class="LineNr"> 70 </span> limit <span class="Special">&lt;-</span> decrement
<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L73" class="LineNr"> 73 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L73" class="LineNr"> 73 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L74" class="LineNr"> 74 </span> compare cursor-y, limit
<span id="L75" class="LineNr"> 75 </span> <span class="Delimiter">{</span>
<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">break-if-&lt;</span>
@ -141,253 +141,253 @@ if ('onhashchange' in window) {
<span id="L78" class="LineNr"> 78 </span> <span class="Delimiter">}</span>
<span id="L79" class="LineNr"> 79 </span> cursor-y <span class="Special">&lt;-</span> increment
<span id="L80" class="LineNr"> 80 </span> cursor-x <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L81" class="LineNr"> 81 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L81" class="LineNr"> 81 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L82" class="LineNr"> 82 </span><span class="Delimiter">}</span>
<span id="L83" class="LineNr"> 83 </span>
<span id="L84" class="LineNr"> 84 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), c: code-point, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L84" class="LineNr"> 84 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), c: code-point, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L87" class="LineNr"> 87 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> _offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, cursor-x, cursor-y, color, background-color
<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> offset/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy _offset
<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L92" class="LineNr"> 92 </span> width, dummy <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L93" class="LineNr"> 93 </span> <a href='501draw-text.mu.html#L247'>move-cursor-rightward-and-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span> width
<span id="L94" class="LineNr"> 94 </span> offset <span class="Special">&lt;-</span> decrement
<span id="L95" class="LineNr"> 95 </span> compare offset, <span class="Constant">0</span>
<span id="L96" class="LineNr"> 96 </span> <span class="Delimiter">{</span>
<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">break-if-=</span>
<span id="L98" class="LineNr"> 98 </span> <span class="muComment"># should never move downward here</span>
<span id="L99" class="LineNr"> 99 </span> <a href='501draw-text.mu.html#L247'>move-cursor-rightward-and-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span> width
<span id="L100" class="LineNr">100 </span> <span class="Delimiter">}</span>
<span id="L101" class="LineNr">101 </span><span class="Delimiter">}</span>
<span id="L102" class="LineNr">102 </span>
<span id="L103" class="LineNr">103 </span><span class="muComment"># draw a single line of text from x, y to xmax</span>
<span id="L104" class="LineNr">104 </span><span class="muComment"># return the next 'x' coordinate</span>
<span id="L105" class="LineNr">105 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L106" class="LineNr">106 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L106'>draw-text-rightward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, xmax: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L107" class="LineNr">107 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x400</span>/print-buffer-size)
<span id="L108" class="LineNr">108 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L109" class="LineNr">109 </span> <a href='108write.subx.html#L11'>write</a> stream, text
<span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> xcurr/eax: int <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L117'>draw-stream-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, x, xmax, y, color, background-color
<span id="L111" class="LineNr">111 </span> <span class="PreProc">return</span> xcurr
<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="muComment"># draw a single-line stream from x, y to xmax</span>
<span id="L115" class="LineNr">115 </span><span class="muComment"># return the next 'x' coordinate</span>
<span id="L116" class="LineNr">116 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L117" class="LineNr">117 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L117'>draw-stream-rightward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), x: int, xmax: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L119" class="LineNr">119 </span> <span class="Delimiter">{</span>
<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L121" class="LineNr">121 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file
<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> c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xcurr, y, color, background-color
<span id="L125" class="LineNr">125 </span> xcurr <span class="Special">&lt;-</span> add offset
<span id="L126" class="LineNr">126 </span> <span class="PreProc">loop</span>
<span id="L127" class="LineNr">127 </span> <span class="Delimiter">}</span>
<span id="L128" class="LineNr">128 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xcurr, y
<span id="L129" class="LineNr">129 </span> <span class="PreProc">return</span> xcurr
<span id="L130" class="LineNr">130 </span><span class="Delimiter">}</span>
<span id="L131" class="LineNr">131 </span>
<span id="L132" class="LineNr">132 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L132'>draw-text-rightward-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L135" class="LineNr">135 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> result/eax: int <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, x, width, y, color, background-color
<span id="L137" class="LineNr">137 </span> <span class="PreProc">return</span> result
<span id="L138" class="LineNr">138 </span><span class="Delimiter">}</span>
<span id="L139" class="LineNr">139 </span>
<span id="L140" class="LineNr">140 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L143" class="LineNr">143 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L144" class="LineNr">144 </span> cursor-x <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, cursor-x, xmax, cursor-y, color, background-color
<span id="L145" class="LineNr">145 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L146" class="LineNr">146 </span><span class="Delimiter">}</span>
<span id="L147" class="LineNr">147 </span>
<span id="L148" class="LineNr">148 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L148'>draw-text-rightward-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), color: int, background-color: int <span class="Delimiter">{</span>
<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L151" class="LineNr">151 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L152" class="LineNr">152 </span> <a href='501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, width, color, background-color
<span id="L87" class="LineNr"> 87 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, cursor-x, cursor-y, color, background-color
<span id="L89" class="LineNr"> 89 </span><span class="Delimiter">}</span>
<span id="L90" class="LineNr"> 90 </span>
<span id="L91" class="LineNr"> 91 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), c: code-point, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L94" class="LineNr"> 94 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> _offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, cursor-x, cursor-y, color, background-color
<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> offset/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy _offset
<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L99" class="LineNr"> 99 </span> width, dummy <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L100" class="LineNr">100 </span> <a href='501draw-text.mu.html#L302'>move-cursor-rightward-and-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span> width
<span id="L101" class="LineNr">101 </span> offset <span class="Special">&lt;-</span> decrement
<span id="L102" class="LineNr">102 </span> compare offset, <span class="Constant">0</span>
<span id="L103" class="LineNr">103 </span> <span class="Delimiter">{</span>
<span id="L104" class="LineNr">104 </span> <span class="PreProc">break-if-=</span>
<span id="L105" class="LineNr">105 </span> <span class="muComment"># should never move downward here</span>
<span id="L106" class="LineNr">106 </span> <a href='501draw-text.mu.html#L302'>move-cursor-rightward-and-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span> width
<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 id="L110" class="LineNr">110 </span><span class="muComment"># draw a single line of text from x, y to xmax</span>
<span id="L111" class="LineNr">111 </span><span class="muComment"># return the next 'x' coordinate</span>
<span id="L112" class="LineNr">112 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L113" class="LineNr">113 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L113'>draw-text-rightward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, xmax: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x400</span>/print-buffer-size)
<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L116" class="LineNr">116 </span> <a href='108write.subx.html#L11'>write</a> stream, text
<span id="L117" class="LineNr">117 </span> <span class="PreProc">var</span> xcurr/eax: int <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L124'>draw-stream-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, x, xmax, y, color, background-color
<span id="L118" class="LineNr">118 </span> <span class="PreProc">return</span> xcurr
<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="muComment"># draw a single-line stream from x, y to xmax</span>
<span id="L122" class="LineNr">122 </span><span class="muComment"># return the next 'x' coordinate</span>
<span id="L123" class="LineNr">123 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L124" class="LineNr">124 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L124'>draw-stream-rightward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), x: int, xmax: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L125" class="LineNr">125 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L126" class="LineNr">126 </span> <span class="Delimiter">{</span>
<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L128" class="LineNr">128 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file
<span id="L129" class="LineNr">129 </span> <span class="PreProc">break-if-=</span>
<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xcurr, y, color, background-color
<span id="L132" class="LineNr">132 </span> xcurr <span class="Special">&lt;-</span> add offset
<span id="L133" class="LineNr">133 </span> <span class="PreProc">loop</span>
<span id="L134" class="LineNr">134 </span> <span class="Delimiter">}</span>
<span id="L135" class="LineNr">135 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xcurr, y
<span id="L136" class="LineNr">136 </span> <span class="PreProc">return</span> xcurr
<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="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L139'>draw-text-rightward-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L140" class="LineNr">140 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L141" class="LineNr">141 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L142" class="LineNr">142 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> result/eax: int <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, x, width, y, color, background-color
<span id="L144" class="LineNr">144 </span> <span class="PreProc">return</span> result
<span id="L145" class="LineNr">145 </span><span class="Delimiter">}</span>
<span id="L146" class="LineNr">146 </span>
<span id="L147" class="LineNr">147 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L149" class="LineNr">149 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L150" class="LineNr">150 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L151" class="LineNr">151 </span> cursor-x <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, cursor-x, xmax, cursor-y, color, background-color
<span id="L152" class="LineNr">152 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<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="muFunction"><a href='501draw-text.mu.html#L155'>render-code-point</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), c: code-point, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L156" class="LineNr">156 </span> compare c, <span class="Constant">0xa</span>/newline
<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L158" class="LineNr">158 </span> <span class="Delimiter">{</span>
<span id="L159" class="LineNr">159 </span> <span class="PreProc">break-if-!=</span>
<span id="L160" class="LineNr">160 </span> <span class="muComment"># minimum effort to clear cursor</span>
<span id="L161" class="LineNr">161 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x20</span>/space, x, y, color, background-color
<span id="L162" class="LineNr">162 </span> x <span class="Special">&lt;-</span> copy xmin
<span id="L163" class="LineNr">163 </span> increment y
<span id="L164" class="LineNr">164 </span> <span class="PreProc">return</span> x, y
<span id="L165" class="LineNr">165 </span> <span class="Delimiter">}</span>
<span id="L166" class="LineNr">166 </span> <span class="PreProc">var</span> offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, x, y, color, background-color
<span id="L167" class="LineNr">167 </span> x <span class="Special">&lt;-</span> add offset
<span id="L168" class="LineNr">168 </span> compare x, xmax
<span id="L169" class="LineNr">169 </span> <span class="Delimiter">{</span>
<span id="L170" class="LineNr">170 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L171" class="LineNr">171 </span> x <span class="Special">&lt;-</span> copy xmin
<span id="L172" class="LineNr">172 </span> increment y
<span id="L173" class="LineNr">173 </span> <span class="Delimiter">}</span>
<span id="L174" class="LineNr">174 </span> <span class="PreProc">return</span> x, y
<span id="L175" class="LineNr">175 </span><span class="Delimiter">}</span>
<span id="L176" class="LineNr">176 </span>
<span id="L177" class="LineNr">177 </span><span class="muComment"># draw text in the rectangle from (xmin, ymin) to (xmax, ymax), starting from (x, y), wrapping as necessary</span>
<span id="L178" class="LineNr">178 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span>
<span id="L179" class="LineNr">179 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span>
<span id="L180" class="LineNr">180 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L181" class="LineNr">181 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L182" class="LineNr">182 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x200</span>/print-buffer-size)
<span id="L183" class="LineNr">183 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L184" class="LineNr">184 </span> <span class="PreProc">var</span> text/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special">&lt;-</span> copy _text
<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> len/eax: int <span class="Special">&lt;-</span> length text
<span id="L186" class="LineNr">186 </span> compare len, <span class="Constant">0x200</span>/print-buffer-size
<span id="L187" class="LineNr">187 </span> <span class="Delimiter">{</span>
<span id="L188" class="LineNr">188 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L189" class="LineNr">189 </span> <a href='108write.subx.html#L11'>write</a> stream, <span class="Constant">&quot;ERROR: stream too small in draw-text-wrapping-right-then-down&quot;</span>
<span id="L190" class="LineNr">190 </span> <span class="Delimiter">}</span>
<span id="L191" class="LineNr">191 </span> compare len, <span class="Constant">0x200</span>/print-buffer-size
<span id="L192" class="LineNr">192 </span> <span class="Delimiter">{</span>
<span id="L193" class="LineNr">193 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L194" class="LineNr">194 </span> <a href='108write.subx.html#L11'>write</a> stream, text
<span id="L195" class="LineNr">195 </span> <span class="Delimiter">}</span>
<span id="L196" class="LineNr">196 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> copy _x
<span id="L197" class="LineNr">197 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy _y
<span id="L198" class="LineNr">198 </span> x, y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L206'>draw-stream-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, xmin, ymin, xmax, ymax, x, y, color, background-color
<span id="L199" class="LineNr">199 </span> <span class="PreProc">return</span> x, y
<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"># draw a stream in the rectangle from (xmin, ymin) to (xmax, ymax), starting from (x, y), wrapping as necessary</span>
<span id="L203" class="LineNr">203 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span>
<span id="L204" class="LineNr">204 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span>
<span id="L205" class="LineNr">205 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L206" class="LineNr">206 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L206'>draw-stream-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> xcurr/eax: int <span class="Special">&lt;-</span> copy x
<span id="L208" class="LineNr">208 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L209" class="LineNr">209 </span> <span class="PreProc">var</span> c/<span class="muRegEbx">ebx</span>: code-point <span class="Special">&lt;-</span> copy <span class="Constant">0</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> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L213" class="LineNr">213 </span> <span class="PreProc">var</span> _c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L214" class="LineNr">214 </span> c <span class="Special">&lt;-</span> copy _c
<span id="L215" class="LineNr">215 </span> <span class="Delimiter">}</span>
<span id="L216" class="LineNr">216 </span> compare c, <span class="Constant">0xffffffff</span>/end-of-file
<span id="L217" class="LineNr">217 </span> <span class="PreProc">break-if-=</span>
<span id="L218" class="LineNr">218 </span> xcurr, ycurr <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L155'>render-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xmin, ymin, xmax, ymax, xcurr, ycurr, color, background-color
<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> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xcurr, ycurr
<span id="L222" class="LineNr">222 </span> <span class="PreProc">return</span> xcurr, ycurr
<span id="L223" class="LineNr">223 </span><span class="Delimiter">}</span>
<span id="L224" class="LineNr">224 </span>
<span id="L225" class="LineNr">225 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L225'>draw-stream-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L226" class="LineNr">226 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L228" class="LineNr">228 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> end-x/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy cursor-x
<span id="L230" class="LineNr">230 </span> end-x <span class="Special">&lt;-</span> increment
<span id="L231" class="LineNr">231 </span> compare end-x, xmax
<span id="L232" class="LineNr">232 </span> <span class="Delimiter">{</span>
<span id="L233" class="LineNr">233 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L234" class="LineNr">234 </span> cursor-x <span class="Special">&lt;-</span> copy xmin
<span id="L235" class="LineNr">235 </span> cursor-y <span class="Special">&lt;-</span> increment
<span id="L236" class="LineNr">236 </span> <span class="Delimiter">}</span>
<span id="L237" class="LineNr">237 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L206'>draw-stream-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, xmin, ymin, xmax, ymax, cursor-x, cursor-y, color, background-color
<span id="L238" class="LineNr">238 </span><span class="Delimiter">}</span>
<span id="L239" class="LineNr">239 </span>
<span id="L240" class="LineNr">240 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L240'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), color: int, background-color: int <span class="Delimiter">{</span>
<span id="L241" class="LineNr">241 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L242" class="LineNr">242 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L243" class="LineNr">243 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L244" class="LineNr">244 </span> <a href='501draw-text.mu.html#L225'>draw-stream-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color
<span id="L245" class="LineNr">245 </span><span class="Delimiter">}</span>
<span id="L246" class="LineNr">246 </span>
<span id="L247" class="LineNr">247 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L247'>move-cursor-rightward-and-downward</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 <span class="Delimiter">{</span>
<span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L250" class="LineNr">250 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L251" class="LineNr">251 </span> cursor-x <span class="Special">&lt;-</span> increment
<span id="L252" class="LineNr">252 </span> compare cursor-x, xmax
<span id="L253" class="LineNr">253 </span> <span class="Delimiter">{</span>
<span id="L254" class="LineNr">254 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L255" class="LineNr">255 </span> cursor-x <span class="Special">&lt;-</span> copy xmin
<span id="L256" class="LineNr">256 </span> cursor-y <span class="Special">&lt;-</span> increment
<span id="L257" class="LineNr">257 </span> <span class="Delimiter">}</span>
<span id="L258" class="LineNr">258 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<span id="L259" class="LineNr">259 </span><span class="Delimiter">}</span>
<span id="L260" class="LineNr">260 </span>
<span id="L261" class="LineNr">261 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L261'>draw-text-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L264" class="LineNr">264 </span> x2, y2 <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="muComment"># width, height</span>
<span id="L265" class="LineNr">265 </span> x2, y2 <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color
<span id="L266" class="LineNr">266 </span> <span class="PreProc">return</span> x2, y2 <span class="muComment"># cursor-x, cursor-y</span>
<span id="L267" class="LineNr">267 </span><span class="Delimiter">}</span>
<span id="L268" class="LineNr">268 </span>
<span id="L269" class="LineNr">269 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L270" class="LineNr">270 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L271" class="LineNr">271 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L272" class="LineNr">272 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> end-x/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy cursor-x
<span id="L274" class="LineNr">274 </span> end-x <span class="Special">&lt;-</span> increment
<span id="L275" class="LineNr">275 </span> compare end-x, xmax
<span id="L276" class="LineNr">276 </span> <span class="Delimiter">{</span>
<span id="L277" class="LineNr">277 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L278" class="LineNr">278 </span> cursor-x <span class="Special">&lt;-</span> copy xmin
<span id="L279" class="LineNr">279 </span> cursor-y <span class="Special">&lt;-</span> increment
<span id="L280" class="LineNr">280 </span> <span class="Delimiter">}</span>
<span id="L281" class="LineNr">281 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, xmin, ymin, xmax, ymax, cursor-x, cursor-y, color, background-color
<span id="L282" class="LineNr">282 </span><span class="Delimiter">}</span>
<span id="L283" class="LineNr">283 </span>
<span id="L284" class="LineNr">284 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), color: int, background-color: int <span class="Delimiter">{</span>
<span id="L285" class="LineNr">285 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L287" class="LineNr">287 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L288" class="LineNr">288 </span> <a href='501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color
<span id="L289" class="LineNr">289 </span><span class="Delimiter">}</span>
<span id="L290" class="LineNr">290 </span>
<span id="L291" class="LineNr">291 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L291'>draw-int32-hex-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L292" class="LineNr">292 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>)
<span id="L293" class="LineNr">293 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L294" class="LineNr">294 </span> <a href='117write-int-hex.subx.html#L92'>write-int32-hex</a> stream, n
<span id="L295" class="LineNr">295 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L297" class="LineNr">297 </span> <span class="Delimiter">{</span>
<span id="L298" class="LineNr">298 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L299" class="LineNr">299 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file
<span id="L300" class="LineNr">300 </span> <span class="PreProc">break-if-=</span>
<span id="L301" class="LineNr">301 </span> <span class="PreProc">var</span> c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xcurr, ycurr, color, background-color
<span id="L303" class="LineNr">303 </span> xcurr <span class="Special">&lt;-</span> add offset
<span id="L304" class="LineNr">304 </span> compare xcurr, xmax
<span id="L305" class="LineNr">305 </span> <span class="Delimiter">{</span>
<span id="L306" class="LineNr">306 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L307" class="LineNr">307 </span> xcurr <span class="Special">&lt;-</span> copy xmin
<span id="L308" class="LineNr">308 </span> ycurr <span class="Special">&lt;-</span> increment
<span id="L309" class="LineNr">309 </span> <span class="Delimiter">}</span>
<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='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xcurr, ycurr
<span id="L313" class="LineNr">313 </span> <span class="PreProc">return</span> xcurr, ycurr
<span id="L155" class="LineNr">155 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L155'>draw-text-rightward-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), color: int, background-color: int <span class="Delimiter">{</span>
<span id="L156" class="LineNr">156 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L157" class="LineNr">157 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L158" class="LineNr">158 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L159" class="LineNr">159 </span> <a href='501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, width, color, background-color
<span id="L160" class="LineNr">160 </span><span class="Delimiter">}</span>
<span id="L161" class="LineNr">161 </span>
<span id="L162" class="LineNr">162 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L162'>render-code-point</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), c: code-point, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L163" class="LineNr">163 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L164" class="LineNr">164 </span> compare c, <span class="Constant">0xa</span>/newline
<span id="L165" class="LineNr">165 </span> <span class="Delimiter">{</span>
<span id="L166" class="LineNr">166 </span> <span class="PreProc">break-if-!=</span>
<span id="L167" class="LineNr">167 </span> <span class="muComment"># minimum effort to clear cursor</span>
<span id="L168" class="LineNr">168 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x20</span>/space, x, y, color, background-color
<span id="L169" class="LineNr">169 </span> x <span class="Special">&lt;-</span> copy xmin
<span id="L170" class="LineNr">170 </span> increment y
<span id="L171" class="LineNr">171 </span> <span class="PreProc">return</span> x, y
<span id="L172" class="LineNr">172 </span> <span class="Delimiter">}</span>
<span id="L173" class="LineNr">173 </span> <span class="PreProc">var</span> offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, x, y, color, background-color
<span id="L174" class="LineNr">174 </span> x <span class="Special">&lt;-</span> add offset
<span id="L175" class="LineNr">175 </span> compare x, xmax
<span id="L176" class="LineNr">176 </span> <span class="Delimiter">{</span>
<span id="L177" class="LineNr">177 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L178" class="LineNr">178 </span> x <span class="Special">&lt;-</span> copy xmin
<span id="L179" class="LineNr">179 </span> increment y
<span id="L180" class="LineNr">180 </span> <span class="Delimiter">}</span>
<span id="L181" class="LineNr">181 </span> <span class="PreProc">return</span> x, y
<span id="L182" class="LineNr">182 </span><span class="Delimiter">}</span>
<span id="L183" class="LineNr">183 </span>
<span id="L184" class="LineNr">184 </span><span class="muComment"># draw text in the rectangle from (xmin, ymin) to (xmax, ymax), starting from (x, y), wrapping as necessary</span>
<span id="L185" class="LineNr">185 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span>
<span id="L186" class="LineNr">186 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span>
<span id="L187" class="LineNr">187 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L188" class="LineNr">188 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), _text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x200</span>/print-buffer-size)
<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> text/<span class="muRegEsi">esi</span>: (addr array byte) <span class="Special">&lt;-</span> copy _text
<span id="L192" class="LineNr">192 </span> <span class="PreProc">var</span> len/eax: int <span class="Special">&lt;-</span> length text
<span id="L193" class="LineNr">193 </span> compare len, <span class="Constant">0x200</span>/print-buffer-size
<span id="L194" class="LineNr">194 </span> <span class="Delimiter">{</span>
<span id="L195" class="LineNr">195 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L196" class="LineNr">196 </span> <a href='108write.subx.html#L11'>write</a> stream, <span class="Constant">&quot;ERROR: stream too small in draw-text-wrapping-right-then-down&quot;</span>
<span id="L197" class="LineNr">197 </span> <span class="Delimiter">}</span>
<span id="L198" class="LineNr">198 </span> compare len, <span class="Constant">0x200</span>/print-buffer-size
<span id="L199" class="LineNr">199 </span> <span class="Delimiter">{</span>
<span id="L200" class="LineNr">200 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L201" class="LineNr">201 </span> <a href='108write.subx.html#L11'>write</a> stream, text
<span id="L202" class="LineNr">202 </span> <span class="Delimiter">}</span>
<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> copy _x
<span id="L204" class="LineNr">204 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy _y
<span id="L205" class="LineNr">205 </span> x, y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L213'>draw-stream-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, xmin, ymin, xmax, ymax, x, y, color, background-color
<span id="L206" class="LineNr">206 </span> <span class="PreProc">return</span> x, y
<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="muComment"># draw a stream in the rectangle from (xmin, ymin) to (xmax, ymax), starting from (x, y), wrapping as necessary</span>
<span id="L210" class="LineNr">210 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span>
<span id="L211" class="LineNr">211 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span>
<span id="L212" class="LineNr">212 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L213" class="LineNr">213 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L213'>draw-stream-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L214" class="LineNr">214 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L215" class="LineNr">215 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L216" class="LineNr">216 </span> <span class="PreProc">var</span> c/<span class="muRegEbx">ebx</span>: code-point <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> next-c/<span class="muRegEsi">esi</span>: code-point <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L218" class="LineNr">218 </span> $draw-stream-wrapping-right-then-down:<span class="PreProc">loop</span>: <span class="Delimiter">{</span>
<span id="L219" class="LineNr">219 </span> <span class="muComment"># read c from either next-c or stream</span>
<span id="L220" class="LineNr">220 </span> $draw-stream-wrapping-right-then-down:read-base: <span class="Delimiter">{</span>
<span id="L221" class="LineNr">221 </span> compare next-c, <span class="Constant">0</span>
<span id="L222" class="LineNr">222 </span> <span class="Delimiter">{</span>
<span id="L223" class="LineNr">223 </span> <span class="PreProc">break-if-=</span>
<span id="L224" class="LineNr">224 </span> c <span class="Special">&lt;-</span> copy next-c
<span id="L225" class="LineNr">225 </span> next-c <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L226" class="LineNr">226 </span> <span class="PreProc">break</span> $draw-stream-wrapping-right-then-down:read-base
<span id="L227" class="LineNr">227 </span> <span class="Delimiter">}</span>
<span id="L228" class="LineNr">228 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L229" class="LineNr">229 </span> <span class="PreProc">var</span> _c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L230" class="LineNr">230 </span> c <span class="Special">&lt;-</span> copy _c
<span id="L231" class="LineNr">231 </span> <span class="Delimiter">}</span>
<span id="L232" class="LineNr">232 </span> compare c, <span class="Constant">0xffffffff</span>/end-of-file
<span id="L233" class="LineNr">233 </span> <span class="PreProc">break-if-=</span>
<span id="L234" class="LineNr">234 </span> compare c, <span class="Constant">0xa</span>/newline
<span id="L235" class="LineNr">235 </span> <span class="Delimiter">{</span>
<span id="L236" class="LineNr">236 </span> <span class="PreProc">break-if-!=</span>
<span id="L237" class="LineNr">237 </span> <span class="muComment"># minimum effort to clear cursor</span>
<span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x20</span>/space, xcurr, ycurr, color, background-color
<span id="L239" class="LineNr">239 </span> xcurr <span class="Special">&lt;-</span> copy xmin
<span id="L240" class="LineNr">240 </span> ycurr <span class="Special">&lt;-</span> increment
<span id="L241" class="LineNr">241 </span> <span class="PreProc">loop</span> $draw-stream-wrapping-right-then-down:<span class="PreProc">loop</span>
<span id="L242" class="LineNr">242 </span> <span class="Delimiter">}</span>
<span id="L243" class="LineNr">243 </span> <span class="PreProc">var</span> offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xcurr, ycurr, color, background-color
<span id="L244" class="LineNr">244 </span> <span class="muComment"># overlay a combining character if necessary</span>
<span id="L245" class="LineNr">245 </span> $draw-stream-wrapping-right-then-down:read-combiner: <span class="Delimiter">{</span>
<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> stream
<span id="L247" class="LineNr">247 </span> compare done?, <span class="Constant">0</span>/false
<span id="L248" class="LineNr">248 </span> <span class="PreProc">break-if-!=</span>
<span id="L249" class="LineNr">249 </span> <span class="muComment"># read a character</span>
<span id="L250" class="LineNr">250 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L251" class="LineNr">251 </span> <span class="PreProc">var</span> c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L252" class="LineNr">252 </span> <span class="muComment"># if not a combining character, save for next iteration and loop</span>
<span id="L253" class="LineNr">253 </span> <span class="Delimiter">{</span>
<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> <a href='103glyph.subx.html#L157'>combining-code-point?</a>/eax: boolean <span class="Special">&lt;-</span> <a href='103glyph.subx.html#L157'>combining-code-point?</a> c
<span id="L255" class="LineNr">255 </span> compare <a href='103glyph.subx.html#L157'>combining-code-point?</a>, <span class="Constant">0</span>/false
<span id="L256" class="LineNr">256 </span> <span class="Delimiter">}</span>
<span id="L257" class="LineNr">257 </span> <span class="Delimiter">{</span>
<span id="L258" class="LineNr">258 </span> <span class="PreProc">break-if-!=</span>
<span id="L259" class="LineNr">259 </span> next-c <span class="Special">&lt;-</span> copy c
<span id="L260" class="LineNr">260 </span> <span class="PreProc">break</span> $draw-stream-wrapping-right-then-down:read-combiner
<span id="L261" class="LineNr">261 </span> <span class="Delimiter">}</span>
<span id="L262" class="LineNr">262 </span> <span class="muComment"># otherwise overlay it without saving its width</span>
<span id="L263" class="LineNr">263 </span> <span class="muComment"># This means strange results if a base and its combiner have different</span>
<span id="L264" class="LineNr">264 </span> <span class="muComment"># widths. We'll always follow the base width.</span>
<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L112'>overlay-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xcurr, ycurr, color, background-color
<span id="L266" class="LineNr">266 </span> <span class="Delimiter">}</span>
<span id="L267" class="LineNr">267 </span> xcurr <span class="Special">&lt;-</span> add offset
<span id="L268" class="LineNr">268 </span> compare xcurr, xmax
<span id="L269" class="LineNr">269 </span> <span class="Delimiter">{</span>
<span id="L270" class="LineNr">270 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L271" class="LineNr">271 </span> xcurr <span class="Special">&lt;-</span> copy xmin
<span id="L272" class="LineNr">272 </span> ycurr <span class="Special">&lt;-</span> increment
<span id="L273" class="LineNr">273 </span> <span class="Delimiter">}</span>
<span id="L274" class="LineNr">274 </span> <span class="PreProc">loop</span>
<span id="L275" class="LineNr">275 </span> <span class="Delimiter">}</span>
<span id="L276" class="LineNr">276 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xcurr, ycurr
<span id="L277" class="LineNr">277 </span> <span class="PreProc">return</span> xcurr, ycurr
<span id="L278" class="LineNr">278 </span><span class="Delimiter">}</span>
<span id="L279" class="LineNr">279 </span>
<span id="L280" class="LineNr">280 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L280'>draw-stream-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L281" class="LineNr">281 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L283" class="LineNr">283 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L284" class="LineNr">284 </span> <span class="PreProc">var</span> end-x/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy cursor-x
<span id="L285" class="LineNr">285 </span> end-x <span class="Special">&lt;-</span> increment
<span id="L286" class="LineNr">286 </span> compare end-x, xmax
<span id="L287" class="LineNr">287 </span> <span class="Delimiter">{</span>
<span id="L288" class="LineNr">288 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L289" class="LineNr">289 </span> cursor-x <span class="Special">&lt;-</span> copy xmin
<span id="L290" class="LineNr">290 </span> cursor-y <span class="Special">&lt;-</span> increment
<span id="L291" class="LineNr">291 </span> <span class="Delimiter">}</span>
<span id="L292" class="LineNr">292 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L213'>draw-stream-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, xmin, ymin, xmax, ymax, cursor-x, cursor-y, color, background-color
<span id="L293" class="LineNr">293 </span><span class="Delimiter">}</span>
<span id="L294" class="LineNr">294 </span>
<span id="L295" class="LineNr">295 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L295'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), color: int, background-color: int <span class="Delimiter">{</span>
<span id="L296" class="LineNr">296 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L298" class="LineNr">298 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L299" class="LineNr">299 </span> <a href='501draw-text.mu.html#L280'>draw-stream-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color
<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='501draw-text.mu.html#L302'>move-cursor-rightward-and-downward</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 <span class="Delimiter">{</span>
<span id="L303" class="LineNr">303 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L305" class="LineNr">305 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L306" class="LineNr">306 </span> cursor-x <span class="Special">&lt;-</span> increment
<span id="L307" class="LineNr">307 </span> compare cursor-x, xmax
<span id="L308" class="LineNr">308 </span> <span class="Delimiter">{</span>
<span id="L309" class="LineNr">309 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L310" class="LineNr">310 </span> cursor-x <span class="Special">&lt;-</span> copy xmin
<span id="L311" class="LineNr">311 </span> cursor-y <span class="Special">&lt;-</span> increment
<span id="L312" class="LineNr">312 </span> <span class="Delimiter">}</span>
<span id="L313" class="LineNr">313 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, cursor-x, cursor-y
<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='501draw-text.mu.html#L316'>draw-int32-hex-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L316" class="LineNr">316 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L316'>draw-text-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L317" class="LineNr">317 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L318" class="LineNr">318 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L319" class="LineNr">319 </span> x2, y2 <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="muComment"># width, height</span>
<span id="L320" class="LineNr">320 </span> x2, y2 <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L291'>draw-int32-hex-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color
<span id="L320" class="LineNr">320 </span> x2, y2 <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color
<span id="L321" class="LineNr">321 </span> <span class="PreProc">return</span> x2, y2 <span class="muComment"># cursor-x, cursor-y</span>
<span id="L322" class="LineNr">322 </span><span class="Delimiter">}</span>
<span id="L323" class="LineNr">323 </span>
<span id="L324" class="LineNr">324 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L324'>draw-int32-hex-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L324" class="LineNr">324 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L325" class="LineNr">325 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L326" class="LineNr">326 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L327" class="LineNr">327 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L327" class="LineNr">327 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L328" class="LineNr">328 </span> <span class="PreProc">var</span> end-x/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy cursor-x
<span id="L329" class="LineNr">329 </span> end-x <span class="Special">&lt;-</span> increment
<span id="L330" class="LineNr">330 </span> compare end-x, xmax
@ -396,20 +396,20 @@ if ('onhashchange' in window) {
<span id="L333" class="LineNr">333 </span> cursor-x <span class="Special">&lt;-</span> copy xmin
<span id="L334" class="LineNr">334 </span> cursor-y <span class="Special">&lt;-</span> increment
<span id="L335" class="LineNr">335 </span> <span class="Delimiter">}</span>
<span id="L336" class="LineNr">336 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L291'>draw-int32-hex-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, xmin, ymin, xmax, ymax, cursor-x, cursor-y, color, background-color
<span id="L336" class="LineNr">336 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, xmin, ymin, xmax, ymax, cursor-x, cursor-y, color, background-color
<span id="L337" class="LineNr">337 </span><span class="Delimiter">}</span>
<span id="L338" class="LineNr">338 </span>
<span id="L339" class="LineNr">339 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L339" class="LineNr">339 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), color: int, background-color: int <span class="Delimiter">{</span>
<span id="L340" class="LineNr">340 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L341" class="LineNr">341 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L342" class="LineNr">342 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L343" class="LineNr">343 </span> <a href='501draw-text.mu.html#L324'>draw-int32-hex-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color
<span id="L343" class="LineNr">343 </span> <a href='501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color
<span id="L344" class="LineNr">344 </span><span class="Delimiter">}</span>
<span id="L345" class="LineNr">345 </span>
<span id="L346" class="LineNr">346 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L346'>draw-int32-decimal-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L346" class="LineNr">346 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L346'>draw-int32-hex-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L347" class="LineNr">347 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>)
<span id="L348" class="LineNr">348 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L349" class="LineNr">349 </span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> stream, n
<span id="L349" class="LineNr">349 </span> <a href='117write-int-hex.subx.html#L92'>write-int32-hex</a> stream, n
<span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L351" class="LineNr">351 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L352" class="LineNr">352 </span> <span class="Delimiter">{</span>
@ -427,22 +427,22 @@ if ('onhashchange' in window) {
<span id="L364" class="LineNr">364 </span> <span class="Delimiter">}</span>
<span id="L365" class="LineNr">365 </span> <span class="PreProc">loop</span>
<span id="L366" class="LineNr">366 </span> <span class="Delimiter">}</span>
<span id="L367" class="LineNr">367 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xcurr, ycurr
<span id="L367" class="LineNr">367 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xcurr, ycurr
<span id="L368" class="LineNr">368 </span> <span class="PreProc">return</span> xcurr, ycurr
<span id="L369" class="LineNr">369 </span><span class="Delimiter">}</span>
<span id="L370" class="LineNr">370 </span>
<span id="L371" class="LineNr">371 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L371'>draw-int32-decimal-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L371" class="LineNr">371 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L371'>draw-int32-hex-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L372" class="LineNr">372 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L373" class="LineNr">373 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L374" class="LineNr">374 </span> x2, y2 <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="muComment"># width, height</span>
<span id="L375" class="LineNr">375 </span> x2, y2 <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L346'>draw-int32-decimal-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color
<span id="L375" class="LineNr">375 </span> x2, y2 <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L346'>draw-int32-hex-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color
<span id="L376" class="LineNr">376 </span> <span class="PreProc">return</span> x2, y2 <span class="muComment"># cursor-x, cursor-y</span>
<span id="L377" class="LineNr">377 </span><span class="Delimiter">}</span>
<span id="L378" class="LineNr">378 </span>
<span id="L379" class="LineNr">379 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L379'>draw-int32-decimal-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L379" class="LineNr">379 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L379'>draw-int32-hex-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L380" class="LineNr">380 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L381" class="LineNr">381 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L382" class="LineNr">382 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L382" class="LineNr">382 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L383" class="LineNr">383 </span> <span class="PreProc">var</span> end-x/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy cursor-x
<span id="L384" class="LineNr">384 </span> end-x <span class="Special">&lt;-</span> increment
<span id="L385" class="LineNr">385 </span> compare end-x, xmax
@ -451,125 +451,180 @@ if ('onhashchange' in window) {
<span id="L388" class="LineNr">388 </span> cursor-x <span class="Special">&lt;-</span> copy xmin
<span id="L389" class="LineNr">389 </span> cursor-y <span class="Special">&lt;-</span> increment
<span id="L390" class="LineNr">390 </span> <span class="Delimiter">}</span>
<span id="L391" class="LineNr">391 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L346'>draw-int32-decimal-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, xmin, ymin, xmax, ymax, cursor-x, cursor-y, color, background-color
<span id="L391" class="LineNr">391 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L346'>draw-int32-hex-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, xmin, ymin, xmax, ymax, cursor-x, cursor-y, color, background-color
<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="muFunction"><a href='501draw-text.mu.html#L394'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L394" class="LineNr">394 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L395" class="LineNr">395 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L396" class="LineNr">396 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L397" class="LineNr">397 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L398" class="LineNr">398 </span> <a href='501draw-text.mu.html#L379'>draw-int32-decimal-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color
<span id="L398" class="LineNr">398 </span> <a href='501draw-text.mu.html#L379'>draw-int32-hex-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color
<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="muComment">## Text direction: down then right</span>
<span id="L402" class="LineNr">402 </span>
<span id="L403" class="LineNr">403 </span><span class="muComment"># draw a single line of text vertically from x, y to ymax</span>
<span id="L404" class="LineNr">404 </span><span class="muComment"># return the next 'y' coordinate</span>
<span id="L405" class="LineNr">405 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L406" class="LineNr">406 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L406'>draw-text-downward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, ymax: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L407" class="LineNr">407 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>)
<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L409" class="LineNr">409 </span> <a href='108write.subx.html#L11'>write</a> stream, text
<span id="L410" class="LineNr">410 </span> <span class="PreProc">var</span> ycurr/eax: int <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L418'>draw-stream-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, x, y, ymax, color, background-color
<span id="L411" class="LineNr">411 </span> <span class="PreProc">return</span> ycurr
<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="muComment"># draw a single-line stream vertically from x, y to ymax</span>
<span id="L415" class="LineNr">415 </span><span class="muComment"># return the next 'y' coordinate</span>
<span id="L416" class="LineNr">416 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L417" class="LineNr">417 </span><span class="muComment"># TODO: should we track horizontal width?</span>
<span id="L418" class="LineNr">418 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L418'>draw-stream-downward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), x: int, y: int, ymax: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L419" class="LineNr">419 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L420" class="LineNr">420 </span> <span class="Delimiter">{</span>
<span id="L421" class="LineNr">421 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L422" class="LineNr">422 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file
<span id="L423" class="LineNr">423 </span> <span class="PreProc">break-if-=</span>
<span id="L424" class="LineNr">424 </span> <span class="PreProc">var</span> c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L425" class="LineNr">425 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, x, ycurr, color, background-color
<span id="L426" class="LineNr">426 </span> ycurr <span class="Special">&lt;-</span> increment
<span id="L427" class="LineNr">427 </span> <span class="PreProc">loop</span>
<span id="L428" class="LineNr">428 </span> <span class="Delimiter">}</span>
<span id="L429" class="LineNr">429 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, ycurr
<span id="L430" class="LineNr">430 </span> <span class="PreProc">return</span> ycurr
<span id="L431" class="LineNr">431 </span><span class="Delimiter">}</span>
<span id="L432" class="LineNr">432 </span>
<span id="L433" class="LineNr">433 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L433'>draw-text-downward-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L434" class="LineNr">434 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L435" class="LineNr">435 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L436" class="LineNr">436 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L437" class="LineNr">437 </span> <span class="PreProc">var</span> result/eax: int <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L406'>draw-text-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, cursor-x, cursor-y, ymax, color, background-color
<span id="L438" class="LineNr">438 </span><span class="Delimiter">}</span>
<span id="L439" class="LineNr">439 </span>
<span id="L440" class="LineNr">440 </span><span class="muComment"># draw text down and right in the rectangle from (xmin, ymin) to (xmax, ymax), starting from (x, y), wrapping as necessary</span>
<span id="L441" class="LineNr">441 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span>
<span id="L442" class="LineNr">442 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span>
<span id="L443" class="LineNr">443 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L444" class="LineNr">444 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L444'>draw-text-wrapping-down-then-right</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L445" class="LineNr">445 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>)
<span id="L446" class="LineNr">446 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L447" class="LineNr">447 </span> <a href='108write.subx.html#L11'>write</a> stream, text
<span id="L448" class="LineNr">448 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> copy _x
<span id="L449" class="LineNr">449 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy _y
<span id="L450" class="LineNr">450 </span> x, y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L459'>draw-stream-wrapping-down-then-right</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, xmin, ymin, xmax, ymax, x, y, color, background-color
<span id="L451" class="LineNr">451 </span> <span class="PreProc">return</span> x, y
<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="muComment"># draw a stream down and right in the rectangle from (xmin, ymin) to (xmax, ymax), starting from (x, y), wrapping as necessary</span>
<span id="L455" class="LineNr">455 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span>
<span id="L456" class="LineNr">456 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span>
<span id="L457" class="LineNr">457 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L458" class="LineNr">458 </span><span class="muComment"># TODO: should we track horizontal width? just always offset by 2 for now</span>
<span id="L459" class="LineNr">459 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L459'>draw-stream-wrapping-down-then-right</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L460" class="LineNr">460 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L461" class="LineNr">461 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L462" class="LineNr">462 </span> <span class="Delimiter">{</span>
<span id="L463" class="LineNr">463 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L464" class="LineNr">464 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file
<span id="L465" class="LineNr">465 </span> <span class="PreProc">break-if-=</span>
<span id="L466" class="LineNr">466 </span> <span class="PreProc">var</span> c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L467" class="LineNr">467 </span> <span class="PreProc">var</span> offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xcurr, ycurr, color, background-color
<span id="L468" class="LineNr">468 </span> ycurr <span class="Special">&lt;-</span> increment
<span id="L469" class="LineNr">469 </span> compare ycurr, ymax
<span id="L470" class="LineNr">470 </span> <span class="Delimiter">{</span>
<span id="L471" class="LineNr">471 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L472" class="LineNr">472 </span> xcurr <span class="Special">&lt;-</span> add <span class="Constant">2</span>
<span id="L473" class="LineNr">473 </span> ycurr <span class="Special">&lt;-</span> copy ymin
<span id="L474" class="LineNr">474 </span> <span class="Delimiter">}</span>
<span id="L475" class="LineNr">475 </span> <span class="PreProc">loop</span>
<span id="L476" class="LineNr">476 </span> <span class="Delimiter">}</span>
<span id="L477" class="LineNr">477 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xcurr, ycurr
<span id="L478" class="LineNr">478 </span> <span class="PreProc">return</span> xcurr, ycurr
<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="muFunction"><a href='501draw-text.mu.html#L481'>draw-text-wrapping-down-then-right-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L482" class="LineNr">482 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L483" class="LineNr">483 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L484" class="LineNr">484 </span> x2, y2 <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="muComment"># width, height</span>
<span id="L485" class="LineNr">485 </span> x2, y2 <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L444'>draw-text-wrapping-down-then-right</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color
<span id="L486" class="LineNr">486 </span> <span class="PreProc">return</span> x2, y2 <span class="muComment"># cursor-x, cursor-y</span>
<span id="L487" class="LineNr">487 </span><span class="Delimiter">}</span>
<span id="L488" class="LineNr">488 </span>
<span id="L489" class="LineNr">489 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L489'>draw-text-wrapping-down-then-right-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L491" class="LineNr">491 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L492" class="LineNr">492 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L230'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L493" class="LineNr">493 </span> <span class="PreProc">var</span> end-y/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy cursor-y
<span id="L494" class="LineNr">494 </span> end-y <span class="Special">&lt;-</span> increment
<span id="L495" class="LineNr">495 </span> compare end-y, ymax
<span id="L496" class="LineNr">496 </span> <span class="Delimiter">{</span>
<span id="L497" class="LineNr">497 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L498" class="LineNr">498 </span> cursor-x <span class="Special">&lt;-</span> increment
<span id="L499" class="LineNr">499 </span> cursor-y <span class="Special">&lt;-</span> copy ymin
<span id="L500" class="LineNr">500 </span> <span class="Delimiter">}</span>
<span id="L501" class="LineNr">501 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L444'>draw-text-wrapping-down-then-right</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, xmin, ymin, xmax, ymax, cursor-x, cursor-y, color, background-color
<span id="L502" class="LineNr">502 </span><span class="Delimiter">}</span>
<span id="L503" class="LineNr">503 </span>
<span id="L504" class="LineNr">504 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L504'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), color: int, background-color: int <span class="Delimiter">{</span>
<span id="L505" class="LineNr">505 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L506" class="LineNr">506 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L507" class="LineNr">507 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L508" class="LineNr">508 </span> <a href='501draw-text.mu.html#L489'>draw-text-wrapping-down-then-right-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color
<span id="L509" class="LineNr">509 </span><span class="Delimiter">}</span>
<span id="L401" class="LineNr">401 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L401'>draw-int32-decimal-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L402" class="LineNr">402 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>)
<span id="L403" class="LineNr">403 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L404" class="LineNr">404 </span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> stream, n
<span id="L405" class="LineNr">405 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L406" class="LineNr">406 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L407" class="LineNr">407 </span> <span class="Delimiter">{</span>
<span id="L408" class="LineNr">408 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L409" class="LineNr">409 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file
<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> c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L412" class="LineNr">412 </span> <span class="PreProc">var</span> offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xcurr, ycurr, color, background-color
<span id="L413" class="LineNr">413 </span> xcurr <span class="Special">&lt;-</span> add offset
<span id="L414" class="LineNr">414 </span> compare xcurr, xmax
<span id="L415" class="LineNr">415 </span> <span class="Delimiter">{</span>
<span id="L416" class="LineNr">416 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L417" class="LineNr">417 </span> xcurr <span class="Special">&lt;-</span> copy xmin
<span id="L418" class="LineNr">418 </span> ycurr <span class="Special">&lt;-</span> increment
<span id="L419" class="LineNr">419 </span> <span class="Delimiter">}</span>
<span id="L420" class="LineNr">420 </span> <span class="PreProc">loop</span>
<span id="L421" class="LineNr">421 </span> <span class="Delimiter">}</span>
<span id="L422" class="LineNr">422 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xcurr, ycurr
<span id="L423" class="LineNr">423 </span> <span class="PreProc">return</span> xcurr, ycurr
<span id="L424" class="LineNr">424 </span><span class="Delimiter">}</span>
<span id="L425" class="LineNr">425 </span>
<span id="L426" class="LineNr">426 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L426'>draw-int32-decimal-wrapping-right-then-down-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L427" class="LineNr">427 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L428" class="LineNr">428 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L429" class="LineNr">429 </span> x2, y2 <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="muComment"># width, height</span>
<span id="L430" class="LineNr">430 </span> x2, y2 <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L401'>draw-int32-decimal-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color
<span id="L431" class="LineNr">431 </span> <span class="PreProc">return</span> x2, y2 <span class="muComment"># cursor-x, cursor-y</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="muFunction"><a href='501draw-text.mu.html#L434'>draw-int32-decimal-wrapping-right-then-down-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L435" class="LineNr">435 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L436" class="LineNr">436 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L437" class="LineNr">437 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L438" class="LineNr">438 </span> <span class="PreProc">var</span> end-x/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy cursor-x
<span id="L439" class="LineNr">439 </span> end-x <span class="Special">&lt;-</span> increment
<span id="L440" class="LineNr">440 </span> compare end-x, xmax
<span id="L441" class="LineNr">441 </span> <span class="Delimiter">{</span>
<span id="L442" class="LineNr">442 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L443" class="LineNr">443 </span> cursor-x <span class="Special">&lt;-</span> copy xmin
<span id="L444" class="LineNr">444 </span> cursor-y <span class="Special">&lt;-</span> increment
<span id="L445" class="LineNr">445 </span> <span class="Delimiter">}</span>
<span id="L446" class="LineNr">446 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L401'>draw-int32-decimal-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, xmin, ymin, xmax, ymax, cursor-x, cursor-y, color, background-color
<span id="L447" class="LineNr">447 </span><span class="Delimiter">}</span>
<span id="L448" class="LineNr">448 </span>
<span id="L449" class="LineNr">449 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L449'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), n: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L450" class="LineNr">450 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L451" class="LineNr">451 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L452" class="LineNr">452 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L453" class="LineNr">453 </span> <a href='501draw-text.mu.html#L434'>draw-int32-decimal-wrapping-right-then-down-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color
<span id="L454" class="LineNr">454 </span><span class="Delimiter">}</span>
<span id="L455" class="LineNr">455 </span>
<span id="L456" class="LineNr">456 </span><span class="muComment">## Text direction: down then right</span>
<span id="L457" class="LineNr">457 </span>
<span id="L458" class="LineNr">458 </span><span class="muComment"># draw a single line of text vertically from x, y to ymax</span>
<span id="L459" class="LineNr">459 </span><span class="muComment"># return the next 'y' coordinate</span>
<span id="L460" class="LineNr">460 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L461" class="LineNr">461 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L461'>draw-text-downward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, ymax: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L462" class="LineNr">462 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>)
<span id="L463" class="LineNr">463 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L464" class="LineNr">464 </span> <a href='108write.subx.html#L11'>write</a> stream, text
<span id="L465" class="LineNr">465 </span> <span class="PreProc">var</span> ycurr/eax: int <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L473'>draw-stream-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, x, y, ymax, color, background-color
<span id="L466" class="LineNr">466 </span> <span class="PreProc">return</span> ycurr
<span id="L467" class="LineNr">467 </span><span class="Delimiter">}</span>
<span id="L468" class="LineNr">468 </span>
<span id="L469" class="LineNr">469 </span><span class="muComment"># draw a single-line stream vertically from x, y to ymax</span>
<span id="L470" class="LineNr">470 </span><span class="muComment"># return the next 'y' coordinate</span>
<span id="L471" class="LineNr">471 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L472" class="LineNr">472 </span><span class="muComment"># TODO: should we track horizontal width?</span>
<span id="L473" class="LineNr">473 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L473'>draw-stream-downward</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), x: int, y: int, ymax: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L474" class="LineNr">474 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L475" class="LineNr">475 </span> <span class="Delimiter">{</span>
<span id="L476" class="LineNr">476 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L477" class="LineNr">477 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file
<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> c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L480" class="LineNr">480 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, x, ycurr, color, background-color
<span id="L481" class="LineNr">481 </span> ycurr <span class="Special">&lt;-</span> increment
<span id="L482" class="LineNr">482 </span> <span class="PreProc">loop</span>
<span id="L483" class="LineNr">483 </span> <span class="Delimiter">}</span>
<span id="L484" class="LineNr">484 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, ycurr
<span id="L485" class="LineNr">485 </span> <span class="PreProc">return</span> ycurr
<span id="L486" class="LineNr">486 </span><span class="Delimiter">}</span>
<span id="L487" class="LineNr">487 </span>
<span id="L488" class="LineNr">488 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L488'>draw-text-downward-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L489" class="LineNr">489 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L490" class="LineNr">490 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L491" class="LineNr">491 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L492" class="LineNr">492 </span> <span class="PreProc">var</span> result/eax: int <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L461'>draw-text-downward</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, cursor-x, cursor-y, ymax, color, background-color
<span id="L493" class="LineNr">493 </span><span class="Delimiter">}</span>
<span id="L494" class="LineNr">494 </span>
<span id="L495" class="LineNr">495 </span><span class="muComment"># draw text down and right in the rectangle from (xmin, ymin) to (xmax, ymax), starting from (x, y), wrapping as necessary</span>
<span id="L496" class="LineNr">496 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span>
<span id="L497" class="LineNr">497 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span>
<span id="L498" class="LineNr">498 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L499" class="LineNr">499 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L499'>draw-text-wrapping-down-then-right</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L500" class="LineNr">500 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>)
<span id="L501" class="LineNr">501 </span> <span class="PreProc">var</span> stream/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L502" class="LineNr">502 </span> <a href='108write.subx.html#L11'>write</a> stream, text
<span id="L503" class="LineNr">503 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> copy _x
<span id="L504" class="LineNr">504 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy _y
<span id="L505" class="LineNr">505 </span> x, y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L514'>draw-stream-wrapping-down-then-right</a> <a href='500fake-screen.mu.html#L14'>screen</a>, stream, xmin, ymin, xmax, ymax, x, y, color, background-color
<span id="L506" class="LineNr">506 </span> <span class="PreProc">return</span> x, y
<span id="L507" class="LineNr">507 </span><span class="Delimiter">}</span>
<span id="L508" class="LineNr">508 </span>
<span id="L509" class="LineNr">509 </span><span class="muComment"># draw a stream down and right in the rectangle from (xmin, ymin) to (xmax, ymax), starting from (x, y), wrapping as necessary</span>
<span id="L510" class="LineNr">510 </span><span class="muComment"># return the next (x, y) coordinate in raster order where drawing stopped</span>
<span id="L511" class="LineNr">511 </span><span class="muComment"># that way the caller can draw more if given the same min and max bounding-box.</span>
<span id="L512" class="LineNr">512 </span><span class="muComment"># if there isn't enough space, truncate</span>
<span id="L513" class="LineNr">513 </span><span class="muComment"># TODO: should we track horizontal width? just always offset by 2 for now</span>
<span id="L514" class="LineNr">514 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L514'>draw-stream-wrapping-down-then-right</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), stream: (addr stream byte), xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L515" class="LineNr">515 </span> <span class="PreProc">var</span> xcurr/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L516" class="LineNr">516 </span> <span class="PreProc">var</span> ycurr/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L517" class="LineNr">517 </span> <span class="Delimiter">{</span>
<span id="L518" class="LineNr">518 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> stream
<span id="L519" class="LineNr">519 </span> compare g, <span class="Constant">0xffffffff</span>/end-of-file
<span id="L520" class="LineNr">520 </span> <span class="PreProc">break-if-=</span>
<span id="L521" class="LineNr">521 </span> <span class="PreProc">var</span> c/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> g
<span id="L522" class="LineNr">522 </span> <span class="PreProc">var</span> offset/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L92'>draw-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xcurr, ycurr, color, background-color
<span id="L523" class="LineNr">523 </span> ycurr <span class="Special">&lt;-</span> increment
<span id="L524" class="LineNr">524 </span> compare ycurr, ymax
<span id="L525" class="LineNr">525 </span> <span class="Delimiter">{</span>
<span id="L526" class="LineNr">526 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L527" class="LineNr">527 </span> xcurr <span class="Special">&lt;-</span> add <span class="Constant">2</span>
<span id="L528" class="LineNr">528 </span> ycurr <span class="Special">&lt;-</span> copy ymin
<span id="L529" class="LineNr">529 </span> <span class="Delimiter">}</span>
<span id="L530" class="LineNr">530 </span> <span class="PreProc">loop</span>
<span id="L531" class="LineNr">531 </span> <span class="Delimiter">}</span>
<span id="L532" class="LineNr">532 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, xcurr, ycurr
<span id="L533" class="LineNr">533 </span> <span class="PreProc">return</span> xcurr, ycurr
<span id="L534" class="LineNr">534 </span><span class="Delimiter">}</span>
<span id="L535" class="LineNr">535 </span>
<span id="L536" class="LineNr">536 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L536'>draw-text-wrapping-down-then-right-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), x: int, y: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L537" class="LineNr">537 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L538" class="LineNr">538 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L539" class="LineNr">539 </span> x2, y2 <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="muComment"># width, height</span>
<span id="L540" class="LineNr">540 </span> x2, y2 <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L499'>draw-text-wrapping-down-then-right</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, x2, y2, x, y, color, background-color
<span id="L541" class="LineNr">541 </span> <span class="PreProc">return</span> x2, y2 <span class="muComment"># cursor-x, cursor-y</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="muFunction"><a href='501draw-text.mu.html#L544'>draw-text-wrapping-down-then-right-from-cursor</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, color: int, background-color: int <span class="Delimiter">{</span>
<span id="L545" class="LineNr">545 </span> <span class="PreProc">var</span> cursor-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L546" class="LineNr">546 </span> <span class="PreProc">var</span> cursor-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L547" class="LineNr">547 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L251'>cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L548" class="LineNr">548 </span> <span class="PreProc">var</span> end-y/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy cursor-y
<span id="L549" class="LineNr">549 </span> end-y <span class="Special">&lt;-</span> increment
<span id="L550" class="LineNr">550 </span> compare end-y, ymax
<span id="L551" class="LineNr">551 </span> <span class="Delimiter">{</span>
<span id="L552" class="LineNr">552 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L553" class="LineNr">553 </span> cursor-x <span class="Special">&lt;-</span> increment
<span id="L554" class="LineNr">554 </span> cursor-y <span class="Special">&lt;-</span> copy ymin
<span id="L555" class="LineNr">555 </span> <span class="Delimiter">}</span>
<span id="L556" class="LineNr">556 </span> cursor-x, cursor-y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L499'>draw-text-wrapping-down-then-right</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, xmin, ymin, xmax, ymax, cursor-x, cursor-y, color, background-color
<span id="L557" class="LineNr">557 </span><span class="Delimiter">}</span>
<span id="L558" class="LineNr">558 </span>
<span id="L559" class="LineNr">559 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='501draw-text.mu.html#L559'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a></span> <a href='500fake-screen.mu.html#L14'>screen</a>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), text: (addr array byte), color: int, background-color: int <span class="Delimiter">{</span>
<span id="L560" class="LineNr">560 </span> <span class="PreProc">var</span> width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L561" class="LineNr">561 </span> <span class="PreProc">var</span> height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L562" class="LineNr">562 </span> width, height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L563" class="LineNr">563 </span> <a href='501draw-text.mu.html#L544'>draw-text-wrapping-down-then-right-from-cursor</a> <a href='500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, width, height, color, background-color
<span id="L564" class="LineNr">564 </span><span class="Delimiter">}</span>
</pre>
</body>
</html>

26
html/502test.mu.html generated
View File

@ -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 - 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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -63,10 +63,10 @@ if ('onhashchange' in window) {
<span id="L4" class="LineNr"> 4 </span> compare a, b
<span id="L5" class="LineNr"> 5 </span> <span class="Delimiter">{</span>
<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">break-if-!=</span>
<span id="L7" class="LineNr"> 7 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L7" class="LineNr"> 7 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">return</span>
<span id="L9" class="LineNr"> 9 </span> <span class="Delimiter">}</span>
<span id="L10" class="LineNr">10 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L10" class="LineNr">10 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L11" class="LineNr">11 </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="L12" class="LineNr">12 </span> <a href='104test.subx.html#L5'>count-test-failure</a>
<span id="L13" class="LineNr">13 </span><span class="Delimiter">}</span>
@ -80,10 +80,10 @@ if ('onhashchange' in window) {
<span id="L21" class="LineNr">21 </span> compare a, <span class="Constant">0</span>/false
<span id="L22" class="LineNr">22 </span> <span class="Delimiter">{</span>
<span id="L23" class="LineNr">23 </span> <span class="PreProc">break-if-=</span>
<span id="L24" class="LineNr">24 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L24" class="LineNr">24 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L25" class="LineNr">25 </span> <span class="PreProc">return</span>
<span id="L26" class="LineNr">26 </span> <span class="Delimiter">}</span>
<span id="L27" class="LineNr">27 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L27" class="LineNr">27 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L28" class="LineNr">28 </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="L29" class="LineNr">29 </span> <a href='104test.subx.html#L5'>count-test-failure</a>
<span id="L30" class="LineNr">30 </span><span class="Delimiter">}</span>
@ -93,10 +93,10 @@ if ('onhashchange' in window) {
<span id="L34" class="LineNr">34 </span> compare a, <span class="Constant">0</span>/false
<span id="L35" class="LineNr">35 </span> <span class="Delimiter">{</span>
<span id="L36" class="LineNr">36 </span> <span class="PreProc">break-if-!=</span>
<span id="L37" class="LineNr">37 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L37" class="LineNr">37 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L38" class="LineNr">38 </span> <span class="PreProc">return</span>
<span id="L39" class="LineNr">39 </span> <span class="Delimiter">}</span>
<span id="L40" class="LineNr">40 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L40" class="LineNr">40 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L41" class="LineNr">41 </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="L42" class="LineNr">42 </span> <a href='104test.subx.html#L5'>count-test-failure</a>
<span id="L43" class="LineNr">43 </span><span class="Delimiter">}</span>

View File

@ -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; }
@ -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 */

View File

@ -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 - 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; }
@ -30,7 +30,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -75,7 +75,7 @@ if ('onhashchange' in window) {
<span id="L11" class="LineNr"> 11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='504test-screen.mu.html#L11'>check-screen-row-from</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), x: int, y: int, expected: (addr array byte), msg: (addr array byte) <span class="Delimiter">{</span>
<span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> copy _screen
<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> failure-count/<span class="muRegEdi">edi</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L221'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y
<span id="L14" class="LineNr"> 14 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L242'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y
<span id="L15" class="LineNr"> 15 </span> <span class="muComment"># compare 'expected' with the screen contents starting at 'index', grapheme by grapheme</span>
<span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> e: (stream byte <span class="Constant">0x100</span>)
<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special">&lt;-</span> address e
@ -85,10 +85,10 @@ if ('onhashchange' in window) {
<span id="L21" class="LineNr"> 21 </span> compare done?, <span class="Constant">0</span>
<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">break-if-!=</span>
<span id="L23" class="LineNr"> 23 </span> <span class="Delimiter">{</span>
<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> unused?/eax: boolean <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L490'>screen-cell-unused-at-index?</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> unused?/eax: boolean <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L511'>screen-cell-unused-at-index?</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L25" class="LineNr"> 25 </span> compare unused?, <span class="Constant">0</span>/false
<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">break-if-!=</span>
<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> _c/eax: code-point <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L508'>screen-code-point-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> _c/eax: code-point <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L529'>screen-code-point-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> c/<span class="muRegEbx">ebx</span>: code-point <span class="Special">&lt;-</span> copy _c
<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> expected-grapheme/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> e-addr
<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> expected-code-point/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> expected-grapheme
@ -106,16 +106,16 @@ if ('onhashchange' in window) {
<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">break-if-=</span>
<span id="L43" class="LineNr"> 43 </span> <span class="muComment"># otherwise print an error</span>
<span id="L44" class="LineNr"> 44 </span> failure-count <span class="Special">&lt;-</span> increment
<span id="L45" class="LineNr"> 45 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L46" class="LineNr"> 46 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L47" class="LineNr"> 47 </span> <a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, expected-code-point, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L48" class="LineNr"> 48 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;' at (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L49" class="LineNr"> 49 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L50" class="LineNr"> 50 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L51" class="LineNr"> 51 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L52" class="LineNr"> 52 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) but observed '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L53" class="LineNr"> 53 </span> <a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, c, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L54" class="LineNr"> 54 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;'&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L45" class="LineNr"> 45 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L46" class="LineNr"> 46 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L47" class="LineNr"> 47 </span> <a href='501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, expected-code-point, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L48" class="LineNr"> 48 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;' at (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L49" class="LineNr"> 49 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L50" class="LineNr"> 50 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L51" class="LineNr"> 51 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L52" class="LineNr"> 52 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) but observed '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L53" class="LineNr"> 53 </span> <a href='501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, c, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L54" class="LineNr"> 54 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;'&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L55" class="LineNr"> 55 </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="L56" class="LineNr"> 56 </span> <span class="Delimiter">}</span>
<span id="L57" class="LineNr"> 57 </span> <span class="Delimiter">}</span>
@ -131,7 +131,7 @@ if ('onhashchange' in window) {
<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">return</span>
<span id="L68" class="LineNr"> 68 </span> <span class="Delimiter">}</span>
<span id="L69" class="LineNr"> 69 </span> <span class="muComment"># otherwise print a &quot;.&quot;</span>
<span id="L70" class="LineNr"> 70 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L70" class="LineNr"> 70 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L71" class="LineNr"> 71 </span><span class="Delimiter">}</span>
<span id="L72" class="LineNr"> 72 </span>
<span id="L73" class="LineNr"> 73 </span><span class="muComment"># various variants by screen-cell attribute; spaces in the 'expected' data should not match the attribute</span>
@ -142,7 +142,7 @@ if ('onhashchange' in window) {
<span id="L78" class="LineNr"> 78 </span>
<span id="L79" class="LineNr"> 79 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='504test-screen.mu.html#L79'>check-screen-row-in-color-from</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), fg: int, y: int, x: int, expected: (addr array byte), msg: (addr array byte) <span class="Delimiter">{</span>
<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> copy _screen
<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L221'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y
<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L242'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y
<span id="L82" class="LineNr"> 82 </span> <span class="muComment"># compare 'expected' with the screen contents starting at 'index', grapheme by grapheme</span>
<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> e: (stream byte <span class="Constant">0x100</span>)
<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special">&lt;-</span> address e
@ -152,10 +152,10 @@ if ('onhashchange' in window) {
<span id="L88" class="LineNr"> 88 </span> compare done?, <span class="Constant">0</span>
<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">break-if-!=</span>
<span id="L90" class="LineNr"> 90 </span> <span class="Delimiter">{</span>
<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> unused?/eax: boolean <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L490'>screen-cell-unused-at-index?</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> unused?/eax: boolean <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L511'>screen-cell-unused-at-index?</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L92" class="LineNr"> 92 </span> compare unused?, <span class="Constant">0</span>/false
<span id="L93" class="LineNr"> 93 </span> <span class="PreProc">break-if-!=</span>
<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> _c/eax: code-point <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L508'>screen-code-point-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> _c/eax: code-point <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L529'>screen-code-point-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L95" class="LineNr"> 95 </span> <span class="PreProc">var</span> c/<span class="muRegEbx">ebx</span>: code-point <span class="Special">&lt;-</span> copy _c
<span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> expected-grapheme/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> e-addr
<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> _expected-code-point/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> expected-grapheme
@ -172,7 +172,7 @@ if ('onhashchange' in window) {
<span id="L108" class="LineNr">108 </span> <span class="Delimiter">{</span>
<span id="L109" class="LineNr">109 </span> compare expected-code-point, <span class="Constant">0x20</span>
<span id="L110" class="LineNr">110 </span> <span class="PreProc">break-if-!=</span>
<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> color/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L526'>screen-color-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> color/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L547'>screen-color-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L112" class="LineNr">112 </span> compare color, fg
<span id="L113" class="LineNr">113 </span> <span class="PreProc">break-if-!=</span> $check-screen-row-in-color-from:compare-cells
<span id="L114" class="LineNr">114 </span> <span class="Delimiter">}</span>
@ -182,44 +182,44 @@ if ('onhashchange' in window) {
<span id="L118" class="LineNr">118 </span> compare c, expected-code-point
<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='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L121" class="LineNr">121 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L122" class="LineNr">122 </span> <span class="PreProc">break</span> $check-screen-row-in-color-from:compare-graphemes
<span id="L123" class="LineNr">123 </span> <span class="Delimiter">}</span>
<span id="L124" class="LineNr">124 </span> <span class="muComment"># otherwise print an error</span>
<span id="L125" class="LineNr">125 </span> <a href='104test.subx.html#L5'>count-test-failure</a>
<span id="L126" class="LineNr">126 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L127" class="LineNr">127 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L128" class="LineNr">128 </span> <a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, expected-code-point, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L129" class="LineNr">129 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;' at (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L130" class="LineNr">130 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L131" class="LineNr">131 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L132" class="LineNr">132 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L133" class="LineNr">133 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) but observed '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L134" class="LineNr">134 </span> <a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, c, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L135" class="LineNr">135 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;'&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L126" class="LineNr">126 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L127" class="LineNr">127 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L128" class="LineNr">128 </span> <a href='501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, expected-code-point, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L129" class="LineNr">129 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;' at (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L130" class="LineNr">130 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L131" class="LineNr">131 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L132" class="LineNr">132 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L133" class="LineNr">133 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) but observed '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L134" class="LineNr">134 </span> <a href='501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, c, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L135" class="LineNr">135 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;'&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L136" class="LineNr">136 </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="L137" class="LineNr">137 </span> <span class="Delimiter">}</span>
<span id="L138" class="LineNr">138 </span> $check-screen-row-in-color-from:compare-colors: <span class="Delimiter">{</span>
<span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> color/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L526'>screen-color-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> color/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L547'>screen-color-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L140" class="LineNr">140 </span> compare fg, color
<span id="L141" class="LineNr">141 </span> <span class="Delimiter">{</span>
<span id="L142" class="LineNr">142 </span> <span class="PreProc">break-if-!=</span>
<span id="L143" class="LineNr">143 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L143" class="LineNr">143 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L144" class="LineNr">144 </span> <span class="PreProc">break</span> $check-screen-row-in-color-from:compare-colors
<span id="L145" class="LineNr">145 </span> <span class="Delimiter">}</span>
<span id="L146" class="LineNr">146 </span> <span class="muComment"># otherwise print an error</span>
<span id="L147" class="LineNr">147 </span> <a href='104test.subx.html#L5'>count-test-failure</a>
<span id="L148" class="LineNr">148 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L149" class="LineNr">149 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L150" class="LineNr">150 </span> <a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, expected-code-point, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L151" class="LineNr">151 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;' at (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L152" class="LineNr">152 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L153" class="LineNr">153 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L154" class="LineNr">154 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L155" class="LineNr">155 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) in color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L156" class="LineNr">156 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, fg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L157" class="LineNr">157 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; but observed color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L158" class="LineNr">158 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, color, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L148" class="LineNr">148 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L149" class="LineNr">149 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L150" class="LineNr">150 </span> <a href='501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, expected-code-point, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L151" class="LineNr">151 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;' at (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L152" class="LineNr">152 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L153" class="LineNr">153 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L154" class="LineNr">154 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L155" class="LineNr">155 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) in color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L156" class="LineNr">156 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, fg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L157" class="LineNr">157 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; but observed color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L158" class="LineNr">158 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, color, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L159" class="LineNr">159 </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="L160" class="LineNr">160 </span> <span class="Delimiter">}</span>
<span id="L161" class="LineNr">161 </span> <span class="Delimiter">}</span>
@ -236,7 +236,7 @@ if ('onhashchange' in window) {
<span id="L172" class="LineNr">172 </span>
<span id="L173" class="LineNr">173 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='504test-screen.mu.html#L173'>check-screen-row-in-background-color-from</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), bg: int, y: int, x: int, expected: (addr array byte), msg: (addr array byte) <span class="Delimiter">{</span>
<span id="L174" class="LineNr">174 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> copy _screen
<span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L221'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y
<span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L242'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y
<span id="L176" class="LineNr">176 </span> <span class="muComment"># compare 'expected' with the screen contents starting at 'index', grapheme by grapheme</span>
<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> e: (stream byte <span class="Constant">0x100</span>)
<span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special">&lt;-</span> address e
@ -246,10 +246,10 @@ if ('onhashchange' in window) {
<span id="L182" class="LineNr">182 </span> compare done?, <span class="Constant">0</span>
<span id="L183" class="LineNr">183 </span> <span class="PreProc">break-if-!=</span>
<span id="L184" class="LineNr">184 </span> <span class="Delimiter">{</span>
<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> unused?/eax: boolean <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L490'>screen-cell-unused-at-index?</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L185" class="LineNr">185 </span> <span class="PreProc">var</span> unused?/eax: boolean <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L511'>screen-cell-unused-at-index?</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L186" class="LineNr">186 </span> compare unused?, <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> <span class="PreProc">var</span> _g/eax: code-point <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L508'>screen-code-point-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> _g/eax: code-point <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L529'>screen-code-point-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L189" class="LineNr">189 </span> <span class="PreProc">var</span> g/<span class="muRegEbx">ebx</span>: code-point <span class="Special">&lt;-</span> copy _g
<span id="L190" class="LineNr">190 </span> <span class="PreProc">var</span> expected-grapheme/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> e-addr
<span id="L191" class="LineNr">191 </span> <span class="PreProc">var</span> _expected-code-point/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> expected-grapheme
@ -266,7 +266,7 @@ if ('onhashchange' in window) {
<span id="L202" class="LineNr">202 </span> <span class="Delimiter">{</span>
<span id="L203" class="LineNr">203 </span> compare expected-code-point, <span class="Constant">0x20</span>
<span id="L204" class="LineNr">204 </span> <span class="PreProc">break-if-!=</span>
<span id="L205" class="LineNr">205 </span> <span class="PreProc">var</span> background-color/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L545'>screen-background-color-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L205" class="LineNr">205 </span> <span class="PreProc">var</span> background-color/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L566'>screen-background-color-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L206" class="LineNr">206 </span> compare background-color, bg
<span id="L207" class="LineNr">207 </span> <span class="PreProc">break-if-!=</span> $check-screen-row-in-background-color-from:compare-cells
<span id="L208" class="LineNr">208 </span> <span class="Delimiter">}</span>
@ -276,45 +276,45 @@ if ('onhashchange' in window) {
<span id="L212" class="LineNr">212 </span> compare g, expected-code-point
<span id="L213" class="LineNr">213 </span> <span class="Delimiter">{</span>
<span id="L214" class="LineNr">214 </span> <span class="PreProc">break-if-!=</span>
<span id="L215" class="LineNr">215 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L215" class="LineNr">215 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L216" class="LineNr">216 </span> <span class="PreProc">break</span> $check-screen-row-in-background-color-from:compare-graphemes
<span id="L217" class="LineNr">217 </span> <span class="Delimiter">}</span>
<span id="L218" class="LineNr">218 </span> <span class="muComment"># otherwise print an error</span>
<span id="L219" class="LineNr">219 </span> <a href='104test.subx.html#L5'>count-test-failure</a>
<span id="L220" class="LineNr">220 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L221" class="LineNr">221 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L222" class="LineNr">222 </span> <a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, expected-code-point, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L223" class="LineNr">223 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;' at (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L224" class="LineNr">224 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L225" class="LineNr">225 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L226" class="LineNr">226 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L227" class="LineNr">227 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) but observed '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L228" class="LineNr">228 </span> <a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, g, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L229" class="LineNr">229 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;'&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L220" class="LineNr">220 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L221" class="LineNr">221 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L222" class="LineNr">222 </span> <a href='501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, expected-code-point, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L223" class="LineNr">223 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;' at (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L224" class="LineNr">224 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L225" class="LineNr">225 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L226" class="LineNr">226 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L227" class="LineNr">227 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) but observed '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L228" class="LineNr">228 </span> <a href='501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, g, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L229" class="LineNr">229 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;'&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L230" class="LineNr">230 </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="L231" class="LineNr">231 </span> <span class="PreProc">break</span> $check-screen-row-in-background-color-from:compare-graphemes
<span id="L232" class="LineNr">232 </span> <span class="Delimiter">}</span>
<span id="L233" class="LineNr">233 </span> $check-screen-row-in-background-color-from:compare-background-colors: <span class="Delimiter">{</span>
<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> background-color/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L545'>screen-background-color-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> background-color/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L566'>screen-background-color-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L235" class="LineNr">235 </span> compare bg, background-color
<span id="L236" class="LineNr">236 </span> <span class="Delimiter">{</span>
<span id="L237" class="LineNr">237 </span> <span class="PreProc">break-if-!=</span>
<span id="L238" class="LineNr">238 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L238" class="LineNr">238 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L239" class="LineNr">239 </span> <span class="PreProc">break</span> $check-screen-row-in-background-color-from:compare-background-colors
<span id="L240" class="LineNr">240 </span> <span class="Delimiter">}</span>
<span id="L241" class="LineNr">241 </span> <span class="muComment"># otherwise print an error</span>
<span id="L242" class="LineNr">242 </span> <a href='104test.subx.html#L5'>count-test-failure</a>
<span id="L243" class="LineNr">243 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L244" class="LineNr">244 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L245" class="LineNr">245 </span> <a href='501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, expected-code-point, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L246" class="LineNr">246 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;' at (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L247" class="LineNr">247 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L248" class="LineNr">248 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L249" class="LineNr">249 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L250" class="LineNr">250 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) in background-color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L251" class="LineNr">251 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, bg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L252" class="LineNr">252 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; but observed background-color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L253" class="LineNr">253 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, background-color, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L243" class="LineNr">243 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L244" class="LineNr">244 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected '&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L245" class="LineNr">245 </span> <a href='501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, expected-code-point, <span class="Constant">3</span>/cyan, <span class="Constant">0</span>/bg
<span id="L246" class="LineNr">246 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;' at (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L247" class="LineNr">247 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L248" class="LineNr">248 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L249" class="LineNr">249 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L250" class="LineNr">250 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) in background-color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L251" class="LineNr">251 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, bg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L252" class="LineNr">252 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; but observed background-color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L253" class="LineNr">253 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, background-color, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L254" class="LineNr">254 </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="L255" class="LineNr">255 </span> <span class="Delimiter">}</span>
<span id="L256" class="LineNr">256 </span> <span class="Delimiter">}</span>
@ -335,7 +335,7 @@ if ('onhashchange' in window) {
<span id="L271" class="LineNr">271 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='504test-screen.mu.html#L271'>check-background-color-in-screen-row-from</a></span> _screen: (addr <a href='500fake-screen.mu.html#L14'>screen</a>), bg: int, y: int, x: int, expected-bitmap: (addr array byte), msg: (addr array byte) <span class="Delimiter">{</span>
<span id="L272" class="LineNr">272 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> copy _screen
<span id="L273" class="LineNr">273 </span> <span class="PreProc">var</span> failure-count: int
<span id="L274" class="LineNr">274 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L221'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y
<span id="L274" class="LineNr">274 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L242'>screen-cell-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y
<span id="L275" class="LineNr">275 </span> <span class="muComment"># compare background color where 'expected-bitmap' is a non-space</span>
<span id="L276" class="LineNr">276 </span> <span class="PreProc">var</span> e: (stream byte <span class="Constant">0x100</span>)
<span id="L277" class="LineNr">277 </span> <span class="PreProc">var</span> e-addr/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special">&lt;-</span> address e
@ -345,13 +345,13 @@ if ('onhashchange' in window) {
<span id="L281" class="LineNr">281 </span> compare done?, <span class="Constant">0</span>
<span id="L282" class="LineNr">282 </span> <span class="PreProc">break-if-!=</span>
<span id="L283" class="LineNr">283 </span> <span class="Delimiter">{</span>
<span id="L284" class="LineNr">284 </span> <span class="PreProc">var</span> unused?/eax: boolean <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L490'>screen-cell-unused-at-index?</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L284" class="LineNr">284 </span> <span class="PreProc">var</span> unused?/eax: boolean <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L511'>screen-cell-unused-at-index?</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L285" class="LineNr">285 </span> compare unused?, <span class="Constant">0</span>/false
<span id="L286" class="LineNr">286 </span> <span class="PreProc">break-if-!=</span>
<span id="L287" class="LineNr">287 </span> <span class="PreProc">var</span> _expected-bit/eax: grapheme <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L236'>read-grapheme</a> e-addr
<span id="L288" class="LineNr">288 </span> <span class="PreProc">var</span> expected-bit/<span class="muRegEdi">edi</span>: grapheme <span class="Special">&lt;-</span> copy _expected-bit
<span id="L289" class="LineNr">289 </span> $check-background-color-in-screen-row-from:compare-cells: <span class="Delimiter">{</span>
<span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> background-color/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L545'>screen-background-color-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> background-color/eax: int <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L566'>screen-background-color-at-index</a> <a href='500fake-screen.mu.html#L14'>screen</a>, index
<span id="L291" class="LineNr">291 </span> <span class="muComment"># if expected-bit is space, assert that background is NOT bg</span>
<span id="L292" class="LineNr">292 </span> compare expected-bit, <span class="Constant">0x20</span>
<span id="L293" class="LineNr">293 </span> <span class="Delimiter">{</span>
@ -359,13 +359,13 @@ if ('onhashchange' in window) {
<span id="L295" class="LineNr">295 </span> compare background-color, bg
<span id="L296" class="LineNr">296 </span> <span class="PreProc">break-if-!=</span> $check-background-color-in-screen-row-from:compare-cells
<span id="L297" class="LineNr">297 </span> increment failure-count
<span id="L298" class="LineNr">298 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L299" class="LineNr">299 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L300" class="LineNr">300 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L301" class="LineNr">301 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L302" class="LineNr">302 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L303" class="LineNr">303 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) to not be in background-color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L304" class="LineNr">304 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, bg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L298" class="LineNr">298 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L299" class="LineNr">299 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L300" class="LineNr">300 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L301" class="LineNr">301 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L302" class="LineNr">302 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L303" class="LineNr">303 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) to not be in background-color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L304" class="LineNr">304 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, bg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L305" class="LineNr">305 </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="L306" class="LineNr">306 </span> <span class="PreProc">break</span> $check-background-color-in-screen-row-from:compare-cells
<span id="L307" class="LineNr">307 </span> <span class="Delimiter">}</span>
@ -373,15 +373,15 @@ if ('onhashchange' in window) {
<span id="L309" class="LineNr">309 </span> compare background-color, bg
<span id="L310" class="LineNr">310 </span> <span class="PreProc">break-if-=</span> $check-background-color-in-screen-row-from:compare-cells
<span id="L311" class="LineNr">311 </span> increment failure-count
<span id="L312" class="LineNr">312 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L313" class="LineNr">313 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L314" class="LineNr">314 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L315" class="LineNr">315 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L316" class="LineNr">316 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L317" class="LineNr">317 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) in background-color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L318" class="LineNr">318 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, bg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L319" class="LineNr">319 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; but observed background-color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L320" class="LineNr">320 </span> <a href='501draw-text.mu.html#L339'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, background-color, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L312" class="LineNr">312 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L313" class="LineNr">313 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: expected (&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L314" class="LineNr">314 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, x, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L315" class="LineNr">315 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;, &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L316" class="LineNr">316 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L317" class="LineNr">317 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;) in background-color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L318" class="LineNr">318 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, bg, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L319" class="LineNr">319 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; but observed background-color &quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L320" class="LineNr">320 </span> <a href='501draw-text.mu.html#L394'>draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, background-color, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L321" class="LineNr">321 </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="L322" class="LineNr">322 </span> <span class="Delimiter">}</span>
<span id="L323" class="LineNr">323 </span> <span class="Delimiter">}</span>
@ -397,7 +397,7 @@ if ('onhashchange' in window) {
<span id="L333" class="LineNr">333 </span> <span class="PreProc">return</span>
<span id="L334" class="LineNr">334 </span> <span class="Delimiter">}</span>
<span id="L335" class="LineNr">335 </span> <span class="muComment"># otherwise print a &quot;.&quot;</span>
<span id="L336" class="LineNr">336 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L336" class="LineNr">336 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L337" class="LineNr">337 </span><span class="Delimiter">}</span>
<span id="L338" class="LineNr">338 </span>
<span id="L339" class="LineNr">339 </span><span class="PreProc">fn</span> <span class="muTest"><a href='504test-screen.mu.html#L339'>test-draw-single-grapheme</a></span> <span class="Delimiter">{</span>
@ -415,7 +415,7 @@ if ('onhashchange' in window) {
<span id="L351" class="LineNr">351 </span> <span class="PreProc">var</span> _screen: <a href='500fake-screen.mu.html#L14'>screen</a>
<span id="L352" class="LineNr">352 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L14'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> address _screen
<span id="L353" class="LineNr">353 </span> <a href='500fake-screen.mu.html#L32'>initialize-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x10</span>/rows, <span class="Constant">4</span>/cols, <span class="Constant">0</span>/no-pixel-graphics
<span id="L354" class="LineNr">354 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;Hello, 世界&quot;</span>, <span class="Constant">1</span>/fg, <span class="Constant">2</span>/bg
<span id="L354" class="LineNr">354 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;Hello, 世界&quot;</span>, <span class="Constant">1</span>/fg, <span class="Constant">2</span>/bg
<span id="L355" class="LineNr">355 </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">&quot;Hello, 世界&quot;</span>, <span class="Constant">&quot;F - test-draw-multiple-graphemes&quot;</span>
<span id="L356" class="LineNr">356 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/fg, <span class="Constant">0</span>/y, <span class="Constant">&quot;Hello, 世界&quot;</span>, <span class="Constant">&quot;F - test-draw-multiple-graphemes-fg&quot;</span>
<span id="L357" class="LineNr">357 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/bg, <span class="Constant">0</span>/y, <span class="Constant">&quot;xxxxxxxxx &quot;</span>, <span class="Constant">&quot;F - test-draw-multiple-graphemes-bg2&quot;</span>

14
html/505colors.mu.html generated
View File

@ -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 - 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; }
@ -31,7 +31,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

14
html/506math.mu.html generated
View File

@ -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; }
@ -24,7 +24,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

20
html/507line.mu.html generated
View File

@ -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 - 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; }
@ -27,7 +27,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -90,7 +90,7 @@ if ('onhashchange' in window) {
<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> x/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy x0
<span id="L30" class="LineNr"> 30 </span> <span class="PreProc">var</span> y/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy y0
<span id="L31" class="LineNr"> 31 </span> $draw-line:<span class="PreProc">loop</span>: <span class="Delimiter">{</span>
<span id="L32" class="LineNr"> 32 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L32" class="LineNr"> 32 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L33" class="LineNr"> 33 </span> <span class="muComment"># if (x == x1 &amp;&amp; y == y1) break</span>
<span id="L34" class="LineNr"> 34 </span> <span class="Delimiter">{</span>
<span id="L35" class="LineNr"> 35 </span> compare x, x1
@ -127,7 +127,7 @@ if ('onhashchange' in window) {
<span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">{</span>
<span id="L67" class="LineNr"> 67 </span> compare x, x1
<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L69" class="LineNr"> 69 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L69" class="LineNr"> 69 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L70" class="LineNr"> 70 </span> x <span class="Special">&lt;-</span> increment
<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">loop</span>
<span id="L72" class="LineNr"> 72 </span> <span class="Delimiter">}</span>
@ -138,7 +138,7 @@ if ('onhashchange' in window) {
<span id="L77" class="LineNr"> 77 </span> <span class="Delimiter">{</span>
<span id="L78" class="LineNr"> 78 </span> compare y, y1
<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L80" class="LineNr"> 80 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L80" class="LineNr"> 80 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L81" class="LineNr"> 81 </span> y <span class="Special">&lt;-</span> increment
<span id="L82" class="LineNr"> 82 </span> <span class="PreProc">loop</span>
<span id="L83" class="LineNr"> 83 </span> <span class="Delimiter">}</span>

22
html/508circle.mu.html generated
View File

@ -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 - 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; }
@ -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 */
@ -81,25 +81,25 @@ if ('onhashchange' in window) {
<span id="L21" class="LineNr">21 </span> tmpx <span class="Special">&lt;-</span> subtract x
<span id="L22" class="LineNr">22 </span> tmpy <span class="Special">&lt;-</span> copy cy
<span id="L23" class="LineNr">23 </span> tmpy <span class="Special">&lt;-</span> add y
<span id="L24" class="LineNr">24 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, tmpx, tmpy, color
<span id="L24" class="LineNr">24 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, tmpx, tmpy, color
<span id="L25" class="LineNr">25 </span> <span class="muComment"># pixel(cx-y, cy-x)</span>
<span id="L26" class="LineNr">26 </span> tmpx <span class="Special">&lt;-</span> copy cx
<span id="L27" class="LineNr">27 </span> tmpx <span class="Special">&lt;-</span> subtract y
<span id="L28" class="LineNr">28 </span> tmpy <span class="Special">&lt;-</span> copy cy
<span id="L29" class="LineNr">29 </span> tmpy <span class="Special">&lt;-</span> subtract x
<span id="L30" class="LineNr">30 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, tmpx, tmpy, color
<span id="L30" class="LineNr">30 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, tmpx, tmpy, color
<span id="L31" class="LineNr">31 </span> <span class="muComment"># pixel(cx+x, cy-y)</span>
<span id="L32" class="LineNr">32 </span> tmpx <span class="Special">&lt;-</span> copy cx
<span id="L33" class="LineNr">33 </span> tmpx <span class="Special">&lt;-</span> add x
<span id="L34" class="LineNr">34 </span> tmpy <span class="Special">&lt;-</span> copy cy
<span id="L35" class="LineNr">35 </span> tmpy <span class="Special">&lt;-</span> subtract y
<span id="L36" class="LineNr">36 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, tmpx, tmpy, color
<span id="L36" class="LineNr">36 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, tmpx, tmpy, color
<span id="L37" class="LineNr">37 </span> <span class="muComment"># pixel(cx+y, cy+x)</span>
<span id="L38" class="LineNr">38 </span> tmpx <span class="Special">&lt;-</span> copy cx
<span id="L39" class="LineNr">39 </span> tmpx <span class="Special">&lt;-</span> add y
<span id="L40" class="LineNr">40 </span> tmpy <span class="Special">&lt;-</span> copy cy
<span id="L41" class="LineNr">41 </span> tmpy <span class="Special">&lt;-</span> add x
<span id="L42" class="LineNr">42 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, tmpx, tmpy, color
<span id="L42" class="LineNr">42 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, tmpx, tmpy, color
<span id="L43" class="LineNr">43 </span> <span class="muComment"># r = err</span>
<span id="L44" class="LineNr">44 </span> tmp <span class="Special">&lt;-</span> copy err
<span id="L45" class="LineNr">45 </span> copy-to radius, tmp

16
html/509bezier.mu.html generated
View File

@ -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 - 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; }
@ -27,7 +27,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -296,7 +296,7 @@ if ('onhashchange' in window) {
<span id="L235" class="LineNr">235 </span> err-f <span class="Special">&lt;-</span> add xy-f
<span id="L236" class="LineNr">236 </span> <span class="muComment">#</span>
<span id="L237" class="LineNr">237 </span> $draw-monotonic-bezier:<span class="PreProc">loop</span>: <span class="Delimiter">{</span>
<span id="L238" class="LineNr">238 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L238" class="LineNr">238 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L239" class="LineNr">239 </span> <span class="muComment"># if (x == x2 &amp;&amp; y == y2) return</span>
<span id="L240" class="LineNr">240 </span> <span class="Delimiter">{</span>
<span id="L241" class="LineNr">241 </span> compare x, x2

14
html/510disk.mu.html generated
View File

@ -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 - 510disk.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; }
@ -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 */

64
html/511image.mu.html generated
View File

@ -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 - 511image.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; }
@ -31,7 +31,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -235,10 +235,10 @@ if ('onhashchange' in window) {
<span id="L170" class="LineNr"> 170 </span> compare idx, len
<span id="L171" class="LineNr"> 171 </span> <span class="Delimiter">{</span>
<span id="L172" class="LineNr"> 172 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L173" class="LineNr"> 173 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y
<span id="L174" class="LineNr"> 174 </span> <a href='501draw-text.mu.html#L394'>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="L175" class="LineNr"> 175 </span> <a href='501draw-text.mu.html#L394'>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="L176" class="LineNr"> 176 </span> <a href='501draw-text.mu.html#L394'>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="L173" class="LineNr"> 173 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y
<span id="L174" class="LineNr"> 174 </span> <a href='501draw-text.mu.html#L449'>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="L175" class="LineNr"> 175 </span> <a href='501draw-text.mu.html#L449'>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="L176" class="LineNr"> 176 </span> <a href='501draw-text.mu.html#L449'>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="L177" class="LineNr"> 177 </span> <span class="Delimiter">}</span>
<span id="L178" class="LineNr"> 178 </span> <span class="PreProc">var</span> src-a/eax: (addr byte) <span class="Special">&lt;-</span> index img-data, idx
<span id="L179" class="LineNr"> 179 </span> <span class="PreProc">var</span> src/eax: byte <span class="Special">&lt;-</span> copy-byte *src-a
@ -252,7 +252,7 @@ if ('onhashchange' in window) {
<span id="L187" class="LineNr"> 187 </span> screenx <span class="Special">&lt;-</span> add xmin
<span id="L188" class="LineNr"> 188 </span> <span class="PreProc">var</span> screeny/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> convert y
<span id="L189" class="LineNr"> 189 </span> screeny <span class="Special">&lt;-</span> add ymin
<span id="L190" class="LineNr"> 190 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int
<span id="L190" class="LineNr"> 190 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int
<span id="L191" class="LineNr"> 191 </span> x <span class="Special">&lt;-</span> add one-f
<span id="L192" class="LineNr"> 192 </span> <span class="PreProc">loop</span>
<span id="L193" class="LineNr"> 193 </span> <span class="Delimiter">}</span>
@ -279,7 +279,7 @@ if ('onhashchange' in window) {
<span id="L214" class="LineNr"> 214 </span> tmp <span class="Special">&lt;-</span> <a href='311decimal-int.subx.html#L4'>parse-decimal-int-from-slice</a> curr-word
<span id="L215" class="LineNr"> 215 </span> compare tmp, <span class="Constant">0xff</span>
<span id="L216" class="LineNr"> 216 </span> <span class="PreProc">break-if-=</span>
<span id="L217" class="LineNr"> 217 </span> <a href='501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;levels of grey is not 255; continuing and hoping for the best&quot;</span>, <span class="Constant">0x2b</span>/fg <span class="Constant">0</span>/bg
<span id="L217" class="LineNr"> 217 </span> <a href='501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;levels of grey is not 255; continuing and hoping for the best&quot;</span>, <span class="Constant">0x2b</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> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special">&lt;-</span> get self, max
<span id="L220" class="LineNr"> 220 </span> copy-to *dest, tmp
@ -357,10 +357,10 @@ if ('onhashchange' in window) {
<span id="L292" class="LineNr"> 292 </span> compare idx, len
<span id="L293" class="LineNr"> 293 </span> <span class="Delimiter">{</span>
<span id="L294" class="LineNr"> 294 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L295" class="LineNr"> 295 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y
<span id="L296" class="LineNr"> 296 </span> <a href='501draw-text.mu.html#L394'>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="L297" class="LineNr"> 297 </span> <a href='501draw-text.mu.html#L394'>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="L298" class="LineNr"> 298 </span> <a href='501draw-text.mu.html#L394'>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="L295" class="LineNr"> 295 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y
<span id="L296" class="LineNr"> 296 </span> <a href='501draw-text.mu.html#L449'>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="L297" class="LineNr"> 297 </span> <a href='501draw-text.mu.html#L449'>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="L298" class="LineNr"> 298 </span> <a href='501draw-text.mu.html#L449'>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="L299" class="LineNr"> 299 </span> <span class="Delimiter">}</span>
<span id="L300" class="LineNr"> 300 </span> <span class="PreProc">var</span> src-a/eax: (addr byte) <span class="Special">&lt;-</span> index img-data, idx
<span id="L301" class="LineNr"> 301 </span> <span class="PreProc">var</span> src/eax: byte <span class="Special">&lt;-</span> copy-byte *src-a
@ -369,7 +369,7 @@ if ('onhashchange' in window) {
<span id="L304" class="LineNr"> 304 </span> screenx <span class="Special">&lt;-</span> add xmin
<span id="L305" class="LineNr"> 305 </span> <span class="PreProc">var</span> screeny/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> convert y
<span id="L306" class="LineNr"> 306 </span> screeny <span class="Special">&lt;-</span> add ymin
<span id="L307" class="LineNr"> 307 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int
<span id="L307" class="LineNr"> 307 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int
<span id="L308" class="LineNr"> 308 </span> x <span class="Special">&lt;-</span> add one-f
<span id="L309" class="LineNr"> 309 </span> <span class="PreProc">loop</span>
<span id="L310" class="LineNr"> 310 </span> <span class="Delimiter">}</span>
@ -718,8 +718,8 @@ if ('onhashchange' in window) {
<span id="L653" class="LineNr"> 653 </span><span class="CommentedCode">#? break-if-&lt;=</span>
<span id="L654" class="LineNr"> 654 </span><span class="CommentedCode">#? return</span>
<span id="L655" class="LineNr"> 655 </span><span class="CommentedCode">#? }</span>
<span id="L656" class="LineNr"> 656 </span> <a href='501draw-text.mu.html#L284'>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="L657" class="LineNr"> 657 </span> <a href='501draw-text.mu.html#L394'>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="L656" class="LineNr"> 656 </span> <a href='501draw-text.mu.html#L339'>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="L657" class="LineNr"> 657 </span> <a href='501draw-text.mu.html#L449'>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="L658" class="LineNr"> 658 </span><span class="Delimiter">}</span>
<span id="L659" class="LineNr"> 659 </span>
<span id="L660" class="LineNr"> 660 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='511image.mu.html#L660'>psx</a></span> s: (addr array byte), d: int, fg: int, x: int, y: int <span class="Delimiter">{</span>
@ -743,8 +743,8 @@ if ('onhashchange' in window) {
<span id="L678" class="LineNr"> 678 </span><span class="CommentedCode">#? break-if-&lt;=</span>
<span id="L679" class="LineNr"> 679 </span><span class="CommentedCode">#? return</span>
<span id="L680" class="LineNr"> 680 </span><span class="CommentedCode">#? }</span>
<span id="L681" class="LineNr"> 681 </span> <a href='501draw-text.mu.html#L284'>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="L682" class="LineNr"> 682 </span> <a href='501draw-text.mu.html#L339'>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="L681" class="LineNr"> 681 </span> <a href='501draw-text.mu.html#L339'>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="L682" class="LineNr"> 682 </span> <a href='501draw-text.mu.html#L394'>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="L683" class="LineNr"> 683 </span><span class="Delimiter">}</span>
<span id="L684" class="LineNr"> 684 </span>
<span id="L685" class="LineNr"> 685 </span><span class="muComment"># import a color ascii &quot;pixmap&quot; (each pixel consists of 3 shades of r/g/b from 0 to 255)</span>
@ -854,10 +854,10 @@ if ('onhashchange' in window) {
<span id="L789" class="LineNr"> 789 </span> compare idx, len
<span id="L790" class="LineNr"> 790 </span> <span class="Delimiter">{</span>
<span id="L791" class="LineNr"> 791 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L792" class="LineNr"> 792 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y
<span id="L793" class="LineNr"> 793 </span> <a href='501draw-text.mu.html#L394'>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="L794" class="LineNr"> 794 </span> <a href='501draw-text.mu.html#L394'>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="L795" class="LineNr"> 795 </span> <a href='501draw-text.mu.html#L394'>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="L792" class="LineNr"> 792 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y
<span id="L793" class="LineNr"> 793 </span> <a href='501draw-text.mu.html#L449'>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="L794" class="LineNr"> 794 </span> <a href='501draw-text.mu.html#L449'>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="L795" class="LineNr"> 795 </span> <a href='501draw-text.mu.html#L449'>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="L796" class="LineNr"> 796 </span> <span class="Delimiter">}</span>
<span id="L797" class="LineNr"> 797 </span> <span class="muComment"># r channel</span>
<span id="L798" class="LineNr"> 798 </span> <span class="PreProc">var</span> r: int
@ -889,7 +889,7 @@ if ('onhashchange' in window) {
<span id="L824" class="LineNr"> 824 </span> screenx <span class="Special">&lt;-</span> add xmin
<span id="L825" class="LineNr"> 825 </span> <span class="PreProc">var</span> screeny/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> convert y
<span id="L826" class="LineNr"> 826 </span> screeny <span class="Special">&lt;-</span> add ymin
<span id="L827" class="LineNr"> 827 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color
<span id="L827" class="LineNr"> 827 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color
<span id="L828" class="LineNr"> 828 </span> x <span class="Special">&lt;-</span> add one-f
<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">loop</span>
<span id="L830" class="LineNr"> 830 </span> <span class="Delimiter">}</span>
@ -1143,10 +1143,10 @@ if ('onhashchange' in window) {
<span id="L1078" class="LineNr">1078 </span> compare idx, len
<span id="L1079" class="LineNr">1079 </span> <span class="Delimiter">{</span>
<span id="L1080" class="LineNr">1080 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L1081" class="LineNr">1081 </span> <a href='500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y
<span id="L1082" class="LineNr">1082 </span> <a href='501draw-text.mu.html#L394'>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="L1083" class="LineNr">1083 </span> <a href='501draw-text.mu.html#L394'>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="L1084" class="LineNr">1084 </span> <a href='501draw-text.mu.html#L394'>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="L1081" class="LineNr">1081 </span> <a href='500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0x20</span>/y
<span id="L1082" class="LineNr">1082 </span> <a href='501draw-text.mu.html#L449'>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="L1083" class="LineNr">1083 </span> <a href='501draw-text.mu.html#L449'>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="L1084" class="LineNr">1084 </span> <a href='501draw-text.mu.html#L449'>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="L1085" class="LineNr">1085 </span> <span class="Delimiter">}</span>
<span id="L1086" class="LineNr">1086 </span> <span class="PreProc">var</span> color-a/eax: (addr byte) <span class="Special">&lt;-</span> index img-data, idx
<span id="L1087" class="LineNr">1087 </span> <span class="PreProc">var</span> color/eax: byte <span class="Special">&lt;-</span> copy-byte *color-a
@ -1155,7 +1155,7 @@ if ('onhashchange' in window) {
<span id="L1090" class="LineNr">1090 </span> screenx <span class="Special">&lt;-</span> add xmin
<span id="L1091" class="LineNr">1091 </span> <span class="PreProc">var</span> screeny/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> convert y
<span id="L1092" class="LineNr">1092 </span> screeny <span class="Special">&lt;-</span> add ymin
<span id="L1093" class="LineNr">1093 </span> <a href='500fake-screen.mu.html#L557'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int
<span id="L1093" class="LineNr">1093 </span> <a href='500fake-screen.mu.html#L578'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a>, screenx, screeny, color-int
<span id="L1094" class="LineNr">1094 </span> x <span class="Special">&lt;-</span> add one-f
<span id="L1095" class="LineNr">1095 </span> <span class="PreProc">loop</span>
<span id="L1096" class="LineNr">1096 </span> <span class="Delimiter">}</span>

14
html/512array.mu.html generated
View File

@ -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 - 512array.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; }
@ -29,7 +29,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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 - 513grapheme-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; }
@ -30,7 +30,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -148,9 +148,9 @@ if ('onhashchange' in window) {
<span id="L84" class="LineNr"> 84 </span><span class="muComment"># dump stack to screen from bottom to top</span>
<span id="L85" class="LineNr"> 85 </span><span class="muComment"># hardcoded colors:</span>
<span id="L86" class="LineNr"> 86 </span><span class="muComment"># matching paren</span>
<span id="L87" class="LineNr"> 87 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</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='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, <a href='514gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L87" class="LineNr"> 87 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</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='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int, color: int, background-color: int<span class="PreProc"> -&gt; </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special">&lt;-</span> copy _self
<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> matching-open-paren-index/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> <a href='513grapheme-stack.mu.html#L449'>get-matching-open-paren-index</a> self, <a href='514gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>, open-paren-depth
<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> matching-open-paren-index/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> <a href='513grapheme-stack.mu.html#L449'>get-matching-open-paren-index</a> self, <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>, open-paren-depth
<span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array grapheme) <span class="Special">&lt;-</span> get self, data
<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> _data/eax: (addr array grapheme) <span class="Special">&lt;-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah
<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array grapheme) <span class="Special">&lt;-</span> copy _data
@ -178,7 +178,7 @@ if ('onhashchange' in window) {
<span id="L114" class="LineNr">114 </span> <span class="PreProc">break-if-!=</span>
<span id="L115" class="LineNr">115 </span> copy-to fg, <span class="Constant">0xf</span>/highlight
<span id="L116" class="LineNr">116 </span> <span class="Delimiter">}</span>
<span id="L117" class="LineNr">117 </span> x, y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L155'>render-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xmin, ymin, xmax, ymax, x, y, fg, background-color
<span id="L117" class="LineNr">117 </span> x, y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L162'>render-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xmin, ymin, xmax, ymax, x, y, fg, background-color <span class="muComment"># TODO: handle combining characters</span>
<span id="L118" class="LineNr">118 </span> <span class="Delimiter">}</span>
<span id="L119" class="LineNr">119 </span> i <span class="Special">&lt;-</span> increment
<span id="L120" class="LineNr">120 </span> <span class="PreProc">loop</span>
@ -187,7 +187,7 @@ if ('onhashchange' in window) {
<span id="L123" class="LineNr">123 </span><span class="Delimiter">}</span>
<span id="L124" class="LineNr">124 </span>
<span id="L125" class="LineNr">125 </span><span class="muComment"># helper for small words</span>
<span id="L126" class="LineNr">126 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L126'>render-stack-from-bottom</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='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, <a href='514gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L126" class="LineNr">126 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L126'>render-stack-from-bottom</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='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int<span class="PreProc"> -&gt; </span>_/eax: int <span class="Delimiter">{</span>
<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> _width/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> _height/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L129" class="LineNr">129 </span> _width, _height <span class="Special">&lt;-</span> <a href='500fake-screen.mu.html#L73'>screen-size</a> <a href='500fake-screen.mu.html#L14'>screen</a>
@ -195,7 +195,7 @@ if ('onhashchange' in window) {
<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> height/<span class="muRegEbx">ebx</span>: int <span class="Special">&lt;-</span> copy _height
<span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L134" class="LineNr">134 </span> x2, y2 <span class="Special">&lt;-</span> <a href='513grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, self, x, y, width, height, x, y, <a href='514gap-buffer.mu.html#L943'>highlight-matching-open-paren?</a>, open-paren-depth, <span class="Constant">3</span>/fg=cyan, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L134" class="LineNr">134 </span> x2, y2 <span class="Special">&lt;-</span> <a href='513grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L14'>screen</a>, self, x, y, width, height, x, y, <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>, open-paren-depth, <span class="Constant">3</span>/fg=cyan, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L135" class="LineNr">135 </span> <span class="PreProc">return</span> x2 <span class="muComment"># y2? yolo</span>
<span id="L136" class="LineNr">136 </span><span class="Delimiter">}</span>
<span id="L137" class="LineNr">137 </span>
@ -227,7 +227,7 @@ if ('onhashchange' in window) {
<span id="L163" class="LineNr">163 </span> <span class="PreProc">var</span> tmp/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> *g
<span id="L164" class="LineNr">164 </span> copy-to c, tmp
<span id="L165" class="LineNr">165 </span> <span class="Delimiter">}</span>
<span id="L166" class="LineNr">166 </span> x, y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L155'>render-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xmin, ymin, xmax, ymax, x, y, background-color, color
<span id="L166" class="LineNr">166 </span> x, y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L162'>render-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xmin, ymin, xmax, ymax, x, y, background-color, color
<span id="L167" class="LineNr">167 </span> i <span class="Special">&lt;-</span> decrement
<span id="L168" class="LineNr">168 </span> <span class="Delimiter">}</span>
<span id="L169" class="LineNr">169 </span> <span class="muComment"># remaining iterations</span>
@ -252,7 +252,7 @@ if ('onhashchange' in window) {
<span id="L188" class="LineNr">188 </span> <span class="PreProc">var</span> tmp/eax: code-point <span class="Special">&lt;-</span> <a href='403unicode.mu.html#L56'>to-code-point</a> *g
<span id="L189" class="LineNr">189 </span> copy-to c, tmp
<span id="L190" class="LineNr">190 </span> <span class="Delimiter">}</span>
<span id="L191" class="LineNr">191 </span> x, y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L155'>render-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xmin, ymin, xmax, ymax, x, y, fg, background-color
<span id="L191" class="LineNr">191 </span> x, y <span class="Special">&lt;-</span> <a href='501draw-text.mu.html#L162'>render-code-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, c, xmin, ymin, xmax, ymax, x, y, fg, background-color
<span id="L192" class="LineNr">192 </span> i <span class="Special">&lt;-</span> decrement
<span id="L193" class="LineNr">193 </span> <span class="PreProc">loop</span>
<span id="L194" class="LineNr">194 </span> <span class="Delimiter">}</span>

File diff suppressed because it is too large Load Diff

View File

@ -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 - apps/color-game.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; }
@ -29,7 +29,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -72,11 +72,11 @@ if ('onhashchange' in window) {
<span id="L9" class="LineNr"> 9 </span> <span class="Delimiter">{</span>
<span id="L10" class="LineNr">10 </span> compare leftx, rightx
<span id="L11" class="LineNr">11 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L12" class="LineNr">12 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> second-screen
<span id="L12" class="LineNr">12 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> second-screen
<span id="L13" class="LineNr">13 </span> <span class="muComment"># interesting value: 9/blue with 0xe/yellow</span>
<span id="L14" class="LineNr">14 </span> <a href='color-game.mu.html#L31'>color-field</a> second-screen, leftx <span class="Constant">0x40</span>/y, <span class="Constant">0x40</span>/width <span class="Constant">0x40</span>/height, <span class="Constant">1</span>/blue
<span id="L15" class="LineNr">15 </span> <a href='color-game.mu.html#L31'>color-field</a> second-screen, rightx <span class="Constant">0x41</span>/y, <span class="Constant">0x40</span>/width <span class="Constant">0x40</span>/height, <span class="Constant">2</span>/green
<span id="L16" class="LineNr">16 </span> <a href='../500fake-screen.mu.html#L620'>copy-pixels</a> second-screen, <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L16" class="LineNr">16 </span> <a href='../500fake-screen.mu.html#L641'>copy-pixels</a> second-screen, <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L17" class="LineNr">17 </span> <span class="muComment"># on the first iteration, give everyone a chance to make their guess</span>
<span id="L18" class="LineNr">18 </span> <span class="Delimiter">{</span>
<span id="L19" class="LineNr">19 </span> compare leftx, <span class="Constant">0x80</span>
@ -104,7 +104,7 @@ if ('onhashchange' in window) {
<span id="L41" class="LineNr">41 </span> <span class="Delimiter">{</span>
<span id="L42" class="LineNr">42 </span> compare x, xmax
<span id="L43" class="LineNr">43 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L44" class="LineNr">44 </span> <a href='../500fake-screen.mu.html#L557'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L44" class="LineNr">44 </span> <a href='../500fake-screen.mu.html#L578'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L45" class="LineNr">45 </span> x <span class="Special">&lt;-</span> add <span class="Constant">2</span>
<span id="L46" class="LineNr">46 </span> <span class="PreProc">loop</span>
<span id="L47" class="LineNr">47 </span> <span class="Delimiter">}</span>
@ -116,7 +116,7 @@ if ('onhashchange' in window) {
<span id="L53" class="LineNr">53 </span> <span class="Delimiter">{</span>
<span id="L54" class="LineNr">54 </span> compare x, xmax
<span id="L55" class="LineNr">55 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L56" class="LineNr">56 </span> <a href='../500fake-screen.mu.html#L557'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L56" class="LineNr">56 </span> <a href='../500fake-screen.mu.html#L578'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L57" class="LineNr">57 </span> x <span class="Special">&lt;-</span> add <span class="Constant">2</span>
<span id="L58" class="LineNr">58 </span> <span class="PreProc">loop</span>
<span id="L59" class="LineNr">59 </span> <span class="Delimiter">}</span>

View File

@ -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 - apps/colors.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; }
@ -29,7 +29,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -78,11 +78,11 @@ if ('onhashchange' in window) {
<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</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">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;Enter 3 hex bytes for r, g, b (lowercase; no 0x prefix) separated by a single space&gt; &quot;</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="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;Enter 3 hex bytes for r, g, b (lowercase; no 0x prefix) separated by a single space&gt; &quot;</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#L293'>draw-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x20</span>/space
<span id="L22" class="LineNr"> 22 </span> <a href='../500fake-screen.mu.html#L314'>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">&lt;-</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>
@ -91,10 +91,10 @@ if ('onhashchange' in window) {
<span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> key2/eax: int <span class="Special">&lt;-</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> c/eax: code-point <span class="Special">&lt;-</span> copy key2 <span class="muComment"># TODO: unicode input</span>
<span id="L31" class="LineNr"> 31 </span> <a href='../501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, c, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg
<span id="L31" class="LineNr"> 31 </span> <a href='../501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, c, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg
<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">loop</span>
<span id="L33" class="LineNr"> 33 </span> <span class="Delimiter">}</span>
<span id="L34" class="LineNr"> 34 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L34" class="LineNr"> 34 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L35" class="LineNr"> 35 </span> <span class="muComment"># parse</span>
<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> a/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> b/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
@ -112,11 +112,11 @@ if ('onhashchange' in window) {
<span id="L49" class="LineNr"> 49 </span> <a href='colors.mu.html#L188'>print-nearby-colors</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, a, b, c
<span id="L50" class="LineNr"> 50 </span> <span class="muComment"># another metric</span>
<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> color/eax: int <span class="Special">&lt;-</span> <a href='../505colors.mu.html#L260'>nearest-color-euclidean-hsl</a> a, b, c
<span id="L52" class="LineNr"> 52 </span> <a href='../500fake-screen.mu.html#L246'>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="L53" class="LineNr"> 53 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;nearest (euclidean, h/s/l): &quot;</span>, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg
<span id="L54" class="LineNr"> 54 </span> <a href='../501draw-text.mu.html#L394'>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="L55" class="LineNr"> 55 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</span>, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg
<span id="L56" class="LineNr"> 56 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</span>, <span class="Constant">0</span>/fg, color
<span id="L52" class="LineNr"> 52 </span> <a href='../500fake-screen.mu.html#L267'>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="L53" class="LineNr"> 53 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;nearest (euclidean, h/s/l): &quot;</span>, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg
<span id="L54" class="LineNr"> 54 </span> <a href='../501draw-text.mu.html#L449'>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="L55" class="LineNr"> 55 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</span>, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg
<span id="L56" class="LineNr"> 56 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</span>, <span class="Constant">0</span>/fg, color
<span id="L57" class="LineNr"> 57 </span> <span class="muComment">#</span>
<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">loop</span>
<span id="L59" class="LineNr"> 59 </span> <span class="Delimiter">}</span>
@ -285,11 +285,11 @@ if ('onhashchange' in window) {
<span id="L222" class="LineNr">222 </span> <span class="PreProc">break-if-!=</span>
<span id="L223" class="LineNr">223 </span> compare c, l
<span id="L224" class="LineNr">224 </span> <span class="PreProc">break-if-!=</span>
<span id="L225" class="LineNr">225 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x10</span>/x, y
<span id="L226" class="LineNr">226 </span> <a href='../501draw-text.mu.html#L394'>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="L227" class="LineNr">227 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x14</span>/x, y
<span id="L228" class="LineNr">228 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg
<span id="L229" class="LineNr">229 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</span>, <span class="Constant">0</span>/fg, color
<span id="L225" class="LineNr">225 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x10</span>/x, y
<span id="L226" class="LineNr">226 </span> <a href='../501draw-text.mu.html#L449'>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="L227" class="LineNr">227 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x14</span>/x, y
<span id="L228" class="LineNr">228 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg
<span id="L229" class="LineNr">229 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</span>, <span class="Constant">0</span>/fg, color
<span id="L230" class="LineNr">230 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, &quot; &quot;, 7/fg, 0/bg</span>
<span id="L231" class="LineNr">231 </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="L232" class="LineNr">232 </span><span class="CommentedCode">#? draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, &quot; &quot;, 7/fg, 0/bg</span>

14
html/apps/ex1.mu.html generated
View File

@ -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 - apps/ex1.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; }
@ -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 */

20
html/apps/ex10.mu.html generated
View File

@ -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 - apps/ex10.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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -84,15 +84,15 @@ if ('onhashchange' in window) {
<span id="L25" class="LineNr">25 </span> <span class="Delimiter">{</span>
<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> dummy1/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> dummy2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L28" class="LineNr">28 </span> dummy1, dummy2 <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L261'>draw-text-wrapping-right-then-down-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</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="L28" class="LineNr">28 </span> dummy1, dummy2 <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L316'>draw-text-wrapping-right-then-down-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</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="L29" class="LineNr">29 </span> <span class="Delimiter">}</span>
<span id="L30" class="LineNr">30 </span> <span class="Delimiter">{</span>
<span id="L31" class="LineNr">31 </span> <span class="PreProc">var</span> dummy/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L32" class="LineNr">32 </span> dx, dummy <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L371'>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="L32" class="LineNr">32 </span> dx, dummy <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L426'>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="L33" class="LineNr">33 </span> <span class="Delimiter">}</span>
<span id="L34" class="LineNr">34 </span> <span class="Delimiter">{</span>
<span id="L35" class="LineNr">35 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L36" class="LineNr">36 </span> dummy, dy <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L371'>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="L36" class="LineNr">36 </span> dummy, dy <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L426'>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="L37" class="LineNr">37 </span> <span class="Delimiter">}</span>
<span id="L38" class="LineNr">38 </span> <span class="PreProc">loop</span>
<span id="L39" class="LineNr">39 </span> <span class="Delimiter">}</span>

16
html/apps/ex11.mu.html generated
View File

@ -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 - apps/ex11.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; }
@ -29,7 +29,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -96,7 +96,7 @@ if ('onhashchange' in window) {
<span id="L33" class="LineNr"> 33 </span><span class="Delimiter">}</span>
<span id="L34" class="LineNr"> 34 </span>
<span id="L35" class="LineNr"> 35 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex11.mu.html#L35'>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#L23'>environment</a>) <span class="Delimiter">{</span>
<span id="L36" class="LineNr"> 36 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L36" class="LineNr"> 36 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='ex11.mu.html#L23'>environment</a>) <span class="Special">&lt;-</span> copy _self
<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> tmp-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='ex11.mu.html#L30'>point</a>) <span class="Special">&lt;-</span> get self, p0
<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> tmp/eax: (addr <a href='ex11.mu.html#L30'>point</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *tmp-ah

16
html/apps/ex12.mu.html generated
View File

@ -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 - apps/ex12.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; }
@ -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 */
@ -71,7 +71,7 @@ if ('onhashchange' in window) {
<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> fg/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L12" class="LineNr">12 </span> <span class="PreProc">var</span> prev-timer-counter/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L13" class="LineNr">13 </span> <span class="Delimiter">{</span>
<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;hello from baremetal Mu!&quot;</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="L14" class="LineNr">14 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;hello from baremetal Mu!&quot;</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="L15" class="LineNr">15 </span> <span class="muComment"># wait for timer to bump</span>
<span id="L16" class="LineNr">16 </span> <span class="Delimiter">{</span>
<span id="L17" class="LineNr">17 </span> <span class="PreProc">var</span> curr-timer-counter/eax: int <span class="Special">&lt;-</span> <a href='../319timer.subx.html#L3'>timer-counter</a>

14
html/apps/ex13.mu.html generated
View File

@ -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 - apps/ex13.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; }
@ -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 */

16
html/apps/ex14.mu.html generated
View File

@ -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 - apps/ex14.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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -77,7 +77,7 @@ if ('onhashchange' in window) {
<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> text-storage: (stream byte <span class="Constant">0x200</span>)
<span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> text/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address text-storage
<span id="L20" class="LineNr">20 </span> <a href='../510disk.mu.html#L1'>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> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L117'>draw-stream-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/x <span class="Constant">0x80</span>/xmax <span class="Constant">0</span>/y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg
<span id="L21" class="LineNr">21 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L124'>draw-stream-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">0</span>/x <span class="Constant">0x80</span>/xmax <span class="Constant">0</span>/y, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg
<span id="L22" class="LineNr">22 </span><span class="Delimiter">}</span>
</pre>
</body>

201
html/apps/ex15.mu.html generated
View File

@ -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 - apps/ex15.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,14 +17,16 @@ a { color:inherit; }
.PreProc { color: #c000c0; }
.Special { color: #ff6060; }
.LineNr { }
.muRegEsi { color: #005faf; }
.Constant { color: #008787; }
.muRegEcx { color: #870000; }
.Delimiter { color: #c000c0; }
.muFunction { color: #af5f00; text-decoration: underline; }
.muComment { color: #005faf; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -56,42 +58,155 @@ if ('onhashchange' in window) {
<body onload='JumpToLine();'>
<a href='https://github.com/akkartik/mu/blob/main/apps/ex15.mu'>https://github.com/akkartik/mu/blob/main/apps/ex15.mu</a>
<pre id='vimCodeElement'>
<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Demo of combining-character support in Mu, which can be summarized as, &quot;the</span>
<span id="L2" class="LineNr"> 2 </span><span class="muComment"># old typewriter-based approach of backing up one character and adding the</span>
<span id="L3" class="LineNr"> 3 </span><span class="muComment"># accent or _matra_ in.&quot;</span>
<span id="L4" class="LineNr"> 4 </span><span class="muComment"># <a href="https://en.wikipedia.org/wiki/Combining_character">https://en.wikipedia.org/wiki/Combining_character</a></span>
<span id="L5" class="LineNr"> 5 </span><span class="muComment">#</span>
<span id="L6" class="LineNr"> 6 </span><span class="muComment"># Mu uses this approach for both accents in Latin languages and vowel</span>
<span id="L7" class="LineNr"> 7 </span><span class="muComment"># diacritics in Abugida scripts.</span>
<span id="L8" class="LineNr"> 8 </span><span class="muComment"># <a href="https://en.wikipedia.org/wiki/Diacritic">https://en.wikipedia.org/wiki/Diacritic</a></span>
<span id="L9" class="LineNr"> 9 </span><span class="muComment"># <a href="https://en.wikipedia.org/wiki/Abugida">https://en.wikipedia.org/wiki/Abugida</a></span>
<span id="L10" class="LineNr">10 </span><span class="muComment">#</span>
<span id="L11" class="LineNr">11 </span><span class="muComment"># Steps for trying it out:</span>
<span id="L12" class="LineNr">12 </span><span class="muComment"># 1. Translate this example into a disk image code.img.</span>
<span id="L13" class="LineNr">13 </span><span class="muComment"># ./translate apps/ex15.mu</span>
<span id="L14" class="LineNr">14 </span><span class="muComment"># 2. Run:</span>
<span id="L15" class="LineNr">15 </span><span class="muComment"># qemu-system-i386 -hda code.img -hdb data.img</span>
<span id="L16" class="LineNr">16 </span><span class="muComment">#</span>
<span id="L17" class="LineNr">17 </span><span class="muComment"># Expected output: 'à' in green in a few places near the top-left corner of</span>
<span id="L18" class="LineNr">18 </span><span class="muComment"># screen, showing off what this approach can and cannot do.</span>
<span id="L19" class="LineNr">19 </span>
<span id="L20" class="LineNr">20 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex15.mu.html#L20'>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="L21" class="LineNr">21 </span> <span class="muComment"># at the top of screen, the accent is almost cropped</span>
<span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x61</span>/a, <span class="Constant">0</span>/x <span class="Constant">0</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent, <span class="Constant">0</span>/x <span class="Constant">0</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L24" class="LineNr">24 </span>
<span id="L25" class="LineNr">25 </span> <span class="muComment"># below a grapheme with a descender, the accent uglily overlaps</span>
<span id="L26" class="LineNr">26 </span> <span class="muComment"># <a href="https://en.wikipedia.org/wiki/Descender">https://en.wikipedia.org/wiki/Descender</a></span>
<span id="L27" class="LineNr">27 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x67</span>/g, <span class="Constant">4</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x61</span>/a, <span class="Constant">4</span>/x <span class="Constant">4</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent, <span class="Constant">4</span>/x <span class="Constant">4</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L30" class="LineNr">30 </span>
<span id="L31" class="LineNr">31 </span> <span class="muComment"># beside a grapheme with a descender, it becomes more obvious that monowidth fonts can't make baselines line up</span>
<span id="L32" class="LineNr">32 </span> <span class="muComment"># <a href="https://en.wikipedia.org/wiki/Baseline_(typography)">https://en.wikipedia.org/wiki/Baseline_(typography)</a></span>
<span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x67</span>/g, <span class="Constant">8</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x61</span>/a, <span class="Constant">9</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L35" class="LineNr">35 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent, <span class="Constant">9</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L36" class="LineNr">36 </span><span class="Delimiter">}</span>
<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Demo of combining-character support in Mu, which can be summarized as, &quot;the</span>
<span id="L2" class="LineNr"> 2 </span><span class="muComment"># old typewriter-based approach of backing up one character and adding the</span>
<span id="L3" class="LineNr"> 3 </span><span class="muComment"># accent or _matra_ in.&quot;</span>
<span id="L4" class="LineNr"> 4 </span><span class="muComment"># <a href="https://en.wikipedia.org/wiki/Combining_character">https://en.wikipedia.org/wiki/Combining_character</a></span>
<span id="L5" class="LineNr"> 5 </span><span class="muComment">#</span>
<span id="L6" class="LineNr"> 6 </span><span class="muComment"># Mu uses this approach for both accents in Latin languages and vowel</span>
<span id="L7" class="LineNr"> 7 </span><span class="muComment"># diacritics in Abugida scripts.</span>
<span id="L8" class="LineNr"> 8 </span><span class="muComment"># <a href="https://en.wikipedia.org/wiki/Diacritic">https://en.wikipedia.org/wiki/Diacritic</a></span>
<span id="L9" class="LineNr"> 9 </span><span class="muComment"># <a href="https://en.wikipedia.org/wiki/Abugida">https://en.wikipedia.org/wiki/Abugida</a></span>
<span id="L10" class="LineNr"> 10 </span><span class="muComment">#</span>
<span id="L11" class="LineNr"> 11 </span><span class="muComment"># Steps for trying it out:</span>
<span id="L12" class="LineNr"> 12 </span><span class="muComment"># 1. Translate this example into a disk image code.img.</span>
<span id="L13" class="LineNr"> 13 </span><span class="muComment"># ./translate apps/ex15.mu</span>
<span id="L14" class="LineNr"> 14 </span><span class="muComment"># 2. Run:</span>
<span id="L15" class="LineNr"> 15 </span><span class="muComment"># qemu-system-i386 -hda code.img -hdb data.img</span>
<span id="L16" class="LineNr"> 16 </span><span class="muComment">#</span>
<span id="L17" class="LineNr"> 17 </span><span class="muComment"># Expected output, showing off what this approach can and cannot do:</span>
<span id="L18" class="LineNr"> 18 </span><span class="muComment"># 'à' in green in a few places near the top-left corner of screen, with</span>
<span id="L19" class="LineNr"> 19 </span><span class="muComment"># other letters nearby showing cases where characters blend to the eye.</span>
<span id="L20" class="LineNr"> 20 </span><span class="muComment">#</span>
<span id="L21" class="LineNr"> 21 </span><span class="muComment"># A few Devanagari letter combinations. Devanagari works well except for</span>
<span id="L22" class="LineNr"> 22 </span><span class="muComment"># characters blending together.</span>
<span id="L23" class="LineNr"> 23 </span><span class="muComment">#</span>
<span id="L24" class="LineNr"> 24 </span><span class="muComment"># A few Tamil letter combinations. Tamil often doesn't look right, and</span>
<span id="L25" class="LineNr"> 25 </span><span class="muComment"># requires ligatures for many letter combinations.</span>
<span id="L26" class="LineNr"> 26 </span><span class="muComment">#</span>
<span id="L27" class="LineNr"> 27 </span><span class="muComment"># Others? (Patches welcome.) I suspect Tibetan in particular will not work</span>
<span id="L28" class="LineNr"> 28 </span><span class="muComment"># well with this approach. But I need native readers to assess quality.</span>
<span id="L29" class="LineNr"> 29 </span>
<span id="L30" class="LineNr"> 30 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex15.mu.html#L30'>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="L31" class="LineNr"> 31 </span> <span class="muComment"># at the top of screen, the accent is almost cropped</span>
<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x61</span>/a, <span class="Constant">0</span>/x <span class="Constant">0</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent, <span class="Constant">0</span>/x <span class="Constant">0</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L34" class="LineNr"> 34 </span>
<span id="L35" class="LineNr"> 35 </span> <span class="muComment"># below a grapheme with a descender, the accent uglily overlaps</span>
<span id="L36" class="LineNr"> 36 </span> <span class="muComment"># <a href="https://en.wikipedia.org/wiki/Descender">https://en.wikipedia.org/wiki/Descender</a></span>
<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x67</span>/g, <span class="Constant">4</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x61</span>/a, <span class="Constant">4</span>/x <span class="Constant">4</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent, <span class="Constant">4</span>/x <span class="Constant">4</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L40" class="LineNr"> 40 </span>
<span id="L41" class="LineNr"> 41 </span> <span class="muComment"># beside a grapheme with a descender, it becomes more obvious that monowidth fonts can't make baselines line up</span>
<span id="L42" class="LineNr"> 42 </span> <span class="muComment"># <a href="https://en.wikipedia.org/wiki/Baseline_(typography)">https://en.wikipedia.org/wiki/Baseline_(typography)</a></span>
<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x67</span>/g, <span class="Constant">8</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x61</span>/a, <span class="Constant">9</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent, <span class="Constant">9</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L46" class="LineNr"> 46 </span>
<span id="L47" class="LineNr"> 47 </span> <span class="muComment"># a single devanagari letter combined with different vowel _matras_</span>
<span id="L48" class="LineNr"> 48 </span> <span class="muComment"># ka</span>
<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">4</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L50" class="LineNr"> 50 </span> <span class="muComment"># kaa</span>
<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">7</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x093e</span>/devanagari-vowel-aa, <span class="Constant">7</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L53" class="LineNr"> 53 </span> <span class="muComment"># ki</span>
<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0xa</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x093f</span>/devanagari-vowel-i, <span class="Constant">0xa</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L56" class="LineNr"> 56 </span> <span class="muComment"># kee</span>
<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0xd</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0940</span>/devanagari-vowel-ii, <span class="Constant">0xd</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L59" class="LineNr"> 59 </span> <span class="muComment"># ku</span>
<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0x10</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0941</span>/devanagari-vowel-u, <span class="Constant">0x10</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L62" class="LineNr"> 62 </span> <span class="muComment"># koo</span>
<span id="L63" class="LineNr"> 63 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0x13</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0942</span>/devanagari-vowel-oo, <span class="Constant">0x13</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L65" class="LineNr"> 65 </span> <span class="muComment"># kay</span>
<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">4</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0947</span>/devanagari-vowel-E, <span class="Constant">4</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L68" class="LineNr"> 68 </span> <span class="muComment"># kai</span>
<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">7</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0948</span>/devanagari-vowel-ai, <span class="Constant">7</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L71" class="LineNr"> 71 </span> <span class="muComment"># ko</span>
<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0xa</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x094b</span>/devanagari-vowel-o, <span class="Constant">0xa</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L74" class="LineNr"> 74 </span> <span class="muComment"># kow</span>
<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0xd</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x094f</span>/devanagari-vowel-aw, <span class="Constant">0xd</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L77" class="LineNr"> 77 </span> <span class="muComment"># kan</span>
<span id="L78" class="LineNr"> 78 </span> <span class="muComment"># bump this letter down to show the letter without overlap; we've already established above that overlap is an issue</span>
<span id="L79" class="LineNr"> 79 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0x10</span>/x <span class="Constant">0xa</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L80" class="LineNr"> 80 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0902</span>/devanagari-anusvara, <span class="Constant">0x10</span>/x <span class="Constant">0xa</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L81" class="LineNr"> 81 </span> <span class="muComment"># kaha</span>
<span id="L82" class="LineNr"> 82 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0x13</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0903</span>/devanagari-visarga, <span class="Constant">0x13</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L84" class="LineNr"> 84 </span>
<span id="L85" class="LineNr"> 85 </span> <span class="muComment"># render the same devanagari letters as a single stream of utf-8 graphemes rather than individual code-points.</span>
<span id="L86" class="LineNr"> 86 </span> <span class="PreProc">var</span> text-storage: (stream byte <span class="Constant">0x200</span>)
<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> text/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address text-storage
<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0915</span>/devanagari-letter-ka
<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> ka/<span class="muRegEcx">ecx</span>: grapheme <span class="Special">&lt;-</span> copy g
<span id="L90" class="LineNr"> 90 </span> <span class="muComment"># ka</span>
<span id="L91" class="LineNr"> 91 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L92" class="LineNr"> 92 </span> <span class="muComment"># kaa</span>
<span id="L93" class="LineNr"> 93 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L94" class="LineNr"> 94 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x093e</span>/devanagari-vowel-aa
<span id="L95" class="LineNr"> 95 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L96" class="LineNr"> 96 </span> <span class="muComment"># ki</span>
<span id="L97" class="LineNr"> 97 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L98" class="LineNr"> 98 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x093f</span>/devanagari-vowel-i
<span id="L99" class="LineNr"> 99 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L100" class="LineNr">100 </span> <span class="muComment"># kee</span>
<span id="L101" class="LineNr">101 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L102" class="LineNr">102 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0940</span>/devanagari-vowel-ii
<span id="L103" class="LineNr">103 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L104" class="LineNr">104 </span> <span class="muComment"># ku</span>
<span id="L105" class="LineNr">105 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L106" class="LineNr">106 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0941</span>/devanagari-vowel-u
<span id="L107" class="LineNr">107 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L108" class="LineNr">108 </span> <span class="muComment"># koo</span>
<span id="L109" class="LineNr">109 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L110" class="LineNr">110 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0942</span>/devanagari-vowel-oo
<span id="L111" class="LineNr">111 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L112" class="LineNr">112 </span> <span class="muComment"># kay</span>
<span id="L113" class="LineNr">113 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L114" class="LineNr">114 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0947</span>/devanagari-vowel-E
<span id="L115" class="LineNr">115 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L116" class="LineNr">116 </span> <span class="muComment"># kai</span>
<span id="L117" class="LineNr">117 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L118" class="LineNr">118 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0948</span>/devanagari-vowel-ai
<span id="L119" class="LineNr">119 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L120" class="LineNr">120 </span> <span class="muComment"># ko</span>
<span id="L121" class="LineNr">121 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L122" class="LineNr">122 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x094b</span>/devanagari-vowel-o
<span id="L123" class="LineNr">123 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L124" class="LineNr">124 </span> <span class="muComment"># kow</span>
<span id="L125" class="LineNr">125 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L126" class="LineNr">126 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x094f</span>/devanagari-vowel-aw
<span id="L127" class="LineNr">127 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L128" class="LineNr">128 </span> <span class="muComment"># kan</span>
<span id="L129" class="LineNr">129 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L130" class="LineNr">130 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0902</span>/devanagari-anusvara
<span id="L131" class="LineNr">131 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L132" class="LineNr">132 </span> <span class="muComment"># kaha</span>
<span id="L133" class="LineNr">133 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
<span id="L134" class="LineNr">134 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0903</span>/devanagari-visarga
<span id="L135" class="LineNr">135 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
<span id="L136" class="LineNr">136 </span> <span class="muComment"># render everything</span>
<span id="L137" class="LineNr">137 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/x <span class="Constant">0xe</span>/y
<span id="L138" class="LineNr">138 </span> <a href='../501draw-text.mu.html#L295'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L139" class="LineNr">139 </span>
<span id="L140" class="LineNr">140 </span> <span class="muComment"># a stream of tamil graphemes (with interspersed spaces for clarity) that don't look the same in Mu</span>
<span id="L141" class="LineNr">141 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>, <span class="Constant">4</span>/x <span class="Constant">0x12</span>/y
<span id="L142" class="LineNr">142 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">&quot;எ ஃ கு &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L143" class="LineNr">143 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>, <span class="Constant">4</span>/x <span class="Constant">0x13</span>/y
<span id="L144" class="LineNr">144 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">&quot;அ ன் று &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L145" class="LineNr">145 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>, <span class="Constant">4</span>/x <span class="Constant">0x14</span>/y
<span id="L146" class="LineNr">146 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">&quot;அ தா வ து &quot;</span> , <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L147" class="LineNr">147 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>, <span class="Constant">4</span>/x <span class="Constant">0x15</span>/y
<span id="L148" class="LineNr">148 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">&quot;அ ஃ தா ன் று &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L149" class="LineNr">149 </span><span class="Delimiter">}</span>
</pre>
</body>
</html>

16
html/apps/ex2.mu.html generated
View File

@ -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 - apps/ex2.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; }
@ -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 */
@ -76,7 +76,7 @@ if ('onhashchange' in window) {
<span id="L16" class="LineNr">16 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L17" class="LineNr">17 </span> <span class="PreProc">var</span> color/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L18" class="LineNr">18 </span> color <span class="Special">&lt;-</span> and <span class="Constant">0xff</span>
<span id="L19" class="LineNr">19 </span> <a href='../500fake-screen.mu.html#L557'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a> x, y, color
<span id="L19" class="LineNr">19 </span> <a href='../500fake-screen.mu.html#L578'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a> x, y, color
<span id="L20" class="LineNr">20 </span> x <span class="Special">&lt;-</span> increment
<span id="L21" class="LineNr">21 </span> <span class="PreProc">loop</span>
<span id="L22" class="LineNr">22 </span> <span class="Delimiter">}</span>

14
html/apps/ex3.mu.html generated
View File

@ -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 - apps/ex3.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; }
@ -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 */

14
html/apps/ex4.mu.html generated
View File

@ -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 - apps/ex4.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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

18
html/apps/ex5.mu.html generated
View File

@ -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 - apps/ex5.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; }
@ -24,7 +24,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -67,8 +67,8 @@ if ('onhashchange' in window) {
<span id="L9" class="LineNr"> 9 </span><span class="muComment"># Expected output: text in green near the top-left corner of screen</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='ex5.mu.html#L11'>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="L12" class="LineNr">12 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;hello from baremetal Mu!&quot;</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="L13" class="LineNr">13 </span> dummy <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;you shouldn't see this&quot;</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="L12" class="LineNr">12 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;hello from baremetal Mu!&quot;</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="L13" class="LineNr">13 </span> dummy <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;you shouldn't see this&quot;</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="L14" class="LineNr">14 </span><span class="Delimiter">}</span>
</pre>
</body>

34
html/apps/ex6.mu.html generated
View File

@ -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 - apps/ex6.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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -71,21 +71,21 @@ if ('onhashchange' in window) {
<span id="L12" class="LineNr">12 </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="L13" class="LineNr">13 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0x20</span>
<span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0x20</span>
<span id="L15" class="LineNr">15 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;hello &quot;</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="L16" class="LineNr">16 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;from &quot;</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="L17" class="LineNr">17 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;baremetal &quot;</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">&lt;-</span> <a href='../501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;Mu!&quot;</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="L15" class="LineNr">15 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;hello &quot;</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="L16" class="LineNr">16 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;from &quot;</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="L17" class="LineNr">17 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;baremetal &quot;</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">&lt;-</span> <a href='../501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;Mu!&quot;</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>
<span id="L20" class="LineNr">20 </span> <span class="muComment"># drawing at the cursor in multiple directions</span>
<span id="L21" class="LineNr">21 </span> <a href='../501draw-text.mu.html#L504'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;abc&quot;</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg
<span id="L22" class="LineNr">22 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;def&quot;</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg
<span id="L21" class="LineNr">21 </span> <a href='../501draw-text.mu.html#L559'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;abc&quot;</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg
<span id="L22" class="LineNr">22 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;def&quot;</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg
<span id="L23" class="LineNr">23 </span>
<span id="L24" class="LineNr">24 </span> <span class="muComment"># test drawing near the edge</span>
<span id="L25" class="LineNr">25 </span> x <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;R&quot;</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="L26" class="LineNr">26 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;wrapped from R&quot;</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg
<span id="L25" class="LineNr">25 </span> x <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;R&quot;</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="L26" class="LineNr">26 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;wrapped from R&quot;</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg
<span id="L27" class="LineNr">27 </span>
<span id="L28" class="LineNr">28 </span> x <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L406'>draw-text-downward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;D&quot;</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="L29" class="LineNr">29 </span> <a href='../501draw-text.mu.html#L504'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;wrapped from D&quot;</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg
<span id="L28" class="LineNr">28 </span> x <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L461'>draw-text-downward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;D&quot;</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="L29" class="LineNr">29 </span> <a href='../501draw-text.mu.html#L559'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;wrapped from D&quot;</span>, <span class="Constant">0xa</span>/fg, <span class="Constant">0</span>/bg
<span id="L30" class="LineNr">30 </span><span class="Delimiter">}</span>
</pre>
</body>

79
html/apps/ex7.mu.html generated
View File

@ -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 - apps/ex7.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; }
@ -24,7 +24,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -67,39 +67,38 @@ if ('onhashchange' in window) {
<span id="L9" class="LineNr"> 9 </span><span class="muComment"># k, l.</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='ex7.mu.html#L11'>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="L12" class="LineNr">12 </span> <span class="PreProc">var</span> space/eax: grapheme <span class="Special">&lt;-</span> copy <span class="Constant">0x20</span>
<span id="L13" class="LineNr">13 </span> <a href='../500fake-screen.mu.html#L246'>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="L14" class="LineNr">14 </span> <span class="Delimiter">{</span>
<span id="L15" class="LineNr">15 </span> <a href='../500fake-screen.mu.html#L293'>draw-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, space
<span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special">&lt;-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard
<span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span>
<span id="L18" class="LineNr">18 </span> compare key, <span class="Constant">0x68</span>/h
<span id="L19" class="LineNr">19 </span> <span class="PreProc">break-if-!=</span>
<span id="L20" class="LineNr">20 </span> draw-code-point-at-cursor <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="L21" class="LineNr">21 </span> <a href='../501draw-text.mu.html#L3'>move-cursor-left</a> <span class="Constant">0</span>
<span id="L22" class="LineNr">22 </span> <span class="Delimiter">}</span>
<span id="L23" class="LineNr">23 </span> <span class="Delimiter">{</span>
<span id="L24" class="LineNr">24 </span> compare key, <span class="Constant">0x6a</span>/j
<span id="L25" class="LineNr">25 </span> <span class="PreProc">break-if-!=</span>
<span id="L26" class="LineNr">26 </span> draw-code-point-at-cursor <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="L27" class="LineNr">27 </span> <a href='../501draw-text.mu.html#L47'>move-cursor-down</a> <span class="Constant">0</span>
<span id="L28" class="LineNr">28 </span> <span class="Delimiter">}</span>
<span id="L29" class="LineNr">29 </span> <span class="Delimiter">{</span>
<span id="L30" class="LineNr">30 </span> compare key, <span class="Constant">0x6b</span>/k
<span id="L31" class="LineNr">31 </span> <span class="PreProc">break-if-!=</span>
<span id="L32" class="LineNr">32 </span> draw-code-point-at-cursor <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="L33" class="LineNr">33 </span> <a href='../501draw-text.mu.html#L34'>move-cursor-up</a> <span class="Constant">0</span>
<span id="L34" class="LineNr">34 </span> <span class="Delimiter">}</span>
<span id="L35" class="LineNr">35 </span> <span class="Delimiter">{</span>
<span id="L36" class="LineNr">36 </span> compare key, <span class="Constant">0x6c</span>/l
<span id="L37" class="LineNr">37 </span> <span class="PreProc">break-if-!=</span>
<span id="L38" class="LineNr">38 </span> <span class="PreProc">var</span> g/eax: code-point <span class="Special">&lt;-</span> copy <span class="Constant">0x2d</span>/dash
<span id="L39" class="LineNr">39 </span> draw-code-point-at-cursor <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="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="Delimiter">}</span>
<span id="L42" class="LineNr">42 </span> <span class="PreProc">loop</span>
<span id="L43" class="LineNr">43 </span> <span class="Delimiter">}</span>
<span id="L44" class="LineNr">44 </span><span class="Delimiter">}</span>
<span id="L12" class="LineNr">12 </span> <a href='../500fake-screen.mu.html#L267'>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="L13" class="LineNr">13 </span> <span class="Delimiter">{</span>
<span id="L14" class="LineNr">14 </span> <a href='../500fake-screen.mu.html#L314'>draw-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x20</span>/space
<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special">&lt;-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard
<span id="L16" class="LineNr">16 </span> <span class="Delimiter">{</span>
<span id="L17" class="LineNr">17 </span> compare key, <span class="Constant">0x80</span>/left-arrow
<span id="L18" class="LineNr">18 </span> <span class="PreProc">break-if-!=</span>
<span id="L19" class="LineNr">19 </span> <a href='../501draw-text.mu.html#L84'>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="L20" class="LineNr">20 </span> <a href='../501draw-text.mu.html#L3'>move-cursor-left</a> <span class="Constant">0</span>
<span id="L21" class="LineNr">21 </span> <span class="Delimiter">}</span>
<span id="L22" class="LineNr">22 </span> <span class="Delimiter">{</span>
<span id="L23" class="LineNr">23 </span> compare key, <span class="Constant">0x81</span>/down-arrow
<span id="L24" class="LineNr">24 </span> <span class="PreProc">break-if-!=</span>
<span id="L25" class="LineNr">25 </span> <a href='../501draw-text.mu.html#L84'>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="L26" class="LineNr">26 </span> <a href='../501draw-text.mu.html#L47'>move-cursor-down</a> <span class="Constant">0</span>
<span id="L27" class="LineNr">27 </span> <span class="Delimiter">}</span>
<span id="L28" class="LineNr">28 </span> <span class="Delimiter">{</span>
<span id="L29" class="LineNr">29 </span> compare key, <span class="Constant">0x82</span>/up-arrow
<span id="L30" class="LineNr">30 </span> <span class="PreProc">break-if-!=</span>
<span id="L31" class="LineNr">31 </span> <a href='../501draw-text.mu.html#L84'>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="L32" class="LineNr">32 </span> <a href='../501draw-text.mu.html#L34'>move-cursor-up</a> <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="Delimiter">{</span>
<span id="L35" class="LineNr">35 </span> compare key, <span class="Constant">0x83</span>/right-arrow
<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: code-point <span class="Special">&lt;-</span> copy <span class="Constant">0x2d</span>/dash
<span id="L38" class="LineNr">38 </span> <a href='../501draw-text.mu.html#L84'>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="L39" class="LineNr">39 </span> <a href='../501draw-text.mu.html#L16'>move-cursor-right</a> <span class="Constant">0</span>
<span id="L40" class="LineNr">40 </span> <span class="Delimiter">}</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="Delimiter">}</span>
</pre>
</body>
</html>

14
html/apps/ex8.mu.html generated
View File

@ -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 - apps/ex8.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; }
@ -24,7 +24,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

14
html/apps/ex9.mu.html generated
View File

@ -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 - apps/ex9.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; }
@ -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 */

View File

@ -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 - apps/hest-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; }
@ -30,7 +30,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -93,7 +93,7 @@ if ('onhashchange' in window) {
<span id="L29" class="LineNr"> 29 </span> <a href='../500fake-screen.mu.html#L32'>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> convert-graphemes-to-pixels second-screen
<span id="L32" class="LineNr"> 32 </span> <a href='../500fake-screen.mu.html#L620'>copy-pixels</a> second-screen, <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L32" class="LineNr"> 32 </span> <a href='../500fake-screen.mu.html#L641'>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">&lt;-</span> get env, play?
@ -101,10 +101,10 @@ if ('onhashchange' in window) {
<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#L307'>clear-screen</a> second-screen
<span id="L40" class="LineNr"> 40 </span> <a href='../500fake-screen.mu.html#L328'>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> convert-graphemes-to-pixels second-screen
<span id="L43" class="LineNr"> 43 </span> <a href='../500fake-screen.mu.html#L620'>copy-pixels</a> second-screen, <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L43" class="LineNr"> 43 </span> <a href='../500fake-screen.mu.html#L641'>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>
<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">loop</span>
@ -130,13 +130,13 @@ if ('onhashchange' in window) {
<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#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L69" class="LineNr"> 69 </span> <a href='../500fake-screen.mu.html#L328'>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#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L75" class="LineNr"> 75 </span> <a href='../500fake-screen.mu.html#L328'>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>
@ -146,8 +146,8 @@ if ('onhashchange' in window) {
<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">&lt;-</span> get self, tick
<span id="L85" class="LineNr"> 85 </span> <a href='../500fake-screen.mu.html#L246'>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#L394'>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="L85" class="LineNr"> 85 </span> <a href='../500fake-screen.mu.html#L267'>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#L449'>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>
@ -180,8 +180,8 @@ if ('onhashchange' in window) {
<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#L246'>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#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;+&quot;</span>, <span class="Constant">0xf</span>/color, <span class="Constant">0</span>/bg
<span id="L119" class="LineNr"> 119 </span> <a href='../500fake-screen.mu.html#L267'>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#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;+&quot;</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
@ -193,8 +193,8 @@ if ('onhashchange' in window) {
<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#L246'>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#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;?&quot;</span>, <span class="Constant">0xf</span>/color, <span class="Constant">0</span>/bg
<span id="L132" class="LineNr"> 132 </span> <a href='../500fake-screen.mu.html#L267'>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#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;?&quot;</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>
@ -251,9 +251,9 @@ if ('onhashchange' in window) {
<span id="L187" class="LineNr"> 187 </span> <span class="PreProc">var</span> three-f/<span class="Constant">xmm0</span>: float <span class="Special">&lt;-</span> convert three
<span id="L188" class="LineNr"> 188 </span> u <span class="Special">&lt;-</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#L246'>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="L190" class="LineNr"> 190 </span> <a href='../500fake-screen.mu.html#L267'>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">&lt;-</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#L394'>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="L192" class="LineNr"> 192 </span> <a href='../501draw-text.mu.html#L449'>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>
@ -369,17 +369,17 @@ if ('onhashchange' in window) {
<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">&lt;-</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#L246'>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#L394'>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="L308" class="LineNr"> 308 </span> <a href='../500fake-screen.mu.html#L267'>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#L449'>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">&lt;-</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#L246'>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#L394'>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="L311" class="LineNr"> 311 </span> <a href='../500fake-screen.mu.html#L267'>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#L449'>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">&lt;-</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#L246'>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#L394'>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="L314" class="LineNr"> 314 </span> <a href='../500fake-screen.mu.html#L267'>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#L449'>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">&lt;-</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#L246'>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#L394'>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="L317" class="LineNr"> 317 </span> <a href='../500fake-screen.mu.html#L267'>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#L449'>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

14
html/apps/life.mu.html generated
View File

@ -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 - apps/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; }
@ -30,7 +30,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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 - apps/mandelbrot-fixed.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; }
@ -30,7 +30,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -214,7 +214,7 @@ if ('onhashchange' in window) {
<span id="L150" class="LineNr">150 </span> dummy, color <span class="Special">&lt;-</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">&lt;-</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#L557'>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#L578'>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">&lt;-</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>

View File

@ -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 - apps/mandelbrot-silhouette.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; }
@ -28,7 +28,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -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-&gt;=</span>
<span id="L39" class="LineNr"> 39 </span> <a href='../500fake-screen.mu.html#L557'>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#L578'>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-&lt;</span>
<span id="L44" class="LineNr"> 44 </span> <a href='../500fake-screen.mu.html#L557'>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#L578'>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">&lt;-</span> increment
<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">loop</span>

View File

@ -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 - apps/mandelbrot.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; }
@ -29,7 +29,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -124,7 +124,7 @@ if ('onhashchange' in window) {
<span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> color/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L62" class="LineNr"> 62 </span> iterations, color <span class="Special">&lt;-</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">&lt;-</span> add <span class="Constant">0x20</span>/cycle-0
<span id="L64" class="LineNr"> 64 </span> <a href='../500fake-screen.mu.html#L557'>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#L578'>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">&lt;-</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>

24
html/apps/rpn.mu.html generated
View File

@ -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 - apps/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; }
@ -28,7 +28,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -85,11 +85,11 @@ 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">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;&gt; &quot;</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">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;&gt; &quot;</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="L29" class="LineNr"> 29 </span> <span class="Delimiter">{</span>
<span id="L30" class="LineNr"> 30 </span> <a href='../500fake-screen.mu.html#L293'>draw-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, space
<span id="L30" class="LineNr"> 30 </span> <a href='../500fake-screen.mu.html#L314'>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">&lt;-</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>
@ -98,16 +98,16 @@ if ('onhashchange' in window) {
<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> key2/eax: int <span class="Special">&lt;-</span> copy key
<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> c/eax: code-point <span class="Special">&lt;-</span> copy key2
<span id="L39" class="LineNr"> 39 </span> <a href='../501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, c, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg
<span id="L39" class="LineNr"> 39 </span> <a href='../501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, c, <span class="Constant">0xf</span>/fg, <span class="Constant">0</span>/bg
<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"># clear cursor</span>
<span id="L43" class="LineNr"> 43 </span> <a href='../501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</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="L43" class="LineNr"> 43 </span> <a href='../501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</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> <span class="muComment"># parse and eval</span>
<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> out/eax: int <span class="Special">&lt;-</span> <a href='rpn.mu.html#L61'>simplify</a> in
<span id="L46" class="LineNr"> 46 </span> <span class="muComment"># print</span>
<span id="L47" class="LineNr"> 47 </span> y <span class="Special">&lt;-</span> increment
<span id="L48" class="LineNr"> 48 </span> out, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L346'>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="L48" class="LineNr"> 48 </span> out, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L401'>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> <span class="muComment"># newline</span>
<span id="L50" class="LineNr"> 50 </span> y <span class="Special">&lt;-</span> increment
<span id="L51" class="LineNr"> 51 </span> <span class="muComment">#</span>

24
html/boot.subx.html generated
View File

@ -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 - 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; }
@ -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 */
@ -382,7 +382,7 @@ if ('onhashchange' in window) {
<span id="L322" class="LineNr"> 322 </span> ff 03 <span class="subxComment"># final index of idt = size of idt - 1</span>
<span id="L323" class="LineNr"> 323 </span> <a href='boot.subx.html#L327'>idt_start</a>/imm32/start
<span id="L324" class="LineNr"> 324 </span>
<span id="L325" class="Folded"> 325 </span><span class="Folded">+-- 55 lines: # interrupt descriptor table --------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L325" class="Folded"> 325 </span><span class="Folded">+-- 55 lines: # interrupt descriptor table ----------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L380" class="LineNr"> 380 </span>
<span id="L381" class="LineNr"> 381 </span>== code
<span id="L382" class="LineNr"> 382 </span>
@ -548,10 +548,10 @@ if ('onhashchange' in window) {
<span id="L542" class="LineNr"> 542 </span> 00 00 00 00
<span id="L543" class="LineNr"> 543 </span> 00 00 00 00
<span id="L544" class="LineNr"> 544 </span>
<span id="L545" class="Folded"> 545 </span><span class="Folded">+-- 95 lines: # Keyboard maps for translating keys to ASCII ---------------------------------------------------------------------------------------------------------------------------</span>
<span id="L545" class="Folded"> 545 </span><span class="Folded">+-- 95 lines: # Keyboard maps for translating keys to ASCII -----------------------------------------------------------------------------------------------------------------------------</span>
<span id="L640" class="LineNr"> 640 </span>
<span id="L641" class="LineNr"> 641 </span><span class="SpecialChar">Video-mode-info</span>:
<span id="L642" class="Folded"> 642 </span><span class="Folded">+-- 53 lines: # video mode info -------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L642" class="Folded"> 642 </span><span class="Folded">+-- 53 lines: # video mode info ---------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L695" class="LineNr"> 695 </span>
<span id="L696" class="LineNr"> 696 </span><span class="subxComment">## Controlling IDE (ATA) hard disks</span>
<span id="L697" class="LineNr"> 697 </span><span class="subxComment"># Uses 28-bit PIO mode.</span>
@ -795,7 +795,7 @@ if ('onhashchange' in window) {
<span id="L935" class="LineNr"> 935 </span> 5d/pop-to-ebp
<span id="L936" class="LineNr"> 936 </span> c3/return
<span id="L937" class="LineNr"> 937 </span>
<span id="L938" class="Folded"> 938 </span><span class="Folded">+--289 lines: # disk helpers ----------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L938" class="Folded"> 938 </span><span class="Folded">+--289 lines: # disk helpers ------------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L1227" class="LineNr">1227 </span>
<span id="L1228" class="LineNr">1228 </span><span class="subxComment">## Controlling a PS/2 mouse</span>
<span id="L1229" class="LineNr">1229 </span><span class="subxComment"># Uses no IRQs, just polling.</span>
@ -856,7 +856,7 @@ if ('onhashchange' in window) {
<span id="L1284" class="LineNr">1284 </span> 5d/pop-to-ebp
<span id="L1285" class="LineNr">1285 </span> c3/return
<span id="L1286" class="LineNr">1286 </span>
<span id="L1287" class="Folded">1287 </span><span class="Folded">+--147 lines: # mouse helpers ---------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L1287" class="Folded">1287 </span><span class="Folded">+--147 lines: # mouse helpers -----------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L1434" class="LineNr">1434 </span>
<span id="L1435" class="LineNr">1435 </span><span class="subxComment"># vim&#0058;ft=subx</span>
</pre>

File diff suppressed because it is too large Load Diff

View File

@ -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 - browse-slack/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; }
@ -30,7 +30,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -121,12 +121,12 @@ if ('onhashchange' in window) {
<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">var</span> s/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special">&lt;-</span> copy _s
<span id="L58" class="LineNr"> 58 </span> <span class="PreProc">var</span> sector-count/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0x400</span> <span class="muComment"># test_data</span>
<span id="L59" class="LineNr"> 59 </span><span class="CommentedCode">#? var sector-count/eax: int &lt;- copy 0x20000 # largest size tested; slow</span>
<span id="L60" class="LineNr"> 60 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0</span>/y <span class="muComment"># aborts clobber the screen starting x=0</span>
<span id="L61" class="LineNr"> 61 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;loading &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L62" class="LineNr"> 62 </span> <a href='../501draw-text.mu.html#L394'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, sector-count, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L63" class="LineNr"> 63 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; sectors from data disk..&quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L60" class="LineNr"> 60 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">0</span>/y <span class="muComment"># aborts clobber the screen starting x=0</span>
<span id="L61" class="LineNr"> 61 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;loading &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L62" class="LineNr"> 62 </span> <a href='../501draw-text.mu.html#L449'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, sector-count, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L63" class="LineNr"> 63 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; sectors from data disk..&quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L64" class="LineNr"> 64 </span> <a href='../510disk.mu.html#L1'>load-sectors</a> data-disk, <span class="Constant">0</span>/lba, sector-count, s
<span id="L65" class="LineNr"> 65 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;done&quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L65" class="LineNr"> 65 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;done&quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L66" class="LineNr"> 66 </span> <span class="muComment"># parse global data structures out of the stream</span>
<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> users-h: (handle array <a href='main.mu.html#L7'>user</a>)
<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> users-ah/eax: (addr handle array <a href='main.mu.html#L7'>user</a>) <span class="Special">&lt;-</span> address users-h
@ -146,14 +146,14 @@ if ('onhashchange' in window) {
<span id="L82" class="LineNr"> 82 </span> <span class="muComment"># render</span>
<span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> env-storage: <a href='environment.mu.html#L1'>environment</a>
<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> env/<span class="muRegEbx">ebx</span>: (addr <a href='environment.mu.html#L1'>environment</a>) <span class="Special">&lt;-</span> address env-storage
<span id="L85" class="LineNr"> 85 </span> <a href='environment.mu.html#L46'>initialize-environment</a> env, items
<span id="L85" class="LineNr"> 85 </span> <a href='environment.mu.html#L48'>initialize-environment</a> env, items
<span id="L86" class="LineNr"> 86 </span> <span class="Delimiter">{</span>
<span id="L87" class="LineNr"> 87 </span> <a href='environment.mu.html#L67'>render-environment</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, env, users, channels, items
<span id="L87" class="LineNr"> 87 </span> <a href='environment.mu.html#L69'>render-environment</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, env, users, channels, items
<span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">{</span>
<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> key/eax: byte <span class="Special">&lt;-</span> <a href='../102keyboard.subx.html#L21'>read-key</a> keyboard
<span id="L90" class="LineNr"> 90 </span> compare key, <span class="Constant">0</span>
<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">loop-if-=</span>
<span id="L92" class="LineNr"> 92 </span> <a href='environment.mu.html#L766'>update-environment</a> env, key, users, channels, items
<span id="L92" class="LineNr"> 92 </span> <a href='environment.mu.html#L841'>update-environment</a> env, key, users, channels, items
<span id="L93" class="LineNr"> 93 </span> <span class="Delimiter">}</span>
<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">loop</span>
<span id="L95" class="LineNr"> 95 </span> <span class="Delimiter">}</span>
@ -176,12 +176,12 @@ if ('onhashchange' in window) {
<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> c/eax: byte <span class="Special">&lt;-</span> <a href='../112read-byte.subx.html#L47'>peek-byte</a> in
<span id="L113" class="LineNr">113 </span> compare c, <span class="Constant">0</span>
<span id="L114" class="LineNr">114 </span> <span class="PreProc">break-if-=</span>
<span id="L115" class="LineNr">115 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">1</span>/y
<span id="L116" class="LineNr">116 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;parsed &quot;</span> <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L117" class="LineNr">117 </span> <a href='../501draw-text.mu.html#L394'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, user-idx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L118" class="LineNr">118 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; users, &quot;</span> <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L119" class="LineNr">119 </span> <a href='../501draw-text.mu.html#L394'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, item-idx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L120" class="LineNr">120 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; posts/comments&quot;</span> <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L115" class="LineNr">115 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span>/x <span class="Constant">1</span>/y
<span id="L116" class="LineNr">116 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;parsed &quot;</span> <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L117" class="LineNr">117 </span> <a href='../501draw-text.mu.html#L449'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, user-idx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L118" class="LineNr">118 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; users, &quot;</span> <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L119" class="LineNr">119 </span> <a href='../501draw-text.mu.html#L449'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, item-idx, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L120" class="LineNr">120 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; posts/comments&quot;</span> <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L121" class="LineNr">121 </span> <a href='../106stream.subx.html#L20'>clear-stream</a> record
<span id="L122" class="LineNr">122 </span> <a href='main.mu.html#L142'>parse-record</a> in, record
<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> user?/eax: boolean <span class="Special">&lt;-</span> <a href='main.mu.html#L178'>user-record?</a> record
@ -208,9 +208,9 @@ if ('onhashchange' in window) {
<span id="L144" class="LineNr">144 </span> compare paren, <span class="Constant">0x28</span>/open-paren
<span id="L145" class="LineNr">145 </span> <span class="Delimiter">{</span>
<span id="L146" class="LineNr">146 </span> <span class="PreProc">break-if-=</span>
<span id="L147" class="LineNr">147 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span> <span class="Constant">0x10</span>
<span id="L147" class="LineNr">147 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span> <span class="Constant">0x10</span>
<span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> c/eax: int <span class="Special">&lt;-</span> copy paren
<span id="L149" class="LineNr">149 </span> <a href='../501draw-text.mu.html#L394'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen c, <span class="Constant">5</span>/fg <span class="Constant">0</span>/bg
<span id="L149" class="LineNr">149 </span> <a href='../501draw-text.mu.html#L449'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen c, <span class="Constant">5</span>/fg <span class="Constant">0</span>/bg
<span id="L150" class="LineNr">150 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">&quot;parse-record: (&quot;</span>
<span id="L151" class="LineNr">151 </span> <span class="Delimiter">}</span>
<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> paren-int/eax: int <span class="Special">&lt;-</span> copy paren

14
html/font.subx.html generated
View File

@ -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 - font.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 */

20
html/mu-init.subx.html generated
View File

@ -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; }
@ -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 */
@ -78,9 +78,9 @@ if ('onhashchange' in window) {
<span id="L22" class="LineNr">22 </span> 3d/compare-eax-and 0/imm32
<span id="L23" class="LineNr">23 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8
<span id="L24" class="LineNr">24 </span> c7 0/subop/copy *Running-tests? 0/imm32/false
<span id="L25" class="LineNr">25 </span> (<a href='500fake-screen.mu.html#L441'>clear-real-screen</a>)
<span id="L26" class="LineNr">26 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='103glyph.subx.html#L401'>Real-screen-cursor-x</a></span> 0/imm32
<span id="L27" class="LineNr">27 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='103glyph.subx.html#L403'>Real-screen-cursor-y</a></span> 0/imm32
<span id="L25" class="LineNr">25 </span> (<a href='500fake-screen.mu.html#L462'>clear-real-screen</a>)
<span id="L26" class="LineNr">26 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='103glyph.subx.html#L415'>Real-screen-cursor-x</a></span> 0/imm32
<span id="L27" class="LineNr">27 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='103glyph.subx.html#L417'>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#L735'>Primary-bus-secondary-drive</a></span>)
<span id="L29" class="LineNr">29 </span> }
<span id="L30" class="LineNr">30 </span>

View File

@ -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/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; }
@ -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 */
@ -292,7 +292,7 @@ if ('onhashchange' in window) {
<span id="L232" class="LineNr">232 </span> <span class="Delimiter">}</span>
<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> get self, screen-data
<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *screen-ah
<span id="L235" class="LineNr">235 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L235" class="LineNr">235 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<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="muFunction"><a href='cell.mu.html#L238'>allocate-keyboard</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Delimiter">{</span>
@ -334,7 +334,7 @@ if ('onhashchange' in window) {
<span id="L274" class="LineNr">274 </span> <span class="Delimiter">}</span>
<span id="L275" class="LineNr">275 </span> <span class="PreProc">var</span> keyboard-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get self, keyboard-data
<span id="L276" class="LineNr">276 </span> <span class="PreProc">var</span> keyboard/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *keyboard-ah
<span id="L277" class="LineNr">277 </span> <a href='../514gap-buffer.mu.html#L1015'>rewind-gap-buffer</a> keyboard
<span id="L277" class="LineNr">277 </span> <a href='../514gap-buffer.mu.html#L1014'>rewind-gap-buffer</a> keyboard
<span id="L278" class="LineNr">278 </span><span class="Delimiter">}</span>
<span id="L279" class="LineNr">279 </span>
<span id="L280" class="LineNr">280 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='cell.mu.html#L280'>new-array</a></span> _out: (addr handle <a href='cell.mu.html#L1'>cell</a>), capacity: int <span class="Delimiter">{</span>

View File

@ -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; }
@ -31,7 +31,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -246,8 +246,8 @@ if ('onhashchange' in window) {
<span id="L181" class="LineNr"> 181 </span> tmp <span class="Special">&lt;-</span> address args
<span id="L182" class="LineNr"> 182 </span> <a href='cell.mu.html#L142'>new-pair</a> tmp, <a href='main.mu.html#L4'>main</a>, *tmp
<span id="L183" class="LineNr"> 183 </span> <span class="muComment"># clear real screen</span>
<span id="L184" class="LineNr"> 184 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <span class="Constant">0</span>/screen
<span id="L185" class="LineNr"> 185 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0</span>, <span class="Constant">0</span>
<span id="L184" class="LineNr"> 184 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <span class="Constant">0</span>/screen
<span id="L185" class="LineNr"> 185 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0</span>, <span class="Constant">0</span>
<span id="L186" class="LineNr"> 186 </span> <span class="muComment"># run</span>
<span id="L187" class="LineNr"> 187 </span> <span class="PreProc">var</span> out: (handle <a href='cell.mu.html#L1'>cell</a>)
<span id="L188" class="LineNr"> 188 </span> <span class="PreProc">var</span> out-ah/<span class="muRegEcx">ecx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special">&lt;-</span> address out
@ -331,7 +331,7 @@ if ('onhashchange' in window) {
<span id="L266" class="LineNr"> 266 </span> <span class="muComment"># turn global name into a stream</span>
<span id="L267" class="LineNr"> 267 </span> <span class="PreProc">var</span> name-storage: (stream byte <span class="Constant">0x40</span>)
<span id="L268" class="LineNr"> 268 </span> <span class="PreProc">var</span> name/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special">&lt;-</span> address name-storage
<span id="L269" class="LineNr"> 269 </span> <a href='../514gap-buffer.mu.html#L83'>emit-gap-buffer</a> partial-global-name, name
<span id="L269" class="LineNr"> 269 </span> <a href='../514gap-buffer.mu.html#L82'>emit-gap-buffer</a> partial-global-name, name
<span id="L270" class="LineNr"> 270 </span> <span class="muComment"># compute global index</span>
<span id="L271" class="LineNr"> 271 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='global.mu.html#L442'>find-symbol-in-globals</a> globals, name
<span id="L272" class="LineNr"> 272 </span> <span class="muComment"># if global not found, set error and return</span>
@ -390,7 +390,7 @@ if ('onhashchange' in window) {
<span id="L325" class="LineNr"> 325 </span> <span class="muComment"># turn global name into a stream</span>
<span id="L326" class="LineNr"> 326 </span> <span class="PreProc">var</span> name-storage: (stream byte <span class="Constant">0x40</span>)
<span id="L327" class="LineNr"> 327 </span> <span class="PreProc">var</span> name/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special">&lt;-</span> address name-storage
<span id="L328" class="LineNr"> 328 </span> <a href='../514gap-buffer.mu.html#L83'>emit-gap-buffer</a> partial-global-name, name
<span id="L328" class="LineNr"> 328 </span> <a href='../514gap-buffer.mu.html#L82'>emit-gap-buffer</a> partial-global-name, name
<span id="L329" class="LineNr"> 329 </span> <span class="muComment"># compute global curr-index</span>
<span id="L330" class="LineNr"> 330 </span> <span class="PreProc">var</span> curr-index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='global.mu.html#L442'>find-symbol-in-globals</a> globals, name
<span id="L331" class="LineNr"> 331 </span> <span class="muComment"># if global found, set error and return</span>
@ -419,7 +419,7 @@ if ('onhashchange' in window) {
<span id="L354" class="LineNr"> 354 </span> <span class="muComment"># otherwise process like a regular gap-buffer</span>
<span id="L355" class="LineNr"> 355 </span> <span class="PreProc">var</span> partial-global-name-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get self, partial-global-name
<span id="L356" class="LineNr"> 356 </span> <span class="PreProc">var</span> partial-global-name/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *partial-global-name-ah
<span id="L357" class="LineNr"> 357 </span> <a href='../514gap-buffer.mu.html#L1204'>edit-gap-buffer</a> partial-global-name, key
<span id="L357" class="LineNr"> 357 </span> <a href='../514gap-buffer.mu.html#L1203'>edit-gap-buffer</a> partial-global-name, key
<span id="L358" class="LineNr"> 358 </span> <span class="PreProc">return</span>
<span id="L359" class="LineNr"> 359 </span> <span class="Delimiter">}</span>
<span id="L360" class="LineNr"> 360 </span> <span class="muComment"># ctrl-g: go to a global (or the repl)</span>
@ -433,7 +433,7 @@ if ('onhashchange' in window) {
<span id="L368" class="LineNr"> 368 </span> <span class="PreProc">var</span> partial-global-name-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get self, partial-global-name
<span id="L369" class="LineNr"> 369 </span> <span class="PreProc">var</span> partial-global-name/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *partial-global-name-ah
<span id="L370" class="LineNr"> 370 </span> <a href='../514gap-buffer.mu.html#L19'>clear-gap-buffer</a> partial-global-name
<span id="L371" class="LineNr"> 371 </span> <a href='../514gap-buffer.mu.html#L68'>load-gap-buffer-from-stream</a> partial-global-name, current-word
<span id="L371" class="LineNr"> 371 </span> <a href='../514gap-buffer.mu.html#L67'>load-gap-buffer-from-stream</a> partial-global-name, current-word
<span id="L372" class="LineNr"> 372 </span> <span class="muComment"># enable the modal</span>
<span id="L373" class="LineNr"> 373 </span> <span class="PreProc">var</span> cursor-in-go-modal-a/eax: (addr boolean) <span class="Special">&lt;-</span> get self, cursor-in-go-modal?
<span id="L374" class="LineNr"> 374 </span> copy-to *cursor-in-go-modal-a, <span class="Constant">1</span>/true
@ -927,10 +927,10 @@ if ('onhashchange' in window) {
<span id="L862" class="LineNr"> 862 </span> tmp <span class="Special">&lt;-</span> add <span class="Constant">3</span>
<span id="L863" class="LineNr"> 863 </span> copy-to ymax, tmp
<span id="L864" class="LineNr"> 864 </span> <span class="muComment">#</span>
<span id="L865" class="LineNr"> 865 </span> <a href='../500fake-screen.mu.html#L409'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, ymin, xmax, ymax, <span class="Constant">0xf</span>/bg=modal
<span id="L865" class="LineNr"> 865 </span> <a href='../500fake-screen.mu.html#L430'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, ymin, xmax, ymax, <span class="Constant">0xf</span>/bg=modal
<span id="L866" class="LineNr"> 866 </span> add-to xmin, <span class="Constant">4</span>
<span id="L867" class="LineNr"> 867 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, ymin
<span id="L868" class="LineNr"> 868 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;go to <a href='global.mu.html#L8'>global</a> (or leave blank to go to REPL)&quot;</span>, xmax, <span class="Constant">8</span>/fg=dark-grey, <span class="Constant">0xf</span>/bg=modal
<span id="L867" class="LineNr"> 867 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, ymin
<span id="L868" class="LineNr"> 868 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;go to <a href='global.mu.html#L8'>global</a> (or leave blank to go to REPL)&quot;</span>, xmax, <span class="Constant">8</span>/fg=dark-grey, <span class="Constant">0xf</span>/bg=modal
<span id="L869" class="LineNr"> 869 </span> <span class="PreProc">var</span> partial-global-name-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get self, partial-global-name
<span id="L870" class="LineNr"> 870 </span> <span class="PreProc">var</span> _partial-global-name/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *partial-global-name-ah
<span id="L871" class="LineNr"> 871 </span> <span class="PreProc">var</span> partial-global-name/<span class="muRegEdx">edx</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> copy _partial-global-name
@ -941,12 +941,12 @@ if ('onhashchange' in window) {
<span id="L876" class="LineNr"> 876 </span> <span class="PreProc">var</span> go-modal-error/eax: (addr array byte) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *go-modal-error-ah
<span id="L877" class="LineNr"> 877 </span> compare go-modal-error, <span class="Constant">0</span>
<span id="L878" class="LineNr"> 878 </span> <span class="PreProc">break-if-=</span>
<span id="L879" class="LineNr"> 879 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, go-modal-error, xmin, xmax, ymin, <span class="Constant">4</span>/fg=<span class="Special"><a href='trace.mu.html#L197'>error</a></span>, <span class="Constant">0xf</span>/bg=modal
<span id="L879" class="LineNr"> 879 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, go-modal-error, xmin, xmax, ymin, <span class="Constant">4</span>/fg=<span class="Special"><a href='trace.mu.html#L197'>error</a></span>, <span class="Constant">0xf</span>/bg=modal
<span id="L880" class="LineNr"> 880 </span> <span class="Delimiter">}</span>
<span id="L881" class="LineNr"> 881 </span> increment ymin
<span id="L882" class="LineNr"> 882 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L883" class="LineNr"> 883 </span> <span class="PreProc">var</span> dummy2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L884" class="LineNr"> 884 </span> dummy, dummy2 <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L386'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, partial-global-name, xmin, ymin, xmax, ymax, <span class="Constant">1</span>/always-render-cursor, <span class="Constant">0</span>/fg=black, <span class="Constant">0xf</span>/bg=modal
<span id="L884" class="LineNr"> 884 </span> dummy, dummy2 <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L385'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, partial-global-name, xmin, ymin, xmax, ymax, <span class="Constant">1</span>/always-render-cursor, <span class="Constant">0</span>/fg=black, <span class="Constant">0xf</span>/bg=modal
<span id="L885" class="LineNr"> 885 </span><span class="Delimiter">}</span>
<span id="L886" class="LineNr"> 886 </span>
<span id="L887" class="LineNr"> 887 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L887'>render-go-modal-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='environment.mu.html#L8'>environment</a>) <span class="Delimiter">{</span>
@ -959,24 +959,24 @@ if ('onhashchange' in window) {
<span id="L894" class="LineNr"> 894 </span> y <span class="Special">&lt;-</span> decrement
<span id="L895" class="LineNr"> 895 </span> <span class="PreProc">var</span> height/<span class="muRegEbx">ebx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L896" class="LineNr"> 896 </span> height <span class="Special">&lt;-</span> increment
<span id="L897" class="LineNr"> 897 </span> <a href='../500fake-screen.mu.html#L409'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y, width, height, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L898" class="LineNr"> 898 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y
<span id="L899" class="LineNr"> 899 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^r &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L900" class="LineNr"> 900 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='main.mu.html#L4'>main</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L901" class="LineNr"> 901 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; enter &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0xc</span>/bg=menu-really-highlight
<span id="L902" class="LineNr"> 902 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; go &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L903" class="LineNr"> 903 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^m &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0xc</span>/bg=menu-really-highlight
<span id="L904" class="LineNr"> 904 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; create &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L905" class="LineNr"> 905 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; esc &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L906" class="LineNr"> 906 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; cancel &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L907" class="LineNr"> 907 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^a &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L908" class="LineNr"> 908 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;&lt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L909" class="LineNr"> 909 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^b &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L910" class="LineNr"> 910 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;word &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L911" class="LineNr"> 911 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^f &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L912" class="LineNr"> 912 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; word&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L913" class="LineNr"> 913 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^e &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L914" class="LineNr"> 914 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &gt;&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L897" class="LineNr"> 897 </span> <a href='../500fake-screen.mu.html#L430'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y, width, height, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L898" class="LineNr"> 898 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y
<span id="L899" class="LineNr"> 899 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^r &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L900" class="LineNr"> 900 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='main.mu.html#L4'>main</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L901" class="LineNr"> 901 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; enter &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0xc</span>/bg=menu-really-highlight
<span id="L902" class="LineNr"> 902 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; go &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L903" class="LineNr"> 903 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^m &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0xc</span>/bg=menu-really-highlight
<span id="L904" class="LineNr"> 904 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; create &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L905" class="LineNr"> 905 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; esc &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L906" class="LineNr"> 906 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; cancel &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L907" class="LineNr"> 907 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^a &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L908" class="LineNr"> 908 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;&lt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L909" class="LineNr"> 909 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^b &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L910" class="LineNr"> 910 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;word &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L911" class="LineNr"> 911 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^f &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L912" class="LineNr"> 912 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; word&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L913" class="LineNr"> 913 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^e &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L914" class="LineNr"> 914 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &gt;&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L915" class="LineNr"> 915 </span><span class="Delimiter">}</span>
<span id="L916" class="LineNr"> 916 </span>
<span id="L917" class="LineNr"> 917 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='environment.mu.html#L917'>word-at-cursor</a></span> _self: (addr <a href='environment.mu.html#L8'>environment</a>), out: (addr stream byte) <span class="Delimiter">{</span>
@ -1001,14 +1001,14 @@ if ('onhashchange' in window) {
<span id="L936" class="LineNr"> 936 </span> <span class="PreProc">var</span> curr-global/eax: (addr <a href='global.mu.html#L8'>global</a>) <span class="Special">&lt;-</span> index globals-data, cursor-offset
<span id="L937" class="LineNr"> 937 </span> <span class="PreProc">var</span> curr-global-data-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get curr-global, input
<span id="L938" class="LineNr"> 938 </span> <span class="PreProc">var</span> curr-global-data/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *curr-global-data-ah
<span id="L939" class="LineNr"> 939 </span> <a href='../514gap-buffer.mu.html#L133'>word-at-gap</a> curr-global-data, out
<span id="L939" class="LineNr"> 939 </span> <a href='../514gap-buffer.mu.html#L132'>word-at-gap</a> curr-global-data, out
<span id="L940" class="LineNr"> 940 </span> <span class="PreProc">return</span>
<span id="L941" class="LineNr"> 941 </span> <span class="Delimiter">}</span>
<span id="L942" class="LineNr"> 942 </span> <span class="muComment"># cursor in sandbox</span>
<span id="L943" class="LineNr"> 943 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/<span class="muRegEcx">ecx</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special">&lt;-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a>
<span id="L944" class="LineNr"> 944 </span> <span class="PreProc">var</span> sandbox-data-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data
<span id="L945" class="LineNr"> 945 </span> <span class="PreProc">var</span> sandbox-data/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *sandbox-data-ah
<span id="L946" class="LineNr"> 946 </span> <a href='../514gap-buffer.mu.html#L133'>word-at-gap</a> sandbox-data, out
<span id="L946" class="LineNr"> 946 </span> <a href='../514gap-buffer.mu.html#L132'>word-at-gap</a> sandbox-data, out
<span id="L947" class="LineNr"> 947 </span><span class="Delimiter">}</span>
<span id="L948" class="LineNr"> 948 </span>
<span id="L949" class="LineNr"> 949 </span><span class="muComment"># Gotcha: some saved state may not load.</span>
@ -1017,18 +1017,18 @@ if ('onhashchange' in window) {
<span id="L952" class="LineNr"> 952 </span> <span class="muComment"># data-disk -&gt; stream</span>
<span id="L953" class="LineNr"> 953 </span> <span class="PreProc">var</span> s-storage: (stream byte <span class="Constant">0x40000</span>) <span class="muComment"># space for 0x200/sectors</span>
<span id="L954" class="LineNr"> 954 </span> <span class="PreProc">var</span> s/<span class="muRegEbx">ebx</span>: (addr stream byte) <span class="Special">&lt;-</span> address s-storage
<span id="L955" class="LineNr"> 955 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;loading sectors from data disk&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L955" class="LineNr"> 955 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;loading sectors from data disk&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L956" class="LineNr"> 956 </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="L957" class="LineNr"> 957 </span> <a href='../510disk.mu.html#L1'>load-sectors</a> data-disk, <span class="Constant">0</span>/lba, <span class="Constant">0x200</span>/sectors, s
<span id="L958" class="LineNr"> 958 </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="L959" class="LineNr"> 959 </span> <span class="muComment"># stream -&gt; gap-buffer (HACK: we temporarily cannibalize the sandbox's gap-buffer)</span>
<span id="L960" class="LineNr"> 960 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;parsing&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L960" class="LineNr"> 960 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;parsing&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L961" class="LineNr"> 961 </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="L962" class="LineNr"> 962 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/eax: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special">&lt;-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a>
<span id="L963" class="LineNr"> 963 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data
<span id="L964" class="LineNr"> 964 </span> <span class="PreProc">var</span> data/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *data-ah
<span id="L965" class="LineNr"> 965 </span> <a href='../514gap-buffer.mu.html#L68'>load-gap-buffer-from-stream</a> data, s
<span id="L966" class="LineNr"> 966 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; into gap buffer&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L965" class="LineNr"> 965 </span> <a href='../514gap-buffer.mu.html#L67'>load-gap-buffer-from-stream</a> data, s
<span id="L966" class="LineNr"> 966 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; into gap buffer&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L967" class="LineNr"> 967 </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="L968" class="LineNr"> 968 </span> <a href='../106stream.subx.html#L20'>clear-stream</a> s
<span id="L969" class="LineNr"> 969 </span> <span class="muComment"># read: gap-buffer -&gt; cell</span>
@ -1038,7 +1038,7 @@ if ('onhashchange' in window) {
<span id="L973" class="LineNr"> 973 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special">&lt;-</span> address trace-storage
<span id="L974" class="LineNr"> 974 </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="L975" class="LineNr"> 975 </span> <a href='read.mu.html#L1'>read-cell</a> data, initial-root, trace
<span id="L976" class="LineNr"> 976 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; into s-expressions&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L976" class="LineNr"> 976 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; into s-expressions&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L977" class="LineNr"> 977 </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="L978" class="LineNr"> 978 </span> <a href='../514gap-buffer.mu.html#L19'>clear-gap-buffer</a> data
<span id="L979" class="LineNr"> 979 </span> <span class="muComment">#</span>
@ -1065,7 +1065,7 @@ if ('onhashchange' in window) {
<span id="L1000" class="LineNr">1000 </span> <a href='global.mu.html#L30'>load-globals</a> globals-cell-ah, globals
<span id="L1001" class="LineNr">1001 </span> <span class="Delimiter">}</span>
<span id="L1002" class="LineNr">1002 </span> <span class="muComment"># sandbox = assoc(initial-root, 'sandbox)</span>
<span id="L1003" class="LineNr">1003 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;loading sandbox&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L1003" class="LineNr">1003 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;loading sandbox&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L1004" class="LineNr">1004 </span> <span class="PreProc">var</span> sandbox-literal-storage: (handle <a href='cell.mu.html#L1'>cell</a>)
<span id="L1005" class="LineNr">1005 </span> <span class="PreProc">var</span> sandbox-literal-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special">&lt;-</span> address sandbox-literal-storage
<span id="L1006" class="LineNr">1006 </span> <a href='cell.mu.html#L43'>new-symbol</a> sandbox-literal-ah, <span class="Constant">&quot;sandbox&quot;</span>
@ -1085,7 +1085,7 @@ if ('onhashchange' in window) {
<span id="L1020" class="LineNr">1020 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L1'>sandbox</a>/eax: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special">&lt;-</span> get self, <a href='sandbox.mu.html#L1'>sandbox</a>
<span id="L1021" class="LineNr">1021 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get <a href='sandbox.mu.html#L1'>sandbox</a>, data
<span id="L1022" class="LineNr">1022 </span> <span class="PreProc">var</span> data/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *data-ah
<span id="L1023" class="LineNr">1023 </span> <a href='../514gap-buffer.mu.html#L68'>load-gap-buffer-from-stream</a> data, sandbox-data
<span id="L1023" class="LineNr">1023 </span> <a href='../514gap-buffer.mu.html#L67'>load-gap-buffer-from-stream</a> data, sandbox-data
<span id="L1024" class="LineNr">1024 </span> <span class="Delimiter">}</span>
<span id="L1025" class="LineNr">1025 </span><span class="Delimiter">}</span>
<span id="L1026" class="LineNr">1026 </span>

View File

@ -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; }
@ -32,7 +32,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -83,9 +83,9 @@ if ('onhashchange' in window) {
<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">break-if-!=</span>
<span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> old-x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> old-y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L20" class="LineNr"> 20 </span> old-x, old-y <span class="Special">&lt;-</span> <a href='../500fake-screen.mu.html#L230'>cursor-position</a> <span class="Constant">0</span>/screen
<span id="L20" class="LineNr"> 20 </span> old-x, old-y <span class="Special">&lt;-</span> <a href='../500fake-screen.mu.html#L251'>cursor-position</a> <span class="Constant">0</span>/screen
<span id="L21" class="LineNr"> 21 </span> <a href='../315stack-debug.subx.html#L26'>show-stack-state</a>
<span id="L22" class="LineNr"> 22 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, old-x, old-y
<span id="L22" class="LineNr"> 22 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, old-x, old-y
<span id="L23" class="LineNr"> 23 </span> <span class="Delimiter">}</span>
<span id="L24" class="LineNr"> 24 </span> <span class="muComment"># show intermediate progress on screen if necessary</span>
<span id="L25" class="LineNr"> 25 </span> <span class="muComment"># treat input at the real keyboard as interrupting</span>
@ -128,7 +128,7 @@ if ('onhashchange' in window) {
<span id="L62" class="LineNr"> 62 </span><span class="CommentedCode">#? compare foo, 0</span>
<span id="L63" class="LineNr"> 63 </span><span class="CommentedCode">#? loop-if-=</span>
<span id="L64" class="LineNr"> 64 </span><span class="CommentedCode">#? }</span>
<span id="L65" class="Folded"> 65 </span><span class="Folded">+-- 19 lines: # trace &quot;evaluate &quot; in &quot; in environment &quot; env ---------------------------------------------------------------------------------------------------------------------------</span>
<span id="L65" class="Folded"> 65 </span><span class="Folded">+-- 19 lines: # trace &quot;evaluate &quot; in &quot; in environment &quot; env -----------------------------------------------------------------------------------------------------------------------------</span>
<span id="L84" class="LineNr"> 84 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace
<span id="L85" class="LineNr"> 85 </span> <span class="PreProc">var</span> in/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *in-ah
<span id="L86" class="LineNr"> 86 </span> <span class="Delimiter">{</span>
@ -652,7 +652,7 @@ if ('onhashchange' in window) {
<span id="L604" class="LineNr"> 604 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L605" class="LineNr"> 605 </span> <span class="PreProc">return</span>
<span id="L606" class="LineNr"> 606 </span> <span class="Delimiter">}</span>
<span id="L607" class="Folded"> 607 </span><span class="Folded">+-- 15 lines: # trace &quot;evaluate function call elements in &quot; in ------------------------------------------------------------------------------------------------------------------------</span>
<span id="L607" class="Folded"> 607 </span><span class="Folded">+-- 15 lines: # trace &quot;evaluate function call elements in &quot; in --------------------------------------------------------------------------------------------------------------------------</span>
<span id="L622" class="LineNr"> 622 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace
<span id="L623" class="LineNr"> 623 </span> <span class="PreProc">var</span> evaluated-list-storage: (handle <a href='cell.mu.html#L1'>cell</a>)
<span id="L624" class="LineNr"> 624 </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">&lt;-</span> address evaluated-list-storage
@ -694,7 +694,7 @@ if ('onhashchange' in window) {
<span id="L660" class="LineNr"> 660 </span> <a href='evaluate.mu.html#L681'>apply</a> function-ah, args-ah, _out-ah, globals, trace, inner-screen-var, inner-keyboard-var, definitions-created, call-number
<span id="L661" class="LineNr"> 661 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">&quot;Y&quot;</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg
<span id="L662" class="LineNr"> 662 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L663" class="Folded"> 663 </span><span class="Folded">+-- 15 lines: # trace &quot;=&gt; &quot; _out-ah ---------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L663" class="Folded"> 663 </span><span class="Folded">+-- 15 lines: # trace &quot;=&gt; &quot; _out-ah -----------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L678" class="LineNr"> 678 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">&quot;Z&quot;</span>, <span class="Constant">4</span>/fg, <span class="Constant">0</span>/bg
<span id="L679" class="LineNr"> 679 </span><span class="Delimiter">}</span>
<span id="L680" class="LineNr"> 680 </span>
@ -711,7 +711,7 @@ if ('onhashchange' in window) {
<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="muComment"># if it's not a primitive function it must be an anonymous function</span>
<span id="L694" class="Folded"> 694 </span><span class="Folded">+-- 19 lines: # trace &quot;apply anonymous function &quot; f &quot; in environment &quot; env ------------------------------------------------------------------------------------------------------------</span>
<span id="L694" class="Folded"> 694 </span><span class="Folded">+-- 19 lines: # trace &quot;apply anonymous function &quot; f &quot; in environment &quot; env --------------------------------------------------------------------------------------------------------------</span>
<span id="L713" class="LineNr"> 713 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace
<span id="L714" class="LineNr"> 714 </span> <span class="Delimiter">{</span>
<span id="L715" class="LineNr"> 715 </span> <span class="PreProc">var</span> f-type/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special">&lt;-</span> get f, <span class="PreProc">type</span>
@ -812,7 +812,7 @@ if ('onhashchange' in window) {
<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="muComment"># Params can only be symbols or pairs. Args can be anything.</span>
<span id="L813" class="Folded"> 813 </span><span class="Folded">+-- 28 lines: # trace &quot;pushing bindings from &quot; params &quot; to &quot; args ---------------------------------------------------------------------------------------------------------------------</span>
<span id="L813" class="Folded"> 813 </span><span class="Folded">+-- 28 lines: # trace &quot;pushing bindings from &quot; params &quot; to &quot; args -----------------------------------------------------------------------------------------------------------------------</span>
<span id="L841" class="LineNr"> 841 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace
<span id="L842" class="LineNr"> 842 </span> <span class="PreProc">var</span> params-type/eax: (addr int) <span class="Special">&lt;-</span> get params, <span class="PreProc">type</span>
<span id="L843" class="LineNr"> 843 </span> compare *params-type, <span class="Constant">2</span>/symbol
@ -919,7 +919,7 @@ if ('onhashchange' in window) {
<span id="L944" class="LineNr"> 944 </span> <a href='global.mu.html#L369'>lookup-symbol-in-globals</a> sym, out, globals, trace, inner-screen-var, inner-keyboard-var
<span id="L945" class="LineNr"> 945 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">&quot;x&quot;</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg
<span id="L946" class="LineNr"> 946 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L947" class="Folded"> 947 </span><span class="Folded">+-- 23 lines: # trace &quot;=&gt; &quot; out &quot; (global)&quot; -------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L947" class="Folded"> 947 </span><span class="Folded">+-- 23 lines: # trace &quot;=&gt; &quot; out &quot; (global)&quot; ---------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L970" class="LineNr"> 970 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">&quot;y&quot;</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg
<span id="L971" class="LineNr"> 971 </span> <span class="PreProc">return</span>
<span id="L972" class="LineNr"> 972 </span> <span class="Delimiter">}</span>
@ -958,7 +958,7 @@ if ('onhashchange' in window) {
<span id="L1005" class="LineNr">1005 </span> <span class="Delimiter">{</span>
<span id="L1006" class="LineNr">1006 </span> <span class="PreProc">break-if-=</span>
<span id="L1007" class="LineNr">1007 </span> <a href='evaluate.mu.html#L1265'>cdr</a> env-head, out, trace
<span id="L1008" class="Folded">1008 </span><span class="Folded">+-- 23 lines: # trace &quot;=&gt; &quot; out &quot; (match)&quot; --------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L1008" class="Folded">1008 </span><span class="Folded">+-- 23 lines: # trace &quot;=&gt; &quot; out &quot; (match)&quot; ----------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L1031" class="LineNr">1031 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L1032" class="LineNr">1032 </span> <span class="PreProc">return</span>
<span id="L1033" class="LineNr">1033 </span> <span class="Delimiter">}</span>
@ -968,7 +968,7 @@ if ('onhashchange' in window) {
<span id="L1037" class="LineNr">1037 </span> <a href='evaluate.mu.html#L1265'>cdr</a> env, env-tail-ah, trace
<span id="L1038" class="LineNr">1038 </span> <a href='evaluate.mu.html#L900'>lookup-symbol</a> sym, out, *env-tail-ah, globals, trace, inner-screen-var, inner-keyboard-var
<span id="L1039" class="LineNr">1039 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L1040" class="Folded">1040 </span><span class="Folded">+-- 23 lines: # trace &quot;=&gt; &quot; out &quot; (recurse)&quot; ------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L1040" class="Folded">1040 </span><span class="Folded">+-- 23 lines: # trace &quot;=&gt; &quot; out &quot; (recurse)&quot; --------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L1063" class="LineNr">1063 </span><span class="Delimiter">}</span>
<span id="L1064" class="LineNr">1064 </span>
<span id="L1065" class="LineNr">1065 </span><span class="PreProc">fn</span> <span class="muTest"><a href='evaluate.mu.html#L1065'>test-lookup-symbol-in-env</a></span> <span class="Delimiter">{</span>
@ -1071,7 +1071,7 @@ if ('onhashchange' in window) {
<span id="L1162" class="LineNr">1162 </span> <a href='global.mu.html#L504'>mutate-binding-in-globals</a> name, val, globals, trace
<span id="L1163" class="LineNr">1163 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">&quot;x&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L1164" class="LineNr">1164 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L1165" class="Folded">1165 </span><span class="Folded">+-- 19 lines: # trace &quot;=&gt; &quot; val &quot; (global)&quot; -------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L1165" class="Folded">1165 </span><span class="Folded">+-- 19 lines: # trace &quot;=&gt; &quot; val &quot; (global)&quot; ---------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L1184" class="LineNr">1184 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">&quot;y&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L1185" class="LineNr">1185 </span> <span class="PreProc">return</span>
<span id="L1186" class="LineNr">1186 </span> <span class="Delimiter">}</span>
@ -1310,7 +1310,7 @@ if ('onhashchange' in window) {
<span id="L1419" class="LineNr">1419 </span> <span class="PreProc">var</span> a-val/<span class="muRegEcx">ecx</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> copy _a-val
<span id="L1420" class="LineNr">1420 </span> <span class="PreProc">var</span> b-val-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get b, keyboard-data
<span id="L1421" class="LineNr">1421 </span> <span class="PreProc">var</span> b-val/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *b-val-ah
<span id="L1422" class="LineNr">1422 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L664'>gap-buffers-equal?</a> a-val, b-val
<span id="L1422" class="LineNr">1422 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L663'>gap-buffers-equal?</a> a-val, b-val
<span id="L1423" class="LineNr">1423 </span> <span class="PreProc">return</span> result
<span id="L1424" class="LineNr">1424 </span> <span class="Delimiter">}</span>
<span id="L1425" class="LineNr">1425 </span> <span class="muComment"># if objects are arrays, check if they have the same contents</span>

View File

@ -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/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; }
@ -29,7 +29,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -91,7 +91,7 @@ if ('onhashchange' in window) {
<span id="L28" class="LineNr"> 28 </span><span class="Delimiter">}</span>
<span id="L29" class="LineNr"> 29 </span>
<span id="L30" class="LineNr"> 30 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L30'>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>
<span id="L31" class="LineNr"> 31 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;loading globals:&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L31" class="LineNr"> 31 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;loading globals:&quot;</span>, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> remaining-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special">&lt;-</span> copy in
<span id="L33" class="LineNr"> 33 </span> <span class="Delimiter">{</span>
<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> _remaining/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *remaining-ah
@ -109,8 +109,8 @@ if ('onhashchange' in window) {
<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> _name-data/eax: (addr stream byte) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *name-data-ah
<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> name-data/<span class="muRegEdx">edx</span>: (addr stream byte) <span class="Special">&lt;-</span> copy _name-data
<span id="L48" class="LineNr"> 48 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> name-data
<span id="L49" class="LineNr"> 49 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L50" class="LineNr"> 50 </span> <a href='../501draw-text.mu.html#L240'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, name-data, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L49" class="LineNr"> 49 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
<span id="L50" class="LineNr"> 50 </span> <a href='../501draw-text.mu.html#L295'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, name-data, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L51" class="LineNr"> 51 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special">&lt;-</span> get curr, right
<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> value/eax: (addr <a href='cell.mu.html#L1'>cell</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *value-ah
<span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> value-data-ah/eax: (addr handle stream byte) <span class="Special">&lt;-</span> get value, text-data
@ -121,7 +121,7 @@ if ('onhashchange' in window) {
<span id="L58" class="LineNr"> 58 </span> <a href='../120allocate.subx.html#L43'>allocate</a> value-gap-buffer-ah
<span id="L59" class="LineNr"> 59 </span> <span class="PreProc">var</span> value-gap-buffer/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *value-gap-buffer-ah
<span id="L60" class="LineNr"> 60 </span> <a href='../514gap-buffer.mu.html#L11'>initialize-gap-buffer</a> value-gap-buffer, <span class="Constant">0x40000</span>/256KB
<span id="L61" class="LineNr"> 61 </span> <a href='../514gap-buffer.mu.html#L68'>load-gap-buffer-from-stream</a> value-gap-buffer, value-data
<span id="L61" class="LineNr"> 61 </span> <a href='../514gap-buffer.mu.html#L67'>load-gap-buffer-from-stream</a> value-gap-buffer, value-data
<span id="L62" class="LineNr"> 62 </span> <a href='global.mu.html#L558'>load-lexical-scope</a> value-gap-buffer-ah, self
<span id="L63" class="LineNr"> 63 </span> <span class="PreProc">loop</span>
<span id="L64" class="LineNr"> 64 </span> <span class="Delimiter">}</span>
@ -168,7 +168,7 @@ if ('onhashchange' in window) {
<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">&quot;null gap buffer&quot;</span>
<span id="L107" class="LineNr">107 </span> <span class="Delimiter">}</span>
<span id="L108" class="LineNr">108 </span> <a href='../514gap-buffer.mu.html#L88'>append-gap-buffer</a> curr-input, out
<span id="L108" class="LineNr">108 </span> <a href='../514gap-buffer.mu.html#L87'>append-gap-buffer</a> curr-input, out
<span id="L109" class="LineNr">109 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">&quot;])\n&quot;</span>
<span id="L110" class="LineNr">110 </span> <span class="Delimiter">}</span>
<span id="L111" class="LineNr">111 </span> curr-index <span class="Special">&lt;-</span> increment
@ -179,7 +179,7 @@ if ('onhashchange' in window) {
<span id="L116" class="LineNr">116 </span>
<span id="L117" class="LineNr">117 </span><span class="muComment"># globals layout: 1 char padding, 41 code, 1 padding, 41 code, 1 padding = 85 chars</span>
<span id="L118" class="LineNr">118 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L118'>render-globals</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>), show-cursor?: boolean <span class="Delimiter">{</span>
<span id="L119" class="LineNr">119 </span> <a href='../500fake-screen.mu.html#L409'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x55</span>/xmax, <span class="Constant">0x2f</span>/ymax=screen-height-without-menu, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L119" class="LineNr">119 </span> <a href='../500fake-screen.mu.html#L430'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x55</span>/xmax, <span class="Constant">0x2f</span>/ymax=screen-height-without-menu, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L120" class="LineNr">120 </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">&lt;-</span> copy _self
<span id="L121" class="LineNr">121 </span> compare self, <span class="Constant">0</span>
<span id="L122" class="LineNr">122 </span> <span class="Delimiter">{</span>
@ -245,14 +245,14 @@ if ('onhashchange' in window) {
<span id="L182" class="LineNr">182 </span> compare y, y2
<span id="L183" class="LineNr">183 </span> <span class="Delimiter">{</span>
<span id="L184" class="LineNr">184 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L185" class="LineNr">185 </span> x, y <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L386'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, curr-input, <span class="Constant">1</span>/padding-left, y1, <span class="Constant">0x2a</span>/xmax, <span class="Constant">0x2f</span>/ymax, cursor-in-current-line?, <span class="Constant">7</span>/fg=definition, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L185" class="LineNr">185 </span> x, y <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L385'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, curr-input, <span class="Constant">1</span>/padding-left, y1, <span class="Constant">0x2a</span>/xmax, <span class="Constant">0x2f</span>/ymax, cursor-in-current-line?, <span class="Constant">7</span>/fg=definition, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L186" class="LineNr">186 </span> y <span class="Special">&lt;-</span> increment
<span id="L187" class="LineNr">187 </span> y <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, curr-trace, <span class="Constant">1</span>/padding-left, y, <span class="Constant">0x2a</span>/xmax, <span class="Constant">0x2f</span>/ymax, <span class="Constant">0</span>/no-cursor
<span id="L188" class="LineNr">188 </span> y <span class="Special">&lt;-</span> increment
<span id="L189" class="LineNr">189 </span> copy-to y1, y
<span id="L190" class="LineNr">190 </span> <span class="PreProc">break</span> $render-globals:render-global
<span id="L191" class="LineNr">191 </span> <span class="Delimiter">}</span>
<span id="L192" class="LineNr">192 </span> x, y <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L386'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, curr-input, <span class="Constant">0x2b</span>/xmin, y2, <span class="Constant">0x54</span>/xmax, <span class="Constant">0x2f</span>/ymax, cursor-in-current-line?, <span class="Constant">7</span>/fg=definition, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L192" class="LineNr">192 </span> x, y <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L385'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, curr-input, <span class="Constant">0x2b</span>/xmin, y2, <span class="Constant">0x54</span>/xmax, <span class="Constant">0x2f</span>/ymax, cursor-in-current-line?, <span class="Constant">7</span>/fg=definition, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L193" class="LineNr">193 </span> y <span class="Special">&lt;-</span> increment
<span id="L194" class="LineNr">194 </span> y <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, curr-trace, <span class="Constant">0x2b</span>/xmin, y, <span class="Constant">0x54</span>/xmax, <span class="Constant">0x2f</span>/ymax, <span class="Constant">0</span>/no-cursor
<span id="L195" class="LineNr">195 </span> y <span class="Special">&lt;-</span> increment
@ -275,22 +275,22 @@ if ('onhashchange' in window) {
<span id="L212" class="LineNr">212 </span> y <span class="Special">&lt;-</span> decrement
<span id="L213" class="LineNr">213 </span> <span class="PreProc">var</span> height/<span class="muRegEbx">ebx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L214" class="LineNr">214 </span> height <span class="Special">&lt;-</span> increment
<span id="L215" class="LineNr">215 </span> <a href='../500fake-screen.mu.html#L409'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y, width, height, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L216" class="LineNr">216 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y
<span id="L217" class="LineNr">217 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^r &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L218" class="LineNr">218 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='main.mu.html#L4'>main</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L219" class="LineNr">219 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^s &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L220" class="LineNr">220 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='sandbox.mu.html#L1'>sandbox</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L221" class="LineNr">221 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^g &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L222" class="LineNr">222 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; go to &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L223" class="LineNr">223 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^a &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L224" class="LineNr">224 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;&lt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L225" class="LineNr">225 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^b &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L226" class="LineNr">226 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;word &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L227" class="LineNr">227 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^f &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L228" class="LineNr">228 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; word&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L229" class="LineNr">229 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^e &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L230" class="LineNr">230 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &gt;&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L215" class="LineNr">215 </span> <a href='../500fake-screen.mu.html#L430'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y, width, height, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L216" class="LineNr">216 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y
<span id="L217" class="LineNr">217 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^r &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L218" class="LineNr">218 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='main.mu.html#L4'>main</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L219" class="LineNr">219 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^s &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L220" class="LineNr">220 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='sandbox.mu.html#L1'>sandbox</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L221" class="LineNr">221 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^g &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L222" class="LineNr">222 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; go to &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L223" class="LineNr">223 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^a &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L224" class="LineNr">224 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;&lt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L225" class="LineNr">225 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^b &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L226" class="LineNr">226 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;word &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L227" class="LineNr">227 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^f &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L228" class="LineNr">228 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; word&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L229" class="LineNr">229 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^e &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L230" class="LineNr">230 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &gt;&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<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='global.mu.html#L233'>edit-globals</a></span> _self: (addr <a href='global.mu.html#L1'>global-table</a>), key: grapheme <span class="Delimiter">{</span>
@ -315,7 +315,7 @@ if ('onhashchange' in window) {
<span id="L252" class="LineNr">252 </span> <span class="PreProc">var</span> curr-global/eax: (addr <a href='global.mu.html#L8'>global</a>) <span class="Special">&lt;-</span> index data, cursor-offset
<span id="L253" class="LineNr">253 </span> <span class="PreProc">var</span> curr-editor-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get curr-global, input
<span id="L254" class="LineNr">254 </span> <span class="PreProc">var</span> curr-editor/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *curr-editor-ah
<span id="L255" class="LineNr">255 </span> <a href='../514gap-buffer.mu.html#L1204'>edit-gap-buffer</a> curr-editor, key
<span id="L255" class="LineNr">255 </span> <a href='../514gap-buffer.mu.html#L1203'>edit-gap-buffer</a> curr-editor, key
<span id="L256" class="LineNr">256 </span><span class="Delimiter">}</span>
<span id="L257" class="LineNr">257 </span>
<span id="L258" class="LineNr">258 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L258'>create-empty-global</a></span> _self: (addr <a href='global.mu.html#L1'>global-table</a>), name-stream: (addr stream byte), capacity: int <span class="Delimiter">{</span>
@ -683,14 +683,14 @@ if ('onhashchange' in window) {
<span id="L620" class="LineNr">620 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='global.mu.html#L620'>render-image-definition</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#L8'>global</a>), x: int, _y: int<span class="PreProc"> -&gt; </span>_/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
<span id="L621" class="LineNr">621 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='global.mu.html#L8'>global</a>) <span class="Special">&lt;-</span> copy _self
<span id="L622" class="LineNr">622 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy _y
<span id="L623" class="LineNr">623 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span> <span class="Constant">0x20</span>
<span id="L624" class="LineNr">624 </span> <a href='../501draw-text.mu.html#L394'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">4</span>/fg <span class="Constant">0</span>/bg
<span id="L623" class="LineNr">623 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x20</span> <span class="Constant">0x20</span>
<span id="L624" class="LineNr">624 </span> <a href='../501draw-text.mu.html#L449'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, y, <span class="Constant">4</span>/fg <span class="Constant">0</span>/bg
<span id="L625" class="LineNr">625 </span> <span class="Delimiter">{</span>
<span id="L626" class="LineNr">626 </span> <span class="PreProc">var</span> name-ah/eax: (addr handle array byte) <span class="Special">&lt;-</span> get self, name
<span id="L627" class="LineNr">627 </span> <span class="PreProc">var</span> _name/eax: (addr array byte) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *name-ah
<span id="L628" class="LineNr">628 </span> <span class="PreProc">var</span> name/<span class="muRegEdx">edx</span>: (addr array byte) <span class="Special">&lt;-</span> copy _name
<span id="L629" class="LineNr">629 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L132'>draw-text-rightward-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;define &quot;</span>, x y, <span class="Constant">7</span>/fg=definition, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L630" class="LineNr">630 </span> x <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L132'>draw-text-rightward-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, name, x y, <span class="Constant">7</span>/fg=definition, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L629" class="LineNr">629 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L139'>draw-text-rightward-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;define &quot;</span>, x y, <span class="Constant">7</span>/fg=definition, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L630" class="LineNr">630 </span> x <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L139'>draw-text-rightward-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, name, x y, <span class="Constant">7</span>/fg=definition, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L631" class="LineNr">631 </span> <span class="Delimiter">}</span>
<span id="L632" class="LineNr">632 </span> y <span class="Special">&lt;-</span> increment <span class="muComment"># skip definition line</span>
<span id="L633" class="LineNr">633 </span> <span class="muComment"># y is now in pixels</span>

View File

@ -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/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; }
@ -32,7 +32,7 @@ a { color:inherit; }
-->
</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">&lt;-</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">&lt;-</span> <a href='../120allocate.subx.html#L235'>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 &lt;- copy x</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 &quot;=&gt; &quot; x-ah ------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L68" class="Folded"> 68 </span><span class="Folded">+-- 15 lines: # trace &quot;=&gt; &quot; 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, &quot;^&quot;, 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>
@ -139,7 +139,7 @@ if ('onhashchange' in window) {
<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 &quot;=&gt; &quot; x-ah ------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L103" class="Folded">103 </span><span class="Folded">+-- 15 lines: # trace &quot;=&gt; &quot; 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, &quot;c&quot;, 4/fg 0/bg</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, &quot;z&quot;, 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 &quot;=&gt; &quot; x-ah ------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L256" class="Folded">256 </span><span class="Folded">+-- 15 lines: # trace &quot;=&gt; &quot; 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"> -&gt; </span>_/eax: boolean <span class="Delimiter">{</span>
@ -324,7 +324,7 @@ if ('onhashchange' in window) {
<span id="L313" class="LineNr">313 </span> <a href='../514gap-buffer.mu.html#L11'>initialize-gap-buffer</a> buffer, <span class="Constant">0x40</span>/max-symbol-size
<span id="L314" class="LineNr">314 </span> <span class="muComment"># scan for first non-$</span>
<span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L236'>read-grapheme</a> sym-data
<span id="L316" class="LineNr">316 </span> <a href='../514gap-buffer.mu.html#L441'>add-grapheme-at-gap</a> buffer, g
<span id="L316" class="LineNr">316 </span> <a href='../514gap-buffer.mu.html#L440'>add-grapheme-at-gap</a> buffer, g
<span id="L317" class="LineNr">317 </span> <span class="Delimiter">{</span>
<span id="L318" class="LineNr">318 </span> compare g, <span class="Constant">0x24</span>/dollar
<span id="L319" class="LineNr">319 </span> <span class="PreProc">break-if-!=</span>
@ -335,7 +335,7 @@ if ('onhashchange' in window) {
<span id="L324" class="LineNr">324 </span> <span class="PreProc">return</span> <span class="muComment"># symbol is all '$'s; do nothing</span>
<span id="L325" class="LineNr">325 </span> <span class="Delimiter">}</span>
<span id="L326" class="LineNr">326 </span> g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L236'>read-grapheme</a> sym-data
<span id="L327" class="LineNr">327 </span> <a href='../514gap-buffer.mu.html#L441'>add-grapheme-at-gap</a> buffer, g
<span id="L327" class="LineNr">327 </span> <a href='../514gap-buffer.mu.html#L440'>add-grapheme-at-gap</a> buffer, g
<span id="L328" class="LineNr">328 </span> <span class="PreProc">loop</span>
<span id="L329" class="LineNr">329 </span> <span class="Delimiter">}</span>
<span id="L330" class="LineNr">330 </span> <span class="PreProc">var</span> tokenization-needed?: boolean
@ -351,11 +351,11 @@ if ('onhashchange' in window) {
<span id="L340" class="LineNr">340 </span> compare curr-operator?, operator-so-far?
<span id="L341" class="LineNr">341 </span> <span class="PreProc">break-if-=</span>
<span id="L342" class="LineNr">342 </span> <span class="muComment"># state change; insert a space</span>
<span id="L343" class="LineNr">343 </span> <a href='../514gap-buffer.mu.html#L441'>add-grapheme-at-gap</a> buffer, <span class="Constant">0x20</span>/space
<span id="L343" class="LineNr">343 </span> <a href='../514gap-buffer.mu.html#L440'>add-grapheme-at-gap</a> buffer, <span class="Constant">0x20</span>/space
<span id="L344" class="LineNr">344 </span> operator-so-far? <span class="Special">&lt;-</span> copy curr-operator?
<span id="L345" class="LineNr">345 </span> copy-to tokenization-needed?, <span class="Constant">1</span>/true
<span id="L346" class="LineNr">346 </span> <span class="Delimiter">}</span>
<span id="L347" class="LineNr">347 </span> <a href='../514gap-buffer.mu.html#L441'>add-grapheme-at-gap</a> buffer, g
<span id="L347" class="LineNr">347 </span> <a href='../514gap-buffer.mu.html#L440'>add-grapheme-at-gap</a> buffer, g
<span id="L348" class="LineNr">348 </span> <span class="PreProc">loop</span>
<span id="L349" class="LineNr">349 </span> <span class="Delimiter">}</span>
<span id="L350" class="LineNr">350 </span> compare tokenization-needed?, <span class="Constant">0</span>/false
@ -593,7 +593,7 @@ if ('onhashchange' in window) {
<span id="L582" class="LineNr">582 </span> <span class="muComment">#</span>
<span id="L583" class="LineNr">583 </span> <span class="PreProc">var</span> actual-buffer-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L584" class="LineNr">584 </span> <span class="PreProc">var</span> actual-buffer/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address actual-buffer-storage
<span id="L585" class="LineNr">585 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> actual-buffer, actual
<span id="L585" class="LineNr">585 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> actual-buffer, actual
<span id="L586" class="LineNr">586 </span> <span class="PreProc">var</span> actual-tree-h: (handle <a href='cell.mu.html#L1'>cell</a>)
<span id="L587" class="LineNr">587 </span> <span class="PreProc">var</span> actual-tree-ah/<span class="muRegEsi">esi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special">&lt;-</span> address actual-tree-h
<span id="L588" class="LineNr">588 </span> <a href='read.mu.html#L1'>read-cell</a> actual-buffer, actual-tree-ah, trace
@ -604,7 +604,7 @@ if ('onhashchange' in window) {
<span id="L593" class="LineNr">593 </span> <span class="muComment">#</span>
<span id="L594" class="LineNr">594 </span> <span class="PreProc">var</span> expected-buffer-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L595" class="LineNr">595 </span> <span class="PreProc">var</span> expected-buffer/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address expected-buffer-storage
<span id="L596" class="LineNr">596 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> expected-buffer, expected
<span id="L596" class="LineNr">596 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> expected-buffer, expected
<span id="L597" class="LineNr">597 </span> <span class="PreProc">var</span> expected-tree-h: (handle <a href='cell.mu.html#L1'>cell</a>)
<span id="L598" class="LineNr">598 </span> <span class="PreProc">var</span> expected-tree-ah/<span class="muRegEdi">edi</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special">&lt;-</span> address expected-tree-h
<span id="L599" class="LineNr">599 </span> <a href='infix.mu.html#L606'>read-without-infix</a> expected-buffer, expected-tree-ah, trace

View File

@ -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/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; }
@ -27,7 +27,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -32,7 +32,7 @@ a { color:inherit; }
-->
</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 &quot;macroexpand &quot; expr-ah ------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L2" class="Folded"> 2 </span><span class="Folded">+-- 15 lines: # trace &quot;macroexpand &quot; 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="CommentedCode">#? clear-screen 0</span>
<span id="L19" class="LineNr"> 19 </span><span class="CommentedCode">#? set-cursor-position 0, 0x20 0x20</span>
@ -79,7 +79,7 @@ if ('onhashchange' in window) {
<span id="L27" class="LineNr"> 27 </span> <span class="PreProc">loop-if-!=</span>
<span id="L28" class="LineNr"> 28 </span> <span class="Delimiter">}</span>
<span id="L29" class="LineNr"> 29 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L30" class="Folded"> 30 </span><span class="Folded">+-- 15 lines: # trace &quot;=&gt; &quot; expr-ah ---------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L30" class="Folded"> 30 </span><span class="Folded">+-- 15 lines: # trace &quot;=&gt; &quot; expr-ah -----------------------------------------------------------------------------------------------------------------------------------------------------</span>
<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"># return true if we found any macros</span>
@ -90,7 +90,7 @@ if ('onhashchange' in window) {
<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">break-if-!=</span>
<span id="L53" class="LineNr"> 53 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">&quot;macroexpand-iter: NULL expr-ah&quot;</span>
<span id="L54" class="LineNr"> 54 </span> <span class="Delimiter">}</span>
<span id="L55" class="Folded"> 55 </span><span class="Folded">+-- 15 lines: # trace &quot;macroexpand-iter &quot; expr ----------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L55" class="Folded"> 55 </span><span class="Folded">+-- 15 lines: # trace &quot;macroexpand-iter &quot; expr ------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L70" class="LineNr"> 70 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace
<span id="L71" class="LineNr"> 71 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">&quot;a&quot;</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg
<span id="L72" class="LineNr"> 72 </span> <span class="muComment"># if expr is a non-pair, return</span>
@ -185,7 +185,7 @@ if ('onhashchange' in window) {
<span id="L161" class="LineNr">161 </span> <span class="PreProc">loop</span>
<span id="L162" class="LineNr">162 </span> <span class="Delimiter">}</span>
<span id="L163" class="LineNr">163 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L164" class="Folded">164 </span><span class="Folded">+-- 15 lines: # trace &quot;fn=&gt; &quot; _expr-ah ------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L164" class="Folded">164 </span><span class="Folded">+-- 15 lines: # trace &quot;fn=&gt; &quot; _expr-ah --------------------------------------------------------------------------------------------------------------------------------------------------</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> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">&quot;g&quot;</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg
@ -248,7 +248,7 @@ if ('onhashchange' in window) {
<span id="L238" class="LineNr">238 </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">&lt;-</span> get rest, left
<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> macro-found?/eax: boolean <span class="Special">&lt;-</span> <a href='macroexpand.mu.html#L48'>macroexpand-iter</a> val-ah, globals, trace
<span id="L240" class="LineNr">240 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L241" class="Folded">241 </span><span class="Folded">+-- 15 lines: # trace &quot;define=&gt; &quot; _expr-ah --------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L241" class="Folded">241 </span><span class="Folded">+-- 15 lines: # trace &quot;define=&gt; &quot; _expr-ah ----------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L256" class="LineNr">256 </span> <span class="PreProc">return</span> macro-found?
<span id="L257" class="LineNr">257 </span> <span class="Delimiter">}</span>
<span id="L258" class="LineNr">258 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">&quot;j&quot;</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg
@ -265,7 +265,7 @@ if ('onhashchange' in window) {
<span id="L269" class="LineNr">269 </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">&lt;-</span> get rest, left
<span id="L270" class="LineNr">270 </span> <span class="PreProc">var</span> macro-found?/eax: boolean <span class="Special">&lt;-</span> <a href='macroexpand.mu.html#L48'>macroexpand-iter</a> val-ah, globals, trace
<span id="L271" class="LineNr">271 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L272" class="Folded">272 </span><span class="Folded">+-- 15 lines: # trace &quot;set=&gt; &quot; _expr-ah -----------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L272" class="Folded">272 </span><span class="Folded">+-- 15 lines: # trace &quot;set=&gt; &quot; _expr-ah -------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L287" class="LineNr">287 </span> <span class="PreProc">return</span> macro-found?
<span id="L288" class="LineNr">288 </span> <span class="Delimiter">}</span>
<span id="L289" class="LineNr">289 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">&quot;k&quot;</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg
@ -301,7 +301,7 @@ if ('onhashchange' in window) {
<span id="L319" class="LineNr">319 </span><span class="CommentedCode">#? turn-on-debug-print</span>
<span id="L320" class="LineNr">320 </span> <a href='evaluate.mu.html#L681'>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="L321" class="LineNr">321 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L322" class="Folded">322 </span><span class="Folded">+-- 15 lines: # trace &quot;1=&gt; &quot; _expr-ah -------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L322" class="Folded">322 </span><span class="Folded">+-- 15 lines: # trace &quot;1=&gt; &quot; _expr-ah ---------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L337" class="LineNr">337 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true
<span id="L338" class="LineNr">338 </span> <span class="Delimiter">}</span>
<span id="L339" class="LineNr">339 </span> <span class="muComment"># no macro found; process any macros within args</span>
@ -333,7 +333,7 @@ if ('onhashchange' in window) {
<span id="L365" class="LineNr">365 </span> <span class="PreProc">loop</span>
<span id="L366" class="LineNr">366 </span> <span class="Delimiter">}</span>
<span id="L367" class="LineNr">367 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L368" class="Folded">368 </span><span class="Folded">+-- 15 lines: # trace &quot;=&gt; &quot; _expr-ah --------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L368" class="Folded">368 </span><span class="Folded">+-- 15 lines: # trace &quot;=&gt; &quot; _expr-ah ----------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span id="L383" class="LineNr">383 </span> <span class="PreProc">return</span> result
<span id="L384" class="LineNr">384 </span><span class="Delimiter">}</span>
<span id="L385" class="LineNr">385 </span>

View File

@ -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/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; }
@ -25,7 +25,7 @@ a { color:inherit; }
-->
</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) {
<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> env/<span class="muRegEsi">esi</span>: (addr <a href='environment.mu.html#L8'>environment</a>) <span class="Special">&lt;-</span> address env-storage
<span id="L7" class="LineNr"> 7 </span> <a href='environment.mu.html#L103'>initialize-environment</a> env, <span class="Constant">0x20</span>/fake-screen-width, <span class="Constant">8</span>/fake-screen-height
<span id="L8" class="LineNr"> 8 </span> <a href='environment.mu.html#L950'>load-state</a> env, data-disk
<span id="L9" class="LineNr"> 9 </span> $main:<span class="PreProc">loop</span>: <span class="Delimiter">{</span>
<span id="L9" class="LineNr"> 9 </span> <span class="Delimiter">{</span>
<span id="L10" class="LineNr">10 </span> <a href='environment.mu.html#L115'>render-environment</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, env
<span id="L11" class="LineNr">11 </span> <span class="muComment"># no way to quit right now; just reboot</span>
<span id="L12" class="LineNr">12 </span> <span class="Delimiter">{</span>

View File

@ -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; }
@ -32,7 +32,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -377,14 +377,14 @@ if ('onhashchange' in window) {
<span id="L311" class="LineNr">311 </span> <span class="muComment">#</span>
<span id="L312" class="LineNr">312 </span> <span class="PreProc">var</span> actual-buffer-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> actual-buffer/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address actual-buffer-storage
<span id="L314" class="LineNr">314 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> actual-buffer, actual
<span id="L314" class="LineNr">314 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> actual-buffer, actual
<span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> actual-tokens-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x40</span>)
<span id="L316" class="LineNr">316 </span> <span class="PreProc">var</span> actual-tokens/<span class="muRegEsi">esi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address actual-tokens-storage
<span id="L317" class="LineNr">317 </span> <a href='parenthesize.mu.html#L383'>tokenize-and-parenthesize</a> actual-buffer, actual-tokens, trace
<span id="L318" class="LineNr">318 </span> <span class="muComment">#</span>
<span id="L319" class="LineNr">319 </span> <span class="PreProc">var</span> expected-buffer-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L320" class="LineNr">320 </span> <span class="PreProc">var</span> expected-buffer/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address expected-buffer-storage
<span id="L321" class="LineNr">321 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> expected-buffer, expected
<span id="L321" class="LineNr">321 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> expected-buffer, expected
<span id="L322" class="LineNr">322 </span> <span class="PreProc">var</span> expected-tokens-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x40</span>)
<span id="L323" class="LineNr">323 </span> <span class="PreProc">var</span> expected-tokens/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address expected-tokens-storage
<span id="L324" class="LineNr">324 </span> <a href='parenthesize.mu.html#L396'>tokenize-salient</a> expected-buffer, expected-tokens, trace
@ -407,12 +407,12 @@ if ('onhashchange' in window) {
<span id="L341" class="LineNr">341 </span> <span class="Delimiter">{</span>
<span id="L342" class="LineNr">342 </span> <span class="PreProc">break-if-!=</span>
<span id="L343" class="LineNr">343 </span> <span class="muComment"># actual empty, but expected not empty</span>
<span id="L344" class="LineNr">344 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, message, <span class="Constant">3</span>/fg=cyan <span class="Constant">0</span>/bg
<span id="L345" class="LineNr">345 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: too short\n&quot;</span>, <span class="Constant">3</span>/fg=cyan <span class="Constant">0</span>/bg
<span id="L344" class="LineNr">344 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, message, <span class="Constant">3</span>/fg=cyan <span class="Constant">0</span>/bg
<span id="L345" class="LineNr">345 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: too short\n&quot;</span>, <span class="Constant">3</span>/fg=cyan <span class="Constant">0</span>/bg
<span id="L346" class="LineNr">346 </span> <a href='../104test.subx.html#L5'>count-test-failure</a>
<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> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L349" class="LineNr">349 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg/cyan, <span class="Constant">0</span>/bg
<span id="L350" class="LineNr">350 </span> <span class="PreProc">return</span>
<span id="L351" class="LineNr">351 </span> <span class="Delimiter">}</span>
<span id="L352" class="LineNr">352 </span> <span class="PreProc">var</span> expected-done?/eax: boolean <span class="Special">&lt;-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> expected
@ -420,8 +420,8 @@ if ('onhashchange' in window) {
<span id="L354" class="LineNr">354 </span> <span class="Delimiter">{</span>
<span id="L355" class="LineNr">355 </span> <span class="PreProc">break-if-=</span>
<span id="L356" class="LineNr">356 </span> <span class="muComment"># actual not empty, but expected empty</span>
<span id="L357" class="LineNr">357 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, message, <span class="Constant">3</span>/fg=cyan <span class="Constant">0</span>/bg
<span id="L358" class="LineNr">358 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: too long\n&quot;</span>, <span class="Constant">3</span>/fg=cyan <span class="Constant">0</span>/bg
<span id="L357" class="LineNr">357 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, message, <span class="Constant">3</span>/fg=cyan <span class="Constant">0</span>/bg
<span id="L358" class="LineNr">358 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;: too long\n&quot;</span>, <span class="Constant">3</span>/fg=cyan <span class="Constant">0</span>/bg
<span id="L359" class="LineNr">359 </span> <a href='../104test.subx.html#L5'>count-test-failure</a>
<span id="L360" class="LineNr">360 </span> <span class="PreProc">return</span>
<span id="L361" class="LineNr">361 </span> <span class="Delimiter">}</span>
@ -438,7 +438,7 @@ if ('onhashchange' in window) {
<span id="L372" class="LineNr">372 </span> compare match?, <span class="Constant">0</span>/false
<span id="L373" class="LineNr">373 </span> <span class="Delimiter">{</span>
<span id="L374" class="LineNr">374 </span> <span class="PreProc">break-if-!=</span>
<span id="L375" class="LineNr">375 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, message, <span class="Constant">3</span>/fg=cyan <span class="Constant">0</span>/bg
<span id="L375" class="LineNr">375 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, message, <span class="Constant">3</span>/fg=cyan <span class="Constant">0</span>/bg
<span id="L376" class="LineNr">376 </span> <a href='../104test.subx.html#L5'>count-test-failure</a>
<span id="L377" class="LineNr">377 </span> <span class="PreProc">return</span>
<span id="L378" class="LineNr">378 </span> <span class="Delimiter">}</span>

View File

@ -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/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; }
@ -28,7 +28,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */

View File

@ -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; }
@ -31,7 +31,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -137,56 +137,56 @@ if ('onhashchange' in window) {
<span id="L72" class="LineNr"> 72 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L72'>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="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy ymax
<span id="L74" class="LineNr"> 74 </span> y <span class="Special">&lt;-</span> subtract <span class="Constant">0x11</span>/primitives-border
<span id="L75" class="LineNr"> 75 </span> <a href='../500fake-screen.mu.html#L409'>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="L75" class="LineNr"> 75 </span> <a href='../500fake-screen.mu.html#L430'>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="L76" class="LineNr"> 76 </span> y <span class="Special">&lt;-</span> increment
<span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> right-min/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy xmax
<span id="L78" class="LineNr"> 78 </span> right-min <span class="Special">&lt;-</span> subtract <span class="Constant">0x1e</span>/primitives-divider
<span id="L79" class="LineNr"> 79 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L80" class="LineNr"> 80 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;primitives&quot;</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> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L80" class="LineNr"> 80 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;primitives&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L81" class="LineNr"> 81 </span> y <span class="Special">&lt;-</span> increment
<span id="L82" class="LineNr"> 82 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L83" class="LineNr"> 83 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; fn <a href='evaluate.mu.html#L681'>apply</a> set if while&quot;</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> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L83" class="LineNr"> 83 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; fn <a href='evaluate.mu.html#L681'>apply</a> set if while&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L84" class="LineNr"> 84 </span> y <span class="Special">&lt;-</span> increment
<span id="L85" class="LineNr"> 85 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L86" class="LineNr"> 86 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;booleans&quot;</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> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L86" class="LineNr"> 86 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;booleans&quot;</span>, right-min, y, xmax, ymax, <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">&lt;-</span> increment
<span id="L88" class="LineNr"> 88 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L89" class="LineNr"> 89 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; = and or not&quot;</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> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L89" class="LineNr"> 89 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; = and or not&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L90" class="LineNr"> 90 </span> y <span class="Special">&lt;-</span> increment
<span id="L91" class="LineNr"> 91 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L92" class="LineNr"> 92 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;lists&quot;</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> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L92" class="LineNr"> 92 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;lists&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L93" class="LineNr"> 93 </span> y <span class="Special">&lt;-</span> increment
<span id="L94" class="LineNr"> 94 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L95" class="LineNr"> 95 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; cons <a href='evaluate.mu.html#L1237'>car</a> <a href='evaluate.mu.html#L1265'>cdr</a> no cons? len&quot;</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> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L95" class="LineNr"> 95 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; cons <a href='evaluate.mu.html#L1237'>car</a> <a href='evaluate.mu.html#L1265'>cdr</a> no cons? len&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L96" class="LineNr"> 96 </span> y <span class="Special">&lt;-</span> increment
<span id="L97" class="LineNr"> 97 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L98" class="LineNr"> 98 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;numbers&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L97" class="LineNr"> 97 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L98" class="LineNr"> 98 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;numbers&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L99" class="LineNr"> 99 </span> y <span class="Special">&lt;-</span> increment
<span id="L100" class="LineNr"> 100 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L101" class="LineNr"> 101 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; + - * / %&quot;</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> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L101" class="LineNr"> 101 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; + - * / %&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L102" class="LineNr"> 102 </span> y <span class="Special">&lt;-</span> increment
<span id="L103" class="LineNr"> 103 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L104" class="LineNr"> 104 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt; &gt; &lt;= &gt;=&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L103" class="LineNr"> 103 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L104" class="LineNr"> 104 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt; &gt; &lt;= &gt;=&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L105" class="LineNr"> 105 </span> y <span class="Special">&lt;-</span> increment
<span id="L106" class="LineNr"> 106 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L107" class="LineNr"> 107 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; sqrt <a href='../506math.mu.html#L1'>abs</a> sgn&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L106" class="LineNr"> 106 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L107" class="LineNr"> 107 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; sqrt <a href='../506math.mu.html#L1'>abs</a> sgn&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L108" class="LineNr"> 108 </span> y <span class="Special">&lt;-</span> increment
<span id="L109" class="LineNr"> 109 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L110" class="LineNr"> 110 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;arrays&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L109" class="LineNr"> 109 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L110" class="LineNr"> 110 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;arrays&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L111" class="LineNr"> 111 </span> y <span class="Special">&lt;-</span> increment
<span id="L112" class="LineNr"> 112 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L113" class="LineNr"> 113 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; array index iset len&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L112" class="LineNr"> 112 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L113" class="LineNr"> 113 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; array index iset len&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L114" class="LineNr"> 114 </span> y <span class="Special">&lt;-</span> increment
<span id="L115" class="LineNr"> 115 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy right-min
<span id="L116" class="LineNr"> 116 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; populate&quot;</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L117" class="LineNr"> 117 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: int _ -&gt; array&quot;</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L116" class="LineNr"> 116 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; populate&quot;</span>, tmpx, xmax, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L117" class="LineNr"> 117 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: int _ -&gt; array&quot;</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L118" class="LineNr"> 118 </span> y <span class="Special">&lt;-</span> increment
<span id="L119" class="LineNr"> 119 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L120" class="LineNr"> 120 </span> <a href='../501draw-text.mu.html#L269'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;images&quot;</span>, right-min, y, xmax, ymax, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L119" class="LineNr"> 119 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, right-min, y
<span id="L120" class="LineNr"> 120 </span> <a href='../501draw-text.mu.html#L324'>draw-text-wrapping-right-then-down-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;images&quot;</span>, right-min, y, xmax, ymax, <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">&lt;-</span> increment
<span id="L122" class="LineNr"> 122 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy right-min
<span id="L123" class="LineNr"> 123 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; img&quot;</span>, tmpx, xmax, 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">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: <a href='../500fake-screen.mu.html#L14'>screen</a> stream x y w h&quot;</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L123" class="LineNr"> 123 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; img&quot;</span>, tmpx, xmax, 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">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: <a href='../500fake-screen.mu.html#L14'>screen</a> stream x y w h&quot;</span>, tmpx, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L125" class="LineNr"> 125 </span><span class="CommentedCode">#? {</span>
<span id="L126" class="LineNr"> 126 </span><span class="CommentedCode">#? compare screen, 0</span>
<span id="L127" class="LineNr"> 127 </span><span class="CommentedCode">#? break-if-!=</span>
@ -199,64 +199,64 @@ if ('onhashchange' in window) {
<span id="L134" class="LineNr"> 134 </span> <span class="PreProc">var</span> left-max/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy xmax
<span id="L135" class="LineNr"> 135 </span> left-max <span class="Special">&lt;-</span> subtract <span class="Constant">0x20</span>/primitives-divider
<span id="L136" class="LineNr"> 136 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L137" class="LineNr"> 137 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;cursor graphics&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L137" class="LineNr"> 137 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;cursor graphics&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L138" class="LineNr"> 138 </span> y <span class="Special">&lt;-</span> increment
<span id="L139" class="LineNr"> 139 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L140" class="LineNr"> 140 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; print&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L141" class="LineNr"> 141 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: <a href='../500fake-screen.mu.html#L14'>screen</a> _ -&gt; _&quot;</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> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; print&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L141" class="LineNr"> 141 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: <a href='../500fake-screen.mu.html#L14'>screen</a> _ -&gt; _&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L142" class="LineNr"> 142 </span> y <span class="Special">&lt;-</span> increment
<span id="L143" class="LineNr"> 143 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L144" class="LineNr"> 144 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; lines columns&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L145" class="LineNr"> 145 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: <a href='../500fake-screen.mu.html#L14'>screen</a> -&gt; number&quot;</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> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; lines columns&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L145" class="LineNr"> 145 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: <a href='../500fake-screen.mu.html#L14'>screen</a> -&gt; number&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L146" class="LineNr"> 146 </span> y <span class="Special">&lt;-</span> increment
<span id="L147" class="LineNr"> 147 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L148" class="LineNr"> 148 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; up down left right&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L149" class="LineNr"> 149 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: screen&quot;</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> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; up down left right&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L149" class="LineNr"> 149 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: screen&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L150" class="LineNr"> 150 </span> y <span class="Special">&lt;-</span> increment
<span id="L151" class="LineNr"> 151 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L152" class="LineNr"> 152 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; cr&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L153" class="LineNr"> 153 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: <a href='../500fake-screen.mu.html#L14'>screen</a> &quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L154" class="LineNr"> 154 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;# move cursor down and to left margin&quot;</span>, tmpx, left-max, y, <span class="Constant">0x38</span>/fg=trace, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L152" class="LineNr"> 152 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; cr&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L153" class="LineNr"> 153 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: <a href='../500fake-screen.mu.html#L14'>screen</a> &quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L154" class="LineNr"> 154 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;# move cursor down and to left margin&quot;</span>, tmpx, left-max, y, <span class="Constant">0x38</span>/fg=trace, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L155" class="LineNr"> 155 </span> y <span class="Special">&lt;-</span> increment
<span id="L156" class="LineNr"> 156 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L157" class="LineNr"> 157 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;pixel graphics&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L157" class="LineNr"> 157 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;pixel graphics&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L158" class="LineNr"> 158 </span> y <span class="Special">&lt;-</span> increment
<span id="L159" class="LineNr"> 159 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L160" class="LineNr"> 160 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; circle bezier line hline vline pixel&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L160" class="LineNr"> 160 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; circle bezier line hline vline pixel&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L161" class="LineNr"> 161 </span> y <span class="Special">&lt;-</span> increment
<span id="L162" class="LineNr"> 162 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L163" class="LineNr"> 163 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; width height&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L164" class="LineNr"> 164 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: <a href='../500fake-screen.mu.html#L14'>screen</a> -&gt; number&quot;</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> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; width height&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L164" class="LineNr"> 164 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: <a href='../500fake-screen.mu.html#L14'>screen</a> -&gt; number&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L165" class="LineNr"> 165 </span> y <span class="Special">&lt;-</span> increment
<span id="L166" class="LineNr"> 166 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L167" class="LineNr"> 167 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; clear&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L168" class="LineNr"> 168 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: screen&quot;</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> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; clear&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L168" class="LineNr"> 168 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: screen&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L169" class="LineNr"> 169 </span> y <span class="Special">&lt;-</span> increment
<span id="L170" class="LineNr"> 170 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L171" class="LineNr"> 171 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;input&quot;</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> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;input&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L172" class="LineNr"> 172 </span> y <span class="Special">&lt;-</span> increment
<span id="L173" class="LineNr"> 173 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L174" class="LineNr"> 174 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; key&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L175" class="LineNr"> 175 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: keyboard -&gt; grapheme?&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L174" class="LineNr"> 174 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; key&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L175" class="LineNr"> 175 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: keyboard -&gt; grapheme?&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L176" class="LineNr"> 176 </span> y <span class="Special">&lt;-</span> increment
<span id="L177" class="LineNr"> 177 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L178" class="LineNr"> 178 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;streams&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L178" class="LineNr"> 178 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;streams&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L179" class="LineNr"> 179 </span> y <span class="Special">&lt;-</span> increment
<span id="L180" class="LineNr"> 180 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L181" class="LineNr"> 181 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; stream&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L182" class="LineNr"> 182 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: -&gt; stream &quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L181" class="LineNr"> 181 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; stream&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L182" class="LineNr"> 182 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: -&gt; stream &quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L183" class="LineNr"> 183 </span> y <span class="Special">&lt;-</span> increment
<span id="L184" class="LineNr"> 184 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L185" class="LineNr"> 185 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; write&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L186" class="LineNr"> 186 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: stream grapheme -&gt; stream&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L185" class="LineNr"> 185 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; write&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L186" class="LineNr"> 186 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: stream grapheme -&gt; stream&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L187" class="LineNr"> 187 </span> y <span class="Special">&lt;-</span> increment
<span id="L188" class="LineNr"> 188 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L189" class="LineNr"> 189 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; rewind clear&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L190" class="LineNr"> 190 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: stream&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L189" class="LineNr"> 189 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; rewind clear&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L190" class="LineNr"> 190 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: stream&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L191" class="LineNr"> 191 </span> y <span class="Special">&lt;-</span> increment
<span id="L192" class="LineNr"> 192 </span> <span class="PreProc">var</span> tmpx/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L193" class="LineNr"> 193 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; read&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L194" class="LineNr"> 194 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: stream -&gt; grapheme&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L193" class="LineNr"> 193 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; read&quot;</span>, tmpx, left-max, y, <span class="Constant">0x2a</span>/fg=orange, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L194" class="LineNr"> 194 </span> tmpx <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;: stream -&gt; grapheme&quot;</span>, tmpx, left-max, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xdc</span>/bg=green-bg
<span id="L195" class="LineNr"> 195 </span><span class="Delimiter">}</span>
<span id="L196" class="LineNr"> 196 </span>
<span id="L197" class="LineNr"> 197 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L197'>primitive-global?</a></span> _x: (addr <a href='global.mu.html#L8'>global</a>)<span class="PreProc"> -&gt; </span>_/eax: boolean <span class="Delimiter">{</span>
@ -1836,7 +1836,7 @@ if ('onhashchange' in window) {
<span id="L1771" class="LineNr">1771 </span> <span class="PreProc">var</span> stream-storage: (stream byte <span class="Constant">0x100</span>)
<span id="L1772" class="LineNr">1772 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special">&lt;-</span> address stream-storage
<span id="L1773" class="LineNr">1773 </span> <a href='print.mu.html#L7'>print-cell</a> second-ah, stream, trace
<span id="L1774" class="LineNr">1774 </span> <a href='../501draw-text.mu.html#L240'>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="L1774" class="LineNr">1774 </span> <a href='../501draw-text.mu.html#L295'>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="L1775" class="LineNr">1775 </span> <span class="muComment"># return what was printed</span>
<span id="L1776" class="LineNr">1776 </span> copy-object second-ah, out
<span id="L1777" class="LineNr">1777 </span><span class="Delimiter">}</span>
@ -1879,7 +1879,7 @@ if ('onhashchange' in window) {
<span id="L1814" class="LineNr">1814 </span> <span class="PreProc">var</span> screen-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> get first, screen-data
<span id="L1815" class="LineNr">1815 </span> <span class="PreProc">var</span> _screen/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *screen-ah
<span id="L1816" class="LineNr">1816 </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">&lt;-</span> copy _screen
<span id="L1817" class="LineNr">1817 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1817" class="LineNr">1817 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1818" class="LineNr">1818 </span> <span class="PreProc">return</span>
<span id="L1819" class="LineNr">1819 </span> <span class="Delimiter">}</span>
<span id="L1820" class="LineNr">1820 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">&quot;first arg for 'clear' is not a <a href='../500fake-screen.mu.html#L14'>screen</a> or a stream&quot;</span>
@ -2184,7 +2184,7 @@ if ('onhashchange' in window) {
<span id="L2119" class="LineNr">2119 </span> <span class="Delimiter">}</span>
<span id="L2120" class="LineNr">2120 </span> <span class="PreProc">var</span> fourth-value/eax: (addr float) <span class="Special">&lt;-</span> get fourth, number-data
<span id="L2121" class="LineNr">2121 </span> <span class="PreProc">var</span> color/eax: int <span class="Special">&lt;-</span> convert *fourth-value
<span id="L2122" class="LineNr">2122 </span> <a href='../500fake-screen.mu.html#L557'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L2122" class="LineNr">2122 </span> <a href='../500fake-screen.mu.html#L578'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color
<span id="L2123" class="LineNr">2123 </span> <span class="muComment"># return nothing</span>
<span id="L2124" class="LineNr">2124 </span><span class="Delimiter">}</span>
<span id="L2125" class="LineNr">2125 </span>
@ -3121,7 +3121,7 @@ if ('onhashchange' in window) {
<span id="L3056" class="LineNr">3056 </span> <span class="PreProc">return</span> result
<span id="L3057" class="LineNr">3057 </span> <span class="Delimiter">}</span>
<span id="L3058" class="LineNr">3058 </span> <span class="muComment"># otherwise read from fake keyboard</span>
<span id="L3059" class="LineNr">3059 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> keyboard
<span id="L3059" class="LineNr">3059 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> keyboard
<span id="L3060" class="LineNr">3060 </span> <span class="PreProc">var</span> result/eax: int <span class="Special">&lt;-</span> copy g
<span id="L3061" class="LineNr">3061 </span> <span class="PreProc">return</span> result
<span id="L3062" class="LineNr">3062 </span><span class="Delimiter">}</span>
@ -3558,8 +3558,8 @@ if ('onhashchange' in window) {
<span id="L3493" class="LineNr">3493 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> get second, screen-data
<span id="L3494" class="LineNr">3494 </span> <span class="PreProc">var</span> dest/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *dest-ah
<span id="L3495" class="LineNr">3495 </span> <span class="muComment">#</span>
<span id="L3496" class="LineNr">3496 </span> <a href='../500fake-screen.mu.html#L660'>convert-screen-cells-to-pixels</a> src
<span id="L3497" class="LineNr">3497 </span> <a href='../500fake-screen.mu.html#L620'>copy-pixels</a> src, dest
<span id="L3496" class="LineNr">3496 </span> <a href='../500fake-screen.mu.html#L681'>convert-screen-cells-to-pixels</a> src
<span id="L3497" class="LineNr">3497 </span> <a href='../500fake-screen.mu.html#L641'>copy-pixels</a> src, dest
<span id="L3498" class="LineNr">3498 </span><span class="Delimiter">}</span>
<span id="L3499" class="LineNr">3499 </span>
<span id="L3500" class="LineNr">3500 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='primitives.mu.html#L3500'>apply-array</a></span> _args-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), _out-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), trace: (addr trace) <span class="Delimiter">{</span>

View File

@ -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/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; }
@ -29,7 +29,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -230,7 +230,7 @@ if ('onhashchange' in window) {
<span id="L167" class="LineNr">167 </span> <a href='print.mu.html#L7'>print-cell</a> in-ah, stream, trace
<span id="L168" class="LineNr">168 </span> <span class="PreProc">var</span> d1/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L169" class="LineNr">169 </span> <span class="PreProc">var</span> d2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L170" class="LineNr">170 </span> d1, d2 <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L206'>draw-stream-wrapping-right-then-down</a> <span class="Constant">0</span>/screen, stream, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x80</span>/xmax, <span class="Constant">0x30</span>/ymax, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L170" class="LineNr">170 </span> d1, d2 <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L213'>draw-stream-wrapping-right-then-down</a> <span class="Constant">0</span>/screen, stream, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x80</span>/xmax, <span class="Constant">0x30</span>/ymax, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-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='print.mu.html#L173'>dump-cell-from-cursor-over-full-screen</a></span> in-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), fg: int, bg: int <span class="Delimiter">{</span>
@ -240,7 +240,7 @@ if ('onhashchange' in window) {
<span id="L177" class="LineNr">177 </span> <span class="PreProc">var</span> trace/<span class="muRegEdi">edi</span>: (addr trace) <span class="Special">&lt;-</span> address trace-storage
<span id="L178" class="LineNr">178 </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="L179" class="LineNr">179 </span> <a href='print.mu.html#L7'>print-cell</a> in-ah, stream, trace
<span id="L180" class="LineNr">180 </span> <a href='../501draw-text.mu.html#L240'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, stream, fg, bg
<span id="L180" class="LineNr">180 </span> <a href='../501draw-text.mu.html#L295'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, stream, fg, bg
<span id="L181" class="LineNr">181 </span><span class="Delimiter">}</span>
<span id="L182" class="LineNr">182 </span>
<span id="L183" class="LineNr">183 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print.mu.html#L183'>print-symbol</a></span> _in: (addr <a href='cell.mu.html#L1'>cell</a>), out: (addr stream byte), trace: (addr trace) <span class="Delimiter">{</span>

View File

@ -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/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; }
@ -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 */

View File

@ -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; }
@ -31,7 +31,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -108,7 +108,7 @@ if ('onhashchange' in window) {
<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get self, data
<span id="L44" class="LineNr"> 44 </span> <a href='../120allocate.subx.html#L43'>allocate</a> data-ah
<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> data/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *data-ah
<span id="L46" class="LineNr"> 46 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> data, s
<span id="L46" class="LineNr"> 46 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> data, s
<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> value-ah/eax: (addr handle stream byte) <span class="Special">&lt;-</span> get self, value
<span id="L48" class="LineNr"> 48 </span> populate-stream value-ah, <span class="Constant">0x1000</span>/4KB
<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special">&lt;-</span> get self, trace
@ -131,20 +131,20 @@ if ('onhashchange' in window) {
<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get self, data
<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> data/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *data-ah
<span id="L68" class="LineNr"> 68 </span> <span class="Delimiter">{</span>
<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> len/eax: int <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L429'>gap-buffer-length</a> data
<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> len/eax: int <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L428'>gap-buffer-length</a> data
<span id="L70" class="LineNr"> 70 </span> compare len, <span class="Constant">0</span>
<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">break-if-!=</span>
<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> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">&quot; (<a href='sandbox.mu.html#L1'>sandbox</a> . [&quot;</span>
<span id="L75" class="LineNr"> 75 </span> <a href='../514gap-buffer.mu.html#L88'>append-gap-buffer</a> data, out
<span id="L75" class="LineNr"> 75 </span> <a href='../514gap-buffer.mu.html#L87'>append-gap-buffer</a> data, out
<span id="L76" class="LineNr"> 76 </span> <a href='../108write.subx.html#L11'>write</a> out, <span class="Constant">&quot;])\n&quot;</span>
<span id="L77" class="LineNr"> 77 </span><span class="Delimiter">}</span>
<span id="L78" class="LineNr"> 78 </span>
<span id="L79" class="LineNr"> 79 </span><span class="muComment">##</span>
<span id="L80" class="LineNr"> 80 </span>
<span id="L81" class="LineNr"> 81 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L81'>render-sandbox</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='sandbox.mu.html#L1'>sandbox</a>), xmin: int, ymin: int, xmax: int, ymax: int, show-cursor?: boolean <span class="Delimiter">{</span>
<span id="L82" class="LineNr"> 82 </span> <a href='../500fake-screen.mu.html#L409'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, ymin, xmax, ymax, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L82" class="LineNr"> 82 </span> <a href='../500fake-screen.mu.html#L430'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, ymin, xmax, ymax, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L83" class="LineNr"> 83 </span> add-to xmin, <span class="Constant">1</span>/padding-left
<span id="L84" class="LineNr"> 84 </span> add-to ymin, <span class="Constant">1</span>/padding-top
<span id="L85" class="LineNr"> 85 </span> subtract-from xmax, <span class="Constant">1</span>/padding-right
@ -164,7 +164,7 @@ if ('onhashchange' in window) {
<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> cursor-in-data-a/eax: (addr boolean) <span class="Special">&lt;-</span> get self, cursor-in-data?
<span id="L100" class="LineNr"> 100 </span> cursor-in-editor? <span class="Special">&lt;-</span> copy *cursor-in-data-a
<span id="L101" class="LineNr"> 101 </span> <span class="Delimiter">}</span>
<span id="L102" class="LineNr"> 102 </span> x, y <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L386'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, data, x, y, xmax, ymax, cursor-in-editor?, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L102" class="LineNr"> 102 </span> x, y <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L385'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, data, x, y, xmax, ymax, cursor-in-editor?, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L103" class="LineNr"> 103 </span> y <span class="Special">&lt;-</span> increment
<span id="L104" class="LineNr"> 104 </span> <span class="muComment"># trace</span>
<span id="L105" class="LineNr"> 105 </span> <span class="PreProc">var</span> trace-ah/eax: (addr handle trace) <span class="Special">&lt;-</span> get self, trace
@ -184,9 +184,9 @@ if ('onhashchange' in window) {
<span id="L119" class="LineNr"> 119 </span> compare done?, <span class="Constant">0</span>/false
<span id="L120" class="LineNr"> 120 </span> <span class="PreProc">break-if-!=</span>
<span id="L121" class="LineNr"> 121 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L122" class="LineNr"> 122 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;=&gt; &quot;</span>, xmin, y, xmax, ymax, xmin, y, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L122" class="LineNr"> 122 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;=&gt; &quot;</span>, xmin, y, xmax, ymax, xmin, y, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L123" class="LineNr"> 123 </span> <span class="PreProc">var</span> x2/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L124" class="LineNr"> 124 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L117'>draw-stream-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, value, x2, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L124" class="LineNr"> 124 </span> <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L124'>draw-stream-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, value, x2, xmax, y, <span class="Constant">7</span>/fg=grey, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L125" class="LineNr"> 125 </span> <span class="Delimiter">}</span>
<span id="L126" class="LineNr"> 126 </span> y <span class="Special">&lt;-</span> add <span class="Constant">2</span> <span class="muComment"># padding</span>
<span id="L127" class="LineNr"> 127 </span> <a href='sandbox.mu.html#L198'>maybe-render-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, xmin, y
@ -228,9 +228,9 @@ if ('onhashchange' in window) {
<span id="L163" class="LineNr"> 163 </span> y <span class="Special">&lt;-</span> <a href='sandbox.mu.html#L171'>maybe-render-empty-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, xmin, y
<span id="L164" class="LineNr"> 164 </span> y <span class="Special">&lt;-</span> <a href='sandbox.mu.html#L336'>maybe-render-keyboard</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, xmin, y
<span id="L165" class="LineNr"> 165 </span> <span class="PreProc">var</span> cursor-in-sandbox?/<span class="muRegEbx">ebx</span>: (addr boolean) <span class="Special">&lt;-</span> get self, cursor-in-data?
<span id="L166" class="LineNr"> 166 </span> x, y <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L386'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, data, x, y, xmax, ymax, *cursor-in-sandbox?, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L166" class="LineNr"> 166 </span> x, y <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L385'>render-gap-buffer-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, data, x, y, xmax, ymax, *cursor-in-sandbox?, <span class="Constant">3</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L167" class="LineNr"> 167 </span> y <span class="Special">&lt;-</span> increment
<span id="L168" class="LineNr"> 168 </span> <a href='../500fake-screen.mu.html#L409'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, y, xmax, ymax, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L168" class="LineNr"> 168 </span> <a href='../500fake-screen.mu.html#L430'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, y, xmax, ymax, <span class="Constant">0xc5</span>/bg=blue-bg
<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="muFunction"><a href='sandbox.mu.html#L171'>maybe-render-empty-screen</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='sandbox.mu.html#L1'>sandbox</a>), xmin: int, ymin: int<span class="PreProc"> -&gt; </span>_/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span>
@ -252,7 +252,7 @@ if ('onhashchange' in window) {
<span id="L187" class="LineNr"> 187 </span> <span class="PreProc">var</span> screen-obj-ah/eax: (addr handle <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> get screen-obj-cell, screen-data
<span id="L188" class="LineNr"> 188 </span> <span class="PreProc">var</span> _screen-obj/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *screen-obj-ah
<span id="L189" class="LineNr"> 189 </span> <span class="PreProc">var</span> screen-obj/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> copy _screen-obj
<span id="L190" class="LineNr"> 190 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;screen: &quot;</span>, xmin, <span class="Constant">0x99</span>/xmax, y, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L190" class="LineNr"> 190 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;screen: &quot;</span>, xmin, <span class="Constant">0x99</span>/xmax, y, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L191" class="LineNr"> 191 </span> x <span class="Special">&lt;-</span> copy xmin
<span id="L192" class="LineNr"> 192 </span> x <span class="Special">&lt;-</span> add <span class="Constant">2</span>
<span id="L193" class="LineNr"> 193 </span> y <span class="Special">&lt;-</span> increment
@ -279,12 +279,12 @@ if ('onhashchange' in window) {
<span id="L214" class="LineNr"> 214 </span> <span class="PreProc">var</span> _screen-obj/eax: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *screen-obj-ah
<span id="L215" class="LineNr"> 215 </span> <span class="PreProc">var</span> screen-obj/<span class="muRegEdx">edx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> copy _screen-obj
<span id="L216" class="LineNr"> 216 </span> <span class="Delimiter">{</span>
<span id="L217" class="LineNr"> 217 </span> <span class="PreProc">var</span> screen-empty?/eax: boolean <span class="Special">&lt;-</span> <a href='../500fake-screen.mu.html#L350'>fake-screen-empty?</a> screen-obj
<span id="L217" class="LineNr"> 217 </span> <span class="PreProc">var</span> screen-empty?/eax: boolean <span class="Special">&lt;-</span> <a href='../500fake-screen.mu.html#L371'>fake-screen-empty?</a> screen-obj
<span id="L218" class="LineNr"> 218 </span> compare screen-empty?, <span class="Constant">0</span>/false
<span id="L219" class="LineNr"> 219 </span> <span class="PreProc">break-if-=</span>
<span id="L220" class="LineNr"> 220 </span> <span class="PreProc">return</span>
<span id="L221" class="LineNr"> 221 </span> <span class="Delimiter">}</span>
<span id="L222" class="LineNr"> 222 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;screen: &quot;</span>, xmin, <span class="Constant">0x99</span>/xmax, ymin, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L222" class="LineNr"> 222 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;screen: &quot;</span>, xmin, <span class="Constant">0x99</span>/xmax, ymin, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L223" class="LineNr"> 223 </span> x <span class="Special">&lt;-</span> copy xmin
<span id="L224" class="LineNr"> 224 </span> x <span class="Special">&lt;-</span> add <span class="Constant">2</span>
<span id="L225" class="LineNr"> 225 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy ymin
@ -301,13 +301,13 @@ if ('onhashchange' in window) {
<span id="L236" class="LineNr"> 236 </span> <span class="Delimiter">{</span>
<span id="L237" class="LineNr"> 237 </span> compare y, *height
<span id="L238" class="LineNr"> 238 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L239" class="LineNr"> 239 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, screen-y
<span id="L239" class="LineNr"> 239 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, xmin, screen-y
<span id="L240" class="LineNr"> 240 </span> <span class="PreProc">var</span> width/<span class="muRegEdx">edx</span>: (addr int) <span class="Special">&lt;-</span> get target-screen, width
<span id="L241" class="LineNr"> 241 </span> <span class="PreProc">var</span> x/<span class="muRegEbx">ebx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L242" class="LineNr"> 242 </span> <span class="Delimiter">{</span>
<span id="L243" class="LineNr"> 243 </span> compare x, *width
<span id="L244" class="LineNr"> 244 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L245" class="LineNr"> 245 </span> <a href='../501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x20</span>/space, <span class="Constant">0x18</span>/fg, <span class="Constant">0</span>/bg
<span id="L245" class="LineNr"> 245 </span> <a href='../501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x20</span>/space, <span class="Constant">0x18</span>/fg, <span class="Constant">0</span>/bg
<span id="L246" class="LineNr"> 246 </span> x <span class="Special">&lt;-</span> increment
<span id="L247" class="LineNr"> 247 </span> <span class="PreProc">loop</span>
<span id="L248" class="LineNr"> 248 </span> <span class="Delimiter">}</span>
@ -320,7 +320,7 @@ if ('onhashchange' in window) {
<span id="L255" class="LineNr"> 255 </span>
<span id="L256" class="LineNr"> 256 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L256'>render-screen</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _target-screen: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), xmin: int, ymin: int <span class="Delimiter">{</span>
<span id="L257" class="LineNr"> 257 </span> <span class="PreProc">var</span> target-screen/<span class="muRegEsi">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> copy _target-screen
<span id="L258" class="LineNr"> 258 </span> <a href='../500fake-screen.mu.html#L660'>convert-screen-cells-to-pixels</a> target-screen <span class="muComment"># might overwrite existing pixel data with screen cells</span>
<span id="L258" class="LineNr"> 258 </span> <a href='../500fake-screen.mu.html#L681'>convert-screen-cells-to-pixels</a> target-screen <span class="muComment"># might overwrite existing pixel data with screen cells</span>
<span id="L259" class="LineNr"> 259 </span> <span class="muComment"># overlapping the two is not supported</span>
<span id="L260" class="LineNr"> 260 </span> <span class="muComment"># pixel data</span>
<span id="L261" class="LineNr"> 261 </span> <span class="Delimiter">{</span>
@ -353,7 +353,7 @@ if ('onhashchange' in window) {
<span id="L288" class="LineNr"> 288 </span> compare x, width
<span id="L289" class="LineNr"> 289 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L290" class="LineNr"> 290 </span> <span class="Delimiter">{</span>
<span id="L291" class="LineNr"> 291 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='../500fake-screen.mu.html#L607'>pixel-index</a> target-screen, x, y
<span id="L291" class="LineNr"> 291 </span> <span class="PreProc">var</span> idx/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='../500fake-screen.mu.html#L628'>pixel-index</a> target-screen, x, y
<span id="L292" class="LineNr"> 292 </span> <span class="PreProc">var</span> color-addr/<span class="muRegEcx">ecx</span>: (addr byte) <span class="Special">&lt;-</span> index pixels, idx
<span id="L293" class="LineNr"> 293 </span> <span class="PreProc">var</span> color/<span class="muRegEcx">ecx</span>: byte <span class="Special">&lt;-</span> copy-byte *color-addr
<span id="L294" class="LineNr"> 294 </span> <span class="PreProc">var</span> color2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy color
@ -361,7 +361,7 @@ if ('onhashchange' in window) {
<span id="L296" class="LineNr"> 296 </span> x2 <span class="Special">&lt;-</span> add left
<span id="L297" class="LineNr"> 297 </span> <span class="PreProc">var</span> y2/<span class="muRegEbx">ebx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L298" class="LineNr"> 298 </span> y2 <span class="Special">&lt;-</span> add top
<span id="L299" class="LineNr"> 299 </span> <a href='../500fake-screen.mu.html#L557'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x2, y2, color2
<span id="L299" class="LineNr"> 299 </span> <a href='../500fake-screen.mu.html#L578'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x2, y2, color2
<span id="L300" class="LineNr"> 300 </span> <span class="Delimiter">}</span>
<span id="L301" class="LineNr"> 301 </span> x <span class="Special">&lt;-</span> increment
<span id="L302" class="LineNr"> 302 </span> <span class="PreProc">loop</span>
@ -418,7 +418,7 @@ if ('onhashchange' in window) {
<span id="L353" class="LineNr"> 353 </span> <span class="PreProc">var</span> keyboard-obj/<span class="muRegEdx">edx</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> copy _keyboard-obj
<span id="L354" class="LineNr"> 354 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy ymin
<span id="L355" class="LineNr"> 355 </span> y <span class="Special">&lt;-</span> increment <span class="muComment"># padding</span>
<span id="L356" class="LineNr"> 356 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;keyboard: &quot;</span>, xmin, <span class="Constant">0x99</span>/xmax, y, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L356" class="LineNr"> 356 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;keyboard: &quot;</span>, xmin, <span class="Constant">0x99</span>/xmax, y, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L357" class="LineNr"> 357 </span> <span class="PreProc">var</span> cursor-in-keyboard?/<span class="muRegEsi">esi</span>: (addr boolean) <span class="Special">&lt;-</span> get self, cursor-in-keyboard?
<span id="L358" class="LineNr"> 358 </span> y <span class="Special">&lt;-</span> <a href='sandbox.mu.html#L363'>render-keyboard</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, keyboard-obj, x, y, *cursor-in-keyboard?
<span id="L359" class="LineNr"> 359 </span> y <span class="Special">&lt;-</span> increment <span class="muComment"># padding</span>
@ -435,8 +435,8 @@ if ('onhashchange' in window) {
<span id="L370" class="LineNr"> 370 </span> xmax <span class="Special">&lt;-</span> add <span class="Constant">0x10</span>
<span id="L371" class="LineNr"> 371 </span> <span class="PreProc">var</span> ymax/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy ymin
<span id="L372" class="LineNr"> 372 </span> ymax <span class="Special">&lt;-</span> add <span class="Constant">1</span>
<span id="L373" class="LineNr"> 373 </span> <a href='../500fake-screen.mu.html#L409'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, xmax, ymax, <span class="Constant">0</span>/bg
<span id="L374" class="LineNr"> 374 </span> x <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L417'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, keyboard, x, y, render-cursor?, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L373" class="LineNr"> 373 </span> <a href='../500fake-screen.mu.html#L430'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, xmax, ymax, <span class="Constant">0</span>/bg
<span id="L374" class="LineNr"> 374 </span> x <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L416'>render-gap-buffer</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, keyboard, x, y, render-cursor?, <span class="Constant">3</span>/fg, <span class="Constant">0</span>/bg
<span id="L375" class="LineNr"> 375 </span> y <span class="Special">&lt;-</span> increment
<span id="L376" class="LineNr"> 376 </span> <span class="PreProc">return</span> y
<span id="L377" class="LineNr"> 377 </span><span class="Delimiter">}</span>
@ -445,13 +445,13 @@ if ('onhashchange' in window) {
<span id="L380" class="LineNr"> 380 </span> <span class="PreProc">var</span> target/<span class="muRegEcx">ecx</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> copy _target
<span id="L381" class="LineNr"> 381 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array <a href='../500fake-screen.mu.html#L25'>screen-cell</a>) <span class="Special">&lt;-</span> get target, data
<span id="L382" class="LineNr"> 382 </span> <span class="PreProc">var</span> data/eax: (addr array <a href='../500fake-screen.mu.html#L25'>screen-cell</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *data-ah
<span id="L383" class="LineNr"> 383 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='../500fake-screen.mu.html#L221'>screen-cell-index</a> target, x, y
<span id="L383" class="LineNr"> 383 </span> <span class="PreProc">var</span> index/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='../500fake-screen.mu.html#L242'>screen-cell-index</a> target, x, y
<span id="L384" class="LineNr"> 384 </span> <span class="PreProc">var</span> offset/<span class="muRegEcx">ecx</span>: (offset <a href='../500fake-screen.mu.html#L25'>screen-cell</a>) <span class="Special">&lt;-</span> compute-offset data, index
<span id="L385" class="LineNr"> 385 </span> <span class="PreProc">var</span> src-cell/<span class="muRegEsi">esi</span>: (addr <a href='../500fake-screen.mu.html#L25'>screen-cell</a>) <span class="Special">&lt;-</span> index data, offset
<span id="L386" class="LineNr"> 386 </span> <span class="PreProc">var</span> src-code-point/eax: (addr code-point) <span class="Special">&lt;-</span> get src-cell, data
<span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> src-color/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special">&lt;-</span> get src-cell, color
<span id="L388" class="LineNr"> 388 </span> <span class="PreProc">var</span> src-background-color/<span class="muRegEdx">edx</span>: (addr int) <span class="Special">&lt;-</span> get src-cell, background-color
<span id="L389" class="LineNr"> 389 </span> <a href='../501draw-text.mu.html#L84'>draw-code-point-at-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *src-code-point, *src-color, *src-background-color
<span id="L389" class="LineNr"> 389 </span> <a href='../501draw-text.mu.html#L91'>draw-code-point-at-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *src-code-point, *src-color, *src-background-color
<span id="L390" class="LineNr"> 390 </span><span class="Delimiter">}</span>
<span id="L391" class="LineNr"> 391 </span>
<span id="L392" class="LineNr"> 392 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L392'>render-sandbox-edit-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='sandbox.mu.html#L1'>sandbox</a>) <span class="Delimiter">{</span>
@ -463,35 +463,35 @@ if ('onhashchange' in window) {
<span id="L398" class="LineNr"> 398 </span> y <span class="Special">&lt;-</span> decrement
<span id="L399" class="LineNr"> 399 </span> <span class="PreProc">var</span> height/<span class="muRegEbx">ebx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L400" class="LineNr"> 400 </span> height <span class="Special">&lt;-</span> increment
<span id="L401" class="LineNr"> 401 </span> <a href='../500fake-screen.mu.html#L409'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y, width, height, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L402" class="LineNr"> 402 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y
<span id="L403" class="LineNr"> 403 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^r &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L404" class="LineNr"> 404 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='main.mu.html#L4'>main</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L405" class="LineNr"> 405 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^s &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L406" class="LineNr"> 406 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='sandbox.mu.html#L1'>sandbox</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L407" class="LineNr"> 407 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^g &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L408" class="LineNr"> 408 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; go to &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L401" class="LineNr"> 401 </span> <a href='../500fake-screen.mu.html#L430'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y, width, height, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L402" class="LineNr"> 402 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y
<span id="L403" class="LineNr"> 403 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^r &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L404" class="LineNr"> 404 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='main.mu.html#L4'>main</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L405" class="LineNr"> 405 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^s &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L406" class="LineNr"> 406 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='sandbox.mu.html#L1'>sandbox</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L407" class="LineNr"> 407 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^g &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L408" class="LineNr"> 408 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; go to &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L409" class="LineNr"> 409 </span> $render-sandbox-edit-menu:render-ctrl-m: <span class="Delimiter">{</span>
<span id="L410" class="LineNr"> 410 </span> <span class="PreProc">var</span> self/eax: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special">&lt;-</span> copy _self
<span id="L411" class="LineNr"> 411 </span> <span class="PreProc">var</span> <a href='sandbox.mu.html#L907'>has-trace?</a>/eax: boolean <span class="Special">&lt;-</span> <a href='sandbox.mu.html#L907'>has-trace?</a> self
<span id="L412" class="LineNr"> 412 </span> compare <a href='sandbox.mu.html#L907'>has-trace?</a>, <span class="Constant">0</span>/false
<span id="L413" class="LineNr"> 413 </span> <span class="Delimiter">{</span>
<span id="L414" class="LineNr"> 414 </span> <span class="PreProc">break-if-=</span>
<span id="L415" class="LineNr"> 415 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^m &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x38</span>/bg=trace
<span id="L416" class="LineNr"> 416 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; to trace &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L415" class="LineNr"> 415 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^m &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x38</span>/bg=trace
<span id="L416" class="LineNr"> 416 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; to trace &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L417" class="LineNr"> 417 </span> <span class="PreProc">break</span> $render-sandbox-edit-menu:render-ctrl-m
<span id="L418" class="LineNr"> 418 </span> <span class="Delimiter">}</span>
<span id="L419" class="LineNr"> 419 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^m &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">3</span>/bg=keyboard
<span id="L420" class="LineNr"> 420 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; to keyboard &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L419" class="LineNr"> 419 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^m &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">3</span>/bg=keyboard
<span id="L420" class="LineNr"> 420 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; to keyboard &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L421" class="LineNr"> 421 </span> <span class="Delimiter">}</span>
<span id="L422" class="LineNr"> 422 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^a &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L423" class="LineNr"> 423 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;&lt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L424" class="LineNr"> 424 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^b &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L425" class="LineNr"> 425 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;word &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L426" class="LineNr"> 426 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^f &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L427" class="LineNr"> 427 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; word&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L428" class="LineNr"> 428 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^e &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L429" class="LineNr"> 429 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &gt;&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L422" class="LineNr"> 422 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^a &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L423" class="LineNr"> 423 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;&lt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L424" class="LineNr"> 424 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^b &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L425" class="LineNr"> 425 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &lt;word &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L426" class="LineNr"> 426 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^f &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L427" class="LineNr"> 427 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; word&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L428" class="LineNr"> 428 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^e &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L429" class="LineNr"> 429 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &gt;&gt; &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<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"><a href='sandbox.mu.html#L432'>render-keyboard-menu</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>
@ -502,16 +502,16 @@ if ('onhashchange' in window) {
<span id="L437" class="LineNr"> 437 </span> y <span class="Special">&lt;-</span> decrement
<span id="L438" class="LineNr"> 438 </span> <span class="PreProc">var</span> height/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L439" class="LineNr"> 439 </span> height <span class="Special">&lt;-</span> increment
<span id="L440" class="LineNr"> 440 </span> <a href='../500fake-screen.mu.html#L409'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y, width, height, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L441" class="LineNr"> 441 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y
<span id="L442" class="LineNr"> 442 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^r &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L443" class="LineNr"> 443 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='main.mu.html#L4'>main</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L444" class="LineNr"> 444 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^s &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L445" class="LineNr"> 445 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='sandbox.mu.html#L1'>sandbox</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L446" class="LineNr"> 446 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^g &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L447" class="LineNr"> 447 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; go to &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L448" class="LineNr"> 448 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^m &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">7</span>/bg
<span id="L449" class="LineNr"> 449 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; to <a href='sandbox.mu.html#L1'>sandbox</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L440" class="LineNr"> 440 </span> <a href='../500fake-screen.mu.html#L430'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y, width, height, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L441" class="LineNr"> 441 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y
<span id="L442" class="LineNr"> 442 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^r &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L443" class="LineNr"> 443 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='main.mu.html#L4'>main</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L444" class="LineNr"> 444 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^s &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L445" class="LineNr"> 445 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='sandbox.mu.html#L1'>sandbox</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L446" class="LineNr"> 446 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^g &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L447" class="LineNr"> 447 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; go to &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L448" class="LineNr"> 448 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^m &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">7</span>/bg
<span id="L449" class="LineNr"> 449 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; to <a href='sandbox.mu.html#L1'>sandbox</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L450" class="LineNr"> 450 </span><span class="Delimiter">}</span>
<span id="L451" class="LineNr"> 451 </span>
<span id="L452" class="LineNr"> 452 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='sandbox.mu.html#L452'>edit-sandbox</a></span> _self: (addr <a href='sandbox.mu.html#L1'>sandbox</a>), key: grapheme, globals: (addr <a href='global.mu.html#L1'>global-table</a>), data-disk: (addr disk) <span class="Delimiter">{</span>
@ -598,7 +598,7 @@ if ('onhashchange' in window) {
<span id="L533" class="LineNr"> 533 </span> <span class="PreProc">break-if-=</span>
<span id="L534" class="LineNr"> 534 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get self, data
<span id="L535" class="LineNr"> 535 </span> <span class="PreProc">var</span> data/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *data-ah
<span id="L536" class="LineNr"> 536 </span> <a href='../514gap-buffer.mu.html#L1204'>edit-gap-buffer</a> data, key
<span id="L536" class="LineNr"> 536 </span> <a href='../514gap-buffer.mu.html#L1203'>edit-gap-buffer</a> data, key
<span id="L537" class="LineNr"> 537 </span> <span class="PreProc">return</span>
<span id="L538" class="LineNr"> 538 </span> <span class="Delimiter">}</span>
<span id="L539" class="LineNr"> 539 </span> <span class="muComment"># if cursor in keyboard, send key to keyboard</span>
@ -621,7 +621,7 @@ if ('onhashchange' in window) {
<span id="L556" class="LineNr"> 556 </span> <span class="Delimiter">}</span>
<span id="L557" class="LineNr"> 557 </span> <span class="PreProc">var</span> keyboard-ah/eax: (addr handle <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> get inner-keyboard-var, keyboard-data
<span id="L558" class="LineNr"> 558 </span> <span class="PreProc">var</span> keyboard/eax: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *keyboard-ah
<span id="L559" class="LineNr"> 559 </span> <a href='../514gap-buffer.mu.html#L1204'>edit-gap-buffer</a> keyboard, key
<span id="L559" class="LineNr"> 559 </span> <a href='../514gap-buffer.mu.html#L1203'>edit-gap-buffer</a> keyboard, key
<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="muComment"># if cursor in trace, send key to trace</span>
@ -1021,7 +1021,7 @@ if ('onhashchange' in window) {
<span id="L956" class="LineNr"> 956 </span> <span class="muComment"># expand</span>
<span id="L957" class="LineNr"> 957 </span> <a href='sandbox.mu.html#L452'>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#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L959" class="LineNr"> 959 </span> <a href='../500fake-screen.mu.html#L328'>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">&quot; 12 &quot;</span>, <span class="Constant">&quot;F - <a href='sandbox.mu.html#L926'>test-run-expand-trace</a>/expand-0&quot;</span>
@ -1068,7 +1068,7 @@ if ('onhashchange' in window) {
<span id="L1003" class="LineNr">1003 </span> <span class="muComment"># expand</span>
<span id="L1004" class="LineNr">1004 </span> <a href='sandbox.mu.html#L452'>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#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1006" class="LineNr">1006 </span> <a href='../500fake-screen.mu.html#L328'>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">&quot; 12 &quot;</span>, <span class="Constant">&quot;F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/pre2-0&quot;</span>
@ -1084,7 +1084,7 @@ if ('onhashchange' in window) {
<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#L452'>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#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1022" class="LineNr">1022 </span> <a href='../500fake-screen.mu.html#L328'>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">&quot; 12 &quot;</span>, <span class="Constant">&quot;F - <a href='sandbox.mu.html#L972'>test-run-can-rerun-when-expanding-trace</a>/expand-0&quot;</span>
@ -1135,7 +1135,7 @@ if ('onhashchange' in window) {
<span id="L1070" class="LineNr">1070 </span> <a href='../504test-screen.mu.html#L267'>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">&quot; &quot;</span>, <span class="Constant">&quot;F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre1-2/cursor&quot;</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#L452'>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#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1073" class="LineNr">1073 </span> <a href='../500fake-screen.mu.html#L328'>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">&quot; 7 &quot;</span>, <span class="Constant">&quot;F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre2-0&quot;</span>
@ -1202,7 +1202,7 @@ if ('onhashchange' in window) {
<span id="L1137" class="LineNr">1137 </span> <a href='../504test-screen.mu.html#L267'>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">&quot; &quot;</span>, <span class="Constant">&quot;F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/pre3-10/cursor&quot;</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#L452'>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#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1140" class="LineNr">1140 </span> <a href='../500fake-screen.mu.html#L328'>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">&quot; 7 &quot;</span>, <span class="Constant">&quot;F - <a href='sandbox.mu.html#L1041'>test-run-preserves-trace-view-on-rerun</a>/expand-0&quot;</span>

View File

@ -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/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; }
@ -30,7 +30,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -77,10 +77,10 @@ if ('onhashchange' in window) {
<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L13'>tokenize</a></span> in: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>), out: (addr stream <a href='tokenize.mu.html#L3'>token</a>), trace: (addr trace) <span class="Delimiter">{</span>
<span id="L14" class="LineNr"> 14 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">&quot;tokenize&quot;</span>, <span class="Constant">&quot;tokenize&quot;</span>
<span id="L15" class="LineNr"> 15 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace
<span id="L16" class="LineNr"> 16 </span> <a href='../514gap-buffer.mu.html#L1015'>rewind-gap-buffer</a> in
<span id="L16" class="LineNr"> 16 </span> <a href='../514gap-buffer.mu.html#L1014'>rewind-gap-buffer</a> in
<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> at-start-of-line?/<span class="muRegEdi">edi</span>: boolean <span class="Special">&lt;-</span> copy <span class="Constant">1</span>/true
<span id="L18" class="LineNr"> 18 </span> <span class="Delimiter">{</span>
<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in
<span id="L19" class="LineNr"> 19 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1022'>gap-buffer-scan-done?</a> in
<span id="L20" class="LineNr"> 20 </span> compare done?, <span class="Constant">0</span>/false
<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">break-if-!=</span>
<span id="L22" class="LineNr"> 22 </span> <span class="muComment">#</span>
@ -105,7 +105,7 @@ if ('onhashchange' in window) {
<span id="L41" class="LineNr"> 41 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L41'>test-tokenize-number</a></span> <span class="Delimiter">{</span>
<span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L44" class="LineNr"> 44 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;123 a&quot;</span>
<span id="L44" class="LineNr"> 44 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;123 a&quot;</span>
<span id="L45" class="LineNr"> 45 </span> <span class="muComment">#</span>
<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -133,7 +133,7 @@ if ('onhashchange' in window) {
<span id="L69" class="LineNr"> 69 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L69'>test-tokenize-negative-number</a></span> <span class="Delimiter">{</span>
<span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L72" class="LineNr"> 72 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;-123 a&quot;</span>
<span id="L72" class="LineNr"> 72 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;-123 a&quot;</span>
<span id="L73" class="LineNr"> 73 </span> <span class="muComment">#</span>
<span id="L74" class="LineNr"> 74 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -161,7 +161,7 @@ if ('onhashchange' in window) {
<span id="L97" class="LineNr"> 97 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L97'>test-tokenize-quote</a></span> <span class="Delimiter">{</span>
<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L100" class="LineNr"> 100 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;'(a)&quot;</span>
<span id="L100" class="LineNr"> 100 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;'(a)&quot;</span>
<span id="L101" class="LineNr"> 101 </span> <span class="muComment">#</span>
<span id="L102" class="LineNr"> 102 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L103" class="LineNr"> 103 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -193,7 +193,7 @@ if ('onhashchange' in window) {
<span id="L129" class="LineNr"> 129 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L129'>test-tokenize-backquote</a></span> <span class="Delimiter">{</span>
<span id="L130" class="LineNr"> 130 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L131" class="LineNr"> 131 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L132" class="LineNr"> 132 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;`(a)&quot;</span>
<span id="L132" class="LineNr"> 132 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;`(a)&quot;</span>
<span id="L133" class="LineNr"> 133 </span> <span class="muComment">#</span>
<span id="L134" class="LineNr"> 134 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L135" class="LineNr"> 135 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -225,7 +225,7 @@ if ('onhashchange' in window) {
<span id="L161" class="LineNr"> 161 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L161'>test-tokenize-unquote</a></span> <span class="Delimiter">{</span>
<span id="L162" class="LineNr"> 162 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L163" class="LineNr"> 163 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L164" class="LineNr"> 164 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;,(a)&quot;</span>
<span id="L164" class="LineNr"> 164 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;,(a)&quot;</span>
<span id="L165" class="LineNr"> 165 </span> <span class="muComment">#</span>
<span id="L166" class="LineNr"> 166 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L167" class="LineNr"> 167 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -257,7 +257,7 @@ if ('onhashchange' in window) {
<span id="L193" class="LineNr"> 193 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L193'>test-tokenize-unquote-splice</a></span> <span class="Delimiter">{</span>
<span id="L194" class="LineNr"> 194 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L195" class="LineNr"> 195 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L196" class="LineNr"> 196 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;,@a&quot;</span>
<span id="L196" class="LineNr"> 196 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;,@a&quot;</span>
<span id="L197" class="LineNr"> 197 </span> <span class="muComment">#</span>
<span id="L198" class="LineNr"> 198 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L199" class="LineNr"> 199 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -282,7 +282,7 @@ if ('onhashchange' in window) {
<span id="L218" class="LineNr"> 218 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L218'>test-tokenize-dotted-list</a></span> <span class="Delimiter">{</span>
<span id="L219" class="LineNr"> 219 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L220" class="LineNr"> 220 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L221" class="LineNr"> 221 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;(a . b)&quot;</span>
<span id="L221" class="LineNr"> 221 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;(a . b)&quot;</span>
<span id="L222" class="LineNr"> 222 </span> <span class="muComment">#</span>
<span id="L223" class="LineNr"> 223 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L224" class="LineNr"> 224 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -316,7 +316,7 @@ if ('onhashchange' in window) {
<span id="L252" class="LineNr"> 252 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L252'>test-tokenize-stream-literal</a></span> <span class="Delimiter">{</span>
<span id="L253" class="LineNr"> 253 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L254" class="LineNr"> 254 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L255" class="LineNr"> 255 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;\&quot;</span>abc def\<span class="Constant">&quot;&quot;</span>
<span id="L255" class="LineNr"> 255 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;\&quot;</span>abc def\<span class="Constant">&quot;&quot;</span>
<span id="L256" class="LineNr"> 256 </span> <span class="muComment">#</span>
<span id="L257" class="LineNr"> 257 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L258" class="LineNr"> 258 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -348,7 +348,7 @@ if ('onhashchange' in window) {
<span id="L284" class="LineNr"> 284 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L284'>test-tokenize-balanced-stream-literal</a></span> <span class="Delimiter">{</span>
<span id="L285" class="LineNr"> 285 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L286" class="LineNr"> 286 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L287" class="LineNr"> 287 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;[abc def]&quot;</span>
<span id="L287" class="LineNr"> 287 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;[abc def]&quot;</span>
<span id="L288" class="LineNr"> 288 </span> <span class="muComment">#</span>
<span id="L289" class="LineNr"> 289 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L290" class="LineNr"> 290 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -379,7 +379,7 @@ if ('onhashchange' in window) {
<span id="L315" class="LineNr"> 315 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L315'>test-tokenize-nested-stream-literal</a></span> <span class="Delimiter">{</span>
<span id="L316" class="LineNr"> 316 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L317" class="LineNr"> 317 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L318" class="LineNr"> 318 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;[abc [def]]&quot;</span>
<span id="L318" class="LineNr"> 318 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;[abc [def]]&quot;</span>
<span id="L319" class="LineNr"> 319 </span> <span class="muComment">#</span>
<span id="L320" class="LineNr"> 320 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L321" class="LineNr"> 321 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -410,7 +410,7 @@ if ('onhashchange' in window) {
<span id="L346" class="LineNr"> 346 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L346'>test-tokenize-stream-literal-in-tree</a></span> <span class="Delimiter">{</span>
<span id="L347" class="LineNr"> 347 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L348" class="LineNr"> 348 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L349" class="LineNr"> 349 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;([abc def])&quot;</span>
<span id="L349" class="LineNr"> 349 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;([abc def])&quot;</span>
<span id="L350" class="LineNr"> 350 </span> <span class="muComment">#</span>
<span id="L351" class="LineNr"> 351 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L352" class="LineNr"> 352 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -447,7 +447,7 @@ if ('onhashchange' in window) {
<span id="L383" class="LineNr"> 383 </span><span class="PreProc">fn</span> <span class="muTest"><a href='tokenize.mu.html#L383'>test-tokenize-indent</a></span> <span class="Delimiter">{</span>
<span id="L384" class="LineNr"> 384 </span> <span class="PreProc">var</span> in-storage: <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>
<span id="L385" class="LineNr"> 385 </span> <span class="PreProc">var</span> in/<span class="muRegEsi">esi</span>: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special">&lt;-</span> address in-storage
<span id="L386" class="LineNr"> 386 </span> <a href='../514gap-buffer.mu.html#L53'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;abc\n def&quot;</span>
<span id="L386" class="LineNr"> 386 </span> <a href='../514gap-buffer.mu.html#L52'>initialize-gap-buffer-with</a> in, <span class="Constant">&quot;abc\n def&quot;</span>
<span id="L387" class="LineNr"> 387 </span> <span class="muComment">#</span>
<span id="L388" class="LineNr"> 388 </span> <span class="PreProc">var</span> stream-storage: (stream <a href='tokenize.mu.html#L3'>token</a> <span class="Constant">0x10</span>)
<span id="L389" class="LineNr"> 389 </span> <span class="PreProc">var</span> stream/<span class="muRegEdi">edi</span>: (addr stream <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> address stream-storage
@ -492,19 +492,19 @@ if ('onhashchange' in window) {
<span id="L428" class="LineNr"> 428 </span> <span class="PreProc">break-if-=</span>
<span id="L429" class="LineNr"> 429 </span> <a href='tokenize.mu.html#L801'>next-indent-token</a> in, out, trace <span class="muComment"># might not be returned</span>
<span id="L430" class="LineNr"> 430 </span> <span class="Delimiter">}</span>
<span id="L431" class="LineNr"> 431 </span> <a href='../514gap-buffer.mu.html#L1190'>skip-spaces-from-gap-buffer</a> in
<span id="L432" class="LineNr"> 432 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in
<span id="L431" class="LineNr"> 431 </span> <a href='../514gap-buffer.mu.html#L1189'>skip-spaces-from-gap-buffer</a> in
<span id="L432" class="LineNr"> 432 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1046'>peek-from-gap-buffer</a> in
<span id="L433" class="LineNr"> 433 </span> <span class="Delimiter">{</span>
<span id="L434" class="LineNr"> 434 </span> compare g, <span class="Constant">0x23</span>/comment
<span id="L435" class="LineNr"> 435 </span> <span class="PreProc">break-if-!=</span>
<span id="L436" class="LineNr"> 436 </span> <a href='tokenize.mu.html#L788'>skip-rest-of-line</a> in
<span id="L437" class="LineNr"> 437 </span> <span class="Delimiter">}</span>
<span id="L438" class="LineNr"> 438 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in
<span id="L438" class="LineNr"> 438 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1046'>peek-from-gap-buffer</a> in
<span id="L439" class="LineNr"> 439 </span> <span class="Delimiter">{</span>
<span id="L440" class="LineNr"> 440 </span> compare g, <span class="Constant">0xa</span>/newline
<span id="L441" class="LineNr"> 441 </span> <span class="PreProc">break-if-!=</span>
<span id="L442" class="LineNr"> 442 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">&quot;tokenize&quot;</span>, <span class="Constant">&quot;newline&quot;</span>
<span id="L443" class="LineNr"> 443 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in
<span id="L443" class="LineNr"> 443 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in
<span id="L444" class="LineNr"> 444 </span> <a href='tokenize.mu.html#L1159'>initialize-skip-token</a> out <span class="muComment"># might drop indent if that's all there was in this line</span>
<span id="L445" class="LineNr"> 445 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L446" class="LineNr"> 446 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/at-start-of-line
@ -517,7 +517,7 @@ if ('onhashchange' in window) {
<span id="L453" class="LineNr"> 453 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/not-at-start-of-line
<span id="L454" class="LineNr"> 454 </span> <span class="Delimiter">}</span>
<span id="L455" class="LineNr"> 455 </span> <span class="Delimiter">{</span>
<span id="L456" class="LineNr"> 456 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in
<span id="L456" class="LineNr"> 456 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1022'>gap-buffer-scan-done?</a> in
<span id="L457" class="LineNr"> 457 </span> compare done?, <span class="Constant">0</span>/false
<span id="L458" class="LineNr"> 458 </span> <span class="PreProc">break-if-=</span>
<span id="L459" class="LineNr"> 459 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">&quot;tokenize&quot;</span>, <span class="Constant">&quot;end&quot;</span>
@ -525,7 +525,7 @@ if ('onhashchange' in window) {
<span id="L461" class="LineNr"> 461 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace
<span id="L462" class="LineNr"> 462 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/at-start-of-line
<span id="L463" class="LineNr"> 463 </span> <span class="Delimiter">}</span>
<span id="L464" class="LineNr"> 464 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in
<span id="L464" class="LineNr"> 464 </span> <span class="PreProc">var</span> _g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1046'>peek-from-gap-buffer</a> in
<span id="L465" class="LineNr"> 465 </span> <span class="PreProc">var</span> g/<span class="muRegEcx">ecx</span>: grapheme <span class="Special">&lt;-</span> copy _g
<span id="L466" class="LineNr"> 466 </span> <span class="Delimiter">{</span>
<span id="L467" class="LineNr"> 467 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special">&lt;-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace
@ -543,7 +543,7 @@ if ('onhashchange' in window) {
<span id="L479" class="LineNr"> 479 </span> <span class="Delimiter">{</span>
<span id="L480" class="LineNr"> 480 </span> compare g, <span class="Constant">0x22</span>/double-quote
<span id="L481" class="LineNr"> 481 </span> <span class="PreProc">break-if-!=</span>
<span id="L482" class="LineNr"> 482 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># skip</span>
<span id="L482" class="LineNr"> 482 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in <span class="muComment"># skip</span>
<span id="L483" class="LineNr"> 483 </span> <a href='tokenize.mu.html#L680'>next-stream-token</a> in, out, trace
<span id="L484" class="LineNr"> 484 </span> <span class="PreProc">break</span> $next-token:case
<span id="L485" class="LineNr"> 485 </span> <span class="Delimiter">}</span>
@ -551,7 +551,7 @@ if ('onhashchange' in window) {
<span id="L487" class="LineNr"> 487 </span> <span class="Delimiter">{</span>
<span id="L488" class="LineNr"> 488 </span> compare g, <span class="Constant">0x5b</span>/open-square-bracket
<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">break-if-!=</span>
<span id="L490" class="LineNr"> 490 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># skip open bracket</span>
<span id="L490" class="LineNr"> 490 </span> <span class="PreProc">var</span> dummy/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in <span class="muComment"># skip open bracket</span>
<span id="L491" class="LineNr"> 491 </span> <a href='tokenize.mu.html#L718'>next-balanced-stream-token</a> in, out, trace
<span id="L492" class="LineNr"> 492 </span> <span class="PreProc">break</span> $next-token:case
<span id="L493" class="LineNr"> 493 </span> <span class="Delimiter">}</span>
@ -575,7 +575,7 @@ if ('onhashchange' in window) {
<span id="L511" class="LineNr"> 511 </span> <span class="PreProc">var</span> bracket?/eax: boolean <span class="Special">&lt;-</span> <a href='tokenize.mu.html#L934'>bracket-grapheme?</a> g
<span id="L512" class="LineNr"> 512 </span> compare bracket?, <span class="Constant">0</span>/false
<span id="L513" class="LineNr"> 513 </span> <span class="PreProc">break-if-=</span>
<span id="L514" class="LineNr"> 514 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in
<span id="L514" class="LineNr"> 514 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in
<span id="L515" class="LineNr"> 515 </span> <a href='tokenize.mu.html#L767'>next-bracket-token</a> g, out, trace
<span id="L516" class="LineNr"> 516 </span> <span class="PreProc">break</span> $next-token:case
<span id="L517" class="LineNr"> 517 </span> <span class="Delimiter">}</span>
@ -583,7 +583,7 @@ if ('onhashchange' in window) {
<span id="L519" class="LineNr"> 519 </span> <span class="Delimiter">{</span>
<span id="L520" class="LineNr"> 520 </span> compare g, <span class="Constant">0x27</span>/single-quote
<span id="L521" class="LineNr"> 521 </span> <span class="PreProc">break-if-!=</span>
<span id="L522" class="LineNr"> 522 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span>
<span id="L522" class="LineNr"> 522 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in <span class="muComment"># consume</span>
<span id="L523" class="LineNr"> 523 </span> <a href='tokenize.mu.html#L1151'>initialize-token</a> out, <span class="Constant">&quot;'&quot;</span>
<span id="L524" class="LineNr"> 524 </span> <span class="PreProc">break</span> $next-token:case
<span id="L525" class="LineNr"> 525 </span> <span class="Delimiter">}</span>
@ -591,7 +591,7 @@ if ('onhashchange' in window) {
<span id="L527" class="LineNr"> 527 </span> <span class="Delimiter">{</span>
<span id="L528" class="LineNr"> 528 </span> compare g, <span class="Constant">0x60</span>/backquote
<span id="L529" class="LineNr"> 529 </span> <span class="PreProc">break-if-!=</span>
<span id="L530" class="LineNr"> 530 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span>
<span id="L530" class="LineNr"> 530 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in <span class="muComment"># consume</span>
<span id="L531" class="LineNr"> 531 </span> <a href='tokenize.mu.html#L1151'>initialize-token</a> out, <span class="Constant">&quot;`&quot;</span>
<span id="L532" class="LineNr"> 532 </span> <span class="PreProc">break</span> $next-token:case
<span id="L533" class="LineNr"> 533 </span> <span class="Delimiter">}</span>
@ -599,23 +599,23 @@ if ('onhashchange' in window) {
<span id="L535" class="LineNr"> 535 </span> <span class="Delimiter">{</span>
<span id="L536" class="LineNr"> 536 </span> compare g, <span class="Constant">0x2c</span>/comma
<span id="L537" class="LineNr"> 537 </span> <span class="PreProc">break-if-!=</span>
<span id="L538" class="LineNr"> 538 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span>
<span id="L538" class="LineNr"> 538 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in <span class="muComment"># consume</span>
<span id="L539" class="LineNr"> 539 </span> <span class="muComment"># check for unquote-splice</span>
<span id="L540" class="LineNr"> 540 </span> <span class="Delimiter">{</span>
<span id="L541" class="LineNr"> 541 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in
<span id="L541" class="LineNr"> 541 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1046'>peek-from-gap-buffer</a> in
<span id="L542" class="LineNr"> 542 </span> compare g, <span class="Constant">0x40</span>/at-sign
<span id="L543" class="LineNr"> 543 </span> <span class="PreProc">break-if-!=</span>
<span id="L544" class="LineNr"> 544 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in
<span id="L544" class="LineNr"> 544 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in
<span id="L545" class="LineNr"> 545 </span> <a href='tokenize.mu.html#L1151'>initialize-token</a> out, <span class="Constant">&quot;,@&quot;</span>
<span id="L546" class="LineNr"> 546 </span> <span class="PreProc">break</span> $next-token:case
<span id="L547" class="LineNr"> 547 </span> <span class="Delimiter">}</span>
<span id="L548" class="LineNr"> 548 </span> <a href='tokenize.mu.html#L1151'>initialize-token</a> out, <span class="Constant">&quot;,&quot;</span>
<span id="L549" class="LineNr"> 549 </span> <span class="PreProc">break</span> $next-token:case
<span id="L550" class="LineNr"> 550 </span> <span class="Delimiter">}</span>
<span id="L551" class="LineNr"> 551 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x40</span> <span class="Constant">0x20</span>
<span id="L551" class="LineNr"> 551 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>/screen, <span class="Constant">0x40</span> <span class="Constant">0x20</span>
<span id="L552" class="LineNr"> 552 </span> <span class="Delimiter">{</span>
<span id="L553" class="LineNr"> 553 </span> <span class="PreProc">var</span> foo/eax: int <span class="Special">&lt;-</span> copy g
<span id="L554" class="LineNr"> 554 </span> <a href='../501draw-text.mu.html#L394'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, foo, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L554" class="LineNr"> 554 </span> <a href='../501draw-text.mu.html#L449'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, foo, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L555" class="LineNr"> 555 </span> <span class="Delimiter">}</span>
<span id="L556" class="LineNr"> 556 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">&quot;unknown <a href='tokenize.mu.html#L3'>token</a> type&quot;</span>
<span id="L557" class="LineNr"> 557 </span> <span class="Delimiter">}</span>
@ -642,10 +642,10 @@ if ('onhashchange' in window) {
<span id="L578" class="LineNr"> 578 </span> <span class="PreProc">var</span> _out-data/eax: (addr stream byte) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *out-data-ah
<span id="L579" class="LineNr"> 579 </span> <span class="PreProc">var</span> out-data/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special">&lt;-</span> copy _out-data
<span id="L580" class="LineNr"> 580 </span> $next-symbol-token:<span class="PreProc">loop</span>: <span class="Delimiter">{</span>
<span id="L581" class="LineNr"> 581 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in
<span id="L581" class="LineNr"> 581 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1022'>gap-buffer-scan-done?</a> in
<span id="L582" class="LineNr"> 582 </span> compare done?, <span class="Constant">0</span>/false
<span id="L583" class="LineNr"> 583 </span> <span class="PreProc">break-if-!=</span>
<span id="L584" class="LineNr"> 584 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in
<span id="L584" class="LineNr"> 584 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1046'>peek-from-gap-buffer</a> in
<span id="L585" class="LineNr"> 585 </span> <span class="Delimiter">{</span>
<span id="L586" class="LineNr"> 586 </span> <span class="Delimiter">{</span>
<span id="L587" class="LineNr"> 587 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special">&lt;-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace
@ -667,7 +667,7 @@ if ('onhashchange' in window) {
<span id="L603" class="LineNr"> 603 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">&quot;tokenize&quot;</span>, <span class="Constant">&quot;stop&quot;</span>
<span id="L604" class="LineNr"> 604 </span> <span class="PreProc">break</span> $next-symbol-token:<span class="PreProc">loop</span>
<span id="L605" class="LineNr"> 605 </span> <span class="Delimiter">}</span>
<span id="L606" class="LineNr"> 606 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in
<span id="L606" class="LineNr"> 606 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in
<span id="L607" class="LineNr"> 607 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> out-data, g
<span id="L608" class="LineNr"> 608 </span> <span class="PreProc">loop</span>
<span id="L609" class="LineNr"> 609 </span> <span class="Delimiter">}</span>
@ -694,16 +694,16 @@ if ('onhashchange' in window) {
<span id="L630" class="LineNr"> 630 </span> <span class="PreProc">var</span> _out-data/eax: (addr stream byte) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *out-data-ah
<span id="L631" class="LineNr"> 631 </span> <span class="PreProc">var</span> out-data/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special">&lt;-</span> copy _out-data
<span id="L632" class="LineNr"> 632 </span> $next-number-token:check-minus: <span class="Delimiter">{</span>
<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in
<span id="L633" class="LineNr"> 633 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1046'>peek-from-gap-buffer</a> in
<span id="L634" class="LineNr"> 634 </span> compare g, <span class="Constant">0x2d</span>/minus
<span id="L635" class="LineNr"> 635 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span>
<span id="L635" class="LineNr"> 635 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in <span class="muComment"># consume</span>
<span id="L636" class="LineNr"> 636 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> out-data, g
<span id="L637" class="LineNr"> 637 </span> <span class="Delimiter">}</span>
<span id="L638" class="LineNr"> 638 </span> $next-number-token:<span class="PreProc">loop</span>: <span class="Delimiter">{</span>
<span id="L639" class="LineNr"> 639 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in
<span id="L639" class="LineNr"> 639 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1022'>gap-buffer-scan-done?</a> in
<span id="L640" class="LineNr"> 640 </span> compare done?, <span class="Constant">0</span>/false
<span id="L641" class="LineNr"> 641 </span> <span class="PreProc">break-if-!=</span>
<span id="L642" class="LineNr"> 642 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in
<span id="L642" class="LineNr"> 642 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1046'>peek-from-gap-buffer</a> in
<span id="L643" class="LineNr"> 643 </span> <span class="Delimiter">{</span>
<span id="L644" class="LineNr"> 644 </span> <span class="Delimiter">{</span>
<span id="L645" class="LineNr"> 645 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special">&lt;-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace
@ -734,7 +734,7 @@ if ('onhashchange' in window) {
<span id="L670" class="LineNr"> 670 </span> <span class="PreProc">return</span>
<span id="L671" class="LineNr"> 671 </span> <span class="Delimiter">}</span>
<span id="L672" class="LineNr"> 672 </span> <a href='trace.mu.html#L185'>trace-text</a> trace, <span class="Constant">&quot;tokenize&quot;</span>, <span class="Constant">&quot;append&quot;</span>
<span id="L673" class="LineNr"> 673 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in
<span id="L673" class="LineNr"> 673 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in
<span id="L674" class="LineNr"> 674 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> out-data, g
<span id="L675" class="LineNr"> 675 </span> <span class="PreProc">loop</span>
<span id="L676" class="LineNr"> 676 </span> <span class="Delimiter">}</span>
@ -753,14 +753,14 @@ if ('onhashchange' in window) {
<span id="L689" class="LineNr"> 689 </span> <span class="PreProc">var</span> _out-data/eax: (addr stream byte) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *out-data-ah
<span id="L690" class="LineNr"> 690 </span> <span class="PreProc">var</span> out-data/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special">&lt;-</span> copy _out-data
<span id="L691" class="LineNr"> 691 </span> <span class="Delimiter">{</span>
<span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in
<span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1022'>gap-buffer-scan-done?</a> in
<span id="L693" class="LineNr"> 693 </span> compare empty?, <span class="Constant">0</span>/false
<span id="L694" class="LineNr"> 694 </span> <span class="Delimiter">{</span>
<span id="L695" class="LineNr"> 695 </span> <span class="PreProc">break-if-=</span>
<span id="L696" class="LineNr"> 696 </span> <span class="Special"><a href='trace.mu.html#L197'>error</a></span> trace, <span class="Constant">&quot;unbalanced '\&quot;</span>'&quot;
<span id="L697" class="LineNr"> 697 </span> <span class="PreProc">return</span>
<span id="L698" class="LineNr"> 698 </span> <span class="Delimiter">}</span>
<span id="L699" class="LineNr"> 699 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in
<span id="L699" class="LineNr"> 699 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in
<span id="L700" class="LineNr"> 700 </span> compare g, <span class="Constant">0x22</span>/double-quote
<span id="L701" class="LineNr"> 701 </span> <span class="PreProc">break-if-=</span>
<span id="L702" class="LineNr"> 702 </span> <a href='../403unicode.mu.html#L339'>write-grapheme</a> out-data, g
@ -792,14 +792,14 @@ if ('onhashchange' in window) {
<span id="L728" class="LineNr"> 728 </span> <span class="PreProc">var</span> _out-data/eax: (addr stream byte) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *out-data-ah
<span id="L729" class="LineNr"> 729 </span> <span class="PreProc">var</span> out-data/<span class="muRegEdi">edi</span>: (addr stream byte) <span class="Special">&lt;-</span> copy _out-data
<span id="L730" class="LineNr"> 730 </span> $next-balanced-stream-token:<span class="PreProc">loop</span>: <span class="Delimiter">{</span>
<span id="L731" class="LineNr"> 731 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in
<span id="L731" class="LineNr"> 731 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1022'>gap-buffer-scan-done?</a> in
<span id="L732" class="LineNr"> 732 </span> compare empty?, <span class="Constant">0</span>/false
<span id="L733" class="LineNr"> 733 </span> <span class="Delimiter">{</span>
<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">&quot;unbalanced '['&quot;</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> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in
<span id="L738" class="LineNr"> 738 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in
<span id="L739" class="LineNr"> 739 </span> <span class="Delimiter">{</span>
<span id="L740" class="LineNr"> 740 </span> compare g, <span class="Constant">0x5b</span>/open-square-bracket
<span id="L741" class="LineNr"> 741 </span> <span class="PreProc">break-if-!=</span>
@ -851,13 +851,13 @@ if ('onhashchange' in window) {
<span id="L787" class="LineNr"> 787 </span>
<span id="L788" class="LineNr"> 788 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L788'>skip-rest-of-line</a></span> in: (addr <a href='../514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span>
<span id="L789" class="LineNr"> 789 </span> <span class="Delimiter">{</span>
<span id="L790" class="LineNr"> 790 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in
<span id="L790" class="LineNr"> 790 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1022'>gap-buffer-scan-done?</a> in
<span id="L791" class="LineNr"> 791 </span> compare done?, <span class="Constant">0</span>/false
<span id="L792" class="LineNr"> 792 </span> <span class="PreProc">break-if-!=</span>
<span id="L793" class="LineNr"> 793 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in
<span id="L793" class="LineNr"> 793 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1046'>peek-from-gap-buffer</a> in
<span id="L794" class="LineNr"> 794 </span> compare g, <span class="Constant">0xa</span>/newline
<span id="L795" class="LineNr"> 795 </span> <span class="PreProc">break-if-=</span>
<span id="L796" class="LineNr"> 796 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in <span class="muComment"># consume</span>
<span id="L796" class="LineNr"> 796 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in <span class="muComment"># consume</span>
<span id="L797" class="LineNr"> 797 </span> <span class="PreProc">loop</span>
<span id="L798" class="LineNr"> 798 </span> <span class="Delimiter">}</span>
<span id="L799" class="LineNr"> 799 </span><span class="Delimiter">}</span>
@ -871,10 +871,10 @@ if ('onhashchange' in window) {
<span id="L807" class="LineNr"> 807 </span> <span class="PreProc">var</span> dest/<span class="muRegEdi">edi</span>: (addr int) <span class="Special">&lt;-</span> get out, number-data
<span id="L808" class="LineNr"> 808 </span> copy-to *dest, <span class="Constant">0</span>
<span id="L809" class="LineNr"> 809 </span> <span class="Delimiter">{</span>
<span id="L810" class="LineNr"> 810 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1023'>gap-buffer-scan-done?</a> in
<span id="L810" class="LineNr"> 810 </span> <span class="PreProc">var</span> done?/eax: boolean <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1022'>gap-buffer-scan-done?</a> in
<span id="L811" class="LineNr"> 811 </span> compare done?, <span class="Constant">0</span>/false
<span id="L812" class="LineNr"> 812 </span> <span class="PreProc">break-if-!=</span>
<span id="L813" class="LineNr"> 813 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1047'>peek-from-gap-buffer</a> in
<span id="L813" class="LineNr"> 813 </span> <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1046'>peek-from-gap-buffer</a> in
<span id="L814" class="LineNr"> 814 </span> <span class="Delimiter">{</span>
<span id="L815" class="LineNr"> 815 </span> <span class="Delimiter">{</span>
<span id="L816" class="LineNr"> 816 </span> <span class="PreProc">var</span> <a href='trace.mu.html#L123'>should-trace?</a>/eax: boolean <span class="Special">&lt;-</span> <a href='trace.mu.html#L123'>should-trace?</a> trace
@ -891,7 +891,7 @@ if ('onhashchange' in window) {
<span id="L827" class="LineNr"> 827 </span> <span class="muComment"># if non-space, break</span>
<span id="L828" class="LineNr"> 828 </span> compare g, <span class="Constant">0x20</span>/space
<span id="L829" class="LineNr"> 829 </span> <span class="PreProc">break-if-!=</span>
<span id="L830" class="LineNr"> 830 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1083'>read-from-gap-buffer</a> in
<span id="L830" class="LineNr"> 830 </span> g <span class="Special">&lt;-</span> <a href='../514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a> in
<span id="L831" class="LineNr"> 831 </span> increment *dest
<span id="L832" class="LineNr"> 832 </span> <span class="PreProc">loop</span>
<span id="L833" class="LineNr"> 833 </span> <span class="Delimiter">}</span>
@ -1277,16 +1277,16 @@ if ('onhashchange' in window) {
<span id="L1213" class="LineNr">1213 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tokenize.mu.html#L1213'>dump-token-from-cursor</a></span> _t: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Delimiter">{</span>
<span id="L1214" class="LineNr">1214 </span> <span class="PreProc">var</span> t/<span class="muRegEsi">esi</span>: (addr <a href='tokenize.mu.html#L3'>token</a>) <span class="Special">&lt;-</span> copy _t
<span id="L1215" class="LineNr">1215 </span> <span class="PreProc">var</span> <span class="PreProc">type</span>/eax: (addr int) <span class="Special">&lt;-</span> get t, <span class="PreProc">type</span>
<span id="L1216" class="LineNr">1216 </span> <a href='../501draw-text.mu.html#L394'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, *<span class="PreProc">type</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1217" class="LineNr">1217 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; &quot;</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1216" class="LineNr">1216 </span> <a href='../501draw-text.mu.html#L449'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, *<span class="PreProc">type</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1217" class="LineNr">1217 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; &quot;</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1218" class="LineNr">1218 </span> <span class="PreProc">var</span> text-ah/eax: (addr handle stream byte) <span class="Special">&lt;-</span> get t, text-data
<span id="L1219" class="LineNr">1219 </span> <span class="PreProc">var</span> text/eax: (addr stream byte) <span class="Special">&lt;-</span> <a href='../120allocate.subx.html#L235'>lookup</a> *text-ah
<span id="L1220" class="LineNr">1220 </span> <a href='../106stream.subx.html#L59'>rewind-stream</a> text
<span id="L1221" class="LineNr">1221 </span> <a href='../501draw-text.mu.html#L240'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, text, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1222" class="LineNr">1222 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; &quot;</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1221" class="LineNr">1221 </span> <a href='../501draw-text.mu.html#L295'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, text, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1222" class="LineNr">1222 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot; &quot;</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1223" class="LineNr">1223 </span> <span class="PreProc">var</span> num/eax: (addr int) <span class="Special">&lt;-</span> get t, number-data
<span id="L1224" class="LineNr">1224 </span> <a href='../501draw-text.mu.html#L394'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, *num, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1225" class="LineNr">1225 </span> <a href='../501draw-text.mu.html#L284'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;\n&quot;</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1224" class="LineNr">1224 </span> <a href='../501draw-text.mu.html#L449'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, *num, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1225" class="LineNr">1225 </span> <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;\n&quot;</span>, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
<span id="L1226" class="LineNr">1226 </span><span class="Delimiter">}</span>
</pre>
</body>

View File

@ -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; }
@ -31,7 +31,7 @@ a { color:inherit; }
-->
</style>
<script type='text/javascript'>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
@ -557,9 +557,9 @@ if ('onhashchange' in window) {
<span id="L492" class="LineNr"> 492 </span> compare width, <span class="Constant">0x80</span>
<span id="L493" class="LineNr"> 493 </span> <span class="PreProc">break-if-&lt;</span> $render-trace:render-depth
<span id="L494" class="LineNr"> 494 </span> <span class="Delimiter">}</span>
<span id="L495" class="LineNr"> 495 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x70</span>/x, y
<span id="L496" class="LineNr"> 496 </span> <a href='../501draw-text.mu.html#L148'>draw-text-rightward-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;trace depth: &quot;</span>, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L497" class="LineNr"> 497 </span> <a href='../501draw-text.mu.html#L394'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *max-depth, <span class="Constant">0x7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L495" class="LineNr"> 495 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x70</span>/x, y
<span id="L496" class="LineNr"> 496 </span> <a href='../501draw-text.mu.html#L155'>draw-text-rightward-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;trace depth: &quot;</span>, <span class="Constant">0x17</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L497" class="LineNr"> 497 </span> <a href='../501draw-text.mu.html#L449'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *max-depth, <span class="Constant">0x7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L498" class="LineNr"> 498 </span> <span class="Delimiter">}</span>
<span id="L499" class="LineNr"> 499 </span> <span class="PreProc">var</span> top-line-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special">&lt;-</span> get self, top-line-index
<span id="L500" class="LineNr"> 500 </span> <span class="PreProc">var</span> i/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy *top-line-addr
@ -612,7 +612,7 @@ if ('onhashchange' in window) {
<span id="L547" class="LineNr"> 547 </span> <span class="Delimiter">{</span>
<span id="L548" class="LineNr"> 548 </span> <span class="PreProc">break-if-!=</span>
<span id="L549" class="LineNr"> 549 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> copy xmin
<span id="L550" class="LineNr"> 550 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;...&quot;</span>, xmin, ymin, xmax, ymax, x, y, fg, bg
<span id="L550" class="LineNr"> 550 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;...&quot;</span>, xmin, ymin, xmax, ymax, x, y, fg, bg
<span id="L551" class="LineNr"> 551 </span> y <span class="Special">&lt;-</span> increment
<span id="L552" class="LineNr"> 552 </span> copy-to already-hiding-lines?, <span class="Constant">1</span>/true
<span id="L553" class="LineNr"> 553 </span> <span class="Delimiter">}</span>
@ -655,8 +655,8 @@ if ('onhashchange' in window) {
<span id="L590" class="LineNr"> 590 </span> <span class="PreProc">break-if-=</span>
<span id="L591" class="LineNr"> 591 </span> <span class="PreProc">var</span> x/eax: int <span class="Special">&lt;-</span> copy xsave
<span id="L592" class="LineNr"> 592 </span> <span class="Delimiter">{</span>
<span id="L593" class="LineNr"> 593 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L346'>draw-int32-decimal-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *depth-a, xmin, ymin, xmax, ymax, x, y, fg, bg
<span id="L594" class="LineNr"> 594 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</span>, xmin, ymin, xmax, ymax, x, y, fg, bg
<span id="L593" class="LineNr"> 593 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L401'>draw-int32-decimal-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *depth-a, xmin, ymin, xmax, ymax, x, y, fg, bg
<span id="L594" class="LineNr"> 594 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; &quot;</span>, xmin, ymin, xmax, ymax, x, y, fg, bg
<span id="L595" class="LineNr"> 595 </span> <span class="muComment"># don't show label in UI; it's just for tests</span>
<span id="L596" class="LineNr"> 596 </span> <span class="Delimiter">}</span>
<span id="L597" class="LineNr"> 597 </span> xsave <span class="Special">&lt;-</span> copy x
@ -668,12 +668,12 @@ if ('onhashchange' in window) {
<span id="L603" class="LineNr"> 603 </span> compare unclip?, <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> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, data, xmin, ymin, xmax, ymax, x, y, fg, bg
<span id="L606" class="LineNr"> 606 </span> x, y <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, data, xmin, ymin, xmax, ymax, x, y, fg, bg
<span id="L607" class="LineNr"> 607 </span> <span class="Delimiter">}</span>
<span id="L608" class="LineNr"> 608 </span> compare unclip?, <span class="Constant">0</span>/false
<span id="L609" class="LineNr"> 609 </span> <span class="Delimiter">{</span>
<span id="L610" class="LineNr"> 610 </span> <span class="PreProc">break-if-!=</span>
<span id="L611" class="LineNr"> 611 </span> x <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L106'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, data, x, xmax, y, fg, bg
<span id="L611" class="LineNr"> 611 </span> x <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L113'>draw-text-rightward</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, data, x, xmax, y, fg, bg
<span id="L612" class="LineNr"> 612 </span> <span class="Delimiter">}</span>
<span id="L613" class="LineNr"> 613 </span> y <span class="Special">&lt;-</span> increment
<span id="L614" class="LineNr"> 614 </span> <span class="PreProc">return</span> y
@ -780,7 +780,7 @@ if ('onhashchange' in window) {
<span id="L715" class="LineNr"> 715 </span> <span class="Delimiter">}</span>
<span id="L716" class="LineNr"> 716 </span> <span class="PreProc">var</span> dummy1/eax: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L717" class="LineNr"> 717 </span> <span class="PreProc">var</span> dummy2/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L718" class="LineNr"> 718 </span> dummy1, dummy2 <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L181'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;...&quot;</span>, xmin, ymin, xmax, ymax, xmin, y, <span class="Constant">9</span>/fg=trace, <span class="Constant">7</span>/cursor-line-bg
<span id="L718" class="LineNr"> 718 </span> dummy1, dummy2 <span class="Special">&lt;-</span> <a href='../501draw-text.mu.html#L188'>draw-text-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;...&quot;</span>, xmin, ymin, xmax, ymax, xmin, y, <span class="Constant">9</span>/fg=trace, <span class="Constant">7</span>/cursor-line-bg
<span id="L719" class="LineNr"> 719 </span><span class="Delimiter">}</span>
<span id="L720" class="LineNr"> 720 </span>
<span id="L721" class="LineNr"> 721 </span><span class="PreProc">fn</span> <span class="muTest"><a href='trace.mu.html#L721'>test-render-trace-empty</a></span> <span class="Delimiter">{</span>
@ -955,18 +955,18 @@ if ('onhashchange' in window) {
<span id="L890" class="LineNr"> 890 </span> y <span class="Special">&lt;-</span> decrement
<span id="L891" class="LineNr"> 891 </span> <span class="PreProc">var</span> height/<span class="muRegEdx">edx</span>: int <span class="Special">&lt;-</span> copy y
<span id="L892" class="LineNr"> 892 </span> height <span class="Special">&lt;-</span> increment
<span id="L893" class="LineNr"> 893 </span> <a href='../500fake-screen.mu.html#L409'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y, width, height, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L894" class="LineNr"> 894 </span> <a href='../500fake-screen.mu.html#L246'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y
<span id="L895" class="LineNr"> 895 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^r &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L896" class="LineNr"> 896 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='main.mu.html#L4'>main</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L897" class="LineNr"> 897 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^g &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L898" class="LineNr"> 898 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; go to &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L899" class="LineNr"> 899 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^m &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">3</span>/bg=keyboard
<span id="L900" class="LineNr"> 900 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; to keyboard &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L901" class="LineNr"> 901 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; enter/bksp &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L902" class="LineNr"> 902 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; <a href='trace.mu.html#L985'>expand</a>/collapse &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L903" class="LineNr"> 903 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^s &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L904" class="LineNr"> 904 </span> <a href='../501draw-text.mu.html#L140'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; show whole line &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L893" class="LineNr"> 893 </span> <a href='../500fake-screen.mu.html#L430'>clear-rect</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y, width, height, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L894" class="LineNr"> 894 </span> <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/x, y
<span id="L895" class="LineNr"> 895 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^r &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L896" class="LineNr"> 896 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; run <a href='main.mu.html#L4'>main</a> &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L897" class="LineNr"> 897 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^g &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L898" class="LineNr"> 898 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; go to &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L899" class="LineNr"> 899 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^m &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">3</span>/bg=keyboard
<span id="L900" class="LineNr"> 900 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; to keyboard &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L901" class="LineNr"> 901 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; enter/bksp &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L902" class="LineNr"> 902 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; <a href='trace.mu.html#L985'>expand</a>/collapse &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<span id="L903" class="LineNr"> 903 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; ^s &quot;</span>, width, <span class="Constant">0</span>/fg, <span class="Constant">0x5c</span>/bg=menu-highlight
<span id="L904" class="LineNr"> 904 </span> <a href='../501draw-text.mu.html#L147'>draw-text-rightward-from-cursor</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot; show whole line &quot;</span>, width, <span class="Constant">7</span>/fg, <span class="Constant">0xc5</span>/bg=blue-bg
<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='trace.mu.html#L907'>edit-trace</a></span> _self: (addr trace), key: grapheme <span class="Delimiter">{</span>
@ -1658,7 +1658,7 @@ if ('onhashchange' in window) {
<span id="L1593" class="LineNr">1593 </span> <a href='trace.mu.html#L185'>trace-text</a> t, <span class="Constant">&quot;l&quot;</span>, <span class="Constant">&quot;line 5&quot;</span>
<span id="L1594" class="LineNr">1594 </span> <a href='trace.mu.html#L185'>trace-text</a> t, <span class="Constant">&quot;l&quot;</span>, <span class="Constant">&quot;line 6&quot;</span>
<span id="L1595" class="LineNr">1595 </span> <a href='trace.mu.html#L440'>mark-lines-dirty</a> t
<span id="L1596" class="LineNr">1596 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1596" class="LineNr">1596 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1597" class="LineNr">1597 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L1598" class="LineNr">1598 </span> <span class="muComment"># trace collapses, and cursor bumps up</span>
<span id="L1599" class="LineNr">1599 </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">&quot;... &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1550'>test-trace-keep-cursor-visible-on-refresh</a>/refresh-0&quot;</span>
@ -1703,7 +1703,7 @@ if ('onhashchange' in window) {
<span id="L1638" class="LineNr">1638 </span> <span class="muComment"># collapse</span>
<span id="L1639" class="LineNr">1639 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">8</span>/backspace
<span id="L1640" class="LineNr">1640 </span> <span class="muComment"># hack: we need to render here to make this test pass; we're mixing state management with rendering</span>
<span id="L1641" class="LineNr">1641 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1641" class="LineNr">1641 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1642" class="LineNr">1642 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L1643" class="LineNr">1643 </span> <span class="muComment">#</span>
<span id="L1644" class="LineNr">1644 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> y, <span class="Constant">1</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1607'>test-trace-collapse-at-top</a>/post-0/y&quot;</span>
@ -1744,7 +1744,7 @@ if ('onhashchange' in window) {
<span id="L1679" class="LineNr">1679 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L1680" class="LineNr">1680 </span> <span class="muComment"># collapse</span>
<span id="L1681" class="LineNr">1681 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">8</span>/backspace
<span id="L1682" class="LineNr">1682 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1682" class="LineNr">1682 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1683" class="LineNr">1683 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L1684" class="LineNr">1684 </span> <span class="muComment">#</span>
<span id="L1685" class="LineNr">1685 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> y, <span class="Constant">1</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1651'>test-trace-collapse</a>/post-0/y&quot;</span>
@ -1792,7 +1792,7 @@ if ('onhashchange' in window) {
<span id="L1727" class="LineNr">1727 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L1728" class="LineNr">1728 </span> <span class="muComment"># collapse</span>
<span id="L1729" class="LineNr">1729 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">8</span>/backspace
<span id="L1730" class="LineNr">1730 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1730" class="LineNr">1730 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1731" class="LineNr">1731 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L1732" class="LineNr">1732 </span> <span class="muComment">#</span>
<span id="L1733" class="LineNr">1733 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> y, <span class="Constant">1</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1692'>test-trace-collapse-skips-invisible-lines</a>/post-0/y&quot;</span>
@ -1853,7 +1853,7 @@ if ('onhashchange' in window) {
<span id="L1788" class="LineNr">1788 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L1789" class="LineNr">1789 </span> <span class="muComment"># collapse</span>
<span id="L1790" class="LineNr">1790 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">8</span>/backspace
<span id="L1791" class="LineNr">1791 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1791" class="LineNr">1791 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1792" class="LineNr">1792 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L1793" class="LineNr">1793 </span> <span class="muComment">#</span>
<span id="L1794" class="LineNr">1794 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> y, <span class="Constant">1</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1742'>test-trace-collapse-two-levels</a>/post-0/y&quot;</span>
@ -1925,7 +1925,7 @@ if ('onhashchange' in window) {
<span id="L1860" class="LineNr">1860 </span> <a href='../504test-screen.mu.html#L267'>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">&quot; &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1803'>test-trace-collapse-nested-level</a>/expand2-4/cursor&quot;</span>
<span id="L1861" class="LineNr">1861 </span> <span class="muComment"># collapse</span>
<span id="L1862" class="LineNr">1862 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">8</span>/backspace
<span id="L1863" class="LineNr">1863 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1863" class="LineNr">1863 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L1864" class="LineNr">1864 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">8</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L1865" class="LineNr">1865 </span> <span class="muComment">#</span>
<span id="L1866" class="LineNr">1866 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> y, <span class="Constant">4</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1803'>test-trace-collapse-nested-level</a>/post-0/y&quot;</span>
@ -2070,7 +2070,7 @@ if ('onhashchange' in window) {
<span id="L2005" class="LineNr">2005 </span> <a href='../504test-screen.mu.html#L267'>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">&quot; &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/pre-3/cursor&quot;</span>
<span id="L2006" class="LineNr">2006 </span> <span class="muComment"># expand</span>
<span id="L2007" class="LineNr">2007 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">0xa</span>/enter
<span id="L2008" class="LineNr">2008 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2008" class="LineNr">2008 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2009" class="LineNr">2009 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L2010" class="LineNr">2010 </span> <span class="muComment">#</span>
<span id="L2011" class="LineNr">2011 </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">&quot;1 line 0 &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/expand-0&quot;</span>
@ -2084,7 +2084,7 @@ if ('onhashchange' in window) {
<span id="L2019" class="LineNr">2019 </span> <span class="muComment"># scroll up</span>
<span id="L2020" class="LineNr">2020 </span> <span class="muComment"># hack: we must have rendered before this point; we're mixing state management with rendering</span>
<span id="L2021" class="LineNr">2021 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">2</span>/ctrl-b
<span id="L2022" class="LineNr">2022 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2022" class="LineNr">2022 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2023" class="LineNr">2023 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L2024" class="LineNr">2024 </span> <span class="muComment"># no change since we're already at the top</span>
<span id="L2025" class="LineNr">2025 </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">&quot;1 line 0 &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/up0-0&quot;</span>
@ -2097,7 +2097,7 @@ if ('onhashchange' in window) {
<span id="L2032" class="LineNr">2032 </span> <a href='../504test-screen.mu.html#L267'>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">&quot; &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/up0-3/cursor&quot;</span>
<span id="L2033" class="LineNr">2033 </span> <span class="muComment"># scroll down</span>
<span id="L2034" class="LineNr">2034 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">6</span>/ctrl-f
<span id="L2035" class="LineNr">2035 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2035" class="LineNr">2035 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2036" class="LineNr">2036 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L2037" class="LineNr">2037 </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">&quot;1 line 4 &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/down1-0&quot;</span>
<span id="L2038" class="LineNr">2038 </span> <a href='../504test-screen.mu.html#L267'>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">0</span>/y, <span class="Constant">&quot;|||||||| &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/down1-0/cursor&quot;</span>
@ -2109,7 +2109,7 @@ if ('onhashchange' in window) {
<span id="L2044" class="LineNr">2044 </span> <a href='../504test-screen.mu.html#L267'>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">&quot; &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/down1-3/cursor&quot;</span>
<span id="L2045" class="LineNr">2045 </span> <span class="muComment"># scroll down</span>
<span id="L2046" class="LineNr">2046 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">6</span>/ctrl-f
<span id="L2047" class="LineNr">2047 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2047" class="LineNr">2047 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2048" class="LineNr">2048 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L2049" class="LineNr">2049 </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">&quot;1 line 8 &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/down2-0&quot;</span>
<span id="L2050" class="LineNr">2050 </span> <a href='../504test-screen.mu.html#L267'>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">0</span>/y, <span class="Constant">&quot;|||||||| &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/down2-0/cursor&quot;</span>
@ -2121,7 +2121,7 @@ if ('onhashchange' in window) {
<span id="L2056" class="LineNr">2056 </span> <a href='../504test-screen.mu.html#L267'>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">&quot; &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/down2-3/cursor&quot;</span>
<span id="L2057" class="LineNr">2057 </span> <span class="muComment"># scroll down</span>
<span id="L2058" class="LineNr">2058 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">6</span>/ctrl-f
<span id="L2059" class="LineNr">2059 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2059" class="LineNr">2059 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2060" class="LineNr">2060 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L2061" class="LineNr">2061 </span> <span class="muComment"># no change since we're already at the bottom</span>
<span id="L2062" class="LineNr">2062 </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">&quot;1 line 8 &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/down3-0&quot;</span>
@ -2134,7 +2134,7 @@ if ('onhashchange' in window) {
<span id="L2069" class="LineNr">2069 </span> <a href='../504test-screen.mu.html#L267'>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">&quot; &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/down3-3/cursor&quot;</span>
<span id="L2070" class="LineNr">2070 </span> <span class="muComment"># scroll up</span>
<span id="L2071" class="LineNr">2071 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">2</span>/ctrl-b
<span id="L2072" class="LineNr">2072 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2072" class="LineNr">2072 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2073" class="LineNr">2073 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L2074" class="LineNr">2074 </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">&quot;1 line 4 &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/up1-0&quot;</span>
<span id="L2075" class="LineNr">2075 </span> <a href='../504test-screen.mu.html#L267'>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">0</span>/y, <span class="Constant">&quot;|||||||| &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/up1-0/cursor&quot;</span>
@ -2146,7 +2146,7 @@ if ('onhashchange' in window) {
<span id="L2081" class="LineNr">2081 </span> <a href='../504test-screen.mu.html#L267'>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">&quot; &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/up1-3/cursor&quot;</span>
<span id="L2082" class="LineNr">2082 </span> <span class="muComment"># scroll up</span>
<span id="L2083" class="LineNr">2083 </span> <a href='trace.mu.html#L907'>edit-trace</a> t, <span class="Constant">2</span>/ctrl-b
<span id="L2084" class="LineNr">2084 </span> <a href='../500fake-screen.mu.html#L307'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2084" class="LineNr">2084 </span> <a href='../500fake-screen.mu.html#L328'>clear-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>
<span id="L2085" class="LineNr">2085 </span> <span class="PreProc">var</span> y/<span class="muRegEcx">ecx</span>: int <span class="Special">&lt;-</span> <a href='trace.mu.html#L452'>render-trace</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, t, <span class="Constant">0</span>/xmin, <span class="Constant">0</span>/ymin, <span class="Constant">0x10</span>/xmax, <span class="Constant">4</span>/ymax, <span class="Constant">1</span>/show-cursor
<span id="L2086" class="LineNr">2086 </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">&quot;1 line 0 &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/up2-0&quot;</span>
<span id="L2087" class="LineNr">2087 </span> <a href='../504test-screen.mu.html#L267'>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">0</span>/y, <span class="Constant">&quot;|||||||| &quot;</span>, <span class="Constant">&quot;F - <a href='trace.mu.html#L1976'>test-trace-scroll</a>/up2-0/cursor&quot;</span>