Page 1 of 1

Assembly Language Program Using MARIE Write a program to divide two non-negative integers. The program should call a sub

Posted: Sun May 15, 2022 1:37 pm
by answerhappygod
Assembly Language Program Using MARIE
Write a program to divide two non-negative integers. The program
should call a subroutine (division) using the JnS instruction. The
program should perform the following tasks: 1) The main program
inputs two non-negative integers 2) The main program prints
(outputs) the two numbers that the user entered 3) The main program
calls the subroutine (divide) to perform the division. 4) The main
program prints (outputs) the result. Hint: Try to test a few cases:
5 / 10 = 0 10 / 5 = 2 12 / 5 = 2 20 / 20 = 1 0 / 3 = 0