diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-03-20 17:08:43 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-03-20 17:33:42 -0700 |
commit | 4068f0ca5b3a380790794a986897815d8b6a45a8 (patch) | |
tree | 3549ac214d5f2dfe6321ec4bc81f45b8d79b925d /subx/052kernel-string-equal.subx | |
parent | 5c21976b5837484264b26557013e3b9264b4ee89 (diff) | |
download | mu-4068f0ca5b3a380790794a986897815d8b6a45a8.tar.gz |
5011
New convention: compare 'with' for asymmetric comparisons (greater or lesser than), and compare 'and' for symmetric comparisons. Worth making this distinction even though the opcodes are identical; when we compare 'with', the order of operands is significant.
Diffstat (limited to 'subx/052kernel-string-equal.subx')
-rw-r--r-- | subx/052kernel-string-equal.subx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/052kernel-string-equal.subx b/subx/052kernel-string-equal.subx index 55d6c50a..dd2a406a 100644 --- a/subx/052kernel-string-equal.subx +++ b/subx/052kernel-string-equal.subx @@ -83,7 +83,7 @@ $kernel-string-equal?:loop: 3d/compare-EAX 0/imm32 74/jump-if-equal $kernel-string-equal?:false/disp8 # if (c1 != c2) return false - 39/compare 3/mod/direct 0/rm32/EAX . . . 3/r32/EBX . . # compare EAX with EBX + 39/compare 3/mod/direct 0/rm32/EAX . . . 3/r32/EBX . . # compare EAX and EBX 75/jump-if-not-equal $kernel-string-equal?:false/disp8 # ++i 41/inc-ECX |