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
Assembly Language Program Using MARIE Write a program to divide two non-negative integers. The program should call a sub
-
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!