msbasic/regress.sh

18 lines
510 B
Bash
Raw Normal View History

2008-10-21 06:17:43 +00:00
if [ ! -d orig ]; then
echo Please first run make.sh on the original .s files, create
echo the directory \"orig\", and copy all .bin files from \"tmp\"
echo into \"orig\".
exit;
fi
2014-02-15 02:46:36 +00:00
for i in cbmbasic1 cbmbasic2 kbdbasic osi kb9 applesoft microtan aim65 sym1; do
2008-10-21 06:17:43 +00:00
echo $i
ca65 -D $i msbasic.s -o tmp/$i.o &&
ld65 -C $i.cfg tmp/$i.o -o tmp/$i-new.bin -Ln tmp/$i.lbl &&
xxd -g 1 orig/$i.bin > tmp/$i.bin.txt
xxd -g 1 tmp/$i-new.bin > tmp/$i-new.bin.txt
diff -u tmp/$i.bin.txt tmp/$i-new.bin.txt | head
done