about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/hest-life.mu7
-rw-r--r--apps/life.mu13
2 files changed, 16 insertions, 4 deletions
diff --git a/apps/hest-life.mu b/apps/hest-life.mu
index 62f2d945..721db5c8 100644
--- a/apps/hest-life.mu
+++ b/apps/hest-life.mu
@@ -42,7 +42,7 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
       convert-graphemes-to-pixels second-screen
       copy-pixels second-screen, screen
     }
-    linger env
+    linger
     loop
   }
 }
@@ -1016,11 +1016,10 @@ fn num-live-neighbors _self: (addr environment), x: int, y: int -> _/eax: int {
   return result
 }
 
-fn linger _self: (addr environment) {
-  var self/esi: (addr environment) <- copy _self
+fn linger {
   var i/ecx: int <- copy 0
   {
-    compare i, 0x10000000  # Kartik's Linux with -enable-kvm
+    compare i, 0x10000000  # Kartik's Linux with -accel kvm
 #?     compare i, 0x8000000  # Kartik's Mac with -accel tcg
     break-if->=
     i <- increment
diff --git a/apps/life.mu b/apps/life.mu
index 10914c41..4fdb8f8c 100644
--- a/apps/life.mu
+++ b/apps/life.mu
@@ -244,9 +244,22 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
     # iter: grid1 -> grid2
     step grid1, grid2
     render grid2
+#?     linger
     # iter: grid2 -> grid1
     step grid2, grid1
     render grid1
+#?     linger
+    loop
+  }
+}
+
+fn linger {
+  var i/ecx: int <- copy 0
+  {
+    compare i, 0x10000000  # Kartik's Linux with -accel kvm
+#?     compare i, 0x8000000  # Kartik's Mac with -accel tcg
+    break-if->=
+    i <- increment
     loop
   }
 }