(MESS) same fix to the non-slot implementation. nw.

This commit is contained in:
Fabio Priuli 2013-03-22 05:31:44 +00:00
parent 368dc3381e
commit b91cdd39ea

View File

@ -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;
} }