trunk/src/mess/machine/megasvp.c
r22014 | r22015 | |
56 | 56 | mdsvp_state *state = space.machine().driver_data<mdsvp_state>(); |
57 | 57 | if (state->m_emu_status & SSP_PMC_SET) |
58 | 58 | { |
59 | | state->m_pmac_read[write ? reg + 6 : reg] = state->m_pmc.d; |
| 59 | if (write) |
| 60 | state->m_pmac_write[reg] = state->m_pmc.d; |
| 61 | else |
| 62 | state->m_pmac_read[reg] = state->m_pmc.d; |
60 | 63 | state->m_emu_status &= ~SSP_PMC_SET; |
61 | 64 | return 0; |
62 | 65 | } |
r22014 | r22015 | |
126 | 129 | } |
127 | 130 | |
128 | 131 | // PMC value corresponds to last PMR accessed (not sure). |
129 | | state->m_pmc.d = state->m_pmac_read[write ? reg + 6 : reg]; |
| 132 | if (write) |
| 133 | state->m_pmc.d = state->m_pmac_write[reg]; |
| 134 | else |
| 135 | state->m_pmc.d = state->m_pmac_read[reg]; |
130 | 136 | |
131 | 137 | return d; |
132 | 138 | } |