trunk/src/emu/video/tms9928a.c
| r23564 | r23565 | |
| 116 | 116 | |
| 117 | 117 | READ8_MEMBER( tms9928a_device::vram_read ) |
| 118 | 118 | { |
| 119 | // prevent debugger from changing the address base |
| 120 | if (space.debugger_access()) return 0; |
| 121 | |
| 119 | 122 | UINT8 data = m_ReadAhead; |
| 120 | 123 | |
| 121 | 124 | m_ReadAhead = m_vram_space->read_byte(m_Addr); |
| r23564 | r23565 | |
| 128 | 131 | |
| 129 | 132 | WRITE8_MEMBER( tms9928a_device::vram_write ) |
| 130 | 133 | { |
| 134 | // prevent debugger from changing the address base |
| 135 | if (space.debugger_access()) return; |
| 136 | |
| 131 | 137 | m_vram_space->write_byte(m_Addr, data); |
| 132 | 138 | m_Addr = (m_Addr + 1) & (m_vram_size - 1); |
| 133 | 139 | m_ReadAhead = data; |
| r23564 | r23565 | |
| 137 | 143 | |
| 138 | 144 | READ8_MEMBER( tms9928a_device::register_read ) |
| 139 | 145 | { |
| 146 | // prevent debugger from changing the internal state |
| 147 | if (space.debugger_access()) return 0; |
| 148 | |
| 140 | 149 | UINT8 data = m_StatusReg; |
| 141 | 150 | |
| 142 | 151 | m_StatusReg = m_FifthSprite; |
| r23564 | r23565 | |
| 262 | 271 | |
| 263 | 272 | WRITE8_MEMBER( tms9928a_device::register_write ) |
| 264 | 273 | { |
| 274 | // prevent debugger from changing the internal state |
| 275 | if (space.debugger_access()) return; |
| 276 | |
| 265 | 277 | if (m_latch) |
| 266 | 278 | { |
| 267 | 279 | /* set high part of read/write address */ |
trunk/src/emu/sound/tms5220.c
| r23564 | r23565 | |
| 1088 | 1088 | bn = m_x[n-1] |
| 1089 | 1089 | */ |
| 1090 | 1090 | /* |
| 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 | } |
| 1101 | 1101 | m_x[0] = ep; // feed the last section of the top of the lattice directly to the bottom of the lattice |
| 1102 | 1102 | */ |
| 1103 | 1103 | m_u[10] = matrix_multiply(m_previous_energy, (m_excitation_data<<6)); //Y(11) |
| r23564 | r23565 | |
| 1673 | 1673 | |
| 1674 | 1674 | WRITE8_MEMBER( tms5220_device::data_w ) |
| 1675 | 1675 | { |
| 1676 | // prevent debugger from changing the internal state |
| 1677 | if (space.debugger_access()) return; |
| 1678 | |
| 1676 | 1679 | #ifdef DEBUG_RS_WS |
| 1677 | 1680 | logerror("tms5220_data_w: data %02x\n", data); |
| 1678 | 1681 | #endif |
| r23564 | r23565 | |
| 1703 | 1706 | |
| 1704 | 1707 | READ8_MEMBER( tms5220_device::status_r ) |
| 1705 | 1708 | { |
| 1709 | // prevent debugger from changing the internal state |
| 1710 | if (space.debugger_access()) return 0; |
| 1711 | |
| 1706 | 1712 | if (!m_true_timing) |
| 1707 | 1713 | { |
| 1708 | 1714 | /* bring up to date first */ |