vector_6416test.asm

来自「DSP的集成开发」· 汇编 代码 · 共 72 行

ASM
72
字号
;*************************************************
;  Copyright (C), 2007-2008, HEU-804.
;  File name: vectors.asm     
;  Author: MXD
;  Version: 1.0
;  Date: 2007/05/05
;  Description: This program is used to define the
;               interrupt entry point of 6416.
;  History:  
;     Date: 2004/12/11
;     Author: Qiu Wenyi
;*************************************************

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 _sj_init
        ;.ref _main
        .ref _c_int00           ; C entry point
        .ref _extn_int4
        ;.ref _interrupt16650_1
        ;.ref _interruptMCBSP0
        .align  32*8*4          ; must be aligned on 256 word boundary
        
RESET:                          ; reset vector
        mvkl _c_int00,b0        ; load destination function address to b0
        mvkh _c_int00,b0
        b b0                    ; start branch to destination function
        nop 5
        nop
        nop
        nop
        nop
        
        unused 1
        unused 2
        unused 3
       
        ;unused 4
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
int4:   
        mvkl _extn_int4,b0        ; load destination function address to b0
	    mvkh _extn_int4,b0
        b b0                     ; start branch to destination function     
        nop 5                    ; fill delay slot
        nop
        nop
        nop
        nop
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;        
        unused 5
        unused 6
        unused 7
        unused 8
        unused 9
        unused 10
        unused 11
        unused 12
        unused 13
        unused 14
        unused 15

⌨️ 快捷键说明

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