mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-21 12:30:49 +00:00
Removed boot patch
This commit is contained in:
parent
04e1914353
commit
2bcde59a1f
4
Makefile
4
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
|
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
18
entry.s
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user