about summary refs log tree commit diff stats
path: root/subx/065hex.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-06-30 22:28:19 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-01 23:09:58 -0700
commit51c311d5f9bf028c7a3967525062a96bd4b13b40 (patch)
tree6be0d67968844070b868241912d03375f28a2f6e /subx/065hex.subx
parent954133e200df32415bbfd435ebe6d01a0c3c0c03 (diff)
downloadmu-51c311d5f9bf028c7a3967525062a96bd4b13b40.tar.gz
unsigned comparison for addresses in more places
Diffstat (limited to 'subx/065hex.subx')
-rw-r--r--subx/065hex.subx10
1 files changed, 5 insertions, 5 deletions
diff --git a/subx/065hex.subx b/subx/065hex.subx
index c888b520..374168db 100644
--- a/subx/065hex.subx
+++ b/subx/065hex.subx
@@ -23,7 +23,7 @@ is-hex-int?:  # in : (address slice) -> EAX : boolean
     # if s is empty return false
     b8/copy-to-EAX  0/imm32/false
     39/compare                      3/mod/direct    1/rm32/ECX    .           .             .           2/r32/EDX   .               .                 # compare ECX with EDX
-    7d/jump-if-greater-or-equal  $is-hex-int?:end/disp8
+    73/jump-if-greater-or-equal-unsigned  $is-hex-int?:end/disp8
     # skip past leading '-'
     # . if (*curr == '-') ++curr
     31/xor                          3/mod/direct    3/rm32/EBX    .           .             .           3/r32/EBX   .               .                 # clear EBX
@@ -44,7 +44,7 @@ $is-hex-int?:initial-0:
 $is-hex-int?:initial-0x:
     # . if (curr >= in->end) return true
     39/compare                      3/mod/direct    1/rm32/ECX    .           .             .           2/r32/EDX   .               .                 # compare ECX with EDX
-    7d/jump-if-greater-or-equal  $is-hex-int?:true/disp8
+    73/jump-if-greater-or-equal-unsigned  $is-hex-int?:true/disp8
     # . 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    3/rm32/EBX    .           .             .           3/r32/EBX   .               .                 # clear EBX
     8a/copy-byte                    0/mod/indirect  1/rm32/ECX    .           .             .           3/r32/BL    .               .                 # copy byte at *ECX to BL
@@ -55,7 +55,7 @@ $is-hex-int?:initial-0x:
 $is-hex-int?:loop:
     # if (curr >= in->end) return true
     39/compare                      3/mod/direct    1/rm32/ECX    .           .             .           2/r32/EDX   .               .                 # compare ECX with EDX
-    7d/jump-if-greater-or-equal  $is-hex-int?:true/disp8
+    73/jump-if-greater-or-equal-unsigned  $is-hex-int?:true/disp8
     # EAX = is-hex-digit?(*curr)
     # . . push args
     8a/copy-byte                    0/mod/indirect  1/rm32/ECX    .           .             .           0/r32/AL    .               .                 # copy byte at *ECX to AL
@@ -356,7 +356,7 @@ $parse-hex-int:initial-0:
 $parse-hex-int:initial-0x:
     # . if (curr >= in->end) return result
     39/compare                      3/mod/direct    1/rm32/ECX    .           .             .           2/r32/EDX   .               .                 # compare ECX with EDX
-    7d/jump-if-greater-or-equal  $parse-hex-int:end/disp8
+    73/jump-if-greater-or-equal-unsigned  $parse-hex-int:end/disp8
     # . 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
@@ -367,7 +367,7 @@ $parse-hex-int:initial-0x:
 $parse-hex-int:loop:
     # if (curr >= in->end) break
     39/compare                      3/mod/direct    1/rm32/ECX    .           .             .           2/r32/EDX   .               .                 # compare ECX with EDX
-    7d/jump-if-greater-or-equal  $parse-hex-int:negate/disp8
+    73/jump-if-greater-or-equal-unsigned  $parse-hex-int:negate/disp8
     # EAX = from-hex-char(*curr)
     # . . copy arg to EAX
     8a/copy-byte                    0/mod/indirect  1/rm32/ECX    .           .             .           0/r32/AL    .               .                 # copy byte at *ECX to AL