|
|||||||||||
| 技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng) 驅(qū)動編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機 | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計 | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe |
arm中斷返回問題 |
| 作者:yyccaa 欄目:ARM技術(shù) |
是不是subs和movs只要目標寄存器是pc,那么就會把spsr復制到cpsr?因為中斷返回就是用這兩個實現(xiàn)的,想確認一下。zlg的基礎(chǔ)教程里沒確切的指出這點。如果是,還有別的語句也會這樣嗎(比如adds)? |
| 2樓: | >>參與討論 |
| 作者: yyccaa 于 2006/1/16 11:55:00 發(fā)布:
找到答案了 To return after HANDLING the exception, the SPSR is moved into the CPSR, and R14 is moved to the PC. This can be done atomically in two ways: • using a data-processing instruction with the S bit set, and the PC as the destination • using the Load Multiple with Restore CPSR instruction, as described in LDM (3) on page A4-34. 從ARM Architecture Reference Manual上,找到的。 |
|
|
|
| 免費注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點此進入 |
Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號 |