;"start.mar" for startup routine ; 1998.08.27 by ckuma ; 2000.05.02 by kuma for encdec .cpu 300ha:20 .import _main,_TimerInterrupt,_SLRInterrupt,_SLSInterrupt ; ramend: .equ h'fff10 ;fff0f+1 ; .section vect,data,locate=h'0 ;ベクタ領域 .data.l init ;リセットベクタ ; .org h'50 .data.l _TimerInterrupt ; /* sciSL int vect : SCI0:h'd0 SCI1:h'e0*/ .org h'e0 .data.l _SLRInterrupt .data.l _SLRInterrupt .data.l _SLSInterrupt .data.l _SLSInterrupt .org h'100 ;初期設定領域(-h'1ff) init: mov.l #ramend,er7 ;スタックポインタ設定 ldc #0,ccr ;Clear interrupt mask bit(permition of interrupt),not use UI bit ; jmp @_main ;Cのメインルーチンへ ; .end