diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-10-11 21:35:16 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-10-11 21:35:16 -0700 |
commit | 132d72d28a63e58ec7f5e6fc955be140ee5844b0 (patch) | |
tree | a169eda8e804e45aaca32bf23df4dcb27b25e255 /html/apps/mandelbrot.mu.html | |
parent | a54b2cb7af733ae053b0aa78eca2bd4a3419d23d (diff) | |
download | mu-132d72d28a63e58ec7f5e6fc955be140ee5844b0.tar.gz |
.
Diffstat (limited to 'html/apps/mandelbrot.mu.html')
-rw-r--r-- | html/apps/mandelbrot.mu.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html/apps/mandelbrot.mu.html b/html/apps/mandelbrot.mu.html index 0c193903..d1ac6068 100644 --- a/html/apps/mandelbrot.mu.html +++ b/html/apps/mandelbrot.mu.html @@ -73,7 +73,7 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr"> 10 </span><span class="muComment"># Run:</span> <span id="L11" class="LineNr"> 11 </span><span class="muComment"># $ qemu-system-i386 code.img</span> <span id="L12" class="LineNr"> 12 </span> -<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L13'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> +<span id="L13" class="LineNr"> 13 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L13'>main</a></span> <a href='../500fake-screen.mu.html#L16'>screen</a>: (addr <a href='../500fake-screen.mu.html#L16'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span> <span id="L14" class="LineNr"> 14 </span> <span class="muComment"># Initially the viewport is centered at 0, 0 in the scene.</span> <span id="L15" class="LineNr"> 15 </span> <span class="PreProc">var</span> zero: float <span id="L16" class="LineNr"> 16 </span> <span class="PreProc">var</span> scene-cx/<span class="Constant">xmm1</span>: float <span class="Special"><-</span> copy zero @@ -89,7 +89,7 @@ if ('onhashchange' in window) { <span id="L26" class="LineNr"> 26 </span> <a href='../408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">4</span>, <span class="Constant">1</span> <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">var</span> scene-width/<span class="Constant">xmm3</span>: float <span class="Special"><-</span> copy four <span id="L28" class="LineNr"> 28 </span> <span class="Delimiter">{</span> -<span id="L29" class="LineNr"> 29 </span> <a href='mandelbrot.mu.html#L41'>mandelbrot</a> <a href='../500fake-screen.mu.html#L14'>screen</a> scene-cx, scene-cy, scene-width +<span id="L29" class="LineNr"> 29 </span> <a href='mandelbrot.mu.html#L41'>mandelbrot</a> <a href='../500fake-screen.mu.html#L16'>screen</a> scene-cx, scene-cy, scene-width <span id="L30" class="LineNr"> 30 </span> <span class="muComment"># move the center some % of the current screen-width</span> <span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> adj/<span class="Constant">xmm0</span>: float <span class="Special"><-</span> <a href='../408float.mu.html#L18'>rational</a> <span class="Constant">2</span>, <span class="Constant">0x1c</span>/<span class="Constant">28</span> <span id="L32" class="LineNr"> 32 </span> adj <span class="Special"><-</span> multiply scene-width @@ -101,10 +101,10 @@ if ('onhashchange' in window) { <span id="L38" class="LineNr"> 38 </span> <span class="Delimiter">}</span> <span id="L39" class="LineNr"> 39 </span><span class="Delimiter">}</span> <span id="L40" class="LineNr"> 40 </span> -<span id="L41" class="LineNr"> 41 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L41'>mandelbrot</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), scene-cx: float, scene-cy: float, scene-width: float <span class="Delimiter">{</span> +<span id="L41" class="LineNr"> 41 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='mandelbrot.mu.html#L41'>mandelbrot</a></span> <a href='../500fake-screen.mu.html#L16'>screen</a>: (addr <a href='../500fake-screen.mu.html#L16'>screen</a>), scene-cx: float, scene-cy: float, scene-width: float <span class="Delimiter">{</span> <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> a/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> b/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L44" class="LineNr"> 44 </span> a, b <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L73'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L44" class="LineNr"> 44 </span> a, b <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L75'>screen-size</a> <a href='../500fake-screen.mu.html#L16'>screen</a> <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> width/<span class="muRegEsi">esi</span>: int <span class="Special"><-</span> copy a <span id="L46" class="LineNr"> 46 </span> width <span class="Special"><-</span> shift-left <span class="Constant">3</span>/log2-font-width <span id="L47" class="LineNr"> 47 </span> <span class="PreProc">var</span> height/<span class="muRegEdi">edi</span>: int <span class="Special"><-</span> copy b @@ -124,7 +124,7 @@ if ('onhashchange' in window) { <span id="L61" class="LineNr"> 61 </span> <span class="PreProc">var</span> color/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L62" class="LineNr"> 62 </span> iterations, color <span class="Special"><-</span> <a href='../314divide.subx.html#L3'>integer-divide</a> iterations, <span class="Constant">0x18</span>/<span class="Constant">24</span>/size-of-cycle-0 <span id="L63" class="LineNr"> 63 </span> color <span class="Special"><-</span> add <span class="Constant">0x20</span>/cycle-0 -<span id="L64" class="LineNr"> 64 </span> <a href='../500fake-screen.mu.html#L578'>pixel</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, x, y, color +<span id="L64" class="LineNr"> 64 </span> <a href='../500fake-screen.mu.html#L580'>pixel</a> <a href='../500fake-screen.mu.html#L16'>screen</a>, x, y, color <span id="L65" class="LineNr"> 65 </span> x <span class="Special"><-</span> increment <span id="L66" class="LineNr"> 66 </span> <span class="PreProc">loop</span> <span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">}</span> |