-
BitWise AND
Hi,
I need help in creating a short bit of code. I'm trying to create a Binary ADD calculator with a carry bits and overflow bits displayed.
I want to enter two integers, have these integers displayed in binary and a object to display the carry and results of the AND operation, and the overflow bit set if the results is grater than 255.
Any Help is Appreciated
Wesley
-
1 Attachment(s)
OK,
Here is some code that does some of what you want.
You can do a lot better than this with very little extra effort - try using some classes and rewriting the binary conversion using recursion (much more fun)
Tris.