Skip to content
Snippets Groups Projects
Commit 8582cbf7 authored by Bernard Blackham's avatar Bernard Blackham
Browse files

Magic support for simulator.

parent 281f7ec4
No related merge requests found
...@@ -41,7 +41,7 @@ rom2.elf: $(OBJS) memory.x ...@@ -41,7 +41,7 @@ rom2.elf: $(OBJS) memory.x
$(SIZE) $@ $(SIZE) $@
clean: 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 # Some useful rules
...@@ -54,7 +54,7 @@ size: rom2.s19 ...@@ -54,7 +54,7 @@ size: rom2.s19
rom.tar.bz2: rom.tar.bz2:
rm -f romsrc.c crctab.h 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 romsrc.c: rom.tar.bz2
perl -w src2c.pl < $< > $@ perl -w src2c.pl < $< > $@
...@@ -82,3 +82,10 @@ crctab.h: gencrctab ...@@ -82,3 +82,10 @@ crctab.h: gencrctab
.elf.b: .elf.b:
$(OBJCOPY) --output-target=binary --gap-fill=255 \ $(OBJCOPY) --output-target=binary --gap-fill=255 \
$(OBJCOPY_FLAGS) $< $*.b $(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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment