opensubscriber
   Find in this group all groups
 
Unknown more information…

l : linux-assembly@vger.kernel.org 20 April 2007 • 11:58PM -0400

why overflow flag being set?
by A D

REPLY TO AUTHOR
 
REPLY TO GROUP




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 majordomo@vger...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.