about summary refs log tree commit diff stats
path: root/html/hest-life.mu.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-05-31 10:47:05 -0700
committerKartik Agaram <vc@akkartik.com>2021-05-31 10:47:05 -0700
commit82171a0fdfa28251cbc360dcf205392fee2c7eeb (patch)
treeacd7a83caa802ec1a24fc02570669f6228678375 /html/hest-life.mu.html
parente3c74453309a685594b93f344cba9cb59b7ac456 (diff)
downloadmu-82171a0fdfa28251cbc360dcf205392fee2c7eeb.tar.gz
.
Diffstat (limited to 'html/hest-life.mu.html')
-rw-r--r--html/hest-life.mu.html40
1 files changed, 20 insertions, 20 deletions
diff --git a/html/hest-life.mu.html b/html/hest-life.mu.html
index 0dafde10..32456854 100644
--- a/html/hest-life.mu.html
+++ b/html/hest-life.mu.html
@@ -87,7 +87,7 @@ if ('onhashchange' in window) {
 <span id="L28" class="LineNr">  28 </span>  <span class="PreProc">var</span> second-screen/<span class="Constant">edi</span>: (addr <a href='500fake-screen.mu.html#L14'>screen</a>) <span class="Special">&lt;-</span> address second-buffer
 <span id="L29" class="LineNr">  29 </span>  <a href='500fake-screen.mu.html#L31'>initialize-screen</a> second-screen, <span class="Constant">0x80</span>, <span class="Constant">0x30</span>, <span class="Constant">1</span>/include-pixels
 <span id="L30" class="LineNr">  30 </span>  <a href='hest-life.mu.html#L60'>render</a> second-screen, env
-<span id="L31" class="LineNr">  31 </span>  <a href='500fake-screen.mu.html#L523'>copy-pixels</a> second-screen, <a href='500fake-screen.mu.html#L14'>screen</a>
+<span id="L31" class="LineNr">  31 </span>  <a href='500fake-screen.mu.html#L524'>copy-pixels</a> second-screen, <a href='500fake-screen.mu.html#L14'>screen</a>
 <span id="L32" class="LineNr">  32 </span>  <span class="Delimiter">{</span>
 <span id="L33" class="LineNr">  33 </span>    <a href='hest-life.mu.html#L592'>edit</a> keyboard, env
 <span id="L34" class="LineNr">  34 </span>    <span class="PreProc">var</span> play?/<span class="Constant">eax</span>: (addr boolean) <span class="Special">&lt;-</span> get env, play?
@@ -96,7 +96,7 @@ if ('onhashchange' in window) {
 <span id="L37" class="LineNr">  37 </span>      <span class="PreProc">break-if-=</span>
 <span id="L38" class="LineNr">  38 </span>      <a href='hest-life.mu.html#L676'>step</a> env
 <span id="L39" class="LineNr">  39 </span>      <a href='hest-life.mu.html#L60'>render</a> second-screen, env
-<span id="L40" class="LineNr">  40 </span>      <a href='500fake-screen.mu.html#L523'>copy-pixels</a> second-screen, <a href='500fake-screen.mu.html#L14'>screen</a>
+<span id="L40" class="LineNr">  40 </span>      <a href='500fake-screen.mu.html#L524'>copy-pixels</a> second-screen, <a href='500fake-screen.mu.html#L14'>screen</a>
 <span id="L41" class="LineNr">  41 </span>    <span class="Delimiter">}</span>
 <span id="L42" class="LineNr">  42 </span>    <a href='hest-life.mu.html#L1016'>linger</a> env
 <span id="L43" class="LineNr">  43 </span>    <span class="PreProc">loop</span>
@@ -122,13 +122,13 @@ if ('onhashchange' in window) {
 <span id="L63" class="LineNr">  63 </span>  compare *zoom, <span class="Constant">0</span>
 <span id="L64" class="LineNr">  64 </span>  <span class="Delimiter">{</span>
 <span id="L65" class="LineNr">  65 </span>    <span class="PreProc">break-if-!=</span>
-<span id="L66" class="LineNr">  66 </span>    <a href='500fake-screen.mu.html#L230'>clear-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>
+<span id="L66" class="LineNr">  66 </span>    <a href='500fake-screen.mu.html#L231'>clear-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>
 <span id="L67" class="LineNr">  67 </span>    <a href='hest-life.mu.html#L89'>render0</a> <a href='500fake-screen.mu.html#L14'>screen</a>, self
 <span id="L68" class="LineNr">  68 </span>  <span class="Delimiter">}</span>
 <span id="L69" class="LineNr">  69 </span>  compare *zoom, <span class="Constant">1</span>
 <span id="L70" class="LineNr">  70 </span>  <span class="Delimiter">{</span>
 <span id="L71" class="LineNr">  71 </span>    <span class="PreProc">break-if-!=</span>
-<span id="L72" class="LineNr">  72 </span>    <a href='500fake-screen.mu.html#L230'>clear-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>
+<span id="L72" class="LineNr">  72 </span>    <a href='500fake-screen.mu.html#L231'>clear-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>
 <span id="L73" class="LineNr">  73 </span>    <a href='hest-life.mu.html#L209'>render1</a> <a href='500fake-screen.mu.html#L14'>screen</a>, self
 <span id="L74" class="LineNr">  74 </span>  <span class="Delimiter">}</span>
 <span id="L75" class="LineNr">  75 </span>  compare *zoom, <span class="Constant">4</span>
@@ -138,8 +138,8 @@ if ('onhashchange' in window) {
 <span id="L79" class="LineNr">  79 </span>  <span class="Delimiter">}</span>
 <span id="L80" class="LineNr">  80 </span>  <span class="muComment"># clock</span>
 <span id="L81" class="LineNr">  81 </span>  <span class="PreProc">var</span> tick-a/<span class="Constant">eax</span>: (addr int) <span class="Special">&lt;-</span> get self, tick
-<span id="L82" class="LineNr">  82 </span>  <a href='500fake-screen.mu.html#L169'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x78</span>/x, <span class="Constant">0</span>/y
-<span id="L83" class="LineNr">  83 </span>  <a href='501draw-text.mu.html#L366'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, *tick-a, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
+<span id="L82" class="LineNr">  82 </span>  <a href='500fake-screen.mu.html#L170'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x78</span>/x, <span class="Constant">0</span>/y
+<span id="L83" class="LineNr">  83 </span>  <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, *tick-a, <span class="Constant">7</span>/fg <span class="Constant">0</span>/bg
 <span id="L84" class="LineNr">  84 </span><span class="Delimiter">}</span>
 <span id="L85" class="LineNr">  85 </span>
 <span id="L86" class="LineNr">  86 </span><span class="muComment"># Lots of hardcoded constants for now.</span>
@@ -172,8 +172,8 @@ if ('onhashchange' in window) {
 <span id="L113" class="LineNr"> 113 </span>  <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x350</span>/xmin  <span class="Constant">0x170</span>/ymin,   <span class="Constant">0x370</span>/xmax  <span class="Constant">0x190</span>/ymax,  color
 <span id="L114" class="LineNr"> 114 </span>  <span class="muComment"># sum node</span>
 <span id="L115" class="LineNr"> 115 </span>  <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x170</span>/xsmin <span class="Constant">0x140</span>/ysmin,  <span class="Constant">0x190</span>/xsmax <span class="Constant">0x160</span>/ysmax, <span class="Constant">0x40</span>/color
-<span id="L116" class="LineNr"> 116 </span>  <a href='500fake-screen.mu.html#L169'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>/scol, <span class="Constant">0x13</span>/srow
-<span id="L117" class="LineNr"> 117 </span>  <a href='501draw-text.mu.html#L258'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;+&quot;</span>, <span class="Constant">0xf</span>/color, <span class="Constant">0</span>/bg
+<span id="L116" class="LineNr"> 116 </span>  <a href='500fake-screen.mu.html#L170'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>/scol, <span class="Constant">0x13</span>/srow
+<span id="L117" class="LineNr"> 117 </span>  <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;+&quot;</span>, <span class="Constant">0xf</span>/color, <span class="Constant">0</span>/bg
 <span id="L118" class="LineNr"> 118 </span>  <span class="muComment"># conveyors from neighboring inputs to sum node</span>
 <span id="L119" class="LineNr"> 119 </span>  <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>,  <span class="Constant">0xa0</span>/x0  <span class="Constant">0x20</span>/y0,  <span class="Constant">0x100</span>/x1 <span class="Constant">0x150</span>/ys,  <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys,  <span class="Constant">4</span>/color
 <span id="L120" class="LineNr"> 120 </span>  <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>,  <span class="Constant">0xa0</span>/x0 <span class="Constant">0x180</span>/y0,   <span class="Constant">0xc0</span>/x1 <span class="Constant">0x150</span>/ys,  <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys,  <span class="Constant">4</span>/color
@@ -185,8 +185,8 @@ if ('onhashchange' in window) {
 <span id="L126" class="LineNr"> 126 </span>  <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x360</span>/x0 <span class="Constant">0x2e0</span>/y0,  <span class="Constant">0x180</span>/x1 <span class="Constant">0x200</span>/y1,  <span class="Constant">0x180</span>/xs <span class="Constant">0x150</span>/ys,  <span class="Constant">4</span>/color
 <span id="L127" class="LineNr"> 127 </span>  <span class="muComment"># filter node</span>
 <span id="L128" class="LineNr"> 128 </span>  <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x200</span>/xfmin <span class="Constant">0x1c0</span>/yfmin, <span class="Constant">0x220</span>/xfmax <span class="Constant">0x1e0</span>/yfmax, <span class="Constant">0x31</span>/color
-<span id="L129" class="LineNr"> 129 </span>  <a href='500fake-screen.mu.html#L169'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x40</span>/fcol, <span class="Constant">0x1b</span>/frow
-<span id="L130" class="LineNr"> 130 </span>  <a href='501draw-text.mu.html#L258'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;?&quot;</span>, <span class="Constant">0xf</span>/color, <span class="Constant">0</span>/bg
+<span id="L129" class="LineNr"> 129 </span>  <a href='500fake-screen.mu.html#L170'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x40</span>/fcol, <span class="Constant">0x1b</span>/frow
+<span id="L130" class="LineNr"> 130 </span>  <a href='501draw-text.mu.html#L279'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">&quot;?&quot;</span>, <span class="Constant">0xf</span>/color, <span class="Constant">0</span>/bg
 <span id="L131" class="LineNr"> 131 </span>  <span class="muComment"># conveyor from sum node to filter node</span>
 <span id="L132" class="LineNr"> 132 </span>  <a href='507line.mu.html#L1'>draw-line</a> <a href='500fake-screen.mu.html#L14'>screen</a> <span class="Constant">0x180</span>/xs, <span class="Constant">0x150</span>/ys, <span class="Constant">0x210</span>/xf, <span class="Constant">0x1d0</span>/yf, <span class="Constant">0xa2</span>/color
 <span id="L133" class="LineNr"> 133 </span>  <span class="muComment"># cell outputs at corners</span>
@@ -243,9 +243,9 @@ if ('onhashchange' in window) {
 <span id="L184" class="LineNr"> 184 </span>    <span class="PreProc">var</span> three-f/<span class="Constant">xmm0</span>: float <span class="Special">&lt;-</span> convert three
 <span id="L185" class="LineNr"> 185 </span>    u <span class="Special">&lt;-</span> divide three-f
 <span id="L186" class="LineNr"> 186 </span>    <a href='hest-life.mu.html#L585'>draw-linear-point</a> <a href='500fake-screen.mu.html#L14'>screen</a>, u, <span class="Constant">0x180</span>/xs, <span class="Constant">0x150</span>/ys, <span class="Constant">0x210</span>/xf, <span class="Constant">0x1d0</span>/yf, <span class="Constant">7</span>/color, <span class="Constant">4</span>/radius
-<span id="L187" class="LineNr"> 187 </span>    <a href='500fake-screen.mu.html#L169'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x3a</span>/scol, <span class="Constant">0x18</span>/srow
+<span id="L187" class="LineNr"> 187 </span>    <a href='500fake-screen.mu.html#L170'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x3a</span>/scol, <span class="Constant">0x18</span>/srow
 <span id="L188" class="LineNr"> 188 </span>    <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="Special">&lt;-</span> <a href='hest-life.mu.html#L950'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury
-<span id="L189" class="LineNr"> 189 </span>    <a href='501draw-text.mu.html#L366'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg
+<span id="L189" class="LineNr"> 189 </span>    <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg
 <span id="L190" class="LineNr"> 190 </span>    <span class="PreProc">return</span>
 <span id="L191" class="LineNr"> 191 </span>  <span class="Delimiter">}</span>
 <span id="L192" class="LineNr"> 192 </span>  <span class="muComment"># final 7 time steps for updating output</span>
@@ -361,17 +361,17 @@ if ('onhashchange' in window) {
 <span id="L302" class="LineNr"> 302 </span>  <a href='507line.mu.html#L86'>draw-rect</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2a0</span>/xfmin <span class="Constant">0x218</span>/yfmin, <span class="Constant">0x2b0</span>/xfmax <span class="Constant">0x228</span>/yfmax, <span class="Constant">0x31</span>/color
 <span id="L303" class="LineNr"> 303 </span>  <span class="muComment"># neighbor counts</span>
 <span id="L304" class="LineNr"> 304 </span>  <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="Special">&lt;-</span> <a href='hest-life.mu.html#L950'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x60</span>/cury
-<span id="L305" class="LineNr"> 305 </span>  <a href='500fake-screen.mu.html#L169'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>, <span class="Constant">0xe</span>
-<span id="L306" class="LineNr"> 306 </span>  <a href='501draw-text.mu.html#L366'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg
+<span id="L305" class="LineNr"> 305 </span>  <a href='500fake-screen.mu.html#L170'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>, <span class="Constant">0xe</span>
+<span id="L306" class="LineNr"> 306 </span>  <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg
 <span id="L307" class="LineNr"> 307 </span>  <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="Special">&lt;-</span> <a href='hest-life.mu.html#L950'>num-live-neighbors</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x60</span>/cury
-<span id="L308" class="LineNr"> 308 </span>  <a href='500fake-screen.mu.html#L169'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x52</span>, <span class="Constant">0xe</span>
-<span id="L309" class="LineNr"> 309 </span>  <a href='501draw-text.mu.html#L366'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg
+<span id="L308" class="LineNr"> 308 </span>  <a href='500fake-screen.mu.html#L170'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x52</span>, <span class="Constant">0xe</span>
+<span id="L309" class="LineNr"> 309 </span>  <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg
 <span id="L310" class="LineNr"> 310 </span>  <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="Special">&lt;-</span> <a href='hest-life.mu.html#L950'>num-live-neighbors</a> self, <span class="Constant">0x80</span>/curx, <span class="Constant">0x61</span>/cury
-<span id="L311" class="LineNr"> 311 </span>  <a href='500fake-screen.mu.html#L169'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>, <span class="Constant">0x20</span>
-<span id="L312" class="LineNr"> 312 </span>  <a href='501draw-text.mu.html#L366'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg
+<span id="L311" class="LineNr"> 311 </span>  <a href='500fake-screen.mu.html#L170'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x2d</span>, <span class="Constant">0x20</span>
+<span id="L312" class="LineNr"> 312 </span>  <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg
 <span id="L313" class="LineNr"> 313 </span>  <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="Special">&lt;-</span> <a href='hest-life.mu.html#L950'>num-live-neighbors</a> self, <span class="Constant">0x81</span>/curx, <span class="Constant">0x61</span>/cury
-<span id="L314" class="LineNr"> 314 </span>  <a href='500fake-screen.mu.html#L169'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x52</span>, <span class="Constant">0x20</span>
-<span id="L315" class="LineNr"> 315 </span>  <a href='501draw-text.mu.html#L366'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg
+<span id="L314" class="LineNr"> 314 </span>  <a href='500fake-screen.mu.html#L170'>set-cursor-position</a> <a href='500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0x52</span>, <span class="Constant">0x20</span>
+<span id="L315" class="LineNr"> 315 </span>  <a href='501draw-text.mu.html#L387'>draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='500fake-screen.mu.html#L14'>screen</a>, n, <span class="Constant">0xf</span>/fg <span class="Constant">0</span>/bg
 <span id="L316" class="LineNr"> 316 </span>  <span class="muComment"># cell 0: conveyors from neighboring inputs to sum node</span>
 <span id="L317" class="LineNr"> 317 </span>  <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>,  <span class="Constant">0xc0</span>/x0  <span class="Constant">0x40</span>/y0,  <span class="Constant">0x100</span>/x1  <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs  <span class="Constant">0xd0</span>/ys,  <span class="Constant">4</span>/color
 <span id="L318" class="LineNr"> 318 </span>  <a href='509bezier.mu.html#L14'>draw-monotonic-bezier</a> <a href='500fake-screen.mu.html#L14'>screen</a>,  <span class="Constant">0xc0</span>/x0  <span class="Constant">0xe8</span>/y0,   <span class="Constant">0xc0</span>/x1  <span class="Constant">0xd0</span>/ys, <span class="Constant">0x150</span>/xs  <span class="Constant">0xd0</span>/ys,  <span class="Constant">4</span>/color