Previous 199869 Revisions Next

r22015 Friday 22nd March, 2013 at 05:31:44 UTC by Fabio Priuli
(MESS) same fix to the non-slot implementation. nw.
[src/mess/machine]megasvp.c

trunk/src/mess/machine/megasvp.c
r22014r22015
5656   mdsvp_state *state = space.machine().driver_data<mdsvp_state>();
5757   if (state->m_emu_status & SSP_PMC_SET)
5858   {
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;
6063      state->m_emu_status &= ~SSP_PMC_SET;
6164      return 0;
6265   }
r22014r22015
126129      }
127130
128131      // 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];
130136
131137      return d;
132138   }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team