diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-06-30 22:28:19 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-01 23:09:58 -0700 |
commit | 51c311d5f9bf028c7a3967525062a96bd4b13b40 (patch) | |
tree | 6be0d67968844070b868241912d03375f28a2f6e /subx/apps | |
parent | 954133e200df32415bbfd435ebe6d01a0c3c0c03 (diff) | |
download | mu-51c311d5f9bf028c7a3967525062a96bd4b13b40.tar.gz |
unsigned comparison for addresses in more places
Diffstat (limited to 'subx/apps')
-rwxr-xr-x | subx/apps/assort | bin | 28146 -> 28140 bytes | |||
-rwxr-xr-x | subx/apps/crenshaw2-1 | bin | 22990 -> 22984 bytes | |||
-rwxr-xr-x | subx/apps/crenshaw2-1b | bin | 23549 -> 23543 bytes | |||
-rwxr-xr-x | subx/apps/factorial | bin | 21906 -> 21900 bytes | |||
-rwxr-xr-x | subx/apps/handle | bin | 22712 -> 22706 bytes | |||
-rwxr-xr-x | subx/apps/hex | bin | 25999 -> 25993 bytes | |||
-rwxr-xr-x | subx/apps/pack | bin | 43060 -> 43054 bytes | |||
-rw-r--r-- | subx/apps/subx-common.subx | 4 | ||||
-rwxr-xr-x | subx/apps/survey | bin | 28481 -> 28475 bytes |
9 files changed, 2 insertions, 2 deletions
diff --git a/subx/apps/assort b/subx/apps/assort index f35c0d85..22c3e183 100755 --- a/subx/apps/assort +++ b/subx/apps/assort Binary files differdiff --git a/subx/apps/crenshaw2-1 b/subx/apps/crenshaw2-1 index 997d2bb0..cbb8aa36 100755 --- a/subx/apps/crenshaw2-1 +++ b/subx/apps/crenshaw2-1 Binary files differdiff --git a/subx/apps/crenshaw2-1b b/subx/apps/crenshaw2-1b index e59a4320..acb9285a 100755 --- a/subx/apps/crenshaw2-1b +++ b/subx/apps/crenshaw2-1b Binary files differdiff --git a/subx/apps/factorial b/subx/apps/factorial index 1140b31e..d5953751 100755 --- a/subx/apps/factorial +++ b/subx/apps/factorial Binary files differdiff --git a/subx/apps/handle b/subx/apps/handle index 5e1f2dca..dbc511df 100755 --- a/subx/apps/handle +++ b/subx/apps/handle Binary files differdiff --git a/subx/apps/hex b/subx/apps/hex index dbaf0af4..78e7b899 100755 --- a/subx/apps/hex +++ b/subx/apps/hex Binary files differdiff --git a/subx/apps/pack b/subx/apps/pack index e50a6843..936b691b 100755 --- a/subx/apps/pack +++ b/subx/apps/pack Binary files differdiff --git a/subx/apps/subx-common.subx b/subx/apps/subx-common.subx index e37319dc..f4034e84 100644 --- a/subx/apps/subx-common.subx +++ b/subx/apps/subx-common.subx @@ -71,7 +71,7 @@ $get-or-insert:not-found: # if (table->write >= table->length) abort 8b/copy 0/mod/indirect 6/rm32/ESI . . . 1/r32/ECX . . # copy *ESI to ECX 3b/compare 1/mod/*+disp8 6/rm32/ESI . . . 1/r32/ECX 8/disp8 . # compare ECX with *(ESI+8) - 7d/jump-if-greater-or-equal $get-or-insert:abort/disp8 + 73/jump-if-greater-or-equal-unsigned $get-or-insert:abort/disp8 # *max = key # . EAX = key 8b/copy 1/mod/*+disp8 5/rm32/EBP . . . 0/r32/EAX 0xc/disp8 . # copy *(EBP+12) to EAX @@ -290,7 +290,7 @@ get-or-insert-slice: # table : (address stream {string, _}), key : (address sli $get-or-insert-slice:search-loop: # if (curr >= max) break 39/compare 3/mod/direct 1/rm32/ECX . . . 2/r32/EDX . . # compare ECX with EDX - 7d/jump-if-greater-or-equal $get-or-insert-slice:not-found/disp8 + 73/jump-if-greater-or-equal-unsigned $get-or-insert-slice:not-found/disp8 # if (slice-equal?(key, *curr)) return curr+4 # . EAX = slice-equal?(key, *curr) # . . push args diff --git a/subx/apps/survey b/subx/apps/survey index e1d3185d..1d4c0914 100755 --- a/subx/apps/survey +++ b/subx/apps/survey Binary files differ |