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/ex3.mu.html | |
parent | 63be7b7d0d5bb6e728d9afbb68e238fcd3bda3a7 (diff) | |
download | mu-4254408a385f90ffe212e85a7b405054f4e73f5e.tar.gz |
7549
Diffstat (limited to 'html/baremetal/ex3.mu.html')
-rw-r--r-- | html/baremetal/ex3.mu.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/baremetal/ex3.mu.html b/html/baremetal/ex3.mu.html index 288b015a..7b58231f 100644 --- a/html/baremetal/ex3.mu.html +++ b/html/baremetal/ex3.mu.html @@ -73,12 +73,12 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/<span class="Constant">ecx</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> <span id="L16" class="LineNr">16 </span> <span class="PreProc">var</span> y/<span class="Constant">edx</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> <span id="L17" class="LineNr">17 </span> <span class="Delimiter">{</span> -<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/<span class="Constant">eax</span>: byte <span class="SpecialChar"><-</span> <a href='102keyboard.subx.html#L6'>read-key</a> <span class="Constant">0</span> <span class="muComment"># real keyboard</span> +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/<span class="Constant">eax</span>: byte <span class="SpecialChar"><-</span> <a href='102keyboard.subx.html#L9'>read-key</a> <span class="Constant">0</span> <span class="muComment"># real keyboard</span> <span id="L19" class="LineNr">19 </span> compare key, <span class="Constant">0</span> <span id="L20" class="LineNr">20 </span> <span class="PreProc">loop-if-=</span> <span class="muComment"># busy wait</span> -<span id="L21" class="LineNr">21 </span> <a href='101screen.subx.html#L5'>pixel</a> <span class="Constant">0</span>, x, y, <span class="Constant">0x31</span> <span class="muComment"># green</span> +<span id="L21" class="LineNr">21 </span> <a href='101screen.subx.html#L8'>pixel-on-real-screen</a> x, y, <span class="Constant">0x31</span> <span class="muComment"># green</span> <span id="L22" class="LineNr">22 </span> x <span class="SpecialChar"><-</span> increment -<span id="L23" class="LineNr">23 </span> compare x, <span class="Constant">0x400</span> +<span id="L23" class="LineNr">23 </span> compare x, <span class="Constant">0x400</span> <span class="muComment"># screen-width</span> <span id="L24" class="LineNr">24 </span> <span class="Delimiter">{</span> <span id="L25" class="LineNr">25 </span> <span class="PreProc">break-if-<</span> <span id="L26" class="LineNr">26 </span> y <span class="SpecialChar"><-</span> increment |