about summary refs log tree commit diff stats
path: root/subx/065hex.subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx/065hex.subx')
-rw-r--r--subx/065hex.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/065hex.subx b/subx/065hex.subx
index eb1e88d4..8ea76ba5 100644
--- a/subx/065hex.subx
+++ b/subx/065hex.subx
@@ -339,7 +339,7 @@ $parse-hex-int:negative:
     # . if (*curr == '-') negate = true
     31/xor                          3/mod/direct    0/rm32/EAX    .           .             .           0/r32/EAX   .               .                 # clear EAX
     8a/copy-byte                    0/mod/indirect  1/rm32/ECX    .           .             .           0/r32/AL    .               .                 # copy byte at *ECX to AL
-    81          7/subop/compare     3/mod/direct    0/rm32/EAX    .           .             .           .           .               0x2d/imm32/-      # compare EAX
+    3d/compare-EAX-and  0x2d/imm32/-
     75/jump-if-not-equal  $parse-hex-int:initial-0/disp8
     # . ++curr
     41/increment-ECX
@@ -349,7 +349,7 @@ $parse-hex-int:initial-0:
     # skip past leading '0x'
     # . if (*curr != '0') jump to loop
     8a/copy-byte                    0/mod/indirect  1/rm32/ECX    .           .             .           0/r32/AL    .               .                 # copy byte at *ECX to AL
-    81          7/subop/compare     3/mod/direct    0/rm32/EAX    .           .             .           .           .               0x30/imm32/0      # compare EAX
+    3d/compare-EAX-and  0x30/imm32/0
     75/jump-if-not-equal  $parse-hex-int:loop/disp8
     # . ++curr
     41/increment-ECX
@@ -360,7 +360,7 @@ $parse-hex-int:initial-0x:
     # . if (*curr != 'x') jump to loop  # the previous '0' is still valid so doesn't need to be checked again
     31/xor                          3/mod/direct    0/rm32/EAX    .           .             .           0/r32/EAX   .               .                 # clear EAX
     8a/copy-byte                    0/mod/indirect  1/rm32/ECX    .           .             .           0/r32/AL    .               .                 # copy byte at *ECX to AL
-    81          7/subop/compare     3/mod/direct    0/rm32/EAX    .           .             .           .           .               0x78/imm32/x      # compare EAX
+    3d/compare-EAX-and  0x78/imm32/x
     75/jump-if-not-equal  $parse-hex-int:loop/disp8
     # . ++curr
     41/increment-ECX