assmswapA.c - #include <stdio.h> void swap(long*xp long*yp asm movq%rdi%rax\\n\\t movq%rsi%rdx\\n\\t movq%rdx%rdi\\n\\t movq%rax%rsi\\n\\t int main long b = 2

assmswapA.c - #include <stdio.h> void swap(long*xp long*yp...

This preview shows page 1 out of 1 page.

#include <stdio.h>void swap(long *xp, long *yp) {asm(" movq (%rdi), %rax \n\t"" movq (%rsi), %rdx \n\t"" movq %rdx, (%rdi) \n\t"" movq %rax, (%rsi)
Background image

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture