diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-09-24 16:30:02 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-09-24 16:30:02 -0700 |
commit | 6d35f049cc894f929f4793140bbe768adff4bd4a (patch) | |
tree | bdd88fe256a591b3b39fbe2c9330206b5af3a148 | |
parent | 985f226801aef9c0f00002f71d72d5c1649c5e8d (diff) | |
download | mu-6d35f049cc894f929f4793140bbe768adff4bd4a.tar.gz |
6850
-rw-r--r-- | apps/tile/environment.mu | 9 |
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) { |