8MB driver working

This commit is contained in:
Zane Kaminski 2020-08-09 21:41:09 -04:00
parent 28552e92b5
commit 9390716fa0
6 changed files with 11 additions and 1 deletions

View File

@ -8,7 +8,7 @@ LD=$(RETRO68)/bin/m68k-apple-macos-ld
OBJCOPY=$(RETRO68)/bin/m68k-apple-macos-objcopy
OBJDUMP=$(RETRO68)/bin/m68k-apple-macos-objdump
all: bin/rom2M.bin bin/rom8M.bin obj/rdisk1M5.s obj/rdisk7M5.s obj/driver1M5.s obj/driver7M5.s obj/entry_rel.sym obj/driver_abs.sym
all: bin/rom16M_swap.bin obj/rdisk1M5.s obj/rdisk7M5.s obj/driver1M5.s obj/driver7M5.s obj/entry_rel.sym obj/driver_abs.sym
obj:
mkdir obj
@ -86,6 +86,16 @@ bin/rom8M.bin: baserom.bin RDisk7M5.dsk bin bin/driver7M5.bin obj/driver_abs.sym
cat obj/entry_rel.sym | grep "DClose" | cut -c5-8 | xxd -r -p - | dd of=$@ bs=1 seek=335232 count=2 conv=notrunc
dd if=RDisk7M5.dsk of=$@ bs=1024 seek=512 count=7680 conv=notrunc # copy disk image
bin/rom8M_swap.bin: bin/rom8M.bin
dd if=bin/rom8M.bin of=$@ conv=swab # swap bytes
bin/rom2M_swap.bin: bin/rom2M.bin
dd if=bin/rom2M.bin of=$@ conv=swab # swap bytes
bin/rom16M_swap.bin: bin/rom2M_swap.bin bin/rom8M_swap.bin
cat bin/rom8M_swap.bin > $@
cat bin/rom2M_swap.bin >> $@
.PHONY: clean
clean:

BIN
bin/rom16M_swap.bin Normal file

Binary file not shown.

Binary file not shown.

BIN
bin/rom2M_swap.bin Normal file

Binary file not shown.

Binary file not shown.

BIN
bin/rom8M_swap.bin Normal file

Binary file not shown.