about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-12-30 01:03:31 -0800
committerKartik Agaram <vc@akkartik.com>2019-12-30 01:21:00 -0800
commit46c947224f1a33e941b0bd1e65730c9abef0a161 (patch)
tree336f28e0bdd9016cbeafbaa844b37be431a7d81f /apps
parentd6f886a51fdd248bac6616b4647a9ed1e5c145a6 (diff)
downloadmu-46c947224f1a33e941b0bd1e65730c9abef0a161.tar.gz
5844
Let's start putting r32 first in compare instructions that need it. Ordering
there is quite subtle and of great import.
Diffstat (limited to 'apps')
-rw-r--r--apps/calls.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/calls.subx b/apps/calls.subx
index 030509ed..0e4d113e 100644
--- a/apps/calls.subx
+++ b/apps/calls.subx
@@ -823,7 +823,7 @@ $next-word-string-or-expression-without-metadata:check0:
     # . ecx = line->read
     8b/-> *(esi+4) 1/r32/ecx
     # . if (ecx >= line->write) return out = {0, 0}
-    3b/compare *esi 1/r32/ecx
+    3b/compare 1/r32/ecx *esi
     0f 8d/jump-if-greater-or-equal $next-word-string-or-expression-without-metadata:return-eol/disp32
 $next-word-string-or-expression-without-metadata:check-for-comment:
     # out->start = &line->data[line->read]
@@ -909,7 +909,7 @@ $next-word-string-or-expression-without-metadata:check-for-end-of-call:
     # . ecx = line->read
     8b/-> *(esi+4) 1/r32/ecx
     # . if (ecx >= line->write) return {0, 0}
-    3b/compare *esi 1/r32/ecx
+    3b/compare 1/r32/ecx *esi
     0f 8d/jump-if-greater-or-equal $next-word-string-or-expression-without-metadata:return-eol/disp32
     # if (line->data[line->read] == '/') goto error3
     # . eax = line->data[line->read]
@@ -928,7 +928,7 @@ $next-word-string-or-expression-without-metadata:check-for-end-of-call:
     # . ecx = line->read
     8b/-> *(esi+4) 1/r32/ecx
     # . if (ecx >= line->write) return {0, 0}
-    3b/compare *esi 1/r32/ecx
+    3b/compare 1/r32/ecx *esi
     0f 8d/jump-if-greater-or-equal $next-word-string-or-expression-without-metadata:return-eol/disp32
     # if (line->data[line->read] == '#') return out = {0, 0}
     # . eax = line->data[line->read]
'#n179'>179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320