English
Language : 

SH7750_08 Datasheet, PDF (932/1162 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
Section 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.7.00 Oct. 10, 2008 Page 848 of 1074
REJ09B0366-0700