Question 13 Assuming the terminal command is written correctly, which line number lists the command to create the object code? Question 14 Completely rewrite line # 13 to use a decimal value as the immediate (constant). Question 15 Assuming the terminal commands listed in line numbers 31 through 34 were written correctly, place them in the correct order (start to finish) to get the return value from the process.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please all solve the question

Question 13
Assuming the terminal command is written correctly, which line number lists the
command to create the object code?
Question 14
Completely rewrite line # 13 to use a decimal value as the immediate (constant).
Question 15
Assuming the terminal commands listed in line numbers 31 through 34 were written
correctly, place them in the correct order (start to finish) to get the return value from
the process.
Transcribed Image Text:Question 13 Assuming the terminal command is written correctly, which line number lists the command to create the object code? Question 14 Completely rewrite line # 13 to use a decimal value as the immediate (constant). Question 15 Assuming the terminal commands listed in line numbers 31 through 34 were written correctly, place them in the correct order (start to finish) to get the return value from the process.
1 #Qutz 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(,%rdt,1),%al
10 movb %al,%bl
11 start_loop:
12 movq %rdi,%rcx
13 спра $0xB, Хгсх
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 #Qutz 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(,%rdt,1),%al 10 movb %al,%bl 11 start_loop: 12 movq %rdi,%rcx 13 спра $0xB, Хгсх 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
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education