diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-01-23 11:14:07 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-01-23 11:14:07 -0800 |
commit | 4254408a385f90ffe212e85a7b405054f4e73f5e (patch) | |
tree | 87357dacdf7a4043633a68da39dc5022d1fae596 /html/baremetal/ex2.mu.html | |
parent | 63be7b7d0d5bb6e728d9afbb68e238fcd3bda3a7 (diff) | |
download | mu-4254408a385f90ffe212e85a7b405054f4e73f5e.tar.gz |
7549
Diffstat (limited to 'html/baremetal/ex2.mu.html')
-rw-r--r-- | html/baremetal/ex2.mu.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/baremetal/ex2.mu.html b/html/baremetal/ex2.mu.html index dc700ce5..585e281d 100644 --- a/html/baremetal/ex2.mu.html +++ b/html/baremetal/ex2.mu.html @@ -71,15 +71,15 @@ if ('onhashchange' in window) { <span id="L13" class="LineNr">13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex2.mu.html#L13'>main</a></span> <span class="Delimiter">{</span> <span id="L14" class="LineNr">14 </span> <span class="PreProc">var</span> y/<span class="Constant">eax</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> <span id="L15" class="LineNr">15 </span> <span class="Delimiter">{</span> -<span id="L16" class="LineNr">16 </span> compare y, <span class="Constant">0x300</span> <span class="muComment"># 768</span> +<span id="L16" class="LineNr">16 </span> compare y, <span class="Constant">0x300</span> <span class="muComment"># screen-height = 768</span> <span id="L17" class="LineNr">17 </span> <span class="PreProc">break-if->=</span> <span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> x/<span class="Constant">edx</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> <span id="L19" class="LineNr">19 </span> <span class="Delimiter">{</span> -<span id="L20" class="LineNr">20 </span> compare x, <span class="Constant">0x400</span> <span class="muComment"># 1024</span> +<span id="L20" class="LineNr">20 </span> compare x, <span class="Constant">0x400</span> <span class="muComment"># screen-width = 1024</span> <span id="L21" class="LineNr">21 </span> <span class="PreProc">break-if->=</span> <span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> color/<span class="Constant">ecx</span>: int <span class="SpecialChar"><-</span> copy x <span id="L23" class="LineNr">23 </span> color <span class="SpecialChar"><-</span> and <span class="Constant">0xff</span> -<span id="L24" class="LineNr">24 </span> <a href='101screen.subx.html#L5'>pixel</a> <span class="Constant">0</span>, x, y, color +<span id="L24" class="LineNr">24 </span> <a href='101screen.subx.html#L8'>pixel-on-real-screen</a> x, y, color <span id="L25" class="LineNr">25 </span> x <span class="SpecialChar"><-</span> increment <span id="L26" class="LineNr">26 </span> <span class="PreProc">loop</span> <span id="L27" class="LineNr">27 </span> <span class="Delimiter">}</span> |