6 make -C ../3a_asm clean
7 make -C ../3b_sim clean
8 make -C ../3c_disasm clean
13 make -C ../3a_asm -j3 all
14 make -C ../3b_sim -j3 all
18 if [ "$ARG2" == "" ]; then
19 echo "runasm: please provide a assembler file"
22 ../3a_asm/dtas < $ARG2 > ${ARG2%.s}.dthex
26 if [ "$ARG2" == "" ]; then
27 echo "runsim: please provide a dthex file"
30 cd ../3b_sim; ./sim -f ../3_test/$ARG2
34 if [ "$ARG2" == "" ]; then
35 echo "runasm: please provide a assembler file"
38 ../3a_asm/dtas < $ARG2 > ${ARG2%.s}.dthex
39 cd ../3b_sim; ./sim -f ../3_test/${ARG2%.s}.dthex
48 *) echo "first argument must be clean|build|asm <file.s>|sim <file.dthex>|asmsim <file.s>"