about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-21 20:48:12 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-21 20:48:12 -0700
commitf8104b38dc0f0c6e731ba218268c3fce10737d93 (patch)
tree80a3dae8b2c4baad7af0beead66ef761e420b031
parent4c363e6e4931e238cfb351b999ed711dc730581f (diff)
downloadmu-f8104b38dc0f0c6e731ba218268c3fce10737d93.tar.gz
6826 - tile: indent columns compared to their final word
-rw-r--r--apps/tile/environment.mu5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index 087879e1..eb55538e 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -202,6 +202,9 @@ fn render-column screen: (addr screen), first-word: (addr word), final-word: (ad
     var next/eax: (addr word) <- lookup *next-ah
     compare next, 0
     break-if-=
+    # indent stack
+    var indented-col/ebx: int <- copy botleft-col
+    indented-col <- add 2
     # compute stack
     var stack: int-stack
     var stack-addr/edi: (addr int-stack) <- address stack
@@ -215,7 +218,7 @@ fn render-column screen: (addr screen), first-word: (addr word), final-word: (ad
     {
       compare i, 0
       break-if-<=
-      move-cursor screen, curr-row, botleft-col
+      move-cursor screen, curr-row, indented-col
       {
         var val/eax: int <- pop-int-stack stack-addr
         print-int32-decimal screen, val