about summary refs log tree commit diff stats
path: root/shell/grapheme-stack.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-09 20:09:28 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-09 20:10:47 -0700
commitf5defca1170bccaca5a7f3e35d59a38b8c7017f0 (patch)
tree88cd2d8b5a596f3c637de8a7fe7bd509228b4ff2 /shell/grapheme-stack.mu
parentfd0e9b5b68a5dc7336d543e9511fee2a3c9bb08d (diff)
downloadmu-f5defca1170bccaca5a7f3e35d59a38b8c7017f0.tar.gz
.
Diffstat (limited to 'shell/grapheme-stack.mu')
-rw-r--r--shell/grapheme-stack.mu16
1 files changed, 6 insertions, 10 deletions
diff --git a/shell/grapheme-stack.mu b/shell/grapheme-stack.mu
index ab42e6fa..aa9838b4 100644
--- a/shell/grapheme-stack.mu
+++ b/shell/grapheme-stack.mu
@@ -122,12 +122,12 @@ fn render-stack-from-bottom screen: (addr screen), self: (addr grapheme-stack),
 # optionally render a 'cursor' with the top grapheme
 fn render-stack-from-top-wrapping-right-then-down screen: (addr screen), _self: (addr grapheme-stack), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, render-cursor?: boolean -> _/eax: int, _/ecx: int {
   var self/esi: (addr grapheme-stack) <- copy _self
-  var data-ah/edi: (addr handle array grapheme) <- get self, data
+  var data-ah/eax: (addr handle array grapheme) <- get self, data
   var _data/eax: (addr array grapheme) <- lookup *data-ah
   var data/edi: (addr array grapheme) <- copy _data
   var x/eax: int <- copy _x
   var y/ecx: int <- copy _y
-  var top-addr/edx: (addr int) <- get self, top
+  var top-addr/ebx: (addr int) <- get self, top
   var i/ebx: int <- copy *top-addr
   i <- decrement
   # if render-cursor?, peel off first iteration
@@ -136,20 +136,16 @@ fn render-stack-from-top-wrapping-right-then-down screen: (addr screen), _self:
     break-if-=
     compare i, 0
     break-if-<
-    {
-      var g/edx: (addr grapheme) <- index data, i
-      x, y <- render-grapheme screen, *g, xmin, ymin, xmax, ymax, x, y, 3/fg=cyan, 7/bg=cursor
-    }
+    var g/esi: (addr grapheme) <- index data, i
+    x, y <- render-grapheme screen, *g, xmin, ymin, xmax, ymax, x, y, 3/fg=cyan, 7/bg=cursor
     i <- decrement
   }
   # remaining iterations
   {
     compare i, 0
     break-if-<
-    {
-      var g/edx: (addr grapheme) <- index data, i
-      x, y <- render-grapheme screen, *g, xmin, ymin, xmax, ymax, x, y, 3/fg=cyan, 0/bg=cursor
-    }
+    var g/esi: (addr grapheme) <- index data, i
+    x, y <- render-grapheme screen, *g, xmin, ymin, xmax, ymax, x, y, 3/fg=cyan, 0/bg=cursor
     i <- decrement
     loop
   }