trunk/src/emu/video/i8275x.c
| r20181 | r20182 | |
| 181 | 181 | |
| 182 | 182 | void i8275x_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) |
| 183 | 183 | { |
| 184 | | int y = m_screen->vpos(); |
| 185 | | int x = m_screen->hpos(); |
| 184 | //int y = m_screen->vpos(); |
| 185 | //int x = m_screen->hpos(); |
| 186 | 186 | int rc = m_scanline / SCANLINES_PER_ROW; |
| 187 | 187 | int lc = m_scanline % SCANLINES_PER_ROW; |
| 188 | 188 | |
| r20181 | r20182 | |
| 194 | 194 | break; |
| 195 | 195 | |
| 196 | 196 | case TIMER_DRQ_ON: |
| 197 | | logerror("I8275 '%s' y %u x %u DRQ 1\n", tag(), y, x); |
| 197 | //logerror("I8275 '%s' y %u x %u DRQ 1\n", tag(), y, x); |
| 198 | 198 | m_out_drq_func(1); |
| 199 | 199 | m_drq_off_timer->adjust(clocks_to_attotime(DMA_BURST_COUNT)); |
| 200 | 200 | break; |
| r20181 | r20182 | |
| 204 | 204 | { |
| 205 | 205 | m_status |= ST_DU; |
| 206 | 206 | m_du = true; |
| 207 | | logerror("I8275 '%s' y %u x %u DRQ 0\n", tag(), y, x); |
| 207 | //logerror("I8275 '%s' y %u x %u DRQ 0\n", tag(), y, x); |
| 208 | 208 | m_out_drq_func(0); |
| 209 | 209 | } |
| 210 | 210 | else if (m_buffer_idx == CHARACTERS_PER_ROW) |
| 211 | 211 | { |
| 212 | | logerror("I8275 '%s' y %u x %u DRQ 0\n", tag(), y, x); |
| 212 | //logerror("I8275 '%s' y %u x %u DRQ 0\n", tag(), y, x); |
| 213 | 213 | m_out_drq_func(0); |
| 214 | 214 | } |
| 215 | 215 | else if (DMA_BURST_SPACE > 0) |
| 216 | 216 | { |
| 217 | | logerror("I8275 '%s' y %u x %u DRQ 0\n", tag(), y, x); |
| 217 | //logerror("I8275 '%s' y %u x %u DRQ 0\n", tag(), y, x); |
| 218 | 218 | m_out_drq_func(0); |
| 219 | 219 | m_drq_on_timer->adjust(clocks_to_attotime(DMA_BURST_SPACE)); |
| 220 | 220 | } |
| r20181 | r20182 | |
| 488 | 488 | |
| 489 | 489 | WRITE8_MEMBER( i8275x_device::dack_w ) |
| 490 | 490 | { |
| 491 | | logerror("DACK write %02x %u\n", data, m_buffer_idx); |
| 491 | //logerror("DACK write %02x %u\n", data, m_buffer_idx); |
| 492 | 492 | |
| 493 | 493 | if (m_fifo_next) |
| 494 | 494 | { |