about summary refs log tree commit diff stats
path: root/html/baremetal/403unicode.mu.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-01-13 00:08:31 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-13 00:08:31 -0800
commitf6fd7e1be0780b5b6dee042bef1c4f0264069787 (patch)
tree210c5d27c3fdf0793118d5cd7fe83c07737f7cfa /html/baremetal/403unicode.mu.html
parent422ebaf88c5a04900beb0a68162213ebc94e37c2 (diff)
downloadmu-f6fd7e1be0780b5b6dee042bef1c4f0264069787.tar.gz
7509
Diffstat (limited to 'html/baremetal/403unicode.mu.html')
-rw-r--r--html/baremetal/403unicode.mu.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/html/baremetal/403unicode.mu.html b/html/baremetal/403unicode.mu.html
index 8151f6d4..bff11ca4 100644
--- a/html/baremetal/403unicode.mu.html
+++ b/html/baremetal/403unicode.mu.html
@@ -14,13 +14,13 @@ pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-
 body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; }
 a { color:inherit; }
 * { font-size:12pt; font-size: 1em; }
-.muComment { color: #005faf; }
+.PreProc { color: #c000c0; }
 .LineNr { }
+.Delimiter { color: #c000c0; }
 .SpecialChar { color: #d70000; }
 .Constant { color: #008787; }
 .muFunction { color: #af5f00; text-decoration: underline; }
-.Delimiter { color: #c000c0; }
-.PreProc { color: #c000c0; }
+.muComment { color: #005faf; }
 -->
 </style>
 
@@ -77,7 +77,7 @@ if ('onhashchange' in window) {
 <span id="L19" class="LineNr"> 19 </span><span class="muComment">#</span>
 <span id="L20" class="LineNr"> 20 </span><span class="muComment"># The day we want to support combining characters, this function will need to</span>
 <span id="L21" class="LineNr"> 21 </span><span class="muComment"># take multiple code points. Or something.</span>
-<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L22'>to-grapheme</a></span> in: code-point<span class="PreProc"> -&gt; </span>_/<span class="Constant">eax</span>: grapheme <span class="Delimiter">{</span>
+<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction">to-grapheme</span> in: code-point<span class="PreProc"> -&gt; </span>_/<span class="Constant">eax</span>: grapheme <span class="Delimiter">{</span>
 <span id="L23" class="LineNr"> 23 </span>  <span class="PreProc">var</span> c/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy in
 <span id="L24" class="LineNr"> 24 </span>  <span class="PreProc">var</span> num-trailers/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
 <span id="L25" class="LineNr"> 25 </span>  <span class="PreProc">var</span> first/<span class="Constant">edx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
@@ -147,7 +147,7 @@ if ('onhashchange' in window) {
 <span id="L89" class="LineNr"> 89 </span><span class="muComment"># TODO: bring in tests once we have check-ints-equal</span>
 <span id="L90" class="LineNr"> 90 </span>
 <span id="L91" class="LineNr"> 91 </span><span class="muComment"># read the next grapheme from a stream of bytes</span>
-<span id="L92" class="LineNr"> 92 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L92'>read-grapheme</a></span> in: (addr stream byte)<span class="PreProc"> -&gt; </span>_/<span class="Constant">eax</span>: grapheme <span class="Delimiter">{</span>
+<span id="L92" class="LineNr"> 92 </span><span class="PreProc">fn</span> <span class="muFunction">read-grapheme</span> in: (addr stream byte)<span class="PreProc"> -&gt; </span>_/<span class="Constant">eax</span>: grapheme <span class="Delimiter">{</span>
 <span id="L93" class="LineNr"> 93 </span>  <span class="muComment"># if at eof, return EOF</span>
 <span id="L94" class="LineNr"> 94 </span>  <span class="Delimiter">{</span>
 <span id="L95" class="LineNr"> 95 </span>    <span class="PreProc">var</span> eof?/<span class="Constant">eax</span>: boolean <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> in
@@ -203,7 +203,7 @@ if ('onhashchange' in window) {
 <span id="L145" class="LineNr">145 </span>    <span class="PreProc">break-if-&lt;=</span>
 <span id="L146" class="LineNr">146 </span>    <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: byte <span class="SpecialChar">&lt;-</span> <a href='112read-byte.subx.html#L9'>read-byte</a> in
 <span id="L147" class="LineNr">147 </span>    <span class="PreProc">var</span> tmp2/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy tmp
-<span id="L148" class="LineNr">148 </span>    tmp2 <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L159'>shift-left-bytes</a> tmp2, num-byte-shifts
+<span id="L148" class="LineNr">148 </span>    tmp2 <span class="SpecialChar">&lt;-</span> shift-left-bytes tmp2, num-byte-shifts
 <span id="L149" class="LineNr">149 </span>    result <span class="SpecialChar">&lt;-</span> or tmp2
 <span id="L150" class="LineNr">150 </span>    <span class="muComment"># update loop state</span>
 <span id="L151" class="LineNr">151 </span>    num-byte-shifts <span class="SpecialChar">&lt;-</span> increment
@@ -214,7 +214,7 @@ if ('onhashchange' in window) {
 <span id="L156" class="LineNr">156 </span><span class="Delimiter">}</span>
 <span id="L157" class="LineNr">157 </span>
 <span id="L158" class="LineNr">158 </span><span class="muComment"># needed because available primitives only shift by a literal/constant number of bits</span>
-<span id="L159" class="LineNr">159 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L159'>shift-left-bytes</a></span> n: int, k: int<span class="PreProc"> -&gt; </span>_/<span class="Constant">eax</span>: int <span class="Delimiter">{</span>
+<span id="L159" class="LineNr">159 </span><span class="PreProc">fn</span> <span class="muFunction">shift-left-bytes</span> n: int, k: int<span class="PreProc"> -&gt; </span>_/<span class="Constant">eax</span>: int <span class="Delimiter">{</span>
 <span id="L160" class="LineNr">160 </span>  <span class="PreProc">var</span> i/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
 <span id="L161" class="LineNr">161 </span>  <span class="PreProc">var</span> result/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy n
 <span id="L162" class="LineNr">162 </span>  <span class="Delimiter">{</span>
@@ -231,7 +231,7 @@ if ('onhashchange' in window) {
 <span id="L173" class="LineNr">173 </span>
 <span id="L174" class="LineNr">174 </span><span class="muComment"># write a grapheme to a stream of bytes</span>
 <span id="L175" class="LineNr">175 </span><span class="muComment"># this is like write-to-stream, except we skip leading 0 bytes</span>
-<span id="L176" class="LineNr">176 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L176'>write-grapheme</a></span> out: (addr stream byte), g: grapheme <span class="Delimiter">{</span>
+<span id="L176" class="LineNr">176 </span><span class="PreProc">fn</span> <span class="muFunction">write-grapheme</span> out: (addr stream byte), g: grapheme <span class="Delimiter">{</span>
 <span id="L177" class="LineNr">177 </span>$write-grapheme:body: <span class="Delimiter">{</span>
 <span id="L178" class="LineNr">178 </span>  <span class="PreProc">var</span> c/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy g
 <span id="L179" class="LineNr">179 </span>  <a href='115write-byte.subx.html#L6'>append-byte</a> out, c  <span class="muComment"># first byte is always written</span>