Question: 3 . Write a program ( div . asm ) to perform a positive integer division algorithm. Your program will have two inputs: the dividend

3. Write a program (div.asm) to perform a positive integer division algorithm. Your program will have two inputs: the dividend and divisor and have two outputs: the quotient and remainder. Assume, you will be given only positive values and the divisor will be always greater than zero. Your inputs and outputs are as follows:Write a program (div.asm) to perform a positive integer division algorithm. Your
program will have two inputs: the dividend and divisor and have two outputs: the
quotient and remainder. Assume, you will be given only positive values and the
divisor will be always greater than zero. Your inputs and outputs are as follows: (20
points)
Register R1= Divisor
Register R6= Dividend
Register R2= Quotient
Register R3= Remainder.
Example: R1=30,R6=100. Therefore 100/30, R2=3 and R3=10.
You can consider to use the follow program framework:
.ORIG 3000
; below is your code
HALT
DIVISOR ,-*L??#30
DIVIDND ,.FILL #100
END
Answer:
 3. Write a program (div.asm) to perform a positive integer division

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!