about summary refs log tree commit diff stats
path: root/apps/mu.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-02-16 20:14:32 -0800
committerKartik Agaram <vc@akkartik.com>2020-02-16 20:14:32 -0800
commitdf781efa7db58e5cc7f81d7261929a4fbd956d94 (patch)
treefeea0b3ba5fe9c8d7df21ec04d518689a1a6b838 /apps/mu.subx
parentd2316e415bafef334cf1e6cca32955d10f07ce3a (diff)
downloadmu-df781efa7db58e5cc7f81d7261929a4fbd956d94.tar.gz
6011
Diffstat (limited to 'apps/mu.subx')
-rw-r--r--apps/mu.subx8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index 8765e5f9..c87fd16d 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -2090,11 +2090,9 @@ $parse-var-with-type:save-register:
     # if (!slice-empty?(s)) v->register = slice-to-string(s)
     {
 $parse-var-with-type:write-register:
-      # HACK: s->end can be less than s->start with all the decrements above
-      # That's probably a sign we have the wrong algorithm for this function.
-      8b/-> *ecx 0/r32/eax
-      39/compare *(ecx+4) 0/r32/eax  # Slice-end
-      76/jump-if-<= break/disp8
+      (slice-empty? %ecx)  # => eax
+      3d/compare-eax-and 0/imm32/false
+      75/jump-if-!= break/disp8
       (slice-to-string Heap %ecx)
       89/<- *(edi+0x10) 0/r32/eax  # Var-register
     }
a0caddafb7a7afdec'>^
b8c94376 ^
7f98e013 ^
f17afcf5 ^

a522d022 ^
f17afcf5 ^


b8c94376 ^
7f98e013 ^
f17afcf5 ^

a522d022 ^
f17afcf5 ^


f189dbc6 ^
6511d61b ^



970ab94e ^
6511d61b ^










f189dbc6 ^
f17afcf5 ^
a48b9fce ^
f17afcf5 ^

7f98e013 ^

f17afcf5 ^



7f98e013 ^
f17afcf5 ^

f189dbc6 ^




a28f0d9e ^
f189dbc6 ^
















a28f0d9e ^
f189dbc6 ^







a28f0d9e ^
f189dbc6 ^




















a28f0d9e ^
f189dbc6 ^















a28f0d9e ^
f189dbc6 ^







a28f0d9e ^
f189dbc6 ^





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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170