Question: Write an MIPS assembly language program to calculate A divided by B using non-restoring division. Assume A and B are 6-bit signed (twos complement) integers.
Write an MIPS assembly language program to calculate A divided by B using non-restoring division. Assume A and B are 6-bit signed (two’s complement) integers.
Figure 3.10 describes a restoring division algorithm, because when subtracting the divisor from the remainder produces a negative result, the divisor is added back to the remainder (thus restoring the value). However, there are other algorithms that have been developed that eliminate the extra addition. Many references to these algorithms are easily found on the web. We will explore these algorithms using the pairs of octal numbers in the following table.
Figure 3.10

2a Start 1. Subtract the Divisor register from the Remainder register and place the result in the Remainder register Remainder 20 Test Remainder Remainder
Step by Step Solution
3.45 Rating (152 Votes )
There are 3 Steps involved in it
To perform nonrestoring division in MIPS assembly language we need to implement the algorithm that divides A by B The algorithm involves several steps ... View full answer
Get step-by-step solutions from verified subject matter experts
