about summary refs log tree commit diff stats
path: root/apps/calls.subx
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/calls.subx
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/calls.subx')
-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]