cd ../3b_sim; ./sim -f ../3_test/$ARG2
}
+runasmsim() {
+ if [ "$ARG2" == "" ]; then
+ echo "runasm: please provide a assembler file"
+ exit 1
+ fi
+ ../3a_asm/dtas < $ARG2 > ${ARG2%.s}.dthex
+ cd ../3b_sim; ./sim -f ../3_test/${ARG2%.s}.dthex
+}
+
case $1 in
clean) cleantools;;
build) buildtools;;
asm) runasm;;
sim) runsim;;
+ asmsim) runasmsim;;
*) echo "first argument must be clean|build|asm <file>|sim <file>"
esac