why overflow flag being set?

"A D" <[email protected]>
Newsgroups gmane.linux.assembly
Message-ID <[email protected]>
I've a question about the handling of signed and unsigned numbers by GAS. 
When I
write the following:


    movb $128, %bl
    addb $10, %bl

bl register doesn't overflow and overflow flag is not set. But as soon as I 
use
127 instead of 128 like this:

    movb $127, %bl
    addb $10, %bl

overflow flag is set. Does this mean when i move  a value to a register 
smaller
or equal to the maximum signed value that register can contain, gas treats 
it as
signed number? Thanks.

_________________________________________________________________
Check Out Our List Of Trendy Restaurants. You'll Eat It Up! 
http://local.live.com/?mkt=en-ca/?v=2&cid=A6D6BDB4586E357F!378

-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.