vectors_4.asm

来自「利用DSK6711外部」· 汇编 代码 · 共 70 行

ASM
70
字号

*Vectors_4.asm Vector file for interrupt-driven program

    		.ref 	_exint4_isr ;ISR used in C program
    		.ref    _exint5_isr
    		.ref    _exint6_isr
    		.ref    _exint7_isr
    		.ref    _c_int00	;entry address
			.sect   "vectors"	;section for vectors
RESET_RST:	mvkl	.S2		_c_int00,B0	;lower 16 bits --> B0
    		mvkh 	.S2 	_c_int00,B0 ;upper 16 bits --> B0
    		B		.S2		B0 		;branch to entry address
			NOP      			;NOPs for remainder of FP
			NOP				;to fill 0x20 Bytes
			NOP
			NOP
			NOP	
NMI_RST: 	.loop 8
		NOP    			;fill with 8 NOPs
		.endloop 
RESV1:	.loop 8
		NOP 				
		.endloop
RESV2:	.loop 8
		NOP				
		.endloop
INT4: 	b   _exint4_isr
        .loop 7
		NOP  				
		.endloop
INT5: 	b   _exint5_isr
        .loop 7
		NOP
		.endloop
INT6:  	b   _exint6_isr
        .loop 7
		NOP
		.endloop
INT7:	b   _exint7_isr
	    .loop 7
		NOP
		.endloop
INT8: 	.loop 8
		NOP
		.endloop
INT9:		.loop 8
		NOP
		.endloop
INT10:	.loop 8
		NOP
		.endloop

INT11: 	.loop 8	
		NOP
		.endloop

INT12: 	.loop 8
		NOP
		.endloop
INT13:	.loop 8
		NOP
		.endloop
INT14: 	.loop 8
		NOP
		.endloop
INT15: 	.loop 8
		NOP
		.endloop

⌨️ 快捷键说明

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