ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/rom_patches.cpp
(Generate patch)

Comparing BasiliskII/src/rom_patches.cpp (file contents):
Revision 1.3 by cebix, 1999-10-05T19:10:24Z vs.
Revision 1.4 by cebix, 1999-10-12T20:00:45Z

# Line 146 | Line 146 | again:
146  
147   static const uint8 sony_driver[] = {    // Replacement for .Sony driver
148          // Driver header
149 <        SonyDriverFlags >> 8, SonyDriverFlags & 0xff, SonyDriverDelay >> 8, SonyDriverDelay & 0xff, 0x00, 0x00, 0x00, 0x00,
149 >        SonyDriverFlags >> 8, SonyDriverFlags & 0xff, 0, 0, 0, 0, 0, 0,
150          0x00, 0x18,                                                     // Open() offset
151          0x00, 0x1c,                                                     // Prime() offset
152          0x00, 0x20,                                                     // Control() offset
# Line 194 | Line 194 | static const uint8 sony_driver[] = {   //
194  
195   static const uint8 disk_driver[] = {    // Generic disk driver
196          // Driver header
197 <        DiskDriverFlags >> 8, DiskDriverFlags & 0xff, DiskDriverDelay >> 8, DiskDriverDelay & 0xff, 0x00, 0x00, 0x00, 0x00,
197 >        DiskDriverFlags >> 8, DiskDriverFlags & 0xff, 0, 0, 0, 0, 0, 0,
198          0x00, 0x18,                                                     // Open() offset
199          0x00, 0x1c,                                                     // Prime() offset
200          0x00, 0x20,                                                     // Control() offset
# Line 242 | Line 242 | static const uint8 disk_driver[] = {   //
242  
243   static const uint8 cdrom_driver[] = {   // CD-ROM driver
244          // Driver header
245 <        CDROMDriverFlags >> 8, CDROMDriverFlags & 0xff, CDROMDriverDelay >> 8, CDROMDriverDelay & 0xff, 0x00, 0x00, 0x00, 0x00,
245 >        CDROMDriverFlags >> 8, CDROMDriverFlags & 0xff, 0, 0, 0, 0, 0, 0,
246          0x00, 0x1c,                                                     // Open() offset
247          0x00, 0x20,                                                     // Prime() offset
248          0x00, 0x24,                                                     // Control() offset
# Line 555 | Line 555 | void InstallDrivers(uint32 pb)
555          uint32 dce = ReadMacInt32(r.a[0]);
556          WriteMacInt32(dce + dCtlDriver, ROMBaseMac + sony_offset + 0x100);
557          WriteMacInt16(dce + dCtlFlags, DiskDriverFlags);
558        WriteMacInt16(dce + dCtlDelay, DiskDriverDelay);
558  
559          // Open disk driver
560          WriteMacInt32(pb + ioNamePtr, ROMBaseMac + sony_offset + 0x112);
# Line 574 | Line 573 | void InstallDrivers(uint32 pb)
573                  dce = ReadMacInt32(r.a[0]);
574                  WriteMacInt32(dce + dCtlDriver, ROMBaseMac + sony_offset + 0x200);
575                  WriteMacInt16(dce + dCtlFlags, CDROMDriverFlags);
577                WriteMacInt16(dce + dCtlDelay, CDROMDriverDelay);
576  
577                  // Open CD-ROM driver
578                  WriteMacInt32(pb + ioNamePtr, ROMBaseMac + sony_offset + 0x212);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines