// tmpVars.c #include int main() { int x = 97; char ch1 = 'A'; int y = 98; char ch2 = 'B'; unsigned char yç1 = 'E'; wo, [sp, 12] we, 65 wo, [sp, 11] w0, 98 wo, [sp, 4] w0, 66 strb wo, [sp, 3] 69 str mov strb mov str mov w0, wo, [sp, 2] wo, [sp, 12] ștrb wo, [sp, 11] wo, [sp, 4] wo, [sp, 3] w0, 81 wo, [sp, 2] wo, [sp, 12] w0, w0, 3 wo, [sp, 12] wo, [sp, 4] wo, wo, 3 wo, [sp, 4] WO, mov ch1 = x; ch2 = y; uc1 = 337; X += 3; y += 3; strb Idr Idr strb mov return 0; } ștrb Idr. add str // tmpVars.s .text •global .type main, %function Idr. add main str main: mov sp, sp, #16 we, 97 sub add ret sp, sp, 16 mov
// tmpVars.c #include int main() { int x = 97; char ch1 = 'A'; int y = 98; char ch2 = 'B'; unsigned char yç1 = 'E'; wo, [sp, 12] we, 65 wo, [sp, 11] w0, 98 wo, [sp, 4] w0, 66 strb wo, [sp, 3] 69 str mov strb mov str mov w0, wo, [sp, 2] wo, [sp, 12] ștrb wo, [sp, 11] wo, [sp, 4] wo, [sp, 3] w0, 81 wo, [sp, 2] wo, [sp, 12] w0, w0, 3 wo, [sp, 12] wo, [sp, 4] wo, wo, 3 wo, [sp, 4] WO, mov ch1 = x; ch2 = y; uc1 = 337; X += 3; y += 3; strb Idr Idr strb mov return 0; } ștrb Idr. add str // tmpVars.s .text •global .type main, %function Idr. add main str main: mov sp, sp, #16 we, 97 sub add ret sp, sp, 16 mov
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...
Related questions
Question
Describe what each line is doing
![// tmpVars.c
#include <stdio.h>
int main() {
int x = 97;
char ch1 = 'A';
int y = 98;
char ch2 = 'B';
unsigned char yc1
wo, [sp, 12]
w0, 65
wo, [sp, 11]
we, 98
wo, [sp, 4]
WO,
str
mov
strb
mov
str
mov
66
wo, [sp, 3]
w0, 69
wo, [sp, 2]
wo, [sp, 12]
wo, [sp, 11]
'E';
strb
%3D
mov
ch1 = x;
ch2 = y;
337;
х +3 3;
у +3 3;
strb
Idr
strb
Idr.
wo, [sp, 4]
wo, [sp, 3]
81
strb
WO,
wo, [sp, 2]
w0, [sp, 12]
w0, wo, 3
wo, [sp, 12]
wo, [sp, 4]
wo, wo, 3
mov
return 0;
}
ștrb
Idr
add
str
// tmpVars.s
. text
•global
.type main, %function
Idr
add
main
wo, [sp, 4]
WO,
str
main:
mov
sub
mov
sp, sp, #16
w0, 97
add
ret
sp, sp, 16](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fc06c0cac-2e9c-4d45-9a45-e5decd8c209b%2F46f2de15-1676-41f8-b2f1-ee28b8f375cf%2Fcvtqvdc_processed.png&w=3840&q=75)
Transcribed Image Text:// tmpVars.c
#include <stdio.h>
int main() {
int x = 97;
char ch1 = 'A';
int y = 98;
char ch2 = 'B';
unsigned char yc1
wo, [sp, 12]
w0, 65
wo, [sp, 11]
we, 98
wo, [sp, 4]
WO,
str
mov
strb
mov
str
mov
66
wo, [sp, 3]
w0, 69
wo, [sp, 2]
wo, [sp, 12]
wo, [sp, 11]
'E';
strb
%3D
mov
ch1 = x;
ch2 = y;
337;
х +3 3;
у +3 3;
strb
Idr
strb
Idr.
wo, [sp, 4]
wo, [sp, 3]
81
strb
WO,
wo, [sp, 2]
w0, [sp, 12]
w0, wo, 3
wo, [sp, 12]
wo, [sp, 4]
wo, wo, 3
mov
return 0;
}
ștrb
Idr
add
str
// tmpVars.s
. text
•global
.type main, %function
Idr
add
main
wo, [sp, 4]
WO,
str
main:
mov
sub
mov
sp, sp, #16
w0, 97
add
ret
sp, sp, 16
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images

Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY