about summary refs log tree commit diff stats
path: root/apps/tile/environment.mu
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tile/environment.mu')
-rw-r--r--apps/tile/environment.mu15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index e839effb..2fd2ef9b 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -120,6 +120,21 @@ $process:body: {
         cursor-right cursor-word
         break $process:body
       }
+      # if at final word, look for a caller to jump to
+      {
+        var next-word-ah/edx: (addr handle word) <- get cursor-word, next
+        var next-word/eax: (addr word) <- lookup *next-word-ah
+        compare next-word, 0
+        break-if-!=
+        var cursor-call-path-ah/edi: (addr handle call-path-element) <- get sandbox, cursor-call-path
+        var cursor-call-path/eax: (addr call-path-element) <- lookup *cursor-call-path-ah
+        var next-cursor-element-ah/ecx: (addr handle call-path-element) <- get cursor-call-path, next
+        var next-cursor-element/eax: (addr call-path-element) <- lookup *next-cursor-element-ah
+        compare next-cursor-element, 0
+        break-if-=
+        copy-object next-cursor-element-ah, cursor-call-path-ah
+        break $process:body
+      }
       # otherwise, move to a new word
       var next-word-ah/edx: (addr handle word) <- get cursor-word, next
       var next-word/eax: (addr word) <- lookup *next-word-ah
t; 2018-03-13 00:18:05 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2018-03-13 00:18:05 -0700 4218 - test build alternatives in CI' href='/akkartik/mu/commit/test_layers?h=main&id=7e977235d4bd341b1d5d5e125affb0646199f16c'>7e977235 ^
a6a95dae ^



3cc643be ^
1baa04db ^

eb917331 ^
4ba60f35 ^
1baa04db ^
9531333e ^
7e977235 ^
d822d111 ^
3cc643be ^
d822d111 ^


1baa04db ^

3cc643be ^
d9ee2076 ^
7e977235 ^
4ba60f35 ^
eb917331 ^
1baa04db ^

3cc643be ^
1baa04db ^

3cc643be ^

1baa04db ^
3cc643be ^





1baa04db ^
3cc643be ^
61c021fd ^
3cc643be ^





61c021fd ^
3cc643be ^
61c021fd ^
3cc643be ^





61c021fd ^
3cc643be ^
61c021fd ^
3cc643be ^



445bc53e ^

61c021fd ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88