Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assuming the 8-bit values shown below are signed values (B2T), determine the negation, truncation to 4-bit and sign extend to 16-bit for each of the
Assuming the 8-bit values shown below are signed values (B2T), determine the negation, truncation to 4-bit and sign extend to 16-bit for each of the original 8-bit values. Assuming that 12 bits are available to store the relevant operand and the result: a. Show how the compiler can use subtraction and shifting only (that is, no use of multiplication) to determine the result of 19*56, if 19 is the value of a variable, x, and 56 is a constant which is known to the compiler at compilation time. Show the bit patterns of both operands in the multiplication, and explain clearly the steps you follow to determine the result. b. Now show how the compiler can use subtraction and shifting only (that is, no use of multiplication) to determine the result of 19*-56, if 19 is the value of a variable, x, and -56 is a constant which is known to the compiler at compilation time. Show the bit patterns of both operands in the multiplication, and explain clearly the steps you follow to determine the result
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started