Question: write an Assembly language program computing result of the division of two integer numbers (the Quotient). As you might notice, the ARM Assembly language

write an Assembly language program computing result of the division of two integer numbers (the Quotient). As 

write an Assembly language program computing result of the division of two integer numbers (the Quotient). As you might notice, the ARM Assembly language does not contain instructions performing division, not even for integer numbers. However, here is a workaround: For two numbers A and B, denoting as Quotient: Q = A/B and as Reminder: R=A%B, we assign the following initial values: Q=0; R=A; you need to implement the following: while (R 2 B) {Q=Q+1 R=R-B Write Assembly code implementing the procedure above. Test it on several values (see what you will need to report below). In your report: 1. Report your code. 2. Report the values of the following divisions: 15/3, 19/3, 191/31, 191/13, and 191/7 as computed by your code. 3. Discuss your procedures, its limitations, and your observations. 4. Can you suggest any improvements for the procedure?

Step by Step Solution

3.28 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Assembly language program to compute the result of the division of two integer numbers Initialize quotient and remainder Q equ 0 R equ 0 Load dividend ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!