Question: Computer multiplication. One way to multiply two integers A times B is to add A to itself B times. But this is rather inefficient for
Computer multiplication. One way to multiply two integers A times B is to add A to itself
B times. But this is rather inefficient for a large number, since, for example, to multiply
by could require separate additions. However, when expressed in binary, takes
only bits By using bit shifting RLF or RRF operations along with addition,
the number of iterations can be reduced, depending on the maximum sizes of the numbers
allowed in a memory unit.
The largest number one can store on our PICF is all bits set to With this
in mind, consider multiplying two bit numbers together and putting the result into an
bit register by using shifting and adding. The table below shows a multiplication of times
following such an algorithm where the shifts rotate through carry car below Each row
shows the contents of C B and A at the end of each iteration, along with the operations
performed:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
