This commit is contained in:
Kartik Agaram 2021-05-23 08:06:03 -07:00
parent 49f7a91704
commit 0f5b9a1534
2 changed files with 2 additions and 2 deletions

2
ex2.mu
View File

@ -18,7 +18,7 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
break-if->=
var color/ecx: int <- copy x
color <- and 0xff
pixel-on-real-screen x, y, color
pixel screen x, y, color
x <- increment
loop
}

2
html/ex2.mu.html generated
View File

@ -76,7 +76,7 @@ if ('onhashchange' in window) {
<span id="L18" class="LineNr">18 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> color/<span class="Constant">ecx</span>: int <span class="Special">&lt;-</span> copy x
<span id="L20" class="LineNr">20 </span> color <span class="Special">&lt;-</span> and <span class="Constant">0xff</span>
<span id="L21" class="LineNr">21 </span> <a href='101screen.subx.html#L8'>pixel-on-real-screen</a> x, y, color
<span id="L21" class="LineNr">21 </span> <a href='500fake-screen.mu.html#L462'>pixel</a> <a href='500fake-screen.mu.html#L14'>screen</a> x, y, color
<span id="L22" class="LineNr">22 </span> x <span class="Special">&lt;-</span> increment
<span id="L23" class="LineNr">23 </span> <span class="PreProc">loop</span>
<span id="L24" class="LineNr">24 </span> <span class="Delimiter">}</span>