diff --git a/RomPatcher/Sun3_60FastBoot/Makefile b/RomPatcher/Sun3_60FastBoot/Makefile new file mode 100644 index 0000000..c73caa2 --- /dev/null +++ b/RomPatcher/Sun3_60FastBoot/Makefile @@ -0,0 +1,41 @@ +RETRO68=/home/dolbeau/Retro68/build/toolchain +AS=${RETRO68}/bin/m68k-apple-macos-as +CC=${RETRO68}/bin/m68k-apple-macos-gcc +LD=${RETRO68}/bin/m68k-apple-macos-ld +STRIP=${RETRO68}/bin/m68k-apple-macos-strip +OBJCOPY=${RETRO68}/bin/m68k-apple-macos-objcopy +NM=${RETRO68}/bin/m68k-apple-macos-nm + +HOSTCC=gcc +HOSTCFLAGS=-O2 + +ARCHFLAGS=-march=68020 -mcpu=68020 +CFLAGS=-O2 -mpcrel + +GENLINK=../patcher/genlink +PATCHER=../patcher/patcher + +all: sun3_60_v1.9.bin + +show: rompatch.elf + $(NM) $< | sort + +sun3_60_v1.9.bin: ../ rompatch.raw input.txt + /bin/cp ../Sun3_60NoParity/sun3_60_v1.9.bin sun3_60_v1.9.bin + ${PATCHER} -i rompatch.raw -p sun3_60_v1.9.bin -d input.txt + +linker.ld: input.txt rompatch.s + ${GENLINK} -d $< >| $@ + echo $(shell for X in `grep .section rompatch.s | awk '{ print $$2 }' `; do grep -q $$X linker.ld || echo " $$X has no entry in linker.ld" && /bin/false; done) + +rompatch.o: rompatch.s + ${AS} ${ARCHFLAGS} $< -o $@ -a > rompatch.l + +rompatch.elf: linker.ld rompatch.o ${CSRC:.c=.o} # linker script must be first + ${LD} -o $@ -T $^ + +rompatch.raw: rompatch.elf + ${OBJCOPY} $^ $@ --input-target=elf32-m68k --output-target=binary + +clean: + rm -f res.inc ${CSRC_ASM} *.o rompatch.srec rompatch.raw rompatch.dir rompatch.l linker.ld rompatch.elf diff --git a/RomPatcher/Sun3_60FastBoot/README.MD b/RomPatcher/Sun3_60FastBoot/README.MD new file mode 100644 index 0000000..582282c --- /dev/null +++ b/RomPatcher/Sun3_60FastBoot/README.MD @@ -0,0 +1 @@ +Patches to the V1.9 ROM of the Sun3/60, that cuts down on some waoting time to speed-up simulation. Based on the NoParity version, so simulation don't need to implement all of the parity stuff, either. \ No newline at end of file diff --git a/RomPatcher/Sun3_60FastBoot/input.txt b/RomPatcher/Sun3_60FastBoot/input.txt new file mode 100644 index 0000000..759d2d5 --- /dev/null +++ b/RomPatcher/Sun3_60FastBoot/input.txt @@ -0,0 +1,2 @@ +0x01e4e, 2, loweritercount +0x02d5c, 2, loweritercount2 diff --git a/RomPatcher/Sun3_60FastBoot/rompatch.s b/RomPatcher/Sun3_60FastBoot/rompatch.s new file mode 100644 index 0000000..33ee930 --- /dev/null +++ b/RomPatcher/Sun3_60FastBoot/rompatch.s @@ -0,0 +1,7 @@ + .section .text.loweritercount +loweritercount: + .short 2 + + .section .text.loweritercount2 +loweritercount2: + .short 2