我真的根本不明白。我在评论中以某种方式在网上看到的所有代码都有随机数字,说明为什么它会做很多周期,但实际上没有解释为什么做什么或做什么做谁。我真的不知道。
例如:
cblock
Delay1
Delay2
Delay3
endc
Start:
.
.
.
Delay
movlw .2
movwf Delay1 ;&&&&
movlw .3
movwf Delay2
movlw .4 <------ Important note here. For some reason it loops back to the
movwf Delay3 <------ "&&&&" mark when it reads this piece of code. NO IDEA why
DelayLoop
decfsz Delay1,f <----- Explain what this does. Where does it get the time from?
goto DelayLoop <----- Thanks
decfsz Delay2,f <-----
goto DelayLoop
end
任何帮助都会很棒。