mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2025-02-16 05:33:00 +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_valid = 0;
|
||||
// If RAM disk set in PRAM or A pressed, enable RAM disk
|
||||
/*if (ram || RDiskISAPressed()) {
|
||||
if (ram || RDiskIsAPressed()) {
|
||||
unsigned long minBufPtr, newBufPtr;
|
||||
// Clearing write protect marks RAM disk enabled
|
||||
c->drvsts.writeProt = 0;
|
||||
@ -111,7 +111,7 @@ OSErr RDiskInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
|
||||
// Enable accRun to allocate and copy later
|
||||
d->dCtlFlags |= dNeedTimeMask;
|
||||
d->dCtlDelay = 0x10;
|
||||
}*/
|
||||
}
|
||||
return noErr;
|
||||
} else { // Otherwise if R not held down and ROM boot not set in PRAM,
|
||||
// Remove our driver from the drive queue
|
||||
|
Loading…
x
Reference in New Issue
Block a user