Removed boot patch

This commit is contained in:
Zane Kaminski 2020-07-02 01:06:41 -04:00
parent 04e1914353
commit 2bcde59a1f
2 changed files with 1 additions and 21 deletions

View File

@ -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 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 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 # Patch driver
dd if=bin/driver.bin of=$@ bs=1 seek=335248 skip=32 conv=notrunc # Copy driver code 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 printf '\x78' | dd of=$@ bs=1 seek=335168 count=1 conv=notrunc # Set resource flags

18
entry.s
View File

@ -7,25 +7,9 @@
dc.l 0x00000000, 0x00000000, 0x00000000, 0x00000000 dc.l 0x00000000, 0x00000000, 0x00000000, 0x00000000
dc.l 0x00000000, 0x00000000, 0x00000000, 0x00000000 dc.l 0x00000000, 0x00000000, 0x00000000, 0x00000000
.ascii "\9GWROMDisk\0" .ascii "\RDisk\0"
.align 4 .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: DOpen:
movem.l %A0-%A1, -(%SP) movem.l %A0-%A1, -(%SP)
bsr RDiskOpen bsr RDiskOpen