I am just wondering if C or C++ has a way to view the carry bit(assembly).
Thank You,
Wildman6801
Printable View
I am just wondering if C or C++ has a way to view the carry bit(assembly).
Thank You,
Wildman6801
You can determine the carry-bit of addition as follows (works for any C compiler):
hope this helps... /* why is this in boldface? */Code:unsigned int a, b, aplusb, carrybit;
...
aplusb=a+b;
carrybit=a>~b;
alex