mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
Merge pull request #96 from 'techmetx11/master'
* techmetx11/master: Add hack for unlicensed games that don't handle the Z80 bus properly
This commit is contained in:
commit
5038e421e9
5 changed files with 39 additions and 6 deletions
|
@ -675,7 +675,7 @@ static void PicoWrite16_sram(u32 a, u32 d)
|
|||
static u32 PicoRead8_z80(u32 a)
|
||||
{
|
||||
u32 d = 0xff;
|
||||
if ((Pico.m.z80Run & 1) || Pico.m.z80_reset) {
|
||||
if (((Pico.m.z80Run & 1) || Pico.m.z80_reset) && !(PicoIn.quirks & PQUIRK_NO_Z80_BUS_LOCK)) {
|
||||
elprintf(EL_ANOMALY, "68k z80 read with no bus! [%06x] @ %06x", a, SekPc);
|
||||
// open bus. Pulled down if MegaCD2 is attached.
|
||||
return 0;
|
||||
|
@ -699,7 +699,7 @@ static u32 PicoRead16_z80(u32 a)
|
|||
|
||||
static void PicoWrite8_z80(u32 a, u32 d)
|
||||
{
|
||||
if ((Pico.m.z80Run & 1) || Pico.m.z80_reset) {
|
||||
if (((Pico.m.z80Run & 1) || Pico.m.z80_reset) && !(PicoIn.quirks & PQUIRK_NO_Z80_BUS_LOCK)) {
|
||||
// verified on real hw
|
||||
elprintf(EL_ANOMALY, "68k z80 write with no bus or reset! [%06x] %02x @ %06x", a, d&0xff, SekPc);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue