反汇编-2
反汇编-2
代码
#include<stdio.h>
int main() {
int input, output, temp;
input = 1;
asm volatile(
"movl $0, %%eax;\n\t"
"movl %%eax, %1;\n\t"
"movl %2, %%eax;\n\t"
"movl %%eax, %0;"
: "=m"(output), "=m"(temp)
: "r"(input)
: "eax"
);
printf("%d %d\n", temp, output);
return 0;
}
运行结果