mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-19 19:30:42 +00:00
Don't call FE0A opcode in Shutdown Manager: handle better NewWorld ROMs.
i.e. don't force a "bra" if there was no "beq" beforehand.
This commit is contained in:
parent
f47379e887
commit
d29a00c17f
@ -2013,7 +2013,9 @@ static bool patch_68k(void)
|
||||
wp = (uint16 *)(ROM_BASE + base);
|
||||
if (ROMType == ROMTYPE_ZANZIBAR)
|
||||
*wp = htons(M68K_RTS);
|
||||
else
|
||||
else if (ntohs(wp[-4]) == 0x61ff)
|
||||
*wp = htons(M68K_RTS);
|
||||
else if (ntohs(wp[-2]) == 0x6700)
|
||||
wp[-2] = htons(0x6000); // bra
|
||||
|
||||
// Patch PowerOff()
|
||||
|
Loading…
x
Reference in New Issue
Block a user