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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply