mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
(MESS) same fix to the non-slot implementation. nw.
This commit is contained in:
parent
368dc3381e
commit
b91cdd39ea
@ -56,7 +56,10 @@ static UINT32 pm_io(address_space &space, int reg, int write, UINT32 d)
|
|||||||
mdsvp_state *state = space.machine().driver_data<mdsvp_state>();
|
mdsvp_state *state = space.machine().driver_data<mdsvp_state>();
|
||||||
if (state->m_emu_status & SSP_PMC_SET)
|
if (state->m_emu_status & SSP_PMC_SET)
|
||||||
{
|
{
|
||||||
state->m_pmac_read[write ? reg + 6 : reg] = state->m_pmc.d;
|
if (write)
|
||||||
|
state->m_pmac_write[reg] = state->m_pmc.d;
|
||||||
|
else
|
||||||
|
state->m_pmac_read[reg] = state->m_pmc.d;
|
||||||
state->m_emu_status &= ~SSP_PMC_SET;
|
state->m_emu_status &= ~SSP_PMC_SET;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -126,7 +129,10 @@ static UINT32 pm_io(address_space &space, int reg, int write, UINT32 d)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PMC value corresponds to last PMR accessed (not sure).
|
// PMC value corresponds to last PMR accessed (not sure).
|
||||||
state->m_pmc.d = state->m_pmac_read[write ? reg + 6 : reg];
|
if (write)
|
||||||
|
state->m_pmc.d = state->m_pmac_write[reg];
|
||||||
|
else
|
||||||
|
state->m_pmc.d = state->m_pmac_read[reg];
|
||||||
|
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user