trunk/src/emu/machine/z80dma.c
| r31447 | r31448 | |
| 595 | 595 | |
| 596 | 596 | if(m_read_num_follow == 0) // special case: Legend of Kage on X1 Turbo |
| 597 | 597 | res = m_status; |
| 598 | | else |
| 598 | else { |
| 599 | assert(m_read_cur_follow < ARRAY_LENGTH(m_read_regs_follow)); |
| 599 | 600 | res = m_read_regs_follow[m_read_cur_follow]; |
| 601 | } |
| 600 | 602 | |
| 601 | 603 | m_read_cur_follow++; |
| 602 | 604 | |
| r31447 | r31448 | |
| 686 | 688 | case COMMAND_READ_STATUS_BYTE: |
| 687 | 689 | if (LOG) logerror("Z80DMA '%s' CMD Read status Byte\n", tag()); |
| 688 | 690 | READ_MASK = 1; |
| 691 | assert(m_read_num_follow < ARRAY_LENGTH(m_read_regs_follow)); |
| 689 | 692 | m_read_regs_follow[m_read_num_follow++] = m_status; |
| 690 | 693 | break; |
| 691 | 694 | case COMMAND_RESET_AND_DISABLE_INTERRUPTS: |