@@ -226,13 +226,12 @@ Number: 9 = (10 - 1) = 0b01001
226226
227227> See [ isPowerOfTwo.js] ( isPowerOfTwo.js ) for further details.
228228
229- 230229#### Full Adder
231230
232231This method adds up two integer numbers using bitwise operators.
233232
234233It implements [ full adder] ( https://en.wikipedia.org/wiki/Adder_(electronics) )
235- electronics circut logic to sum two 32-bit integers in two's complement format.
234+ electronics circuit logic to sum two 32-bit integers in two's complement format.
236235It's using the boolean logic to cover all possible cases of adding two input bits:
237236with and without a "carry bit" from adding the previous less-significant stage.
238237
@@ -245,7 +244,8 @@ Legend:
245244- ` carryOut ` : a bit to carry to the next most-significant stage
246245- ` bitSum ` : The sum of ` ai ` , ` bi ` , and ` carryIn `
247246- ` resultBin ` : The full result of adding current stage with all less-significant stages (in binary)
248- - ` resultBin ` : The full result of adding current stage with all less-significant stages (in decimal)
247+ - ` resultDec ` : The full result of adding current stage with all less-significant stages (in decimal)
248+ 249249```
250250A = 3: 011
251251B = 6: 110
@@ -260,7 +260,7 @@ B = 6: 110
260260```
261261
262262> See [ fullAdder.js] ( fullAdder.js ) for further details.
263- > See [ Full Adder on YouTube] ( https://www.youtube.com/watch?v=wvJc9CZcvBc ) .
263+ > See [ Full Adder on YouTube] ( https://www.youtube.com/watch?v=wvJc9CZcvBc&list=PLLXdhg_r2hKA7DPDsunoDZ-Z769jWn4R8 ) .
264264
265265## References
266266
0 commit comments