src/emu/machine/8237dma.c
| r15399 | r15400 | |
| 304 | 304 | m_out_hrq_func(m_hrq); |
| 305 | 305 | m_state = DMA8237_S0; |
| 306 | 306 | |
| 307 | | //m_timer->enable( true ); |
| 308 | | m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock())); |
| 307 | m_timer->enable( true ); |
| 309 | 308 | } |
| 310 | 309 | else if (m_command == 3 && (m_drq & 1)) |
| 311 | 310 | { |
| r15399 | r15400 | |
| 315 | 314 | } |
| 316 | 315 | else |
| 317 | 316 | { |
| 318 | | //m_timer->enable( false ); |
| 319 | | m_timer->reset(); |
| 317 | m_timer->enable( false ); |
| 320 | 318 | } |
| 321 | 319 | break; |
| 322 | 320 | } |
| r15399 | r15400 | |
| 609 | 607 | case 8: |
| 610 | 608 | /* DMA command register */ |
| 611 | 609 | m_command = data; |
| 612 | | // m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 ); |
| 613 | | if ( m_command & 0x04 ) |
| 614 | | m_timer->reset(); |
| 615 | | else |
| 616 | | m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock())); |
| 610 | m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 ); |
| 617 | 611 | break; |
| 618 | 612 | |
| 619 | 613 | case 9: |
| r15399 | r15400 | |
| 623 | 617 | if ( data & 0x04 ) |
| 624 | 618 | { |
| 625 | 619 | m_drq |= 0x01 << channel; |
| 626 | | //m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 ); |
| 627 | | if ( m_command & 0x04 ) |
| 628 | | m_timer->reset(); |
| 629 | | else |
| 630 | | m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock())); |
| 631 | | |
| 620 | m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 ); |
| 632 | 621 | } |
| 633 | 622 | else |
| 634 | 623 | { |
| r15399 | r15400 | |
| 703 | 692 | m_drq &= ~( 0x01 << channel ); |
| 704 | 693 | } |
| 705 | 694 | |
| 706 | | //m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 ); |
| 707 | | if ( m_command & 0x04 ) |
| 708 | | m_timer->reset(); |
| 709 | | else |
| 710 | | m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock())); |
| 711 | | |
| 695 | m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 ); |
| 712 | 696 | } |
| 713 | 697 | |
| 714 | 698 | |