Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 0 . Neither multiplication nor division are supported by the MSP 4 3 0 CPU ALU. For multiplication some microcontroller models include hardware multiplier

10. Neither multiplication nor division are supported by the MSP430 CPU ALU.
For multiplication some microcontroller models include hardware multiplier
peripherals which can be used; otherwise, multiplication must be realized by
software.
Both multiplication and division of unsigned numbers can be realized by direct
brute force methods. That is
Multiplication: To multiply AxB, add A times B.
Division: To divide A/B, subtract B from A as many times as possible until the
difference is smaller than B. The difference is the residue R and the number of
subtractions is the quotient Q.
a. Test your understanding by multiplying 11x3 and dividing 11/3 by hand
with the algorithms.
b. If each factor in a multiplication 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 operation, and encode them
in assembly language. For the multiplication, assume both factors are bytes.
For the division A/B, assume A is a 16-bit word and B a byte.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions