mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-12 16:30:44 +00:00
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:
parent
c9ae122d1b
commit
8fa12f4819
@ -236,9 +236,11 @@ void EmulOp(uint16 opcode, M68kRegisters *r)
|
|||||||
|
|
||||||
// Install PutScrap() patch
|
// Install PutScrap() patch
|
||||||
M68kRegisters r;
|
M68kRegisters r;
|
||||||
r.d[0] = 0xa9fe;
|
if (PutScrapPatch) {
|
||||||
r.a[0] = PutScrapPatch;
|
r.d[0] = 0xa9fe;
|
||||||
Execute68kTrap(0xa647, &r); // SetToolTrap()
|
r.a[0] = PutScrapPatch;
|
||||||
|
Execute68kTrap(0xa647, &r); // SetToolTrap()
|
||||||
|
}
|
||||||
|
|
||||||
// Install GetScrap() patch
|
// Install GetScrap() patch
|
||||||
if (GetScrapPatch) {
|
if (GetScrapPatch) {
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
uint32 UniversalInfo; // ROM offset of UniversalInfo
|
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 GetScrapPatch = 0; // Mac address of GetScrap() patch
|
||||||
uint32 ROMBreakpoint = 0; // ROM offset of breakpoint (0 = disabled, 0x2310 = CritError)
|
uint32 ROMBreakpoint = 0; // ROM offset of breakpoint (0 = disabled, 0x2310 = CritError)
|
||||||
bool PrintROMInfo = false; // Flag: print ROM information in PatchROM()
|
bool PrintROMInfo = false; // Flag: print ROM information in PatchROM()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user