mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 03:31:49 +01:00
[Core/MCD] disabled CD hardware reset on Soft-Reset (verified on real hardware)
This commit is contained in:
parent
5fbde4e187
commit
cf6081fb69
@ -1218,6 +1218,11 @@ void scd_reset(int hard)
|
|||||||
m68k.memory_map[i].base = scd.prg_ram;
|
m68k.memory_map[i].base = scd.prg_ram;
|
||||||
m68k.memory_map[i+1].base = scd.prg_ram + 0x10000;
|
m68k.memory_map[i+1].base = scd.prg_ram + 0x10000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* reset & halt SUB-CPU */
|
||||||
|
s68k.cycles = 0;
|
||||||
|
s68k_pulse_reset();
|
||||||
|
s68k_pulse_halt();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -252,20 +252,17 @@ void gen_reset(int hard_reset)
|
|||||||
if ((system_hw & SYSTEM_PBC) == SYSTEM_MD)
|
if ((system_hw & SYSTEM_PBC) == SYSTEM_MD)
|
||||||
{
|
{
|
||||||
if (system_hw == SYSTEM_MCD)
|
if (system_hw == SYSTEM_MCD)
|
||||||
|
{
|
||||||
|
/* FRES is only asserted on Power ON */
|
||||||
|
if (hard_reset)
|
||||||
{
|
{
|
||||||
/* reset CD hardware */
|
/* reset CD hardware */
|
||||||
scd_reset(1);
|
scd_reset(1);
|
||||||
|
|
||||||
/* reset & halt SUB-CPU */
|
|
||||||
s68k.cycles = 0;
|
|
||||||
s68k_pulse_reset();
|
|
||||||
s68k_pulse_halt();
|
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
{
|
|
||||||
/* reset MD cartridge hardware */
|
/* reset MD cartridge hardware */
|
||||||
md_cart_reset(hard_reset);
|
md_cart_reset(hard_reset);
|
||||||
}
|
|
||||||
|
|
||||||
/* Z80 bus is released & Z80 is reseted */
|
/* Z80 bus is released & Z80 is reseted */
|
||||||
m68k.memory_map[0xa0].read8 = m68k_read_bus_8;
|
m68k.memory_map[0xa0].read8 = m68k_read_bus_8;
|
||||||
|
Loading…
Reference in New Issue
Block a user