qasm/single.sh

20 lines
387 B
Bash
Raw Permalink Normal View History

2023-02-09 03:47:55 +00:00
#!/bin/bash
FNAME=2007-labels-and-symbols
if [ "$1""L" != "L" ] ; then
FNAME=$1
fi
cp testdata/$FNAME.S /tmp
cd /tmp
OUTNAME=/tmp/compare.txt
2023-02-09 03:47:55 +00:00
merlin32 -V ${FNAME}.S >/dev/null
cat ${FNAME}_Output.txt >OUTNAME
cat ${FNAME}_Output.txt
2023-02-09 03:47:55 +00:00
qasm ${FNAME}.S -t merlin32 -i M65816 -o 0/${FNAME}.S.bin
qasm ${FNAME}.S -t qasm -i M65816 -o 0/${FNAME}.S_q.bin
vbindiff ${FNAME} ${FNAME}.S.bin