Write a code to read 5 single-digit numbers from the user and add them in a variable called result No late or email submissions will be allowed  just modify my asnwer no extra content please only use what u see  and u can use mov ah,2 t print

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a code to read 5 single-digit numbers from the user and add them in a variable called result

No late or email submissions will be allowed 
just modify my asnwer no extra content please only use what u see  and u can use mov ah,2 t print

edit:
C:\Users\ramah\Desktop\assembly\mycode.asm
file edit bookmarks assembler emulator math ascii codes help
new
open examples
compile emulate calculator convertor
01
02 ; You may customize this and other start-up templates;
03 ; The location of this template is c:\emu8086\inc\0_com_template.txt
04
05 org 100h
06
07.data
08 msg1 db 'Enter a value = $¹
09 result db
10
11 .code
12 main proc
13 mov ax, edata
14 mov ds, ax
15 mov dx,offset msg1
16 lea dx,msg1
17 mov ah, 9
18 int 21h
19 mov cx,5
HHHNNNNNNNNNNM
20 L1:
56869SAWNTO
26
save
27 main endp
28
;reading 5 digits from the user
21 mov ah,1
22 int 21h
23 mov
bl,ah
moving the entered number to another register
24 add result, bl;now adding the rentered number from bi to the result intially r
loop L1 ;dec cx then loop through L1:
25
29
懲
options help about
30
x
Transcribed Image Text:edit: C:\Users\ramah\Desktop\assembly\mycode.asm file edit bookmarks assembler emulator math ascii codes help new open examples compile emulate calculator convertor 01 02 ; You may customize this and other start-up templates; 03 ; The location of this template is c:\emu8086\inc\0_com_template.txt 04 05 org 100h 06 07.data 08 msg1 db 'Enter a value = $¹ 09 result db 10 11 .code 12 main proc 13 mov ax, edata 14 mov ds, ax 15 mov dx,offset msg1 16 lea dx,msg1 17 mov ah, 9 18 int 21h 19 mov cx,5 HHHNNNNNNNNNNM 20 L1: 56869SAWNTO 26 save 27 main endp 28 ;reading 5 digits from the user 21 mov ah,1 22 int 21h 23 mov bl,ah moving the entered number to another register 24 add result, bl;now adding the rentered number from bi to the result intially r loop L1 ;dec cx then loop through L1: 25 29 懲 options help about 30 x
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY