about summary refs log tree commit diff stats
path: root/apps/tile
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-24 16:30:02 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-24 16:30:02 -0700
commit6d35f049cc894f929f4793140bbe768adff4bd4a (patch)
treebdd88fe256a591b3b39fbe2c9330206b5af3a148 /apps/tile
parent985f226801aef9c0f00002f71d72d5c1649c5e8d (diff)
downloadmu-6d35f049cc894f929f4793140bbe768adff4bd4a.tar.gz
6850
Diffstat (limited to 'apps/tile')
-rw-r--r--apps/tile/environment.mu9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index c961fc62..73d97de5 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -188,15 +188,10 @@ fn render _env: (addr environment) {
   var line/esi: (addr line) <- copy _line
   # cursor-col
   var cursor-col: int
-  var cursor-col-a: (addr int)
-  {
-    var tmp/ecx: (addr int) <- address cursor-col
-    copy-to cursor-col-a, tmp
-  }
+  var cursor-col-a/eax: (addr int) <- address cursor-col
   #
   render-line screen, defs, line, 3, repl-col, cursor-word, cursor-col-a  # input-row
-  var col/eax: (addr int) <- copy cursor-col-a
-  move-cursor screen, 3, *col  # input-row
+  move-cursor screen, 3, cursor-col  # input-row
 }
 
 fn render-line screen: (addr screen), defs: (addr function), _line: (addr line), top-row: int, left-col: int, cursor-word: (addr word), cursor-col-a: (addr int) {