trunk/src/mame/video/seibuspi.c
| r23923 | r23924 | |
| 97 | 97 | return; |
| 98 | 98 | |
| 99 | 99 | // safety check |
| 100 | | if ((m_video_dma_address & 3) != 0 || (m_video_dma_length & 3) != 3 || (m_video_dma_address + ((m_rowscroll_enable) ? 0x4000 : 0x2800)) > 0x40000) |
| 100 | int dma_length_user = m_rowscroll_enable ? 0x4000 : 0x2800; |
| 101 | int dma_length_real = (m_video_dma_length + 1) * 2; // ideally we should be using this, let's check if we have to: |
| 102 | if (m_video_dma_length != 0 && dma_length_user != dma_length_real) |
| 103 | popmessage("Tile LEN %X %X, contact MAMEdev", dma_length_user, dma_length_real); // shouldn't happen |
| 104 | else if ((m_video_dma_address & 3) != 0 || (m_video_dma_length & 3) != 3 || (m_video_dma_address + dma_length_user) > 0x40000) |
| 101 | 105 | popmessage("Tile DMA %X %X, contact MAMEdev", m_video_dma_address, m_video_dma_length); // shouldn't happen |
| 102 | 106 | if (m_video_dma_address < 0x800) |
| 103 | 107 | logerror("tilemap_dma_start_w in I/O area: %X\n", m_video_dma_address); |