Thread
:
1'sComplement binary addition
View Single Post
#
3
(
permalink
)
March 15th, 2004, 02:09 AM
davekw7x
Authorized User
Join Date: Feb 2004
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Oops, when I said that your arithmetic routine is OK except for the end-around carry, I forgot to note that the loop in oneComplement() should go from SIZE-1 all the way to 0:
Code:
for (count = SIZE - 1; count >= 0; count--)
davekw7x
View Public Profile
Find all posts by davekw7x