Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 0 . Neither mul ] plica ] on nor division are supported by the MSP 4 3 0 CPU ALU. For mul ] plica
Neither mulplicaon nor division are supported by the MSP CPU ALU. For mulplicaon some microcontroller models include hardware mulplier peripherals which can be used; otherwise,
mulplicaon must be realized by somware. Both mulplicaon and division of unsigned numbers can be realized by direct brute force methods. That is Mulplicaon: To mulply AxB, add A mes B Division: To divide AB subtract B from A as many mes as possible unl the difference is smaller than B The difference is the residue R and the number of subtracons is the quoent Q
a Test your understanding by mulplying x and dividing by hand with the algorithms.
b If each factor in a mulplicaon is n bits wide, what is the number of bits that we must reserve for the product?
c Write pseudo codes or draw a flowchart for each operaon and encode them in assembly language. For the mulplicaon assume both factors are bytes.
For the division AB assume A is a bit word and B a byte.
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