mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-22 03:30:58 +00:00
Swap copy operands in init just to try
This commit is contained in:
parent
40007cfa47
commit
e70abd2ce5
Binary file not shown.
BIN
bin/rom8M.bin
BIN
bin/rom8M.bin
Binary file not shown.
8
rdisk.c
8
rdisk.c
@ -146,8 +146,8 @@ static void RDInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
|
|||||||
c->status.writeProt = 0;
|
c->status.writeProt = 0;
|
||||||
|
|
||||||
// Patch debug and CD-ROM enable bytes
|
// Patch debug and CD-ROM enable bytes
|
||||||
BlockMove(&dis/*RDiskDBGDisByte*/, &c->ramdisk[*RDiskDBGDisPos], 1);
|
BlockMove(&c->ramdisk[*RDiskDBGDisPos], &dis, 1);
|
||||||
BlockMove(&dis/*RDiskCDROMDisByte*/, &c->ramdisk[*RDiskCDROMDisPos], 1);
|
BlockMove(&c->ramdisk[*RDiskCDROMDisPos], &dis, 1);
|
||||||
}
|
}
|
||||||
} else { // 24-bit mode
|
} else { // 24-bit mode
|
||||||
// Put RAM disk just past 8MB
|
// Put RAM disk just past 8MB
|
||||||
@ -161,8 +161,8 @@ static void RDInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
|
|||||||
// That's not the worst, since the system would just crash,
|
// That's not the worst, since the system would just crash,
|
||||||
// but it would be better to switch to read-only status
|
// but it would be better to switch to read-only status
|
||||||
// Patch debug and CD-ROM enable bytes
|
// Patch debug and CD-ROM enable bytes
|
||||||
copy24(&dis/*RDiskDBGDisByte*/, &c->ramdisk[*RDiskDBGDisPos], 1);
|
copy24(&c->ramdisk[*RDiskDBGDisPos], &dis, 1);
|
||||||
copy24(&dis/*RDiskCDROMDisByte*/, &c->ramdisk[*RDiskCDROMDisPos], 1);
|
copy24(&c->ramdisk[*RDiskCDROMDisPos], &dis, 1);
|
||||||
}
|
}
|
||||||
// Patch debug and CD-ROM enable bytes
|
// Patch debug and CD-ROM enable bytes
|
||||||
//if (!c->dbgEN) {
|
//if (!c->dbgEN) {
|
||||||
|
Loading…
Reference in New Issue
Block a user