English
Language : 

SH7751 Datasheet, PDF (890/1224 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
19. Interrupt Controller (INTC)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; R0 : tmp
;; R1 : Original SR
;; R2 : Original ICR
;; R3 : ICR Address
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
NMIH:
; (1) Set SR.IMASK = H'F
stc SR, R1 ;
Store SR
mov R1,R0
or
#H'F0,R0
ldc R0, SR
; (2) Reverse ICR.NMIE
mov.l #ICR, R3
mov.w @R3, R2 ;
Store ICR
mov.w #H'0100, R0
xor R2, R0
mov.w R0, @R3 ;
Write ICR.NMIE inverted (dummy)
bra NMIH1
nop
.pool
.align 4
NMIH2:
;
mov.w @R3, R0 ;
dummy read
mov.w R2, @R3 ;
Write ICR.NMIE
stc SR, R0
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R0, SR
ldc R0, SR
Rev.4.00 Oct. 10, 2008 Page 792 of 1122
REJ09B0370-0400