mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2025-02-19 10:30:45 +00:00
RAM disk seems to work too
but only 32-bit mode tested for RAM and ROM disk. Need to test RAM and ROM disk in 24-bit mode next
This commit is contained in:
parent
0380b7f819
commit
b9f83090ee
BIN
bin/driver.bin
BIN
bin/driver.bin
Binary file not shown.
BIN
bin/rom.bin
BIN
bin/rom.bin
Binary file not shown.
4
rdisk.c
4
rdisk.c
@ -93,7 +93,7 @@ OSErr RDiskInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
|
|||||||
c->ramdisk_alloc = NULL;
|
c->ramdisk_alloc = NULL;
|
||||||
c->ramdisk_valid = 0;
|
c->ramdisk_valid = 0;
|
||||||
// If RAM disk set in PRAM or A pressed, enable RAM disk
|
// If RAM disk set in PRAM or A pressed, enable RAM disk
|
||||||
/*if (ram || RDiskISAPressed()) {
|
if (ram || RDiskIsAPressed()) {
|
||||||
unsigned long minBufPtr, newBufPtr;
|
unsigned long minBufPtr, newBufPtr;
|
||||||
// Clearing write protect marks RAM disk enabled
|
// Clearing write protect marks RAM disk enabled
|
||||||
c->drvsts.writeProt = 0;
|
c->drvsts.writeProt = 0;
|
||||||
@ -111,7 +111,7 @@ OSErr RDiskInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
|
|||||||
// Enable accRun to allocate and copy later
|
// Enable accRun to allocate and copy later
|
||||||
d->dCtlFlags |= dNeedTimeMask;
|
d->dCtlFlags |= dNeedTimeMask;
|
||||||
d->dCtlDelay = 0x10;
|
d->dCtlDelay = 0x10;
|
||||||
}*/
|
}
|
||||||
return noErr;
|
return noErr;
|
||||||
} else { // Otherwise if R not held down and ROM boot not set in PRAM,
|
} else { // Otherwise if R not held down and ROM boot not set in PRAM,
|
||||||
// Remove our driver from the drive queue
|
// Remove our driver from the drive queue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user