Please write the code in a way that I can copy. I do not want pictures or written on paper Write an assembly program tha

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: 899559
Joined: Mon Aug 02, 2021 8:13 am

Please write the code in a way that I can copy. I do not want pictures or written on paper Write an assembly program tha

Post by answerhappygod »

Please write the code in a way that I can copy. I do not want
pictures or written on paper
Write an assembly program that: (emu8086)
1. Accepts two (single decimal digit) numbers from the
keyboard.
2. Calculate addition, subtraction, multiplication, and division
of these numbers.
3. Clear the screen and set the cursor to the center of the
output screen.
4. Use the DOS interrupt subroutines to output the results
as:
"Num1 + Num2 = " <<addition result>>
"Num1 - Num2 = " <<subtraction result>>
"Num1 * Num2 = "<<multiplication result>>
"After division, Q = " <<qoutient value>>
"After division, R = " <<remainder value>>
5. You should use two procedures for printing (string and single
character), and one procedure to read the entered numbers from the
keyboard.
While you test your code to make the output screenshots, you
should choose both of your numbers to be the first two nonzero
digits from the right of your university number, just like the
following examples:
320190107058 -> [Num1 = 8] and [Num2 = 5]
320180125003 -> [Num1 = 3] and [Num2 = 5]
320200100280 -> [Num1 = 8] and [Num2 = 2]
Any two or more identical codes will take zero !!!
Submission: **.asm code and at least two screenshots for the
output screen before clearing the screen and after print out the
results!!!
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply