Jump to content


Photo

Challenge: LOGIC001


  • Please log in to reply
1 reply to this topic

#1 modusTollens

modusTollens

    I broke 10 posts and all I got was this lousy title!

  • Members
  • 13 posts
  • Gender:Male

Posted 03 October 2009 - 06:54 AM

It seems to me that at least a few of you would have the background to complete this task:

Using only bitwise and logical operators, construct a full-adder that will compute the sum of two integers. For simplicity's sake, we can limit the size of the integers to 8 bits, and not worry about sign, or overflow. The result can just be truncated.

Use any language you like, if you choose a non-assembly language, you may use comparators to help with a loop structure.

eg:
10010010
+10101011
00111101

#2 heisenbug

heisenbug

    Gibson Hacker

  • Members
  • 79 posts
  • Country:
  • Gender:Male

Posted 06 February 2011 - 03:49 PM

8 bit adder -- In Perl...
Spoiler





BinRev is hosted by the great people at Lunarpages!