mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2025-02-21 09:29:41 +00:00
...
This commit is contained in:
parent
d1397fd8b8
commit
90c3a3689f
Binary file not shown.
BIN
bin/rom8M.bin
BIN
bin/rom8M.bin
Binary file not shown.
2
entry.s
2
entry.s
@ -29,7 +29,7 @@ dc.l 0x40892C96
|
|||||||
RDiskDBGDisByte:
|
RDiskDBGDisByte:
|
||||||
dc.b 0x44
|
dc.b 0x44
|
||||||
RDiskCDRDisByte:
|
RDiskCDRDisByte:
|
||||||
dc.b 0x44
|
dc.b 0x67
|
||||||
RDiskRAMRequired:
|
RDiskRAMRequired:
|
||||||
.ascii "16"
|
.ascii "16"
|
||||||
|
|
||||||
|
6
rdisk.c
6
rdisk.c
@ -164,10 +164,12 @@ static void RDInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
|
|||||||
|
|
||||||
// Patch debug and CD-ROM enable bytes
|
// Patch debug and CD-ROM enable bytes
|
||||||
if (c->ramdisk) {
|
if (c->ramdisk) {
|
||||||
|
Ptr pos = c->ramdisk + 0x00000031UL;
|
||||||
char patch = *((char*)0x40851DA8);
|
char patch = *((char*)0x40851DA8);
|
||||||
if (!dbgEN /*&& *RDiskDBGDisPos >= 0*/) { patch24(c->ramdisk + 0x00000031UL, patch); }
|
if (!dbgEN /*&& *RDiskDBGDisPos >= 0*/) { patch24(pos, patch); }
|
||||||
|
pos = c->ramdisk + 0x00012CAFUL;
|
||||||
patch = *((char*)0x40851DA9);
|
patch = *((char*)0x40851DA9);
|
||||||
if (!cdrEN /*&& *RDiskCDRDisPos >= 0*/) { patch24(c->ramdisk + 0x00012CAFUL, patch); }
|
if (!cdrEN /*&& *RDiskCDRDisPos >= 0*/) { patch24(pos, patch); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unmount if not booting from ROM disk
|
// Unmount if not booting from ROM disk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user