求翻译一段汇编代码
时刻准备中 2009-10-16 04:26:05 bool has_eflag(const DWORD mask)
{
DWORD f0, f1;
asm("pushfl ; "
"pushfl ; "
"popl %0 ; "
"movl %0,%1 ; "
"xorl %2,%1 ; "
"pushl %1 ; "
"popfl ; "
"pushfl ; "
"popl %1 ; "
"popfl"
: "=&r" (f0), "=&r" (f1)
: "ri" (mask));
return ((f0^f1) & mask);
}
bool is_support = has_eflag((DWORD)0x00040000);
求高手解释一下上面C++语言(gcc环境)中嵌入的汇编语言的意思:has_eflag是函数,下面是调用。请翻译成标注的汇编语言代码。
谢谢!