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 |
|
|
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() |
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; |