mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 03:31:49 +01:00
[Core/MS/GG] fixed SP register initialization on power-on (Ace of Aces, Shadow Dancer, Ecco the Dolphin, Evander Holyfield Real Deal Boxing)
This commit is contained in:
parent
9f5dd11e93
commit
4946d73a47
@ -349,11 +349,15 @@ void gen_reset(int hard_reset)
|
||||
Z80.r = 4;
|
||||
}
|
||||
|
||||
/* Master System specific (when BIOS is disabled) */
|
||||
else if ((system_hw & SYSTEM_SMS) && (!(config.bios & 1) || !(system_bios & SYSTEM_SMS)))
|
||||
/* Master System & Game Gear specific */
|
||||
else if (system_hw & (SYSTEM_SMS | SYSTEM_GG))
|
||||
{
|
||||
/* usually done by BIOS & required by some SMS games that don't initialize SP */
|
||||
Z80.sp.w.l = 0xDFFF;
|
||||
/* check if BIOS is not being used */
|
||||
if ((!(config.bios & 1) || !(system_bios & (SYSTEM_SMS | SYSTEM_GG))))
|
||||
{
|
||||
/* a few Master System (Ace of Aces, Shadow Dancer) & Game Gear (Ecco the Dolphin, Evander Holyfield Real Deal Boxing) games crash if SP is not properly initialized */
|
||||
Z80.sp.w.l = 0xDFF0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user