in2out
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/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/rspasm/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