色偷偷偷久久伊人大杳蕉,色爽交视频免费观看,欧美扒开腿做爽爽爽a片,欧美孕交alscan巨交xxx,日日碰狠狠躁久久躁蜜桃

x
x
查看: 4640|回復(fù): 3
打印 上一主題 下一主題

李現(xiàn)路:在DSP6000中怎樣編寫您的第一個程序(二) Post By:2009-11-23 23:46:16

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
發(fā)表于 2009-11-28 10:39:25 | 只看該作者 |只看大圖 回帖獎勵 |倒序瀏覽 |閱讀模式
關(guān)鍵詞: Post , 編寫 , 程序 , 李現(xiàn)路
李現(xiàn)路:在DSP6000中怎樣編寫您的第一個程序(二)   Post By:2009-11-23 23:46:16


三、完整的中斷向量表程序如下:


   .global _vectors ;定義一個能被外部(C語言程序)引用的變量
   .global _c_int00
   .global _vector1
   .global _vector2
   .global _vector3
   .global _vector1
   .global _vector5
   .global _vector6
   .global _vector7
   .global _vector8  
   .global _vector9           
   .global _vector10
   .global _vector11 ; Hookup the c_int08 ISR(連接這個中斷設(shè)置寄存器) in main()  
   .global _vector12    ; Hookup the c_int08 ISR in main()
   .global _vector13   
   .global _vector14   
   .global _vector15   

完整版本請見http://www.51qianru.cn/bbs/
*------------------------------------------------------------------------------
* Global symbols referenced in this file but defined somewhere else.
* Remember that your interrupt service routines need to be referenced here.
*------------------------------------------------------------------------------
   .ref _c_int00 ;reset ISR(復(fù)位中斷設(shè)置寄存), .ref表明一個或多個在另一個模塊中定義而在前模塊中要用到的符號

*------------------------------------------------------------------------------
* This is a macro that instantiates one entry in the interrupt service table.
*------------------------------------------------------------------------------
VEC_ENTRY .macro addr ;中斷返回函數(shù)
    STW   B0,*--B15
    MVKL  addr,B0
    MVKH  addr,B0
    B     B0
    LDW   *B15++,B0
    NOP   2
    NOP   
    NOP   
   .endm


*------------------------------------------------------------------------------
* This is a dummy interrupt service routine used to initialize the IST.
*------------------------------------------------------------------------------
_vec_dummy:  ;初始化IST寄存器(中斷向量表起始地址寄存器,用于設(shè)置中斷服務(wù)程序存放的地址)
  B    B3
  NOP  5

*------------------------------------------------------------------------------
* This is the actual interrupt service table (IST). It is properly aligned and
* is located in the subsection .text:vecs. This means if you don't explicitly
* specify this section in your linker command file, it will default and link
* into the .text section. Remember to set the ISTP(中斷向量表起始地址寄存器) register to point to this
* table.
*------------------------------------------------------------------------------
.sect ".vecs"  ;定義初始化帶名稱的段
.align 1024  ;分配程序頁

_vectors:
_vector0:   VEC_ENTRY _c_int00    ;RESET(應(yīng)用程序的入口)
_vector1:   VEC_ENTRY _vec_dummy  ;NMI(非屏蔽中斷,用于處理極為關(guān)鍵的任務(wù))
_vector2:   VEC_ENTRY _vec_dummy  ;RSVD
_vector3:   VEC_ENTRY _vec_dummy
_vector4:   VEC_ENTRY _vec_dummy
_vector5:   VEC_ENTRY _vec_dummy
_vector6:   VEC_ENTRY _vec_dummy
_vector7:   VEC_ENTRY _vec_dummy
_vector8:   VEC_ENTRY _vec_dummy   
_vector9:   VEC_ENTRY _vec_dummy
_vector10:  VEC_ENTRY _vec_dummy
_vector11:  VEC_ENTRY _vec_dummy ; Hookup the c_int08 ISR in main()
_vector12:  VEC_ENTRY _vec_dummy    ; Hookup the c_int08 ISR in main()
_vector13:  VEC_ENTRY _vec_dummy
_vector14:  VEC_ENTRY _vec_dummy
_vector15:  VEC_ENTRY _vec_dummy


  完整版本請見http://www.51qianru.cn/bbs/

                                                        曙海教育
                                                曙海嵌入式學(xué)院3G通信培訓(xùn)中心
                                            (MTK培訓(xùn),Android培訓(xùn),iPhone培訓(xùn))
                                                電話:021-51875830
                                                網(wǎng)址:http://www.51qianru.cn
                                                    講師:李現(xiàn)路
                                         版權(quán)所有-曙海教育 轉(zhuǎn)摘請注明作者和出處課程有:

   Post By:2009-11-23 23:46:16


三、完整的中斷向量表程序如下:


   .global _vectors ;定義一個能被外部(C語言程序)引用的變量
   .global _c_int00
   .global _vector1
   .global _vector2
   .global _vector3
   .global _vector1
   .global _vector5
   .global _vector6
   .global _vector7
   .global _vector8  
   .global _vector9           
   .global _vector10
   .global _vector11 ; Hookup the c_int08 ISR(連接這個中斷設(shè)置寄存器) in main()  
   .global _vector12    ; Hookup the c_int08 ISR in main()
   .global _vector13   
   .global _vector14   
   .global _vector15   

完整版本請見http://www.51qianru.cn/bbs/
*------------------------------------------------------------------------------
* Global symbols referenced in this file but defined somewhere else.
* Remember that your interrupt service routines need to be referenced here.
*------------------------------------------------------------------------------
   .ref _c_int00 ;reset ISR(復(fù)位中斷設(shè)置寄存), .ref表明一個或多個在另一個模塊中定義而在前模塊中要用到的符號

*------------------------------------------------------------------------------
* This is a macro that instantiates one entry in the interrupt service table.
*------------------------------------------------------------------------------
VEC_ENTRY .macro addr ;中斷返回函數(shù)
    STW   B0,*--B15
    MVKL  addr,B0
    MVKH  addr,B0
    B     B0
    LDW   *B15++,B0
    NOP   2
    NOP   
    NOP   
   .endm


*------------------------------------------------------------------------------
* This is a dummy interrupt service routine used to initialize the IST.
*------------------------------------------------------------------------------
_vec_dummy:  ;初始化IST寄存器(中斷向量表起始地址寄存器,用于設(shè)置中斷服務(wù)程序存放的地址)
  B    B3
  NOP  5

*------------------------------------------------------------------------------
* This is the actual interrupt service table (IST). It is properly aligned and
* is located in the subsection .text:vecs. This means if you don't explicitly
* specify this section in your linker command file, it will default and link
* into the .text section. Remember to set the ISTP(中斷向量表起始地址寄存器) register to point to this
* table.
*------------------------------------------------------------------------------
.sect ".vecs"  ;定義初始化帶名稱的段
.align 1024  ;分配程序頁

_vectors:
_vector0:   VEC_ENTRY _c_int00    ;RESET(應(yīng)用程序的入口)
_vector1:   VEC_ENTRY _vec_dummy  ;NMI(非屏蔽中斷,用于處理極為關(guān)鍵的任務(wù))
_vector2:   VEC_ENTRY _vec_dummy  ;RSVD
_vector3:   VEC_ENTRY _vec_dummy
_vector4:   VEC_ENTRY _vec_dummy
_vector5:   VEC_ENTRY _vec_dummy
_vector6:   VEC_ENTRY _vec_dummy
_vector7:   VEC_ENTRY _vec_dummy
_vector8:   VEC_ENTRY _vec_dummy   
_vector9:   VEC_ENTRY _vec_dummy
_vector10:  VEC_ENTRY _vec_dummy
_vector11:  VEC_ENTRY _vec_dummy ; Hookup the c_int08 ISR in main()
_vector12:  VEC_ENTRY _vec_dummy    ; Hookup the c_int08 ISR in main()
_vector13:  VEC_ENTRY _vec_dummy
_vector14:  VEC_ENTRY _vec_dummy
_vector15:  VEC_ENTRY _vec_dummy


  完整版本請見http://www.51qianru.cn/bbs/

                                                        曙海教育
                                                曙海嵌入式學(xué)院3G通信培訓(xùn)中心
                                            (MTK培訓(xùn),Android培訓(xùn),iPhone培訓(xùn))
                                                電話:021-51875830
                                                網(wǎng)址:http://www.51qianru.cn
                                                    講師:李現(xiàn)路
                                         版權(quán)所有-曙海教育 轉(zhuǎn)摘請注明作者和出處課程有:
沙發(fā)
發(fā)表于 2010-8-12 01:38:46 | 只看該作者
板凳
發(fā)表于 2010-8-12 01:38:52 | 只看該作者
地板
發(fā)表于 2013-11-16 09:19:15 | 只看該作者
復(fù)制下來!。。。。。。。!我自己好好學(xué)習(xí)。。。。。。。。。!

謝謝.jpg (8.65 KB)

謝謝.jpg
您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

關(guān)于我們  -  服務(wù)條款  -  使用指南  -  站點地圖  -  友情鏈接  -  聯(lián)系我們
電子工程網(wǎng) © 版權(quán)所有   京ICP備16069177號 | 京公網(wǎng)安備11010502021702
快速回復(fù) 返回頂部 返回列表