-#!/bin/bash -x
+#!/bin/bash
ARG2=$2
../3a_asm/dtas < $ARG2 > ${ARG2%.s}.dthex
}
+runasmbin() {
+ if [ "$ARG2" == "" ]; then
+ echo "runasm: please provide a assembler file"
+ exit 1
+ fi
+ ../3a_asm/dtas -b < $ARG2 > ${ARG2%.s}_bin.dthex
+}
+
runsim() {
if [ "$ARG2" == "" ]; then
echo "runsim: please provide a dthex file"
clean) cleantools;;
build) buildtools;;
asm) runasm;;
+ asmbin) runasmbin;;
sim) runsim;;
asmsim) runasmsim;;
- *) echo "first argument must be clean|build|asm <file.s>|sim <file.dthex>|asmsim <file.s>"
+ *) echo "first argument must be clean|build|"
+ echo "asm <file.s>|asmbin <file.s>|"
+ echo "sim <file.dthex>|asmsim <file.s>"
esac