Cosc 2150: Computer Organization . Chapter 9, Part 2 Integer multiplication and division. Multiplication. Complex Work out partial product for each digit Take care with place value (column) Add partial products. Multiplication Example (unsigned) (long hand).
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Chapter 9, Part 2
Integer multiplication and division
5th cycle Result
Since we are working in 5 bits, we only repeat 5 times
Result is A and Q so 0000010101 which is 21.
Note: The sign bit is the last bit in A.
1. Load divisor into M and the dividend into A, Q registers. Dividend must be 2n-bit twos complement number
2. Shift A, Q left 1 bit position
3. If M and A have the same signs, AA –M
4. Step 3 is successful if sign of A is the same as before step 3 and at the end of step 3
5. Repeat steps 2 through 4 as many times as there are bit positions in Q.
6. The reminder is in A. If the signs are of Divisor and dividend were the same, the quotient is in Q, otherwise the correct quotient is the twos complement of Q.
(a) 7/3 (b) -7/3
Q step 3 and at the end of step 3