From f8104b38dc0f0c6e731ba218268c3fce10737d93 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 21 Sep 2020 20:48:12 -0700 Subject: 6826 - tile: indent columns compared to their final word --- apps/tile/environment.mu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0