write the following: movb $128, %bl addb $10, %blbl 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, %bloverflow 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
- Follow-Ups:
- Re: why overflow flag being set?
- From: Robert Plantz
- Re: why overflow flag being set?
- Prev by Date: Re: inline asm mmx: how to movq from memory to %mmX
- Next by Date: Re: why overflow flag being set?
- Previous by thread: inline asm mmx: how to movq from memory to %mmX
- Next by thread: Re: why overflow flag being set?
- Index(es):
![]() |