mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-22 03:30:58 +00:00
PRAM stuff works. Need to write CP next
This commit is contained in:
parent
87d77d5005
commit
76d119898e
BIN
bin/driver.bin
BIN
bin/driver.bin
Binary file not shown.
BIN
bin/rom.bin
BIN
bin/rom.bin
Binary file not shown.
8
rdisk.c
8
rdisk.c
@ -145,15 +145,15 @@ OSErr RDiskInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
|
|||||||
c->init_done = 1;
|
c->init_done = 1;
|
||||||
|
|
||||||
// Read PRAM
|
// Read PRAM
|
||||||
/*RDiskReadXPRAM(1, 4, &startup);
|
RDiskReadXPRAM(1, 4, &startup);
|
||||||
RDiskReadXPRAM(1, 5, &ram);*/
|
RDiskReadXPRAM(1, 5, &ram);
|
||||||
|
|
||||||
// Either enable ROM disk or remove ourselves from the drive queue
|
// Either enable ROM disk or remove ourselves from the drive queue
|
||||||
if (/*startup || */RDiskIsRPressed()) { // If ROM disk boot set in PRAM or R pressed,*/
|
if (startup || RDiskIsRPressed()) { // If ROM disk boot set in PRAM or R pressed,*/
|
||||||
// Set ROM disk attributes
|
// Set ROM disk attributes
|
||||||
c->status.writeProt = -1; // Set write protected
|
c->status.writeProt = -1; // Set write protected
|
||||||
// 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()) {
|
||||||
// Try to allocate RAM disk buffer
|
// Try to allocate RAM disk buffer
|
||||||
if (*MMU32bit) { // 32-bit mode
|
if (*MMU32bit) { // 32-bit mode
|
||||||
unsigned long minBufPtr, newBufPtr;
|
unsigned long minBufPtr, newBufPtr;
|
||||||
|
Loading…
Reference in New Issue
Block a user