$(SIZE) $@
clean:
- rm -f *.o *.elf *.s19 *.b *.a rom.tar.bz2 romsrc.c crctab.h
+ rm -f *.o *.elf *.s19 *.b *.a rom.tar.bz2 romsrc.c crctab.h m68hc11-gdb
#
# Some useful rules
rom.tar.bz2:
rm -f romsrc.c crctab.h
- tar cjf rom.tar.bz2 README Makefile *.c *.h *.s *.x
+ tar cjf rom.tar.bz2 README Makefile gdbsimrc *.c *.h *.s *.x
romsrc.c: rom.tar.bz2
perl -w src2c.pl < $< > $@
.elf.b:
$(OBJCOPY) --output-target=binary --gap-fill=255 \
$(OBJCOPY_FLAGS) $< $*.b
+
+m68hc11-gdb: /usr/bin/m68hc11-gdb
+ sed -e 's|m68hc11eepr/reg 0xb000 512|m68hc11eepr/reg 0x4000 1 |' < $< > $@
+ chmod 755 $@
+
+sim: m68hc11-gdb rom2.elf
+ ./m68hc11-gdb -x gdbsimrc rom2.elf