about summary refs log tree commit diff stats
path: root/apps/tile
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-20 11:56:10 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-20 12:24:22 -0700
commit4625b2e280fb8f57a58b3f452f815976fab0cd07 (patch)
treee28a6eaf6d81b69461057252bf1d8a8692048cba /apps/tile
parent3dfebacf4c4f0c05f6a8749fbe736fe2d9740110 (diff)
downloadmu-4625b2e280fb8f57a58b3f452f815976fab0cd07.tar.gz
6819
Diffstat (limited to 'apps/tile')
-rw-r--r--apps/tile/environment.mu8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index 60e85004..af8e122a 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -203,11 +203,11 @@ fn render-column screen: (addr screen), first-word: (addr word), final-word: (ad
   # render stack
   var curr-row/edx: int <- copy botleft-depth
   curr-row <- add 6  # input-row 3 + stack-margin-top 3
-  var i/eax: int <- int-stack-length stack-addr
-  curr-row <- subtract i
+  var stack-remaining/eax: int <- int-stack-length stack-addr
+  curr-row <- subtract stack-remaining
   start-color screen, 0, 2
   {
-    compare i, 0
+    compare stack-remaining, 0
     break-if-<=
     move-cursor screen, curr-row, botleft-col
     {
@@ -220,7 +220,7 @@ fn render-column screen: (addr screen), first-word: (addr word), final-word: (ad
     }
     reset-formatting screen
     curr-row <- increment
-    i <- decrement
+    stack-remaining <- decrement
     loop
   }