⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vectors.asm

📁 本程序完成在dsp 的平台下
💻 ASM
字号:
; Coding         : Zhourun
; Remarked maker : Weiyafeng
; Date           : 2002/11/15
; Function Name  :  
; Function Application :  This File is used to initialize Interrupt Vector Table;
;
;
;  Copyright 2001 by Texas Instruments Incorporated.
;  All rights reserved. Property of Texas Instruments Incorporated.
;  Restricted rights to use, duplicate or disclose this code are
;  granted through contract.
;  U.S. Patent Nos. 5,283,900  5,392,448
;
; "@(#) DSP/BIOS 4.51.0 05-23-01 (barracuda-i10)"
;
;  ======== vectors.asm ========
;  Plug in the entry point at RESET in the interrupt vector table
;

;
;  ======== unused ========
;  plug inifinite loop -- with nested branches to
;  disable interrupts -- for all undefined vectors
;
unused  .macro id

        .global unused:id:
unused:id:
        b unused:id:    ; nested branches to block interrupts
        nop 4
        b unused:id:
        nop
        nop
        nop
        nop
        nop
        .endm

        .sect ".vectors"

        .ref _c_int00           ; C entry point
        .align  32*8*4          ; must be aligned on 256 word boundary
        .ref  _my_isr_jump_table
        .global _RESET,_NMI,_RESV1,_RESV2,_movetext
        .global _INT4,_INT5,_INT6,_INT7,_INT8,_INT9,_INT10
        .global _INT11,_INT12,_INT13,_INT14,_INT15
        .global _ERROR4,_ERROR5,_ERROR6,_ERROR7,_ERROR8,_ERROR9
        .global _ERROR10,_ERROR11,_ERROR12,_ERROR13,_ERROR14,_ERROR15
;**************************************************************************
_RESET:                         ; reset vector
        mvkl _c_int00,b0        ; load destination function address to b0
        mvkh _c_int00,b0
        b b0                    ; start branch to destination function
        mvc PCE1,b0             ; address of interrupt vectors
        mvc b0,ISTP             ; set table to point here
        mvk 0x3e0,b15                   ; fill delay slot
        nop 2
        nop
;**************************************************************************
_NMI:   .asg   1,     vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5           
;***************************************************************************
_RESV1: b     .s2   _RESV1   
        nop
        nop
        nop
        nop
        nop
        nop
        nop
;***************************************************************************
_RESV2: b     .s2   _RESV2
        nop
        nop
        nop
        nop
        nop
        nop
        nop
;***************************************************************************
_INT4:  .asg     4,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5 
;***************************************************************************
_INT5:  .asg     5,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5
;***************************************************************************
_INT6:  .asg     6,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5 
;***************************************************************************
_INT7:  .asg     7,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5  
;***************************************************************************
_INT8:  .asg     8,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5
;***************************************************************************
_INT9:  .asg     9,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5 
;***************************************************************************
_INT10: .asg     10,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5
;***************************************************************************
_INT11: .asg     11,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5
;**************************************************************************
_INT12: .asg     12,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5
;****************************************************************************
_INT13: .asg     13,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5 
;***************************************************************************
_INT14: .asg     14,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5
;**************************************************************************
_INT15: .asg     15,vec
        stw    .d2    b0,*--b15
    ||  mvkl  (_my_isr_jump_table+vec*4), b0
        mvkh  (_my_isr_jump_table+vec*4), b0
        ldw    .d2    *b0  ,b0
        nop    4
        b      .s2     b0
    ||  ldw    .d2    *b15++ ,b0
        nop     5
;*************************************************************************
_ERROR4: B   .S2   IRP
         NOP  5
;*************************************************************************
_ERROR5: B   .S2   IRP
         NOP  5 
;*************************************************************************
_ERROR6: B   .S2   IRP
         NOP  5
;*************************************************************************
_ERROR7: B   .S2   IRP
         NOP  5
;*************************************************************************
_ERROR8: B   .S2   IRP
         NOP  5 
;*************************************************************************
_ERROR9: B   .S2   IRP
         NOP  5
;*************************************************************************
_ERROR10:  B   .S2   IRP
           NOP  5
;*************************************************************************
_ERROR11:  B   .S2   IRP
           NOP  5
;*************************************************************************
_ERROR12:  B   .S2   IRP
         NOP  5
;*************************************************************************
_ERROR13:  B   .S2   IRP
           NOP  5
;*************************************************************************
_ERROR14:  B   .S2   IRP
           NOP  5
;************************************************************************* 
_ERROR15:  B   .S2   IRP
           NOP  5

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -