All of lore.kernel.org
 help / color / mirror / Atom feed
* why overflow flag being set?
@ 2007-04-20 15:58 A D
  2007-04-20 16:52 ` Robert Plantz
  0 siblings, 1 reply; 3+ messages in thread
From: A D @ 2007-04-20 15:58 UTC (permalink / raw)
  To: linux-assembly

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-20 17:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-20 15:58 why overflow flag being set? A D
2007-04-20 16:52 ` Robert Plantz
2007-04-20 17:04   ` A D

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.