Fix PutScrap() patch with Mac Classic ROMs. Untested but it should work

again provided you build with --enable-addressing=banks
This commit is contained in:
gbeauche 2006-04-30 17:27:55 +00:00
parent c9ae122d1b
commit 8fa12f4819
2 changed files with 6 additions and 4 deletions

View File

@ -236,9 +236,11 @@ void EmulOp(uint16 opcode, M68kRegisters *r)
// Install PutScrap() patch
M68kRegisters r;
if (PutScrapPatch) {
r.d[0] = 0xa9fe;
r.a[0] = PutScrapPatch;
Execute68kTrap(0xa647, &r); // SetToolTrap()
}
// Install GetScrap() patch
if (GetScrapPatch) {

View File

@ -40,7 +40,7 @@
// Global variables
uint32 UniversalInfo; // ROM offset of UniversalInfo
uint32 PutScrapPatch; // Mac address of PutScrap() patch
uint32 PutScrapPatch = 0; // Mac address of PutScrap() patch
uint32 GetScrapPatch = 0; // Mac address of GetScrap() patch
uint32 ROMBreakpoint = 0; // ROM offset of breakpoint (0 = disabled, 0x2310 = CritError)
bool PrintROMInfo = false; // Flag: print ROM information in PatchROM()