Assuming the terminal command is written correctly, which line number lists the command to execute the code?

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
Assuming the terminal command is written correctly, which line number lists the command to
execute the code?
Transcribed Image Text:Assuming the terminal command is written correctly, which line number lists the command to execute the code?
1 #Quiz 08 Code
2.section .data
3 data_items:
4.byte 67,34,29,44,48,54,71,43,66,92,56,78, 22, 11
5.section .text
6 .globl_start
7 start:
8 movq $0,%rdi
9 movb data_items(,%rdi,1), %al
10 movb %al, %bl
11 start_loop:
12 movq %rdi,%rcx
13 cmpq $0xB, %rcx
14 je loop_exit
15 movq %rcx,%rdi
16 movb data_items(,%rdi,1), %al
17 incq %rdi
18 cmpb %bl, %al
19 jg start_loop
20 movb %al, %bl
21 jmp start_loop
22 loop_exit:
23 cmpb $0x1D, %bl
24 je math
25 jmp done
26 math:
27 mov $0x21,%bl
28 done:
29 movq $1,%rax
30 int $0x80
31 # ./quiz08code
32 # ld quiz08code -o quiz08code.s
33 # as quiz08code.o -o quiz08code.s
34 # echo ?$
Transcribed Image Text:1 #Quiz 08 Code 2.section .data 3 data_items: 4.byte 67,34,29,44,48,54,71,43,66,92,56,78, 22, 11 5.section .text 6 .globl_start 7 start: 8 movq $0,%rdi 9 movb data_items(,%rdi,1), %al 10 movb %al, %bl 11 start_loop: 12 movq %rdi,%rcx 13 cmpq $0xB, %rcx 14 je loop_exit 15 movq %rcx,%rdi 16 movb data_items(,%rdi,1), %al 17 incq %rdi 18 cmpb %bl, %al 19 jg start_loop 20 movb %al, %bl 21 jmp start_loop 22 loop_exit: 23 cmpb $0x1D, %bl 24 je math 25 jmp done 26 math: 27 mov $0x21,%bl 28 done: 29 movq $1,%rax 30 int $0x80 31 # ./quiz08code 32 # ld quiz08code -o quiz08code.s 33 # as quiz08code.o -o quiz08code.s 34 # echo ?$
Expert Solution
trending now

Trending now

This is a popular 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