Re: 請問指令retfie s的三個暫存器要如何使用?
|
||||
---|---|---|---|---|
新會員
|
謝謝你的回應~~我了解了
但是你所提供的路徑我沒有耶~~ 請問要到那下載安裝呢?
發表於: 2005/12/29 9:46
|
|||
|
Re: 請問指令retfie s的三個暫存器要如何使用?
|
||||
---|---|---|---|---|
新會員
|
謝謝你的回應!!
照你的說法...那通常的用法是不是 低優先權使用軟體的堆疊來處理 而高優先權則使用shadow registers呢? 謝謝!!
發表於: 2005/12/28 16:54
|
|||
|
Re: 請問指令retfie s的三個暫存器要如何使用?
|
||||
---|---|---|---|---|
管理員
|
你好,
基本在進入中斷向量位址之前 , CPU 已經自動的將 W , STATUS and BSR 儲存至 Shadow Registers 了 ! 所以使用鍺要在返回時用 retfie FAST 或 retfie 1 就可以了 . 針對低優先權的中斷 , 我們通常不用 Shadow Registers . 因為它可能會被高優先權的中斷搶走執行權. 故一般我們都用軟體的堆疊來處理 W , STATUS and BSR 的 push 問題 . Thanks & Regards,
發表於: 2005/12/28 12:59
|
|||
|
請問指令retfie s的三個暫存器要如何使用?
|
||||
---|---|---|---|---|
新會員
|
如題,指令retfie s的s如果設成1
則中斷回去時會同時將影子暫存器 WS,STATUSS,BSRS 丟回到 WREG,STATUS,BSR 但要如何設定在中斷開始時自動將 WREG,STATUS,BSR 丟到影子暫存器中呢? 謝謝!!
發表於: 2005/12/27 15:45
|
|||
|