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...
icon
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 守
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
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
steps

Step by step

Solved in 2 steps with 4 images

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