Kasperkpedersen wrote
Thank you for the response. I see that the pseudo code in the book has a if statement within a loop. I don't know how to create this while loop that i suppose is needed. The pseudo in the book has some value n that is the number of bits in x and y. I can see how if you could compare i against n, where it is the number of bits in y it could work. But how do one find the number of bits in y, that seems like another challenge that is not spoken about in the course.
You know what the number of bits in both numbers are. All of the numbers are sixteen-bit two's complement integers. You don't need to worry about the minimum number of bits needed to represent the particular number you are working with at the moment, just treat all numbers as having sixteen bits. If some of the numbers have some leading zeros (if positive) or ones (if negative), so what?