#!/bin/csh # # This script assembles and loads a 6811 assembly language # program called umi, change the umi file names to match your project. # # fire up a subshell to supress funky c compile errors. # Run the Gnu C compiler's C preprocessor, cpp, to process the # pound sign directives on the 6811 assembly language file. # echo "running cpp" # # Debian Linux used to include a cpp binary, not currently used. #(cpp umi.asm umicpp.asm) >& /dev/null # # Redhat Linux version uses gcc to run cpp. (gcc -x c -E umi.asm > /tmp/umicpp.asm) >& /dev/null echo assembling if { ~/bin/as11 /tmp/umicpp.asm } then echo the assemble worked, loading ~/bin/buf -f ./umicpp.s19 -p /dev/ttyS0 -s rm /tmp/umicpp.asm mv /tmp/umicpp.s19 . else echo the assemble failed endif # # Notes: # # To create a binary image file (umicpp.obj): #~/bin/as11 umicpp.asm -b # # [not used, see binary image] To create a hex file: #~/bin/as11 umicpp.asm -h # # Addresses for upp512 (DOS Eprom programmer) with umicpp.obj # #buffer 0000 #start E000 #up to FFFF #eprom 0000