From 6d35f049cc894f929f4793140bbe768adff4bd4a Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 24 Sep 2020 16:30:02 -0700 Subject: 6850 --- apps/tile/environment.mu | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'apps/tile') 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) { -- cgit 1.4.1-2-gfad0