Section 9 Exception Handling
Rev. 4.00 Sep. 14, 2005 Page 217 of 982
REJ09B0023-0400
;-----------------------------------------------------------
; Intialization of sh7641 for power-on reset
;-----------------------------------------------------------
; ATTENTION:
; 1. Please execute below instructions on power-on reset.
; 2. This routine would overwrite the general registers on the CPU.
; 3. Do not modify these codes.
;-----------------------------------------------------------
MOV.L #H'A5007000,R4;
MOV.L #H'A5008000,R5;
MOV.L #H'A5017000,R6;
MOV.L #H'A5018000,R7;
MOV.L @R4,R0;
MOV.L @R5,R0;
MOV.L @R6,R0;
MOV.L @R7,R0;
;
MOV.W #H'FF40,R10;
MOV.L #H'A4FC0000,R8;
MOV #H'10,R9;
MOV.B R10,@R10;
MOV.B R10,@R10;
MOV.B R10,@R10;
MOV.L R9,@R8;
;
MOV.L #H'FC000000,R1;
MOV.W @R1,R0;
;
MOV #H'00,R9;
MOV.B R10,@R10;
MOV.B R10,@R10;
MOV.B R10,@R10;
MOV.L R9,@R8;
;-----------------------------------------------------------