Page 1 of 1
Above & Below
Posted: Mon Jan 19, 2009 4:59 pm
by sweetgum
Are these synonyms for greater then or less then? If not what do they mean?
Re: Above & Below
Posted: Mon Jan 19, 2009 5:23 pm
by bewing
Not precisely. The difference involves signed vs. unsigned values.
If you put the value 0xdfa87590 into a 32bit register, and CMP it with 0:
"above" will be true (because we are looking at an unsigned value)
but "greater" will be false, because 0xdfa87590 is a negative (signed) number.
The synonym for greater is "not less or equal".
The synonyms for "above" are much more complicated, since they involve both "below" and "carry" (carry is a synonym for below).
Re: Above & Below
Posted: Mon Jan 19, 2009 7:41 pm
by CodeCat
To say it more compactly: above/below is for unsigned values, greater/less is for signed values.