summaryrefslogtreecommitdiff
path: root/src/regression/rt.sh
blob: c25636751b949ca5d9e87d426e1e952b2ea19fd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# test Script

USAGE="Usage: `basename $0` BASENAME"

if [ $# -lt 1 ] ; then
  echo "$USAGE"
  exit 1
fi

# compile

../../bin/sdcc -I ../../device/include/pic -c -mpic14 -pp16f877 $1.c


# create the executable

gplink --map -c -o $1.o $1.o
./create_stc $1.cod $1.stc

./simulate $1.stc garbage.log