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

Comparing BasiliskII/src/video.cpp (file contents):
Revision 1.12 by gbeauche, 2001-06-28T21:36:46Z vs.
Revision 1.13 by cebix, 2001-06-29T12:51:20Z

# Line 31 | Line 31
31   #include "cpu_emulation.h"
32   #include "main.h"
33   #include "macos_util.h"
34 + #include "slot_rom.h"
35   #include "video.h"
36   #include "video_defs.h"
37  
# Line 349 | Line 350 | int16 VideoDriverControl(uint32 pb, uint
350                                  Execute68kTrap(0xa06e, &r);     // SRsrcInfo()
351                                  uint32 rsrc = ReadMacInt32(sp + spPointer);
352  
353 <                                // Patch minorBase
353 >                                // Patch minorBase (otherwise rebooting won't work)
354                                  WriteMacInt8(sp + spID, 0x0a); // minorBase
355                                  r.d[0] = 0x0006;
356                                  Execute68kTrap(0xa06e, &r); // SFindStruct()
# Line 375 | Line 376 | int16 VideoDriverControl(uint32 pb, uint
376                                  ROMBaseHost[p + 16] = i->x >> 8;
377                                  ROMBaseHost[p + 17] = i->x;
378  
379 +                                // Recalculate slot ROM checksum
380 +                                ChecksumSlotROM();
381 +
382                                  // Update sResource
383                                  WriteMacInt8(sp + spID, ReadMacInt8(dce + dCtlSlotId));
384                                  r.d[0] = 0x002b;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines