what is the final output of this?

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 3RA
icon
Related questions
Question

what is the final output of this?

section data
msg: db 10. "You are at the start.",10
len: equ
S-msg
msg2: db
len2 equ
char. db 0
section .text
global main
print
mov
mov
syscall
ret
main:
xor
xor
mov
xor
label1:
"Done!", 10
S-msg2
rax, 1
rdi, 1
rax, rax
r9, r9
r9b, 255
done:
r8b, r8b
cmp
jae label2
mov
r9b, 0
xor
ret
mov
call print
jmp done
rsi, msg
rdx, len
label2:
I
mov
mov
mov
sub
jmp
xor rsi, rsi
mov rsi, 48
add rsi, r9
call print
r9b, 1
label1
[char], rsi
rsi, char
rdx. 1
rsi, msg2
mov
mov rdx, len2
call print
rax, rax
Transcribed Image Text:section data msg: db 10. "You are at the start.",10 len: equ S-msg msg2: db len2 equ char. db 0 section .text global main print mov mov syscall ret main: xor xor mov xor label1: "Done!", 10 S-msg2 rax, 1 rdi, 1 rax, rax r9, r9 r9b, 255 done: r8b, r8b cmp jae label2 mov r9b, 0 xor ret mov call print jmp done rsi, msg rdx, len label2: I mov mov mov sub jmp xor rsi, rsi mov rsi, 48 add rsi, r9 call print r9b, 1 label1 [char], rsi rsi, char rdx. 1 rsi, msg2 mov mov rdx, len2 call print rax, rax
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
InputStream
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning