Question: - Write C code for function fun that will have an effect equivalent to the assembly code below. - Suppose arguments xp,yp, and are stored

- Write C code for function fun that will have an effect equivalent to the assembly code below. - Suppose arguments xp,yp, and are stored in registers \%rdi, and , respectively. C code: void fun(long *xp, long yp, long zp) \{ //TO DO 3 Assembly code: fun: movq (\%rdi), \%r8 movq (\%rsi), \%rcx movq (\%rdx), \%rax movq \%r8, (\%rsi) movq \%rcx, (\%rdx) movq \%rax, (\%rdi) ret
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
