modify the program in the pics so its inputs a list of 16-bit integers from the user, and then displays the integers in reverse order
modify the program in the pics so its inputs a list of 16-bit integers from the user, and then displays the integers in reverse order
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...
Related questions
Question
modify the program in the pics so its inputs a list of 16-bit integers from the user, and then displays the integers in reverse order.
![O edit: C:\emu8086\MySource\Reverse.asm
file
edit bookmarks assembler emulator math ascii codes help
new
open
examples
compile emulate
calculator convertor
options
help
about
save
. Model SMALL
04
03
.stack 100H
05
06 string db 'Please inpuț the string',Ødh, Øah,'$'
07
. data
i nput_st db 50 dup ("$")
08 newli ne db Øah, Ødh,' $'
10 .code
11
12 mov
13 mov ds, ax
14
15 lea dx,string
16 mov ah , 09h
17 int 21h
18
19 mov ah ,ØAh
20 lea dx, input_st
int 21h
аx,
@data
mov ah, Ø9h
lea dx, newline
int 21h
Call reverse
lea dx, input_st +2
mov ah, 09h
int 21h
mov ah,4ch
int 21h
reverse
PROC
mov si, OFFSET input_st +2
mov cx, Øh
Loop1:
mov ax, [si]
cmp al,'$
јe label1
drag a file here to open
3:36 PM
a 4) ENG
5/9/2021
334444 守](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F571387e7-8759-4858-9550-f55199fab5ea%2Fa0b752ab-617e-4c56-bb62-1fa18b7fa3b2%2F4x4w7r_processed.png&w=3840&q=75)
Transcribed Image Text:O edit: C:\emu8086\MySource\Reverse.asm
file
edit bookmarks assembler emulator math ascii codes help
new
open
examples
compile emulate
calculator convertor
options
help
about
save
. Model SMALL
04
03
.stack 100H
05
06 string db 'Please inpuț the string',Ødh, Øah,'$'
07
. data
i nput_st db 50 dup ("$")
08 newli ne db Øah, Ødh,' $'
10 .code
11
12 mov
13 mov ds, ax
14
15 lea dx,string
16 mov ah , 09h
17 int 21h
18
19 mov ah ,ØAh
20 lea dx, input_st
int 21h
аx,
@data
mov ah, Ø9h
lea dx, newline
int 21h
Call reverse
lea dx, input_st +2
mov ah, 09h
int 21h
mov ah,4ch
int 21h
reverse
PROC
mov si, OFFSET input_st +2
mov cx, Øh
Loop1:
mov ax, [si]
cmp al,'$
јe label1
drag a file here to open
3:36 PM
a 4) ENG
5/9/2021
334444 守
![O edit: C:\emu8086\MySource\Reverse.asm
file
edit bookmarks assembler emulator math
ascii codes help
examples
compile emulate
calculator convertor
options
help
about
new
open
save
39
40
mov si, OFFSET input_st+2
mov cx, Øh
Loop1:
mov ax, [si]
cmp al,'$
je labéli
push [si]
inc si
inc сx
jmp Loop1
label1:
mov si, OFFSET input_st+2
Loop2:
cmp cx,0
јe exit
Pop dx
mov [si], dx
inc si
dec cx
jmp Loop2
exit:
mov [si],' $'
RET
reverse ENDP
drag a file here to open
3:37 PM
a 4) ENG
5/9/2021
|困
B444444](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F571387e7-8759-4858-9550-f55199fab5ea%2Fa0b752ab-617e-4c56-bb62-1fa18b7fa3b2%2Fo373g5p_processed.png&w=3840&q=75)
Transcribed Image Text:O edit: C:\emu8086\MySource\Reverse.asm
file
edit bookmarks assembler emulator math
ascii codes help
examples
compile emulate
calculator convertor
options
help
about
new
open
save
39
40
mov si, OFFSET input_st+2
mov cx, Øh
Loop1:
mov ax, [si]
cmp al,'$
je labéli
push [si]
inc si
inc сx
jmp Loop1
label1:
mov si, OFFSET input_st+2
Loop2:
cmp cx,0
јe exit
Pop dx
mov [si], dx
inc si
dec cx
jmp Loop2
exit:
mov [si],' $'
RET
reverse ENDP
drag a file here to open
3:37 PM
a 4) ENG
5/9/2021
|困
B444444
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY