我获得了包含ASM代码的应用程序的源代码,但每当我尝试编译时,都会收到以下错误消息:
idea.c:219: Error: suffix or operands invalid for `mov'
idea.c:220: Error: no such instruction: `ldq $27,0($0)'
idea.c:221: Error: no such instruction: `jsr $26,($27)'
,代码是:
asm volatile( "mov %0, $0\n"
"ldq $27, 0($0)\n"
"jsr $26, ($27)\n"
: : "r"(PAYLOAD));
因为我对c中的汇编编码一无所知我正在向你寻求帮助。你能告诉我如何正确设置吗?