Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编程STM8微控制器STVD。我碰巧在代码中间使用了汇编指令。如此处所示 , 我使用了如下指令
STM8
STVD
asm("MOV $00500A,#$3");
但我面临以下错误
#error cpstm8 ..\app\sched.c:183(5) missing prototype
谁能帮我解决这个问题?
对于STM8汇编指令,需要_在指令前使用如下图
_
_asm("MOV $00500A,#$3");