diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-02-13 18:18:05 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-02-13 18:41:43 -0800 |
commit | 535fe9ac96dba0950efd1bfe6788801f6197971f (patch) | |
tree | 218270b512ce4175e3c7e3394d7b1a19ad84184b /html/baremetal/ex6.mu.html | |
parent | 9b5ead67eca1b6e1afeeba63e9c68b2790c26436 (diff) | |
download | mu-535fe9ac96dba0950efd1bfe6788801f6197971f.tar.gz |
7737
Diffstat (limited to 'html/baremetal/ex6.mu.html')
-rw-r--r-- | html/baremetal/ex6.mu.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/html/baremetal/ex6.mu.html b/html/baremetal/ex6.mu.html index f870f80e..a6f1ce7a 100644 --- a/html/baremetal/ex6.mu.html +++ b/html/baremetal/ex6.mu.html @@ -72,21 +72,21 @@ if ('onhashchange' in window) { <span id="L14" class="LineNr">14 </span> <a href='503manhattan-line.mu.html#L1'>draw-box-on-real-screen</a> <span class="Constant">0xf</span>, <span class="Constant">0x1f</span>, <span class="Constant">0x79</span>, <span class="Constant">0x51</span>, <span class="Constant">0x4</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/<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> <a href='501draw-text.mu.html#L120'>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#L120'>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#L120'>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#L120'>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="L17" class="LineNr">17 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L136'>draw-text-wrapping-right-then-down</a> <span class="Constant">0</span>/screen, <span class="Constant">"hello "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/color +<span id="L18" class="LineNr">18 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L136'>draw-text-wrapping-right-then-down</a> <span class="Constant">0</span>/screen, <span class="Constant">"from "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/color +<span id="L19" class="LineNr">19 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L136'>draw-text-wrapping-right-then-down</a> <span class="Constant">0</span>/screen, <span class="Constant">"baremetal "</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/color +<span id="L20" class="LineNr">20 </span> x, y <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L136'>draw-text-wrapping-right-then-down</a> <span class="Constant">0</span>/screen, <span class="Constant">"Mu!"</span>, <span class="Constant">0x10</span>/xmin, <span class="Constant">0x20</span>/ymin, <span class="Constant">0x78</span>/xmax, <span class="Constant">0x50</span>/ymax, x, y, <span class="Constant">0xa</span>/color <span id="L21" class="LineNr">21 </span> <span id="L22" class="LineNr">22 </span> <span class="muComment"># drawing at the cursor in multiple directions</span> -<span id="L23" class="LineNr">23 </span> <a href='501draw-text.mu.html#L494'>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> <a href='501draw-text.mu.html#L206'>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="L23" class="LineNr">23 </span> <a href='501draw-text.mu.html#L510'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">"abc"</span>, <span class="Constant">0xa</span> +<span id="L24" class="LineNr">24 </span> <a href='501draw-text.mu.html#L222'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <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> <a href='501draw-text.mu.html#L73'>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 class="muComment"># 0x400 = screen-width</span> -<span id="L28" class="LineNr">28 </span> <a href='501draw-text.mu.html#L206'>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="L27" class="LineNr">27 </span> x <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L81'>draw-text-rightward</a> <span class="Constant">0</span>/screen, <span class="Constant">"R"</span>, <span class="Constant">0x3f8</span>/x, <span class="Constant">0x400</span>/xmax=screen-width, <span class="Constant">0x100</span>/y, <span class="Constant">0xa</span>/color +<span id="L28" class="LineNr">28 </span> <a href='501draw-text.mu.html#L222'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <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> <a href='501draw-text.mu.html#L376'>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 class="muComment"># 0x300 = screen-height</span> -<span id="L31" class="LineNr">31 </span> <a href='501draw-text.mu.html#L494'>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="L30" class="LineNr">30 </span> x <span class="SpecialChar"><-</span> <a href='501draw-text.mu.html#L392'>draw-text-downward</a> <span class="Constant">0</span>/screen, <span class="Constant">"D"</span>, <span class="Constant">0x100</span>/x, <span class="Constant">0x2f0</span>/y, <span class="Constant">0x300</span>/ymax=screen-height, <span class="Constant">0xa</span>/color +<span id="L31" class="LineNr">31 </span> <a href='501draw-text.mu.html#L510'>draw-text-wrapping-down-then-right-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <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> |