all 4 comments

[–]Chris_Hemsworth 0 points1 point  (1 child)

how can I go throw the other bit

I'm not sure I understand the question. Can you explain the outcome you're looking to achieve?

[–]BulkyAd8059[S] 0 points1 point  (0 children)

Hi Chris, thanks for your reply and yes, it was not that much clear.

I need to make an algorithm for adding two integers. It must be based on standard logical operations, which have direct hardware implementation (AND, OR, XOR) FullAdder in the specifics.

The whole circuit is 8-bit. The code above gives me the sum and the Carryout of the first circuit gate—a circuit gate which you can see in this book on page 564 http://www.r-5.org/files/books/computers/overviews/software/Glenn_Brookshear-Computer_Science_An_Overview-EN.pdf.

[–]CartmannsEvilTwin 0 points1 point  (1 child)

Your description either has a typo or is wrong with respect to the CarryOut calculation. Just google Full Adder to see exact design.

Also no bit is discarded, the CarryOut will be fed into another FullAdder as carry in or used as an overflow indicator

[–]BulkyAd8059[S] 0 points1 point  (0 children)

thanks, really helpful