

uMIPS.bin: uMIPS_page0.bin uMIPS_page1.bin
	cat uMIPS_page0.bin > $@
	truncate -s 4096 $@
	cat uMIPS_page1.bin >> $@
	truncate -s 8192 $@

%.bin: %.hex
	objcopy -I ihex -O binary $< $@

%.hex: %.asm
	a04 $< -l $^.lst -o $@


showerrors:
	cat *.lst | grep -e "^[A-Z]"
