diff options
Diffstat (limited to 'html/baremetal/ex6.mu.html')
-rw-r--r-- | html/baremetal/ex6.mu.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/html/baremetal/ex6.mu.html b/html/baremetal/ex6.mu.html index 810b729b..7d63c3fb 100644 --- a/html/baremetal/ex6.mu.html +++ b/html/baremetal/ex6.mu.html @@ -67,26 +67,26 @@ if ('onhashchange' in window) { <span id="L9" class="LineNr"> 9 </span><span class="muComment">#</span> <span id="L10" class="LineNr">10 </span><span class="muComment"># Expected output: a box and text that doesn't overflow it</span> <span id="L11" class="LineNr">11 </span> -<span id="L12" class="LineNr">12 </span><span class="PreProc">fn</span> <span class="muFunction">main</span> <span class="Delimiter">{</span> +<span id="L12" class="LineNr">12 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex6.mu.html#L12'>main</a></span> <span class="Delimiter">{</span> <span id="L13" class="LineNr">13 </span> <span class="muComment"># drawing text within a bounding box</span> -<span id="L14" class="LineNr">14 </span> draw-box <span class="Constant">0</span>, <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="L14" class="LineNr">14 </span> <a href='502manhattan-line.mu.html#L1'>draw-box</a> <span class="Constant">0</span>, <span class="Constant">0xf</span>, <span class="Constant">0x1f</span>, <span class="Constant">0x79</span>, <span class="Constant">0x51</span>, <span class="Constant">0x4</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0x20</span> <span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> y/<span class="Constant">ecx</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0x20</span> -<span id="L17" class="LineNr">17 </span> x, y <span class="SpecialChar"><-</span> draw-text-wrapping-right-then-down <span class="Constant">0</span>, <span class="Constant">"hello "</span>, <span class="Constant">0x10</span>, <span class="Constant">0x20</span>, <span class="Constant">0x78</span>, <span class="Constant">0x50</span>, x, y, <span class="Constant">0xa</span> <span class="muComment"># (0x10, 0x20) -> (0x78, 0x50)</span> -<span id="L18" class="LineNr">18 </span> x, y <span class="SpecialChar"><-</span> draw-text-wrapping-right-then-down <span class="Constant">0</span>, <span class="Constant">"from "</span>, <span class="Constant">0x10</span>, <span class="Constant">0x20</span>, <span class="Constant">0x78</span>, <span class="Constant">0x50</span>, x, y, <span class="Constant">0xa</span> -<span id="L19" class="LineNr">19 </span> x, y <span class="SpecialChar"><-</span> draw-text-wrapping-right-then-down <span class="Constant">0</span>, <span class="Constant">"baremetal "</span>, <span class="Constant">0x10</span>, <span class="Constant">0x20</span>, <span class="Constant">0x78</span>, <span class="Constant">0x50</span>, x, y, <span class="Constant">0xa</span> -<span id="L20" class="LineNr">20 </span> x, y <span class="SpecialChar"><-</span> draw-text-wrapping-right-then-down <span class="Constant">0</span>, <span class="Constant">"Mu!"</span>, <span class="Constant">0x10</span>, <span class="Constant">0x20</span>, <span class="Constant">0x78</span>, <span class="Constant">0x50</span>, x, y, <span class="Constant">0xa</span> +<span id="L17" class="LineNr">17 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L112'>draw-text-wrapping-right-then-down</a> <span class="Constant">0</span>, <span class="Constant">"hello "</span>, <span class="Constant">0x10</span>, <span class="Constant">0x20</span>, <span class="Constant">0x78</span>, <span class="Constant">0x50</span>, x, y, <span class="Constant">0xa</span> <span class="muComment"># (0x10, 0x20) -> (0x78, 0x50)</span> +<span id="L18" class="LineNr">18 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L112'>draw-text-wrapping-right-then-down</a> <span class="Constant">0</span>, <span class="Constant">"from "</span>, <span class="Constant">0x10</span>, <span class="Constant">0x20</span>, <span class="Constant">0x78</span>, <span class="Constant">0x50</span>, x, y, <span class="Constant">0xa</span> +<span id="L19" class="LineNr">19 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L112'>draw-text-wrapping-right-then-down</a> <span class="Constant">0</span>, <span class="Constant">"baremetal "</span>, <span class="Constant">0x10</span>, <span class="Constant">0x20</span>, <span class="Constant">0x78</span>, <span class="Constant">0x50</span>, x, y, <span class="Constant">0xa</span> +<span id="L20" class="LineNr">20 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L112'>draw-text-wrapping-right-then-down</a> <span class="Constant">0</span>, <span class="Constant">"Mu!"</span>, <span class="Constant">0x10</span>, <span class="Constant">0x20</span>, <span class="Constant">0x78</span>, <span class="Constant">0x50</span>, x, y, <span class="Constant">0xa</span> <span id="L21" class="LineNr">21 </span> <span id="L22" class="LineNr">22 </span> <span class="muComment"># drawing at the cursor in multiple directions</span> -<span id="L23" class="LineNr">23 </span> x, y <span class="SpecialChar"><-</span> draw-text-wrapping-down-then-right-from-cursor-over-full-screen <span class="Constant">0</span>, <span class="Constant">"abc"</span>, <span class="Constant">0xa</span> -<span id="L24" class="LineNr">24 </span> x, y <span class="SpecialChar"><-</span> draw-text-wrapping-right-then-down-from-cursor-over-full-screen <span class="Constant">0</span>, <span class="Constant">"def"</span>, <span class="Constant">0xa</span> +<span id="L23" class="LineNr">23 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L315'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">"abc"</span>, <span class="Constant">0xa</span> +<span id="L24" class="LineNr">24 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L184'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">"def"</span>, <span class="Constant">0xa</span> <span id="L25" class="LineNr">25 </span> <span id="L26" class="LineNr">26 </span> <span class="muComment"># test drawing near the edge</span> -<span id="L27" class="LineNr">27 </span> x <span class="SpecialChar"><-</span> draw-text-rightward <span class="Constant">0</span>, <span class="Constant">"R"</span>, <span class="Constant">0x3f8</span>, <span class="Constant">0x400</span>, <span class="Constant">0x100</span>, <span class="Constant">0xa</span> -<span id="L28" class="LineNr">28 </span> x, y <span class="SpecialChar"><-</span> draw-text-wrapping-right-then-down-from-cursor-over-full-screen <span class="Constant">0</span>, <span class="Constant">"wrapped from R"</span>, <span class="Constant">0xa</span> +<span id="L27" class="LineNr">27 </span> x <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L65'>draw-text-rightward</a> <span class="Constant">0</span>, <span class="Constant">"R"</span>, <span class="Constant">0x3f8</span>, <span class="Constant">0x400</span>, <span class="Constant">0x100</span>, <span class="Constant">0xa</span> +<span id="L28" class="LineNr">28 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L184'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">"wrapped from R"</span>, <span class="Constant">0xa</span> <span id="L29" class="LineNr">29 </span> -<span id="L30" class="LineNr">30 </span> x <span class="SpecialChar"><-</span> draw-text-downward <span class="Constant">0</span>, <span class="Constant">"D"</span>, <span class="Constant">0x100</span>, <span class="Constant">0x2f0</span>, <span class="Constant">0x300</span>, <span class="Constant">0xa</span> -<span id="L31" class="LineNr">31 </span> x, y <span class="SpecialChar"><-</span> draw-text-wrapping-down-then-right-from-cursor-over-full-screen <span class="Constant">0</span>, <span class="Constant">"wrapped from D"</span>, <span class="Constant">0xa</span> +<span id="L30" class="LineNr">30 </span> x <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L196'>draw-text-downward</a> <span class="Constant">0</span>, <span class="Constant">"D"</span>, <span class="Constant">0x100</span>, <span class="Constant">0x2f0</span>, <span class="Constant">0x300</span>, <span class="Constant">0xa</span> +<span id="L31" class="LineNr">31 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L315'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">"wrapped from D"</span>, <span class="Constant">0xa</span> <span id="L32" class="LineNr">32 </span><span class="Delimiter">}</span> </pre> </body> |