Results 1 to 2 of 2

Thread: BitWise AND

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Location
    Arkansas
    Posts
    4

    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
    Wesley

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    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.
    Attached Files Attached Files
    This world is not my home. I'm just passing through.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width