From 2bcde59a1f56e4fb879a14f1a18d416e82e37eeb Mon Sep 17 00:00:00 2001 From: Zane Kaminski Date: Thu, 2 Jul 2020 01:06:41 -0400 Subject: [PATCH] Removed boot patch --- Makefile | 4 ---- entry.s | 18 +----------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 9e1c222..e7ad809 100644 --- a/Makefile +++ b/Makefile @@ -47,10 +47,6 @@ bin/driver.bin: bin obj/driver.o bin/rom.bin: baserom.bin RDisk1M5-6.dsk bin bin/driver.bin obj/driver_abs.sym obj/entry_rel.sym cp baserom.bin $@ # Copy base rom - # Patch boot - printf '\x4E' | dd of=$@ bs=1 seek=5888 count=1 conv=notrunc # Copy JSR opcode into IsFloppy boot routine - printf '\xF9' | dd of=$@ bs=1 seek=5889 count=1 conv=notrunc # Copy JSR opcode second byte - cat obj/driver_abs.sym | grep "BootCheckEntry" | cut -c1-8 | xxd -r -p - | dd of=$@ bs=1 seek=5890 count=4 conv=notrunc # Patch driver dd if=bin/driver.bin of=$@ bs=1 seek=335248 skip=32 conv=notrunc # Copy driver code printf '\x78' | dd of=$@ bs=1 seek=335168 count=1 conv=notrunc # Set resource flags diff --git a/entry.s b/entry.s index d8caacc..f795239 100644 --- a/entry.s +++ b/entry.s @@ -7,25 +7,9 @@ dc.l 0x00000000, 0x00000000, 0x00000000, 0x00000000 dc.l 0x00000000, 0x00000000, 0x00000000, 0x00000000 -.ascii "\9GWROMDisk\0" +.ascii "\RDisk\0" .align 4 -BootCheckEntry: - * Boot if reference number == -5 - cmp #-5, 8(%A2) - beq.b BootCheckRet - * Otherwise don't boot if reference number != -50 - cmp #-50, 8(%A2) - bne.b BootCheckRet - * Call to check PRAM - movem.l %A0-%A7/%D0-%D7, -(%SP) - jsr RDiskBootCheckPRAM - cmp #0, %D0 - movem.l (%SP)+, %A0-%A7/%D0-%D7 -BootCheckRet: - rts - jmp BootCheckEntry - DOpen: movem.l %A0-%A1, -(%SP) bsr RDiskOpen