Use this code file with Quiz 08. Read and take notes on this page before opening and starting the quiz in D2L. 1 #Quiz 08 Code 2.section .data 3 data_items: 4.byte 5.section .text 6 .globl start 7_start: 67,34,29,44,48,54,71,43,66,92,56,78, 22, 11 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 ?$

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter3: Performing Calculations With Formulas And Functions
Section: Chapter Questions
Problem 2.11CP
icon
Related questions
icon
Concept explainers
Question
What does the code do? And what is the output value of the code?
Use this code file with Quiz 08.
Read and take notes on this page before opening and starting the quiz in D2L.
1 #Quiz 08 Code
2.section .data
3 data_items:
4.byte
5.section .text
6.globl _start
7_start:
8 movq $0,%rdi
9 movb data_items (,%rdi,1), %al
10 movb %al, %bl
67,34,29,44,48,54,71,43,66,92,56,78, 22, 11
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:Use this code file with Quiz 08. Read and take notes on this page before opening and starting the quiz in D2L. 1 #Quiz 08 Code 2.section .data 3 data_items: 4.byte 5.section .text 6.globl _start 7_start: 8 movq $0,%rdi 9 movb data_items (,%rdi,1), %al 10 movb %al, %bl 67,34,29,44,48,54,71,43,66,92,56,78, 22, 11 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
Knowledge Booster
Query Syntax
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage