Wurster Hall, and multiplying 2's complement numbers
Nick gave me a short tour of Wurster Hall. What a cool place! Must explore further...
Brandon sent me the following algorithm to multiply two's complement numbers. I needed to invoke Kenny to help decipher it!
- Use regular unsigned multiplication to compute
A*B → H:L
. - If A<0, set
H ← (H - B)
. - If B<0, set
H ← (H - A)
.
no subject
(no subject)