about summary refs log tree commit diff stats
path: root/apps/tile/environment.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-11-07 19:45:58 -0800
committerKartik Agaram <vc@akkartik.com>2020-11-07 19:45:58 -0800
commitf2a3c381a7eb9c454cabda8ffa54035a438313bf (patch)
tree53d967a71d04e7ae534646a6c42a6c3683348eb5 /apps/tile/environment.mu
parent412304cf45ad4577b7e804b6a60c85f19c2b5e80 (diff)
downloadmu-f2a3c381a7eb9c454cabda8ffa54035a438313bf.tar.gz
7210
Bug fixed; I had to reinitialize the table of bindings.
Interesting debugging experience.
Diffstat (limited to 'apps/tile/environment.mu')
-rw-r--r--apps/tile/environment.mu2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index 0cd978f3..e0260c23 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -1396,6 +1396,7 @@ fn callee functions: (addr handle function), word: (addr word), out: (addr handl
 #
 # Return the farthest column written.
 fn render-column screen: (addr screen), functions: (addr handle function), bindings: (addr table), first-line: (addr line), line: (addr line), final-word: (addr word), top-row: int, left-col: int -> _/ecx: int {
+#?   print-string 0, "== "
 #?   print-string 0, "render-column\n"
   var max-width/esi: int <- copy 0
   {
@@ -1406,6 +1407,7 @@ fn render-column screen: (addr screen), functions: (addr handle function), bindi
     var stack: value-stack
     var stack-addr/edi: (addr value-stack) <- address stack
     initialize-value-stack stack-addr, 0x10  # max-words
+    initialize-table bindings, 0x10
     evaluate functions, bindings, first-line, final-word, stack-addr
     # render stack
     var curr-row/edx: int <- copy top-row