一个简单内嵌汇编程序怎么重IAR转到KEIL?
uint8 __get_primask(void) { asm( "mrs r0,primask
" "bx lr
" ); return 1; }
void __set_primask(uint8 flags) { asm( "msr primask,r0
" ); }
出错:ptpt_cpu.cpp(6): error: #1113: Inline assembler not permitted when generating Thumb code |