trunk/src/mame/machine/tecmosys.c
| r31542 | r31543 | |
| 206 | 206 | break; |
| 207 | 207 | |
| 208 | 208 | case DS_SEND_CHKSUMS: |
| 209 | | if( m_device_read_ptr >= 5 ) |
| 209 | if( m_device_read_ptr >= 4 ) |
| 210 | 210 | { |
| 211 | 211 | m_device_status = DS_DONE; |
| 212 | 212 | m_device_value = 0; |
| 213 | 213 | } |
| 214 | 214 | else |
| 215 | | { |
| 216 | | assert(m_device_read_ptr >= 0 && m_device_read_ptr < ARRAY_LENGTH(m_device_data->checksums)); |
| 217 | 215 | m_device_value = data == m_device_data->checksums[m_device_read_ptr] ? m_device_data->checksums[m_device_read_ptr++] : 0xff; |
| 218 | | } |
| 219 | 216 | break; |
| 220 | 217 | |
| 221 | 218 | case DS_DONE: |