Previous 199869 Revisions Next

r23565 Sunday 9th June, 2013 at 13:20:44 UTC by Michael Zapf
Inserted checks to prevent debugger access. (nw)
[src/emu/sound]tms5220.c
[src/emu/video]tms9928a.c

trunk/src/emu/video/tms9928a.c
r23564r23565
116116
117117READ8_MEMBER( tms9928a_device::vram_read )
118118{
119   // prevent debugger from changing the address base
120   if (space.debugger_access()) return 0;
121
119122   UINT8 data = m_ReadAhead;
120123
121124   m_ReadAhead = m_vram_space->read_byte(m_Addr);
r23564r23565
128131
129132WRITE8_MEMBER( tms9928a_device::vram_write )
130133{
134   // prevent debugger from changing the address base
135   if (space.debugger_access()) return;
136
131137   m_vram_space->write_byte(m_Addr, data);
132138   m_Addr = (m_Addr + 1) & (m_vram_size - 1);
133139   m_ReadAhead = data;
r23564r23565
137143
138144READ8_MEMBER( tms9928a_device::register_read )
139145{
146   // prevent debugger from changing the internal state
147   if (space.debugger_access()) return 0;
148
140149   UINT8 data = m_StatusReg;
141150
142151   m_StatusReg = m_FifthSprite;
r23564r23565
262271
263272WRITE8_MEMBER( tms9928a_device::register_write )
264273{
274   // prevent debugger from changing the internal state
275   if (space.debugger_access()) return;
276
265277   if (m_latch)
266278   {
267279      /* set high part of read/write address */
trunk/src/emu/sound/tms5220.c
r23564r23565
10881088     bn = m_x[n-1]
10891089    */
10901090   /*
1091      int ep = matrix_multiply(m_previous_energy, (m_excitation_data<<6));  //Y(11)
1092       m_u[10] = ep;
1093      for (int i = 0; i < 10; i++)
1094      {
1095         int ii = 10-i; // for m = 10, this would be 11 - i, and since i is from 1 to 10, then ii ranges from 10 to 1
1096         //int jj = ii+1; // this variable, even on the fortran version, is never used. it probably was intended to be used on the two lines below the next one to save some redundant additions on each.
1097         ep = ep - (((m_current_k[ii-1] * m_x[ii-1])>>9)|1); // subtract reflection from lower stage 'top of lattice'
1098          m_u[ii-1] = ep;
1099         m_x[ii] = m_x[ii-1] + (((m_current_k[ii-1] * ep)>>9)|1); // add reflection from upper stage 'bottom of lattice'
1100      }
1091       int ep = matrix_multiply(m_previous_energy, (m_excitation_data<<6));  //Y(11)
1092        m_u[10] = ep;
1093       for (int i = 0; i < 10; i++)
1094       {
1095           int ii = 10-i; // for m = 10, this would be 11 - i, and since i is from 1 to 10, then ii ranges from 10 to 1
1096           //int jj = ii+1; // this variable, even on the fortran version, is never used. it probably was intended to be used on the two lines below the next one to save some redundant additions on each.
1097           ep = ep - (((m_current_k[ii-1] * m_x[ii-1])>>9)|1); // subtract reflection from lower stage 'top of lattice'
1098            m_u[ii-1] = ep;
1099           m_x[ii] = m_x[ii-1] + (((m_current_k[ii-1] * ep)>>9)|1); // add reflection from upper stage 'bottom of lattice'
1100       }
11011101   m_x[0] = ep; // feed the last section of the top of the lattice directly to the bottom of the lattice
11021102   */
11031103      m_u[10] = matrix_multiply(m_previous_energy, (m_excitation_data<<6));  //Y(11)
r23564r23565
16731673
16741674WRITE8_MEMBER( tms5220_device::data_w )
16751675{
1676   // prevent debugger from changing the internal state
1677   if (space.debugger_access()) return;
1678
16761679#ifdef DEBUG_RS_WS
16771680   logerror("tms5220_data_w: data %02x\n", data);
16781681#endif
r23564r23565
17031706
17041707READ8_MEMBER( tms5220_device::status_r )
17051708{
1709   // prevent debugger from changing the internal state
1710   if (space.debugger_access()) return 0;
1711
17061712   if (!m_true_timing)
17071713   {
17081714      /* bring up to date first */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team