# this tests the various assemblers against pre-assembled instruction lists # in the ref sub-directory function testit() { echo -n "Testing $1:" ../src/asmx -l -o -w -e -C $1 $1.asm >/dev/null 2>&1 diff -q $1.asm.hex ref/$1.asm.hex if [ $? -ne 0 ]; then echo " FAIL" else echo " pass" rm $1.asm.hex rm $1.asm.lst fi } echo "" testit 65c02 testit 68hc11 testit 68hc16 testit 68k testit 1802 testit 6303 testit 6502 testit 6502u testit 65c02 testit 6800 testit 6801 testit 6809 testit 8048 testit 8051 testit 8085u testit f8 testit gbz80 testit z80 echo ""