mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-25 17:29:19 +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
|
||||
M68kRegisters r;
|
||||
if (PutScrapPatch) {
|
||||
r.d[0] = 0xa9fe;
|
||||
r.a[0] = PutScrapPatch;
|
||||
Execute68kTrap(0xa647, &r); // SetToolTrap()
|
||||
}
|
||||
|
||||
// Install GetScrap() patch
|
||||
if (GetScrapPatch) {
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user