Re: how to decide the value of SF
- From: Sebastian Biallas <spamtrap@xxxxxxxxxx>
- Date: Wed, 25 Oct 2006 11:27:21 +0200
Phil Carmody wrote:
Sebastian Biallas <spamtrap@xxxxxxxxxx> writes:
Phil Carmody wrote:
Sebastian Biallas <spamtrap@xxxxxxxxxx> writes:The SF is set iff the result is negative (i.e. the MSB is set). So if it
Tim Roberts wrote:By the usual x86 definition, 0 is positive.
spamtrap@xxxxxxxxxx wrote:No. By the usual mathematical definition, 0 is neither positiv nor negative.
if sub ax,ax(two numbers compared,the resulst is neither a plus nor0 is a positive number.
a negative )
how to determine the value of SF?
isn't set, all you know is that the number is non-negative. Non-negative
is not the same as positive.
I know this isn't the definition for positive, but it's relevant -
do you agree with this definition:
natural number
n. One of the set of positive whole numbers; a positive integer.
Even in mathematics there is no unique definition of natural numbers.
Some define 0 to be a natural number, for some 0 isn't one. There are
arguments for both definitions.
But the definition for positive number is pretty clear: A number > zero.
And the definition makes sense: If you negate a positiv number, you get
a negative one (and vice versa). (This has a caveat on x86 since the
positive and negative numbers are not symmetric with twos complement).
Between you and me, I'm also interested to know how many integer values
you think there are between 0 and 127? Again, it is relevant.
This pretty much depends on what "between" means (including or
excluding). But I'm not a native english speaker, maybe "between" has
clear semantics in english.
You seem to fail to realise how much convention plays a part in communication,
and that there may be different conventions in different contexts. Even 1
was prime for some great mathematicians last century.
That is correct. But I don't remeber that Intel used a different
convention in the x86 specification.
--
Gruß,
Sebastian
.
- Follow-Ups:
- Re: how to decide the value of SF
- From: Phil Carmody
- Re: how to decide the value of SF
- References:
- how to decide the value of SF
- From: spamtrap
- Re: how to decide the value of SF
- From: Tim Roberts
- Re: how to decide the value of SF
- From: Sebastian Biallas
- Re: how to decide the value of SF
- From: Phil Carmody
- Re: how to decide the value of SF
- From: Sebastian Biallas
- Re: how to decide the value of SF
- From: Phil Carmody
- how to decide the value of SF
- Prev by Date: Re: Boot sector problems...
- Next by Date: Re: How interrupts work (x86 vs. C64)
- Previous by thread: Re: how to decide the value of SF
- Next by thread: Re: how to decide the value of SF
- Index(es):
Relevant Pages
|