📄 amisr_dmac.src
字号:
;
; Copyright (c) Renesas Technology Corp. 2001-2003 All Rights Reserved.
;
; OEM Adaptation Layer
;
; ----------------------------------------------------------------------------
;
; FILE : AMISR_DMAC.SRC
; CREATED : 2001. 7. 5
; MODIFIED : 2003.08.06
; AUTHOR : Renesas Technology Corp.
; HARDWARE : RENESAS US7751-HRP1xC (BigSur with HD64404, ITS-DS2A),
; RENESAS HS7751RSTC01H (S1-E, ITS-DS5)
; TARGET OS : Microsoft(R) Windows(R) CE .NET 4.2
; NOTES :
; FUNCTION : Interrupt service routine for HD64404 DMAC module
; HISTORY :
; 2001. 7. 5
; - Initially created.
; 2002. 1.21
; - Address parameters are modified to refer "HD64404.INC".
; 2002. 5.30
; - Changed to include platform-independent platform include
; file "PLATFORM.INC".
; 2002. 9. 9
; - Header style is changed and file information is added.
; 2002. 9. 26
; - Released
.include "kxshx.h"
.include "oalintr.inc"
.include "platform.inc"
.include "hd64404.inc"
.import _DMA_ISR_TABLE
LEAF_ENTRY HD64404_DMACISR
mov.l #DMA_INTERRUPT_SOURCE, r1
mov.l @r1, r3
mov.l r3, r2
shll16.l r2
mov.l r2, @r1
mov.l #DMA_STATUS, r0
mov.l #0, r1
mov.l r1, @r0
mov #0, r2
BitCheckLoop:
mov #16, r1
cmp/hi.l r2, r1
bf NopExit
shlr r3
bt EndLoop
add #1, r2
bra BitCheckLoop
EndLoop:
nop
mov.l #_DMA_ISR_TABLE, r0
shll2.l r2
add.l r2, r0
mov.l @r0, r2
tst.l r2, r2
bt NopExit
mov.l @r0, r0
jmp @r0
nop
NopExit:
rts
mov #SYSINTR_NOP, r0
ENTRY_END
.end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -