about summary refs log tree commit diff stats
path: root/apps/tile/environment.mu
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tile/environment.mu')
-rw-r--r--apps/tile/environment.mu31
1 files changed, 2 insertions, 29 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index 39dc41b8..399901ac 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -142,18 +142,6 @@ $process:body: {
       copy-object next-word-ah, cursor-word-ah
       break $process:body
     }
-    compare key, 0xa  # enter
-    {
-      break-if-!=
-      # toggle display of subsidiary stack
-      var cursor-word-ah/edx: (addr handle word) <- get self, cursor-word
-      var cursor-word/eax: (addr word) <- lookup *cursor-word-ah
-      var display-subsidiary-stack?/eax: (addr boolean) <- get cursor-word, display-subsidiary-stack?
-      var tmp/ecx: int <- copy 1
-      tmp <- subtract *display-subsidiary-stack?
-      copy-to *display-subsidiary-stack?, tmp
-      break $process:body
-    }
     # otherwise insert key within current word
     var g/edx: grapheme <- copy key
     var print?/eax: boolean <- real-grapheme? key
@@ -230,22 +218,7 @@ fn render-line screen: (addr screen), defs: (addr handle function), bindings: (a
   {
     compare curr-word, 0
     break-if-=
-    # if necessary, first render columns for subsidiary stack
-    $render-line:subsidiary: {
-      {
-        var display-subsidiary-stack?/eax: (addr boolean) <- get curr-word, display-subsidiary-stack?
-        compare *display-subsidiary-stack?, 0  # false
-        break-if-= $render-line:subsidiary
-      }
-      var subsidiary-stack-ah/eax: (addr handle value-stack) <- get curr-word, subsidiary-stack
-      var subsidiary-stack/eax: (addr value-stack) <- lookup *subsidiary-stack-ah
-      compare subsidiary-stack, 0
-      break-if-=
-      top-row <- add 3
-      curr-col <- render-subsidiary-stack
-      print-string screen, "!"
-    }
-    # now render main column
+    move-cursor screen, top-row, curr-col
     curr-col <- render-column screen, defs, bindings, line, curr-word, top-row, curr-col, cursor-word, cursor-col-a
     var next-word-ah/edx: (addr handle word) <- get curr-word, next
     curr-word <- lookup *next-word-ah
@@ -377,7 +350,7 @@ fn clear-canvas _env: (addr environment) {
   reset-formatting screen
   print-string screen, " tbd  "
   move-cursor screen, 3, 2
-  print-string screen, "x 2* = 2 x *"
+  print-string screen, "x f = 2 x *"
 }
 
 fn real-grapheme? g: grapheme -> result/eax: boolean {