about summary refs log tree commit diff stats
path: root/apps/tile/word.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-12-06 21:48:14 -0800
committerKartik Agaram <vc@akkartik.com>2020-12-06 21:48:39 -0800
commitbec147690f631800265d4771b911c1d54a05e489 (patch)
tree525f2fcccb6df630772b47602c0d0474d370da8a /apps/tile/word.mu
parent4cf5916c2b46ca9ac4f4f54f589b9c964f517175 (diff)
downloadmu-bec147690f631800265d4771b911c1d54a05e489.tar.gz
7341 - tile: function editing done
A tiny modicum of reuse amidst all this copypasta: I'm able to reuse the
same function that renders lines without stacks in the sandbox.
Diffstat (limited to 'apps/tile/word.mu')
-rw-r--r--apps/tile/word.mu13
1 files changed, 0 insertions, 13 deletions
diff --git a/apps/tile/word.mu b/apps/tile/word.mu
index 69d20fc2..2d776caf 100644
--- a/apps/tile/word.mu
+++ b/apps/tile/word.mu
@@ -257,19 +257,6 @@ fn print-word screen: (addr screen), _self: (addr word) {
   render-gap-buffer screen, data
 }
 
-fn print-words screen: (addr screen), _words-ah: (addr handle word) {
-  var words-ah/eax: (addr handle word) <- copy _words-ah
-  var words-a/eax: (addr word) <- lookup *words-ah
-  compare words-a, 0
-  break-if-=
-  # print
-  print-word screen, words-a
-  print-string screen, " "
-  # recurse
-  var next-ah/eax: (addr handle word) <- get words-a, next
-  print-words screen, next-ah
-}
-
 fn print-words-in-reverse screen: (addr screen), _words-ah: (addr handle word) {
   var words-ah/eax: (addr handle word) <- copy _words-ah
   var words-a/eax: (addr word) <- lookup *words-ah