flat assembler
Message board for the users of flat assembler.
Index
> Main > Check if number fits 16 bits (signed or unsigned) |
Author |
|
Tomasz Grysztar 19 Dec 2017, 21:16
These are two overlapping intervals. The "or" condition is like an union of these intervals, so this is equivalent to:
Code: if num < 65536 & num >= -32768 |
|||
19 Dec 2017, 21:16 |
|
zhak 19 Dec 2017, 21:37
Indeed, it's so obvious. I just overthought it too much. Thanks
|
|||
19 Dec 2017, 21:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.