Re: 請問如何停止??...關於RS232
|
||||
---|---|---|---|---|
版主
|
你的程式為:
decfsz k,f goto Trans goto $ END 如果沒有用 goto $ 攔住程式的話(因decfsz k,f 的k=0)就會亂跑了,如果後面都是0x3FF 的程式碼就會 rollover 到 0x000的位址。
發表於: 2006/8/15 13:58
|
|||
|
Re: 請問如何停止??...關於RS232
|
||||
---|---|---|---|---|
初級會員
|
嗯嗯...
感覺的確是從0x0000重新執行 那想請問依下....是什麼原因會造成 over roll? 不好意思....書上好像都沒提過這問題 所以不太懂... 可以解釋ㄧ下嗎.... 先謝謝了..... -----
發表於: 2006/8/15 11:12
|
|||
|
Re: 請問如何停止??...關於RS232
|
||||
---|---|---|---|---|
版主
|
沒有 goto $ 是因為程式失去控制後 over roll 回到0x0000的位址重新執行,加了goto $ 後你的程式應該只會執行一次然後就停在 goto $ 的迴圈裡。這是程式的邏輯如此,所以只有改變程式的流程才能改變目前得問題。
發表於: 2006/8/11 16:44
|
|||
|