Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

strupr: movq movzbl testb je %rdi,Zrax (%rdi), %eax %d1,xd! char * movq Xrd, | %eax jmp .L4 strupr(char str) char s; L3: addq $1, Xrcx

image text in transcribed
image text in transcribed
strupr: movq movzbl testb je %rdi,Zrax (%rdi), %eax %d1,xd! char * movq Xrd, | %eax jmp .L4 strupr(char str) char "s; L3: addq $1, Xrcx for(s str; "s; s++) ( cmpw(rex), Xedx testb Xdl, xd1 je L2 L4: leal -97(&rdx), Xesi cmpb $25, si ja subl $32,%edx movb Xdl, (Xrcx) jmp .L3 return str L2: rep ret cmpw (%rcx), testb %d1,xd! %edx . L2 .L4: leal -97(&rdx), Kesi cmpb $25, sil return str; subl $32, Xedx jmp L3 .L2: rep ret je ja jb jbe ne movw movl movg movsbw movsbl movswl movsbq movswq movsla movzbw movzbl movzwl movzbg movzwg .L2 L3 .L4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions