carry flag and subtraction issue!
Posted
by Zia ur Rahman
on Stack Overflow
See other posts from Stack Overflow
or by Zia ur Rahman
Published on 2010-05-17T17:50:48Z
Indexed on
2010/05/17
18:00 UTC
Read the original article
Hit count: 193
assembly
If a large number is subtracted from a smaller number then borrow is needed. The carry flag plays the role of borrow during the subtraction operation. Now suppose we want to subtract 56 from 66, obviously the borrow is needed and carry flag will be set. Now how this subtraction is performed to get the result -10, how computer will distinguish that the result is going to be a negative number. Please explain the process.
© Stack Overflow or respective owner