将工程由IAR编译器移植到KEIL4中,原程序中有几条嵌入汇编编译报错
__asm(
"loop:subs r0,#1\n"
"bne.n loop\n"
);
__asm(
" ldr r0,[r0]\n"
" msr msp,r0");
__asm(
"rev r0,r0\n"
"bx lr\n"
);
所报的错误
warning: #1267-D: Implicit physical register R0 should be defined as a variable
error: #549: variable "R0" is used before its value is set
error: #1084: This instruction not permitted in inline assembler
熟悉MDK的朋友,知道如何做更改吗?
|