




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















A Q
Negative integers where the high order bit is the "sign bit." An arithmetic right shift replicates the sign bit as needed to fill bit positions.
The numerically larger operand (5) would require 3 bits to represent in binary (101). So we must use AT LEAST 4 bits to represent the operands, to
-5 is 11011 (multiplier) 2 is 00010 (multiplicand)
A Q QN-1 M Operations Count 0000 0010 0 1011 Initialization 4 1011 3 1011 1011 2 1011 1 1011 1011 0
No Op; ASR (^001) ASR 0
1 AA +M 110 1
AA - M ASR
(Note: Since this is the first pass, we use 0 for the previous LSB)
The last two bits are 10 , so we need to: subtract the multiplicand from left half of product
(left-most bit was 1, so a 1 was shifted in on the left)
The last two bits are 11 , so we do NOT need to perform an arithmetic action -- just proceed to step 2.
The last two bits are 01 , so we need to: add the multiplicand to the left half of the product