diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-04-13 21:11:26 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-04-13 21:11:26 -0700 |
commit | 5a3f9a31850d6da72dff7211c9760cd4a8e1090b (patch) | |
tree | da45bfbfa58a4573b6c1898006dfaf146352eb40 /html/ex3.mu.html | |
parent | fea45ccbea6bee563b41da199fb3c456c6069cb5 (diff) | |
download | mu-5a3f9a31850d6da72dff7211c9760cd4a8e1090b.tar.gz |
.
Diffstat (limited to 'html/ex3.mu.html')
-rw-r--r-- | html/ex3.mu.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/ex3.mu.html b/html/ex3.mu.html index 0c2dbe62..77e4d705 100644 --- a/html/ex3.mu.html +++ b/html/ex3.mu.html @@ -69,11 +69,11 @@ if ('onhashchange' in window) { <span id="L11" class="LineNr">11 </span><span class="muComment"># Expected output: a new green pixel starting from the top left corner of the</span> <span id="L12" class="LineNr">12 </span><span class="muComment"># screen every time you press a key (letter or digit)</span> <span id="L13" class="LineNr">13 </span> -<span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex3.mu.html#L14'>main</a></span> <span class="Delimiter">{</span> +<span id="L14" class="LineNr">14 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex3.mu.html#L14'>main</a></span> <a href='500text-screen.mu.html#L9'>screen</a>: (addr <a href='500text-screen.mu.html#L9'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x/<span class="Constant">ecx</span>: int <span class="Special"><-</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="Special"><-</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="Special"><-</span> <a href='102keyboard.subx.html#L9'>read-key</a> <span class="Constant">0</span>/keyboard +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> key/<span class="Constant">eax</span>: byte <span class="Special"><-</span> <a href='102keyboard.subx.html#L21'>read-key</a> keyboard <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#L8'>pixel-on-real-screen</a> x, y, <span class="Constant">0x31</span>/green |