@echo " PROG $<"
../tools/dtprog.py $< $(DPROGFLAGS)
+%.s_pre_sim: %.s dt_inc.s
+ @echo " PRESIM $<"
+ gcc -x c -E -C -P -DDTSIM $< > $@
+
+%.dthex_sim: %.s_pre_sim
+ @echo " ASMSIM $<"
+ ../3a_asm/dtas < $< > $@
+
+fibmmem.sim:
+%.sim: %.dthex_sim
+ @echo " SIM $<"
+ cd ../3b_sim/; ./sim -f ../progs/$<
+
.PHONY: clean
clean:
- rm -rf *.dthex *.s_pre
+ rm -rf *.dthex *.s_pre *.dthex_sim *.s_pre_sim