Take
a Swing!
Problem 4An
application needs to implement a signed 16 ý 16 bit integral multiplication.
If the processor can implement only one 8 ý 8 bit multiplication instruction,
is a signed multiply instruction more convenient?
Answer: A signed 8 ý 8 multiplication
can only be applied to the product of the most significant bytes of
the two 16-bit operands. All other cross products cannot directly
use the signed multiplication.
It is more convenient to convert both
16-bit operands to unsigned, remember the sign of the product, then
use unsigned 8 ý 8 multiplication for all four cross products.
1-00
|