why overflow flag being set?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux