in2out 1.09 KB
#!/bin/csh
if ($#argv != 1) then
        echo "usage: in2out <file>"
        exit 1
endif
if (-r VU_AVP.h) then
else
   ln -s $ROOT/PR/rspsim/vuregre/src/include/VU_AVP.h .
endif

if ( -r $1.in ) then
	rm $1.s $1.out $1.lst $1.dat $1.inlst
	echo "running d2asm on $1.in"
        $ROOT/PR/rspsim/vuregre/bin/d2asm $1.in $1.s $1.inlst
else
        echo " file $1.in does not exists "
endif

if ( -r $1.s ) then
	echo "running rspasm on $1.s"
        $ROOT/PR/rspasm1201/rspasm -b 0 $1.s 
	mv a.out $1.out
	mv a.out.lst $1.lst
	mv a.out.dat $1.dat
else
        echo " file $1.s does not exists "
endif

echo "load $1.out     0x10002000" > $1.tsk
echo "load $1.dat 0x10000000"     >> $1.tsk
#echo "dep pc 0x10002000         " >> $1.tsk
echo "dep pc 0x0	         " >> $1.tsk
echo "dep ctl 0x0               " >> $1.tsk

echo "load $1.out     0x10002000" > $1.rtsk
echo "load $1.dat 0x10000000"     >> $1.rtsk
#echo "dep pc 0x10002000         " >> $1.rtsk
echo "dep pc 0x0	         " >> $1.rtsk
echo "dep ctl 0x0               " >> $1.rtsk
echo "run " 			  >> $1.rtsk
echo "vreg " 			  >> $1.rtsk
echo "reg " 			  >> $1.rtsk