我正在 STVD
中对 STM8
微 Controller 进行编程。我碰巧在代码中间使用了一条汇编指令。如图here
我使用了如下指令
asm("MOV $00500A,#$3");
但是我遇到了以下错误
#error cpstm8 ..\app\sched.c:183(5) missing prototype
谁能帮我解决这个问题?
最佳答案
对于STM8汇编指令,需要在指令前使用_
如下图
_asm("MOV $00500A,#$3");
关于c - STM8微 Controller STVD IDE中的汇编指令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39695563/