From 8582cbf7464ae68416505c21034ba09fe3d8e78c Mon Sep 17 00:00:00 2001 From: Bernard Blackham Date: Wed, 23 Jun 2004 02:26:45 +0000 Subject: [PATCH] Magic support for simulator. --- ROM2/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ROM2/Makefile b/ROM2/Makefile index 17063d4..a126cf8 100644 --- a/ROM2/Makefile +++ b/ROM2/Makefile @@ -41,7 +41,7 @@ rom2.elf: $(OBJS) memory.x $(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 @@ -54,7 +54,7 @@ size: rom2.s19 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 < $< > $@ @@ -82,3 +82,10 @@ crctab.h: gencrctab .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 -- 2.20.1