diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-11-09 09:29:56 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-11-09 09:29:56 -0800 |
commit | 53d69dd1c5707a1cddd5c2ca6827b9a517659eeb (patch) | |
tree | a54b647c8922c2cc5afd48c586dfbafb23bfe5d6 /html/514gap-buffer.mu.html | |
parent | 3ff2fe607c2cb5690d201d3b83ddcc957e949b7a (diff) | |
download | mu-53d69dd1c5707a1cddd5c2ca6827b9a517659eeb.tar.gz |
keep 'grapheme-stack'
We want to at least document intent there.
Diffstat (limited to 'html/514gap-buffer.mu.html')
-rw-r--r-- | html/514gap-buffer.mu.html | 180 |
1 files changed, 90 insertions, 90 deletions
diff --git a/html/514gap-buffer.mu.html b/html/514gap-buffer.mu.html index fecdeb83..b93853d1 100644 --- a/html/514gap-buffer.mu.html +++ b/html/514gap-buffer.mu.html @@ -65,8 +65,8 @@ if ('onhashchange' in window) { <span id="L1" class="LineNr"> 1 </span><span class="muComment"># primitive for editing text</span> <span id="L2" class="LineNr"> 2 </span> <span id="L3" class="LineNr"> 3 </span><span class="PreProc">type</span> <a href='514gap-buffer.mu.html#L3'>gap-buffer</a> <span class="Delimiter">{</span> -<span id="L4" class="LineNr"> 4 </span> left: <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a> -<span id="L5" class="LineNr"> 5 </span> right: <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a> +<span id="L4" class="LineNr"> 4 </span> left: <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a> +<span id="L5" class="LineNr"> 5 </span> right: <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a> <span id="L6" class="LineNr"> 6 </span> <span class="muComment"># some fields for scanning incrementally through a gap-buffer</span> <span id="L7" class="LineNr"> 7 </span> left-read-index: int <span id="L8" class="LineNr"> 8 </span> right-read-index: int @@ -74,39 +74,39 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr"> 10 </span> <span id="L11" class="LineNr"> 11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L11'>initialize-gap-buffer</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>), capacity: int <span class="Delimiter">{</span> <span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L14" class="LineNr"> 14 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-code-point-utf8-stack</a> left, capacity -<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right -<span id="L16" class="LineNr"> 16 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-code-point-utf8-stack</a> right, capacity +<span id="L13" class="LineNr"> 13 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L14" class="LineNr"> 14 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> left, capacity +<span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L16" class="LineNr"> 16 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> right, capacity <span id="L17" class="LineNr"> 17 </span><span class="Delimiter">}</span> <span id="L18" class="LineNr"> 18 </span> <span id="L19" class="LineNr"> 19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L19'>clear-gap-buffer</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L20" class="LineNr"> 20 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L22" class="LineNr"> 22 </span> <a href='513grapheme-stack.mu.html#L16'>clear-code-point-utf8-stack</a> left -<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right -<span id="L24" class="LineNr"> 24 </span> <a href='513grapheme-stack.mu.html#L16'>clear-code-point-utf8-stack</a> right +<span id="L21" class="LineNr"> 21 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L22" class="LineNr"> 22 </span> <a href='513grapheme-stack.mu.html#L16'>clear-grapheme-stack</a> left +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L24" class="LineNr"> 24 </span> <a href='513grapheme-stack.mu.html#L16'>clear-grapheme-stack</a> right <span id="L25" class="LineNr"> 25 </span><span class="Delimiter">}</span> <span id="L26" class="LineNr"> 26 </span> <span id="L27" class="LineNr"> 27 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L27'>gap-buffer-empty?</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L28" class="LineNr"> 28 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L29" class="LineNr"> 29 </span> <span class="muComment"># if !empty?(left) return false</span> <span id="L30" class="LineNr"> 30 </span> <span class="Delimiter">{</span> -<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L22'>code-point-utf8-stack-empty?</a> left +<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> left <span id="L33" class="LineNr"> 33 </span> compare result, <span class="Constant">0</span>/false <span id="L34" class="LineNr"> 34 </span> <span class="PreProc">break-if-!=</span> <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L36" class="LineNr"> 36 </span> <span class="Delimiter">}</span> <span id="L37" class="LineNr"> 37 </span> <span class="muComment"># return empty?(right)</span> -<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L22'>code-point-utf8-stack-empty?</a> left +<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> left <span id="L40" class="LineNr"> 40 </span> <span class="PreProc">return</span> result <span id="L41" class="LineNr"> 41 </span><span class="Delimiter">}</span> <span id="L42" class="LineNr"> 42 </span> <span id="L43" class="LineNr"> 43 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L43'>gap-buffer-capacity</a></span> _gap: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> <span id="L44" class="LineNr"> 44 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _gap -<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get gap, left +<span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, left <span id="L46" class="LineNr"> 46 </span> <span class="PreProc">var</span> left-data-ah/eax: (addr handle array code-point-utf8) <span class="Special"><-</span> get left, data <span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> left-data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *left-data-ah <span id="L48" class="LineNr"> 48 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> length left-data @@ -150,15 +150,15 @@ if ('onhashchange' in window) { <span id="L86" class="LineNr"> 86 </span> <span id="L87" class="LineNr"> 87 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L87'>append-gap-buffer</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>), out: (addr stream byte) <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='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left +<span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L90" class="LineNr"> 90 </span> <a href='514gap-buffer.mu.html#L96'>emit-stack-from-bottom</a> left, out -<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right +<span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L92" class="LineNr"> 92 </span> <a href='514gap-buffer.mu.html#L114'>emit-stack-from-top</a> right, out <span id="L93" class="LineNr"> 93 </span><span class="Delimiter">}</span> <span id="L94" class="LineNr"> 94 </span> <span id="L95" class="LineNr"> 95 </span><span class="muComment"># dump stack from bottom to top</span> -<span id="L96" class="LineNr"> 96 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L96'>emit-stack-from-bottom</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), out: (addr stream byte) <span class="Delimiter">{</span> -<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L96" class="LineNr"> 96 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L96'>emit-stack-from-bottom</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), out: (addr stream byte) <span class="Delimiter">{</span> +<span id="L97" class="LineNr"> 97 </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"><-</span> copy _self <span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L100" class="LineNr"> 100 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array code-point-utf8) <span class="Special"><-</span> copy _data @@ -175,8 +175,8 @@ if ('onhashchange' in window) { <span id="L111" class="LineNr"> 111 </span><span class="Delimiter">}</span> <span id="L112" class="LineNr"> 112 </span> <span id="L113" class="LineNr"> 113 </span><span class="muComment"># dump stack from top to bottom</span> -<span id="L114" class="LineNr"> 114 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L114'>emit-stack-from-top</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), out: (addr stream byte) <span class="Delimiter">{</span> -<span id="L115" class="LineNr"> 115 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L114" class="LineNr"> 114 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L114'>emit-stack-from-top</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), out: (addr stream byte) <span class="Delimiter">{</span> +<span id="L115" class="LineNr"> 115 </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"><-</span> copy _self <span id="L116" class="LineNr"> 116 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L117" class="LineNr"> 117 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L118" class="LineNr"> 118 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array code-point-utf8) <span class="Special"><-</span> copy _data @@ -203,10 +203,10 @@ if ('onhashchange' in window) { <span id="L139" class="LineNr"> 139 </span> <span class="PreProc">break-if-!=</span> <span id="L140" class="LineNr"> 140 </span> <span class="PreProc">return</span> <span id="L141" class="LineNr"> 141 </span> <span class="Delimiter">}</span> -<span id="L142" class="LineNr"> 142 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left +<span id="L142" class="LineNr"> 142 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L143" class="LineNr"> 143 </span> <span class="PreProc">var</span> left-index/eax: int <span class="Special"><-</span> <a href='514gap-buffer.mu.html#L275'>top-most-word</a> left <span id="L144" class="LineNr"> 144 </span> <a href='514gap-buffer.mu.html#L297'>emit-stack-from-index</a> left, left-index, out -<span id="L145" class="LineNr"> 145 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right +<span id="L145" class="LineNr"> 145 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L146" class="LineNr"> 146 </span> <span class="PreProc">var</span> right-index/eax: int <span class="Special"><-</span> <a href='514gap-buffer.mu.html#L275'>top-most-word</a> right <span id="L147" class="LineNr"> 147 </span> <a href='514gap-buffer.mu.html#L314'>emit-stack-to-index</a> right, right-index, out <span id="L148" class="LineNr"> 148 </span><span class="Delimiter">}</span> @@ -307,7 +307,7 @@ if ('onhashchange' in window) { <span id="L243" class="LineNr"> 243 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L243'>code-point-utf8-at-gap</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: code-point-utf8 <span class="Delimiter">{</span> <span id="L244" class="LineNr"> 244 </span> <span class="muComment"># send top of right most of the time</span> <span id="L245" class="LineNr"> 245 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L246" class="LineNr"> 246 </span> <span class="PreProc">var</span> right/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right +<span id="L246" class="LineNr"> 246 </span> <span class="PreProc">var</span> right/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L247" class="LineNr"> 247 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array code-point-utf8) <span class="Special"><-</span> get right, data <span id="L248" class="LineNr"> 248 </span> <span class="PreProc">var</span> data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L249" class="LineNr"> 249 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get right, top @@ -320,7 +320,7 @@ if ('onhashchange' in window) { <span id="L256" class="LineNr"> 256 </span> <span class="PreProc">return</span> *result <span id="L257" class="LineNr"> 257 </span> <span class="Delimiter">}</span> <span id="L258" class="LineNr"> 258 </span> <span class="muComment"># send top of left only if right is empty</span> -<span id="L259" class="LineNr"> 259 </span> <span class="PreProc">var</span> left/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left +<span id="L259" class="LineNr"> 259 </span> <span class="PreProc">var</span> left/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L260" class="LineNr"> 260 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array code-point-utf8) <span class="Special"><-</span> get left, data <span id="L261" class="LineNr"> 261 </span> <span class="PreProc">var</span> data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L262" class="LineNr"> 262 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get left, top @@ -336,8 +336,8 @@ if ('onhashchange' in window) { <span id="L272" class="LineNr"> 272 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L273" class="LineNr"> 273 </span><span class="Delimiter">}</span> <span id="L274" class="LineNr"> 274 </span> -<span id="L275" class="LineNr"> 275 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L275'>top-most-word</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> -<span id="L276" class="LineNr"> 276 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L275" class="LineNr"> 275 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L275'>top-most-word</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L276" class="LineNr"> 276 </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"><-</span> copy _self <span id="L277" class="LineNr"> 277 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L278" class="LineNr"> 278 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L279" class="LineNr"> 279 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array code-point-utf8) <span class="Special"><-</span> copy _data @@ -358,8 +358,8 @@ if ('onhashchange' in window) { <span id="L294" class="LineNr"> 294 </span> <span class="PreProc">return</span> i <span id="L295" class="LineNr"> 295 </span><span class="Delimiter">}</span> <span id="L296" class="LineNr"> 296 </span> -<span id="L297" class="LineNr"> 297 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L297'>emit-stack-from-index</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), start: int, out: (addr stream byte) <span class="Delimiter">{</span> -<span id="L298" class="LineNr"> 298 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L297" class="LineNr"> 297 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L297'>emit-stack-from-index</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), start: int, out: (addr stream byte) <span class="Delimiter">{</span> +<span id="L298" class="LineNr"> 298 </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"><-</span> copy _self <span id="L299" class="LineNr"> 299 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L300" class="LineNr"> 300 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L301" class="LineNr"> 301 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array code-point-utf8) <span class="Special"><-</span> copy _data @@ -375,8 +375,8 @@ if ('onhashchange' in window) { <span id="L311" class="LineNr"> 311 </span> <span class="Delimiter">}</span> <span id="L312" class="LineNr"> 312 </span><span class="Delimiter">}</span> <span id="L313" class="LineNr"> 313 </span> -<span id="L314" class="LineNr"> 314 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L314'>emit-stack-to-index</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), end: int, out: (addr stream byte) <span class="Delimiter">{</span> -<span id="L315" class="LineNr"> 315 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L314" class="LineNr"> 314 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L314'>emit-stack-to-index</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), end: int, out: (addr stream byte) <span class="Delimiter">{</span> +<span id="L315" class="LineNr"> 315 </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"><-</span> copy _self <span id="L316" class="LineNr"> 316 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L317" class="LineNr"> 317 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L318" class="LineNr"> 318 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array code-point-utf8) <span class="Special"><-</span> copy _data @@ -448,14 +448,14 @@ if ('onhashchange' in window) { <span id="L384" class="LineNr"> 384 </span><span class="muComment"># cursor is a single other color.</span> <span id="L385" class="LineNr"> 385 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L385'>render-gap-buffer-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L16'>screen</a>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>), _gap: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>), xmin: int, ymin: int, xmax: int, ymax: int, render-cursor?: boolean, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> <span id="L386" class="LineNr"> 386 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _gap -<span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> left/<span class="muRegEdx">edx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get gap, left +<span id="L387" class="LineNr"> 387 </span> <span class="PreProc">var</span> left/<span class="muRegEdx">edx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, left <span id="L388" class="LineNr"> 388 </span> <span class="PreProc">var</span> <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>/<span class="muRegEbx">ebx</span>: boolean <span class="Special"><-</span> copy <span class="Constant">0</span>/false <span id="L389" class="LineNr"> 389 </span> <span class="PreProc">var</span> matching-open-paren-depth/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L390" class="LineNr"> 390 </span> <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>, matching-open-paren-depth <span class="Special"><-</span> <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a> gap, render-cursor? <span id="L391" class="LineNr"> 391 </span> <span class="PreProc">var</span> x2/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L392" class="LineNr"> 392 </span> <span class="PreProc">var</span> y2/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L393" class="LineNr"> 393 </span> x2, y2 <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L16'>screen</a>, left, xmin, ymin, xmax, ymax, xmin, ymin, <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>, matching-open-paren-depth, color, background-color -<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> right/<span class="muRegEdx">edx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get gap, right +<span id="L394" class="LineNr"> 394 </span> <span class="PreProc">var</span> right/<span class="muRegEdx">edx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, right <span id="L395" class="LineNr"> 395 </span> x2, y2 <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L143'>render-stack-from-top-wrapping-right-then-down</a> <a href='500fake-screen.mu.html#L16'>screen</a>, right, xmin, ymin, xmax, ymax, x2, y2, render-cursor?, color, background-color <span id="L396" class="LineNr"> 396 </span> <span class="muComment"># decide whether we still need to print a cursor</span> <span id="L397" class="LineNr"> 397 </span> <span class="PreProc">var</span> fg/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy color @@ -464,7 +464,7 @@ if ('onhashchange' in window) { <span id="L400" class="LineNr"> 400 </span> <span class="Delimiter">{</span> <span id="L401" class="LineNr"> 401 </span> <span class="PreProc">break-if-=</span> <span id="L402" class="LineNr"> 402 </span> <span class="muComment"># if the right side is empty, code-point-utf8 stack didn't print the cursor</span> -<span id="L403" class="LineNr"> 403 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L22'>code-point-utf8-stack-empty?</a> right +<span id="L403" class="LineNr"> 403 </span> <span class="PreProc">var</span> empty?/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> right <span id="L404" class="LineNr"> 404 </span> compare empty?, <span class="Constant">0</span>/false <span id="L405" class="LineNr"> 405 </span> <span class="PreProc">break-if-=</span> <span id="L406" class="LineNr"> 406 </span> <span class="muComment"># swap foreground and background</span> @@ -491,10 +491,10 @@ if ('onhashchange' in window) { <span id="L427" class="LineNr"> 427 </span> <span id="L428" class="LineNr"> 428 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L428'>gap-buffer-length</a></span> _gap: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L429" class="LineNr"> 429 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _gap -<span id="L430" class="LineNr"> 430 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get gap, left +<span id="L430" class="LineNr"> 430 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, left <span id="L431" class="LineNr"> 431 </span> <span class="PreProc">var</span> tmp/eax: (addr int) <span class="Special"><-</span> get left, top <span id="L432" class="LineNr"> 432 </span> <span class="PreProc">var</span> left-length/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *tmp -<span id="L433" class="LineNr"> 433 </span> <span class="PreProc">var</span> right/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get gap, right +<span id="L433" class="LineNr"> 433 </span> <span class="PreProc">var</span> right/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, right <span id="L434" class="LineNr"> 434 </span> tmp <span class="Special"><-</span> get right, top <span id="L435" class="LineNr"> 435 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy *tmp <span id="L436" class="LineNr"> 436 </span> result <span class="Special"><-</span> add left-length @@ -503,8 +503,8 @@ if ('onhashchange' in window) { <span id="L439" class="LineNr"> 439 </span> <span id="L440" class="LineNr"> 440 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L440'>add-code-point-utf8-at-gap</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>), g: code-point-utf8 <span class="Delimiter">{</span> <span id="L441" class="LineNr"> 441 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L442" class="LineNr"> 442 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L443" class="LineNr"> 443 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> left, g +<span id="L442" class="LineNr"> 442 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L443" class="LineNr"> 443 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> left, g <span id="L444" class="LineNr"> 444 </span><span class="Delimiter">}</span> <span id="L445" class="LineNr"> 445 </span> <span id="L446" class="LineNr"> 446 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L446'>add-code-point-at-gap</a></span> self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>), c: code-point <span class="Delimiter">{</span> @@ -530,28 +530,28 @@ if ('onhashchange' in window) { <span id="L466" class="LineNr"> 466 </span> <span id="L467" class="LineNr"> 467 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L467'>gap-at-start?</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L468" class="LineNr"> 468 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L469" class="LineNr"> 469 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L470" class="LineNr"> 470 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L22'>code-point-utf8-stack-empty?</a> left +<span id="L469" class="LineNr"> 469 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L470" class="LineNr"> 470 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> left <span id="L471" class="LineNr"> 471 </span> <span class="PreProc">return</span> result <span id="L472" class="LineNr"> 472 </span><span class="Delimiter">}</span> <span id="L473" class="LineNr"> 473 </span> <span id="L474" class="LineNr"> 474 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L474'>gap-at-end?</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L475" class="LineNr"> 475 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L476" class="LineNr"> 476 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right -<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L22'>code-point-utf8-stack-empty?</a> right +<span id="L476" class="LineNr"> 476 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L477" class="LineNr"> 477 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a> right <span id="L478" class="LineNr"> 478 </span> <span class="PreProc">return</span> result <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='514gap-buffer.mu.html#L481'>gap-right</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: code-point-utf8 <span class="Delimiter">{</span> <span id="L482" class="LineNr"> 482 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L483" class="LineNr"> 483 </span> <span class="PreProc">var</span> g/eax: code-point-utf8 <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L484" class="LineNr"> 484 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right -<span id="L485" class="LineNr"> 485 </span> g <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L51'>pop-code-point-utf8-stack</a> right +<span id="L484" class="LineNr"> 484 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L485" class="LineNr"> 485 </span> g <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> right <span id="L486" class="LineNr"> 486 </span> compare g, <span class="Constant">-1</span> <span id="L487" class="LineNr"> 487 </span> <span class="Delimiter">{</span> <span id="L488" class="LineNr"> 488 </span> <span class="PreProc">break-if-=</span> -<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L490" class="LineNr"> 490 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> left, g +<span id="L489" class="LineNr"> 489 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L490" class="LineNr"> 490 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> left, g <span id="L491" class="LineNr"> 491 </span> <span class="Delimiter">}</span> <span id="L492" class="LineNr"> 492 </span> <span class="PreProc">return</span> g <span id="L493" class="LineNr"> 493 </span><span class="Delimiter">}</span> @@ -560,21 +560,21 @@ if ('onhashchange' in window) { <span id="L496" class="LineNr"> 496 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L497" class="LineNr"> 497 </span> <span class="PreProc">var</span> g/eax: code-point-utf8 <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L498" class="LineNr"> 498 </span> <span class="Delimiter">{</span> -<span id="L499" class="LineNr"> 499 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L500" class="LineNr"> 500 </span> g <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L51'>pop-code-point-utf8-stack</a> left +<span id="L499" class="LineNr"> 499 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L500" class="LineNr"> 500 </span> g <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> left <span id="L501" class="LineNr"> 501 </span> <span class="Delimiter">}</span> <span id="L502" class="LineNr"> 502 </span> compare g, <span class="Constant">-1</span> <span id="L503" class="LineNr"> 503 </span> <span class="Delimiter">{</span> <span id="L504" class="LineNr"> 504 </span> <span class="PreProc">break-if-=</span> -<span id="L505" class="LineNr"> 505 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right -<span id="L506" class="LineNr"> 506 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> right, g +<span id="L505" class="LineNr"> 505 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L506" class="LineNr"> 506 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> right, g <span id="L507" class="LineNr"> 507 </span> <span class="Delimiter">}</span> <span id="L508" class="LineNr"> 508 </span> <span class="PreProc">return</span> g <span id="L509" class="LineNr"> 509 </span><span class="Delimiter">}</span> <span id="L510" class="LineNr"> 510 </span> <span id="L511" class="LineNr"> 511 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L511'>index-of-gap</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L512" class="LineNr"> 512 </span> <span class="PreProc">var</span> self/eax: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L513" class="LineNr"> 513 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left +<span id="L513" class="LineNr"> 513 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L514" class="LineNr"> 514 </span> <span class="PreProc">var</span> top-addr/eax: (addr int) <span class="Special"><-</span> get left, top <span id="L515" class="LineNr"> 515 </span> <span class="PreProc">var</span> result/eax: int <span class="Special"><-</span> copy *top-addr <span id="L516" class="LineNr"> 516 </span> <span class="PreProc">return</span> result @@ -583,7 +583,7 @@ if ('onhashchange' in window) { <span id="L519" class="LineNr"> 519 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L519'>first-code-point-utf8-in-gap-buffer</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: code-point-utf8 <span class="Delimiter">{</span> <span id="L520" class="LineNr"> 520 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L521" class="LineNr"> 521 </span> <span class="muComment"># try to read from left</span> -<span id="L522" class="LineNr"> 522 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left +<span id="L522" class="LineNr"> 522 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L523" class="LineNr"> 523 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get left, top <span id="L524" class="LineNr"> 524 </span> compare *top-addr, <span class="Constant">0</span> <span id="L525" class="LineNr"> 525 </span> <span class="Delimiter">{</span> @@ -594,7 +594,7 @@ if ('onhashchange' in window) { <span id="L530" class="LineNr"> 530 </span> <span class="PreProc">return</span> *result-addr <span id="L531" class="LineNr"> 531 </span> <span class="Delimiter">}</span> <span id="L532" class="LineNr"> 532 </span> <span class="muComment"># try to read from right</span> -<span id="L533" class="LineNr"> 533 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right +<span id="L533" class="LineNr"> 533 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L534" class="LineNr"> 534 </span> top-addr <span class="Special"><-</span> get right, top <span id="L535" class="LineNr"> 535 </span> compare *top-addr, <span class="Constant">0</span> <span id="L536" class="LineNr"> 536 </span> <span class="Delimiter">{</span> @@ -613,13 +613,13 @@ if ('onhashchange' in window) { <span id="L549" class="LineNr"> 549 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L549'>code-point-utf8-before-cursor-in-gap-buffer</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: code-point-utf8 <span class="Delimiter">{</span> <span id="L550" class="LineNr"> 550 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L551" class="LineNr"> 551 </span> <span class="muComment"># try to read from left</span> -<span id="L552" class="LineNr"> 552 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left +<span id="L552" class="LineNr"> 552 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L553" class="LineNr"> 553 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get left, top <span id="L554" class="LineNr"> 554 </span> compare *top-addr, <span class="Constant">0</span> <span id="L555" class="LineNr"> 555 </span> <span class="Delimiter">{</span> <span id="L556" class="LineNr"> 556 </span> <span class="PreProc">break-if-<=</span> -<span id="L557" class="LineNr"> 557 </span> <span class="PreProc">var</span> result/eax: code-point-utf8 <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L51'>pop-code-point-utf8-stack</a> left -<span id="L558" class="LineNr"> 558 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> left, result +<span id="L557" class="LineNr"> 557 </span> <span class="PreProc">var</span> result/eax: code-point-utf8 <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> left +<span id="L558" class="LineNr"> 558 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> left, result <span id="L559" class="LineNr"> 559 </span> <span class="PreProc">return</span> result <span id="L560" class="LineNr"> 560 </span> <span class="Delimiter">}</span> <span id="L561" class="LineNr"> 561 </span> <span class="muComment"># give up</span> @@ -628,14 +628,14 @@ if ('onhashchange' in window) { <span id="L564" class="LineNr"> 564 </span> <span id="L565" class="LineNr"> 565 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L565'>delete-before-gap</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L566" class="LineNr"> 566 </span> <span class="PreProc">var</span> self/eax: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L568" class="LineNr"> 568 </span> <span class="PreProc">var</span> dummy/eax: code-point-utf8 <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L51'>pop-code-point-utf8-stack</a> left +<span id="L567" class="LineNr"> 567 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L568" class="LineNr"> 568 </span> <span class="PreProc">var</span> dummy/eax: code-point-utf8 <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> left <span id="L569" class="LineNr"> 569 </span><span class="Delimiter">}</span> <span id="L570" class="LineNr"> 570 </span> <span id="L571" class="LineNr"> 571 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L571'>pop-after-gap</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: code-point-utf8 <span class="Delimiter">{</span> <span id="L572" class="LineNr"> 572 </span> <span class="PreProc">var</span> self/eax: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L573" class="LineNr"> 573 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right -<span id="L574" class="LineNr"> 574 </span> <span class="PreProc">var</span> result/eax: code-point-utf8 <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L51'>pop-code-point-utf8-stack</a> right +<span id="L573" class="LineNr"> 573 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L574" class="LineNr"> 574 </span> <span class="PreProc">var</span> result/eax: code-point-utf8 <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L51'>pop-grapheme-stack</a> right <span id="L575" class="LineNr"> 575 </span> <span class="PreProc">return</span> result <span id="L576" class="LineNr"> 576 </span><span class="Delimiter">}</span> <span id="L577" class="LineNr"> 577 </span> @@ -648,7 +648,7 @@ if ('onhashchange' in window) { <span id="L584" class="LineNr"> 584 </span> <span class="PreProc">var</span> expected-stream/<span class="muRegEcx">ecx</span>: (addr stream byte) <span class="Special"><-</span> address stream-storage <span id="L585" class="LineNr"> 585 </span> <a href='108write.subx.html#L11'>write</a> expected-stream, s <span id="L586" class="LineNr"> 586 </span> <span class="muComment"># compare left</span> -<span id="L587" class="LineNr"> 587 </span> <span class="PreProc">var</span> left/<span class="muRegEdx">edx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left +<span id="L587" class="LineNr"> 587 </span> <span class="PreProc">var</span> left/<span class="muRegEdx">edx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L588" class="LineNr"> 588 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L497'>prefix-match?</a> left, expected-stream <span id="L589" class="LineNr"> 589 </span> compare result, <span class="Constant">0</span>/false <span id="L590" class="LineNr"> 590 </span> <span class="Delimiter">{</span> @@ -656,7 +656,7 @@ if ('onhashchange' in window) { <span id="L592" class="LineNr"> 592 </span> <span class="PreProc">return</span> result <span id="L593" class="LineNr"> 593 </span> <span class="Delimiter">}</span> <span id="L594" class="LineNr"> 594 </span> <span class="muComment"># compare right</span> -<span id="L595" class="LineNr"> 595 </span> <span class="PreProc">var</span> right/<span class="muRegEdx">edx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right +<span id="L595" class="LineNr"> 595 </span> <span class="PreProc">var</span> right/<span class="muRegEdx">edx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L596" class="LineNr"> 596 </span> result <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L525'>suffix-match?</a> right, expected-stream <span id="L597" class="LineNr"> 597 </span> compare result, <span class="Constant">0</span>/false <span id="L598" class="LineNr"> 598 </span> <span class="Delimiter">{</span> @@ -755,7 +755,7 @@ if ('onhashchange' in window) { <span id="L691" class="LineNr"> 691 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L692" class="LineNr"> 692 </span> <span class="PreProc">var</span> n/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _n <span id="L693" class="LineNr"> 693 </span> <span class="muComment"># if n < left->length, index into left</span> -<span id="L694" class="LineNr"> 694 </span> <span class="PreProc">var</span> left/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left +<span id="L694" class="LineNr"> 694 </span> <span class="PreProc">var</span> left/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left <span id="L695" class="LineNr"> 695 </span> <span class="PreProc">var</span> left-len-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get left, top <span id="L696" class="LineNr"> 696 </span> compare n, *left-len-a <span id="L697" class="LineNr"> 697 </span> <span class="Delimiter">{</span> @@ -768,7 +768,7 @@ if ('onhashchange' in window) { <span id="L704" class="LineNr"> 704 </span> <span class="muComment"># shrink n</span> <span id="L705" class="LineNr"> 705 </span> n <span class="Special"><-</span> subtract *left-len-a <span id="L706" class="LineNr"> 706 </span> <span class="muComment"># if n < right->length, index into right</span> -<span id="L707" class="LineNr"> 707 </span> <span class="PreProc">var</span> right/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right +<span id="L707" class="LineNr"> 707 </span> <span class="PreProc">var</span> right/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right <span id="L708" class="LineNr"> 708 </span> <span class="PreProc">var</span> right-len-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get right, top <span id="L709" class="LineNr"> 709 </span> compare n, *right-len-a <span id="L710" class="LineNr"> 710 </span> <span class="Delimiter">{</span> @@ -852,25 +852,25 @@ if ('onhashchange' in window) { <span id="L788" class="LineNr"> 788 </span> <span class="PreProc">var</span> dest-ah/eax: (addr handle <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _dest-ah <span id="L789" class="LineNr"> 789 </span> <span class="PreProc">var</span> _dest-a/eax: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *dest-ah <span id="L790" class="LineNr"> 790 </span> <span class="PreProc">var</span> dest-a/<span class="muRegEdi">edi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _dest-a -<span id="L791" class="LineNr"> 791 </span> <span class="muComment"># copy left code-point-utf8-stack</span> -<span id="L792" class="LineNr"> 792 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get src-a, left -<span id="L793" class="LineNr"> 793 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get dest-a, left -<span id="L794" class="LineNr"> 794 </span> <a href='513grapheme-stack.mu.html#L67'>copy-code-point-utf8-stack</a> src, dest -<span id="L795" class="LineNr"> 795 </span> <span class="muComment"># copy right code-point-utf8-stack</span> +<span id="L791" class="LineNr"> 791 </span> <span class="muComment"># copy left grapheme-stack</span> +<span id="L792" class="LineNr"> 792 </span> <span class="PreProc">var</span> src/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get src-a, left +<span id="L793" class="LineNr"> 793 </span> <span class="PreProc">var</span> dest/<span class="muRegEdx">edx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get dest-a, left +<span id="L794" class="LineNr"> 794 </span> <a href='513grapheme-stack.mu.html#L67'>copy-grapheme-stack</a> src, dest +<span id="L795" class="LineNr"> 795 </span> <span class="muComment"># copy right grapheme-stack</span> <span id="L796" class="LineNr"> 796 </span> src <span class="Special"><-</span> get src-a, right <span id="L797" class="LineNr"> 797 </span> dest <span class="Special"><-</span> get dest-a, right -<span id="L798" class="LineNr"> 798 </span> <a href='513grapheme-stack.mu.html#L67'>copy-code-point-utf8-stack</a> src, dest +<span id="L798" class="LineNr"> 798 </span> <a href='513grapheme-stack.mu.html#L67'>copy-grapheme-stack</a> src, dest <span id="L799" class="LineNr"> 799 </span><span class="Delimiter">}</span> <span id="L800" class="LineNr"> 800 </span> <span id="L801" class="LineNr"> 801 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L801'>gap-buffer-is-decimal-integer?</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L802" class="LineNr"> 802 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self -<span id="L803" class="LineNr"> 803 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L804" class="LineNr"> 804 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L552'>code-point-utf8-stack-is-decimal-integer?</a> curr +<span id="L803" class="LineNr"> 803 </span> <span class="PreProc">var</span> curr/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L804" class="LineNr"> 804 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L552'>grapheme-stack-is-decimal-integer?</a> curr <span id="L805" class="LineNr"> 805 </span> <span class="Delimiter">{</span> <span id="L806" class="LineNr"> 806 </span> compare result, <span class="Constant">0</span>/false <span id="L807" class="LineNr"> 807 </span> <span class="PreProc">break-if-=</span> <span id="L808" class="LineNr"> 808 </span> curr <span class="Special"><-</span> get self, right -<span id="L809" class="LineNr"> 809 </span> result <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L552'>code-point-utf8-stack-is-decimal-integer?</a> curr +<span id="L809" class="LineNr"> 809 </span> result <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L552'>grapheme-stack-is-decimal-integer?</a> curr <span id="L810" class="LineNr"> 810 </span> <span class="Delimiter">}</span> <span id="L811" class="LineNr"> 811 </span> <span class="PreProc">return</span> result <span id="L812" class="LineNr"> 812 </span><span class="Delimiter">}</span> @@ -1011,7 +1011,7 @@ if ('onhashchange' in window) { <span id="L947" class="LineNr"> 947 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false, <span class="Constant">0</span> <span id="L948" class="LineNr"> 948 </span> <span class="Delimiter">}</span> <span id="L949" class="LineNr"> 949 </span> <span class="PreProc">var</span> gap/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _gap -<span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> stack/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get gap, right +<span id="L950" class="LineNr"> 950 </span> <span class="PreProc">var</span> stack/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get gap, right <span id="L951" class="LineNr"> 951 </span> <span class="PreProc">var</span> top-addr/eax: (addr int) <span class="Special"><-</span> get stack, top <span id="L952" class="LineNr"> 952 </span> <span class="PreProc">var</span> top-index/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy *top-addr <span id="L953" class="LineNr"> 953 </span> compare top-index, <span class="Constant">0</span> @@ -1086,8 +1086,8 @@ if ('onhashchange' in window) { <span id="L1022" class="LineNr">1022 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L1022'>gap-buffer-scan-done?</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> <span id="L1023" class="LineNr">1023 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L1024" class="LineNr">1024 </span> <span class="muComment"># more in left?</span> -<span id="L1025" class="LineNr">1025 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>code-point-utf8-stack-length</a> left +<span id="L1025" class="LineNr">1025 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L1026" class="LineNr">1026 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left <span id="L1027" class="LineNr">1027 </span> <span class="PreProc">var</span> left-read-index/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, left-read-index <span id="L1028" class="LineNr">1028 </span> compare *left-read-index, left-size <span id="L1029" class="LineNr">1029 </span> <span class="Delimiter">{</span> @@ -1095,8 +1095,8 @@ if ('onhashchange' in window) { <span id="L1031" class="LineNr">1031 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L1032" class="LineNr">1032 </span> <span class="Delimiter">}</span> <span id="L1033" class="LineNr">1033 </span> <span class="muComment"># more in right?</span> -<span id="L1034" class="LineNr">1034 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right -<span id="L1035" class="LineNr">1035 </span> <span class="PreProc">var</span> right-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>code-point-utf8-stack-length</a> right +<span id="L1034" class="LineNr">1034 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L1035" class="LineNr">1035 </span> <span class="PreProc">var</span> right-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right <span id="L1036" class="LineNr">1036 </span> <span class="PreProc">var</span> right-read-index/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, right-read-index <span id="L1037" class="LineNr">1037 </span> compare *right-read-index, right-size <span id="L1038" class="LineNr">1038 </span> <span class="Delimiter">{</span> @@ -1110,8 +1110,8 @@ if ('onhashchange' in window) { <span id="L1046" class="LineNr">1046 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L1046'>peek-from-gap-buffer</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: code-point-utf8 <span class="Delimiter">{</span> <span id="L1047" class="LineNr">1047 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L1048" class="LineNr">1048 </span> <span class="muComment"># more in left?</span> -<span id="L1049" class="LineNr">1049 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L1050" class="LineNr">1050 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>code-point-utf8-stack-length</a> left +<span id="L1049" class="LineNr">1049 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L1050" class="LineNr">1050 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left <span id="L1051" class="LineNr">1051 </span> <span class="PreProc">var</span> left-read-index-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, left-read-index <span id="L1052" class="LineNr">1052 </span> compare *left-read-index-a, left-size <span id="L1053" class="LineNr">1053 </span> <span class="Delimiter">{</span> @@ -1123,8 +1123,8 @@ if ('onhashchange' in window) { <span id="L1059" class="LineNr">1059 </span> <span class="PreProc">return</span> *result <span id="L1060" class="LineNr">1060 </span> <span class="Delimiter">}</span> <span id="L1061" class="LineNr">1061 </span> <span class="muComment"># more in right?</span> -<span id="L1062" class="LineNr">1062 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right -<span id="L1063" class="LineNr">1063 </span> <span class="PreProc">var</span> _right-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>code-point-utf8-stack-length</a> right +<span id="L1062" class="LineNr">1062 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L1063" class="LineNr">1063 </span> <span class="PreProc">var</span> _right-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right <span id="L1064" class="LineNr">1064 </span> <span class="PreProc">var</span> right-size/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _right-size <span id="L1065" class="LineNr">1065 </span> <span class="PreProc">var</span> right-read-index-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, right-read-index <span id="L1066" class="LineNr">1066 </span> compare *right-read-index-a, right-size @@ -1146,8 +1146,8 @@ if ('onhashchange' in window) { <span id="L1082" class="LineNr">1082 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L1082'>read-from-gap-buffer</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>)<span class="PreProc"> -> </span>_/eax: code-point-utf8 <span class="Delimiter">{</span> <span id="L1083" class="LineNr">1083 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L1084" class="LineNr">1084 </span> <span class="muComment"># more in left?</span> -<span id="L1085" class="LineNr">1085 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L1086" class="LineNr">1086 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>code-point-utf8-stack-length</a> left +<span id="L1085" class="LineNr">1085 </span> <span class="PreProc">var</span> left/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L1086" class="LineNr">1086 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left <span id="L1087" class="LineNr">1087 </span> <span class="PreProc">var</span> left-read-index-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, left-read-index <span id="L1088" class="LineNr">1088 </span> compare *left-read-index-a, left-size <span id="L1089" class="LineNr">1089 </span> <span class="Delimiter">{</span> @@ -1160,8 +1160,8 @@ if ('onhashchange' in window) { <span id="L1096" class="LineNr">1096 </span> <span class="PreProc">return</span> *result <span id="L1097" class="LineNr">1097 </span> <span class="Delimiter">}</span> <span id="L1098" class="LineNr">1098 </span> <span class="muComment"># more in right?</span> -<span id="L1099" class="LineNr">1099 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right -<span id="L1100" class="LineNr">1100 </span> <span class="PreProc">var</span> _right-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>code-point-utf8-stack-length</a> right +<span id="L1099" class="LineNr">1099 </span> <span class="PreProc">var</span> right/<span class="muRegEcx">ecx</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L1100" class="LineNr">1100 </span> <span class="PreProc">var</span> _right-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right <span id="L1101" class="LineNr">1101 </span> <span class="PreProc">var</span> right-size/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy _right-size <span id="L1102" class="LineNr">1102 </span> <span class="PreProc">var</span> right-read-index-a/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, right-read-index <span id="L1103" class="LineNr">1103 </span> compare *right-read-index-a, right-size @@ -1184,8 +1184,8 @@ if ('onhashchange' in window) { <span id="L1120" class="LineNr">1120 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='514gap-buffer.mu.html#L1120'>put-back-from-gap-buffer</a></span> _self: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Delimiter">{</span> <span id="L1121" class="LineNr">1121 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='514gap-buffer.mu.html#L3'>gap-buffer</a>) <span class="Special"><-</span> copy _self <span id="L1122" class="LineNr">1122 </span> <span class="muComment"># more in right?</span> -<span id="L1123" class="LineNr">1123 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, right -<span id="L1124" class="LineNr">1124 </span> <span class="PreProc">var</span> right-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>code-point-utf8-stack-length</a> right +<span id="L1123" class="LineNr">1123 </span> <span class="PreProc">var</span> right/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, right +<span id="L1124" class="LineNr">1124 </span> <span class="PreProc">var</span> right-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>grapheme-stack-length</a> right <span id="L1125" class="LineNr">1125 </span> <span class="PreProc">var</span> right-read-index-a/eax: (addr int) <span class="Special"><-</span> get self, right-read-index <span id="L1126" class="LineNr">1126 </span> compare *right-read-index-a, <span class="Constant">0</span> <span id="L1127" class="LineNr">1127 </span> <span class="Delimiter">{</span> @@ -1194,8 +1194,8 @@ if ('onhashchange' in window) { <span id="L1130" class="LineNr">1130 </span> <span class="PreProc">return</span> <span id="L1131" class="LineNr">1131 </span> <span class="Delimiter">}</span> <span id="L1132" class="LineNr">1132 </span> <span class="muComment"># more in left?</span> -<span id="L1133" class="LineNr">1133 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> get self, left -<span id="L1134" class="LineNr">1134 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>code-point-utf8-stack-length</a> left +<span id="L1133" class="LineNr">1133 </span> <span class="PreProc">var</span> left/eax: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> get self, left +<span id="L1134" class="LineNr">1134 </span> <span class="PreProc">var</span> left-size/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L33'>grapheme-stack-length</a> left <span id="L1135" class="LineNr">1135 </span> <span class="PreProc">var</span> left-read-index-a/eax: (addr int) <span class="Special"><-</span> get self, left-read-index <span id="L1136" class="LineNr">1136 </span> decrement *left-read-index-a <span id="L1137" class="LineNr">1137 </span><span class="Delimiter">}</span> |