isr.asm

来自「给出了W29C040的驱动子程序」· 汇编 代码 · 共 79 行

ASM
79
字号
.public _BREAK 
.public _FIQ 
.public _IRQ0 
.public _IRQ1 
.public _IRQ2 
.public _IRQ3 
.public _IRQ4 
.public _IRQ5 
.public _IRQ6 
.public _IRQ7 

.include hardware.inc      // include hardware information
.include dvr.inc 

.TEXT
/////////////////////////////////////////////////////////////////////////////////////////
// Function: Fast Interrupt Service routine Area                     
////////////////////////////////////////////////////////////////////////////////////////

_FIQ:                  
		push r1,r4 to [sp]                
        call    F_FIQ_Service_SACM_DVR  
        r1 = C_FIQ_TMA
        [P_INT_Clear] = r1
        pop r1,r4 from [sp] 
        reti             
/////////////////////////////////////////////////////////////////////////////////////////
// Function: Interrupt Service routine Area                     
//      Service for     IRQ1 - IRQ7
//      User's IRQ must hook on here                                 
/////////////////////////////////////////////////////////////////////////////////////////        
_BREAK:        
        push r1,r4 to [sp] 
        pop r1,r4 from [sp] 
        reti          
// ---------------------------------------------------------------------------
_IRQ0:        
        push r1,r4 to [sp] 
        pop r1,r4 from [sp] 
        reti          
// ---------------------------------------------------------------------------
_IRQ1:        
		push r1,r4 to [sp] 
        pop r1,r4 from [sp] 
        reti   
// ---------------------------------------------------------------------------
_IRQ2:        
        push r1,r4 to [sp] 
        pop r1,r4 from [sp] 
        reti          
// ---------------------------------------------------------------------------
_IRQ3:        
        push r1,r4 to [sp] 
        
        pop r1,r4 from [sp] 
        reti          
// ---------------------------------------------------------------------------
_IRQ4:        
        push r1,r4 to [sp] 
        pop r1,r4 from [sp] 
        reti   
// ---------------------------------------------------------------------------
_IRQ5:        
        push r1,r4 to [sp] 
        pop r1,r4 from [sp] 
        reti          
// ---------------------------------------------------------------------------
_IRQ6:        
        push r1,r4 to [sp] 
        pop r1,r4 from [sp] 
        reti          
// ---------------------------------------------------------------------------
_IRQ7:        
        push r1,r4 to [sp] 
        pop r1,r4 from [sp] 
        reti          
// ---------------------------------------------------------------------------
        

⌨️ 快捷键说明

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