diff options
author | Angelo Salese <angelosa@users.noreply.github.com> | 2012-01-04 18:32:30 +0000 |
---|---|---|
committer | Angelo Salese <angelosa@users.noreply.github.com> | 2012-01-04 18:32:30 +0000 |
commit | 2a988b2bfed49bccd0ffe52d8c601ef34f3d1a66 (patch) | |
tree | bc2e7c1cd4ec5134463002148ea313c5807ae242 | |
parent | 5cb1e8fae961ce8255f6e331d5ab2474d0182a0d (diff) |
Fix z80dma assert
-rw-r--r-- | src/emu/machine/z80dma.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/emu/machine/z80dma.c b/src/emu/machine/z80dma.c index de3132285fd..f7ced536cc4 100644 --- a/src/emu/machine/z80dma.c +++ b/src/emu/machine/z80dma.c @@ -597,10 +597,11 @@ UINT8 z80dma_device::read() { UINT8 res; - if(m_read_num_follow == 0) /* TODO: should return the status, but let me know WHAT uses this first */ - fatalerror("Z80DMA '%s' Read without anything setted into stack", tag()); + if(m_read_num_follow == 0) // special case: Legend of Kage on X1 Turbo + res = m_status; + else + res = m_read_regs_follow[m_read_cur_follow]; - res = m_read_regs_follow[m_read_cur_follow]; m_read_cur_follow++; if(m_read_cur_follow >= m_read_num_follow) |