#! /bin/sh # Take a .s file and turn it into a .bin file for burning. case $# in 1) ;; *) echo "Usage: $0 basename" 1>&2 echo "eg: $0 test3" 1>&2 exit 1 ;; esac n="$1" main -o "$n".o -l "$n".l "$n".s o-to-s < "$n".o | ~/dcbuild/dc-as -o "$n"bin.o ../../dcbuild/dc-ld -Ttext=0x8c010000 -o "$n".exe "$n"bin.o ../../dcbuild/dc-objcopy -O binary "$n".exe "$n".bin