Question: (Translate from Assembly to C) Rewrite the my_to_lower function in C. Write the function's prototype and all code contained within. Don't forget about arguments and

(Translate from Assembly to C) Rewrite the my_to_lower function in C. Write the function's prototype and all code contained within. Don't forget about arguments and local variable definitions:

push rbp mov rbp,rsp mov QWORD PTR [rbp-0x8],rdi jmp 40099d mov rax,QWORD PTR [rbp-0x8] movzx eax,BYTE PTR [rax] cmp al,0x40 jle 400998 mov rax,QWORD PTR [rbp-0x8] movzx eax,BYTE PTR [rax] cmp al,0x5a jg 400998 mov rax,QWORD PTR [rbp-0x8] movzx eax,BYTE PTR [rax] add eax,0x20 mov edx,eax mov rax,QWORD PTR [rbp-0x8] mov BYTE PTR [rax],dl add QWORD PTR [rbp-0x8],0x1 mov rax,QWORD PTR [rbp-0x8] movzx eax,BYTE PTR [rax] test al,aljne 400970 nop pop rbp ret nop DWORD PTR [rax+rax*1+0x0]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!