about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-26 17:36:54 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-26 17:37:44 -0700
commitbade3ae86cb8ea70f268779f0a64d6f9bf477bf0 (patch)
tree722ba535de0e7d80a7d03eca0790d8b0b0c7bb94 /apps
parenta5cbf871ea8dbf76745708184bd0b352fbaaa976 (diff)
downloadmu-bade3ae86cb8ea70f268779f0a64d6f9bf477bf0.tar.gz
.
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
   }
 }