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/060read.subx | |
parent | 954133e200df32415bbfd435ebe6d01a0c3c0c03 (diff) | |
download | mu-51c311d5f9bf028c7a3967525062a96bd4b13b40.tar.gz |
unsigned comparison for addresses in more places
Diffstat (limited to 'subx/060read.subx')
-rw-r--r-- | subx/060read.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/060read.subx b/subx/060read.subx index d377a1ad..61ee75b0 100644 --- a/subx/060read.subx +++ b/subx/060read.subx @@ -165,10 +165,10 @@ _buffer-4: # out : address, outend : address, in : address, inend : address -> $_buffer-4:loop: # if (in >= inend) break 39/compare 3/mod/direct 6/rm32/ESI . . . 1/r32/ECX . . # compare ESI with ECX - 7d/jump-if-greater-or-equal $_buffer-4:end/disp8 + 73/jump-if-greater-or-equal-unsigned $_buffer-4:end/disp8 # if (out >= outend) break # for now silently ignore filled up buffer 39/compare 3/mod/direct 7/rm32/EDI . . . 2/r32/EDX . . # compare EDI with EDX - 7d/jump-if-greater-or-equal $_buffer-4:end/disp8 + 73/jump-if-greater-or-equal-unsigned $_buffer-4:end/disp8 # *out = *in 8a/copy-byte 0/mod/indirect 6/rm32/ESI . . . 3/r32/BL . . # copy byte at *ESI to BL 88/copy-byte 0/mod/indirect 7/rm32/EDI . . . 3/r32/BL . . # copy byte at BL to *EDI |