Re: how to decide the value of SF
- From: Sebastian Biallas <spamtrap@xxxxxxxxxx>
- Date: Tue, 24 Oct 2006 23:48:22 +0200
Phil Carmody wrote:
Sebastian Biallas <spamtrap@xxxxxxxxxx> writes:
Tim Roberts wrote:
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?
By the usual x86 definition, 0 is positive.
The SF is set iff the result is negative (i.e. the MSB is set). So if it
isn't set, all you know is that the number is non-negative. Non-negative
is not the same as positive.
--
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
- how to decide the value of SF
- Prev by Date: Re: how to decide the value of SF
- Next by Date: Re: Do "nops" add to the latency of a program?
- 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
|