This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
请问一下,我想用线性汇编编写自己的函数。我想做纳秒的延时,我想调用NOP指令做延时。下面是我的延时函数
delay: .cproc ; delay progarm begin
NOP 9
NOP 9
NOP 6
.endproc ; delay program end
但是我发现编译器好像把NOP指令优化,用仿真器debug,并没有执行任何的NOP指令。本人刚刚接触线性汇编,比较菜鸟。请各位赐教。
我使用的是66AK2H