about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xsubx/apps/dquotesbin27061 -> 27059 bytes
-rw-r--r--subx/apps/dquotes.subx12
2 files changed, 6 insertions, 6 deletions
diff --git a/subx/apps/dquotes b/subx/apps/dquotes
index 57364e25..67b2b8e9 100755
--- a/subx/apps/dquotes
+++ b/subx/apps/dquotes
Binary files differdiff --git a/subx/apps/dquotes.subx b/subx/apps/dquotes.subx
index dd4b355c..58306eef 100644
--- a/subx/apps/dquotes.subx
+++ b/subx/apps/dquotes.subx
@@ -877,10 +877,12 @@ emit-string-literal-data:  # out : (address stream), word : (address slice)
     8b/copy                         1/mod/*+disp8   5/rm32/EBP    .           .             .           6/r32/ESI   0xc/disp8       .                 # copy *(EBP+12) to ESI
     # curr/EDX = word->start
     8b/copy                         0/mod/indirect  6/rm32/ESI    .           .             .           2/r32/EDX   .               .                 # copy *ESI to EDX
+    # max/ESI = word->end
+    8b/copy                         1/mod/*+disp8   6/rm32/ESI    .           .             .           6/r32/ESI   4/disp8         .                 # copy *(ESI+4) to ESI
 $emit-string-literal-data:emit-length:
     # len/EAX = string-length-at-start-of-slice(word->start, word->end)
     # . . push args
-    ff          6/subop/push        1/mod/*+disp8   6/rm32/ESI    .           .             .           .           4/disp8         .                 # push *(ESI+4)
+    56/push-ESI
     52/push-EDX
     # . . call
     e8/call  string-length-at-start-of-slice/disp32
@@ -906,9 +908,7 @@ $emit-string-literal-data:emit-length:
 $emit-string-literal-data:loop-init:
     # ++curr  # skip initial '"'
     42/increment-EDX
-    # max/ESI = word->end
-    8b/copy                         1/mod/*+disp8   6/rm32/ESI    .           .             .           6/r32/ESI   4/disp8         .                 # copy *(ESI+4) to ESI
-    # ECX = 0
+    # c/ECX = 0
     31/xor                          3/mod/direct    1/rm32/ECX    .           .             .           1/r32/ECX   .               .                 # clear ECX
 $emit-string-literal-data:loop:
     # if (curr >= max) break
@@ -1320,7 +1320,7 @@ emit-metadata:  # out : (address buffered-file), word : (address slice)
     # EAX = 0
     b8/copy-to-EAX  0/imm32
 $emit-metadata:check-for-string-literal:
-    # if (*curr == '"') curr = skip-string-in-slice(curr, end)
+    # -  if (*curr == '"') curr = skip-string-in-slice(curr, end)
     8a/copy-byte                    0/mod/indirect  1/rm32/ECX    .           .             .           0/r32/AL    .               .                 # copy byte at *ECX to AL
     3d/compare-EAX-and  0x22/imm32/dquote
     75/jump-if-not-equal  $emit-metadata:skip-datum-loop/disp8
@@ -1335,9 +1335,9 @@ $emit-metadata:skip-string-literal:
     81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
     # . curr = EAX
     89/copy                         3/mod/direct    1/rm32/ECX    .           .             .           0/r32/EAX   .               .                 # copy EAX to ECX
-    # skip loop
     eb/jump  $emit-metadata:emit/disp8
 $emit-metadata:skip-datum-loop:
+    # - otherwise scan for '/'
     # if (curr == end) return
     39/compare                      3/mod/direct    1/rm32/ECX    .           .             .           2/r32/EDX   .               .                 # compare ECX and EDX
     74/jump-if-equal  $emit-metadata:end/disp8
a title='author Kartik K. Agaram <vc@akkartik.com> 2016-03-26 23:59:59 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2016-03-27 17:43:41 -0700 2812' href='/akkartik/mu/commit/html/084console.mu.html?h=hlt&id=a654e4ecace2d506d1b10f1dde2c287ebe84ef37'>a654e4ec ^
0e4a335e ^
4a39d12d ^
a654e4ec ^
e5c11a51 ^
9e751bb8 ^

672e3e50 ^

a654e4ec ^



e5c11a51 ^






















a654e4ec ^

672e3e50 ^
e5c11a51 ^
a654e4ec ^
204dae92 ^


201458e3 ^
204dae92 ^

201458e3 ^

204dae92 ^


201458e3 ^
204dae92 ^




201458e3 ^
204dae92 ^



201458e3 ^
204dae92 ^
201458e3 ^
204dae92 ^

201458e3 ^
204dae92 ^

201458e3 ^
204dae92 ^


201458e3 ^
204dae92 ^


9e751bb8 ^













204dae92 ^

201458e3 ^
204dae92 ^





201458e3 ^
204dae92 ^

201458e3 ^
204dae92 ^






aac2775a ^
204dae92 ^


9e751bb8 ^



aac2775a ^
124c6764 ^
9e751bb8 ^
204dae92 ^



201458e3 ^
204dae92 ^


9e751bb8 ^



204dae92 ^


996ce5f1 ^





672e3e50 ^


a654e4ec ^
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