;
;app.dllの開始

define_input app {app1; app2; app3; app4; app5; app6;}

#if @strcmp($app , app2) == 0
define_input endian {BE; LE;}
define_mem 10000 10000 $endian     BA -D2 -f

add_mem_area	RAM 0000 1000 1 RW
add_io_area	IO 0000 100

erase_area RAM	;0xffで埋める
fill -s0  -b @inc(50,0)
fill -p0  -b @inc(50,80)
#endif

#if @strcmp($app , app4) == 0
set_interrupt_name  1 count -T"割込み回数を表示器に"
#endif

#if @strcmp($app , app5) == 0
set_interrupt_name  1 LEFT	-T"LEDを点灯"
set_interrupt_name  2 RIGHT 	-T"LEDを消灯"
#endif

#if @strcmp($app , app6) == 0
set_interrupt_name  1 LEFT	-T"LEDを点灯"
set_interrupt_name  2 RIGHT 	-T"LEDを消灯"
#endif


timerlog OFF
timerscale 1
load $app.dll
reset -t

