From 2a988b2bfed49bccd0ffe52d8c601ef34f3d1a66 Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Wed, 4 Jan 2012 18:32:30 +0000 Subject: [PATCH] Fix z80dma assert --- src/emu/machine/z80dma.c | 7 ++++--- 1 file 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)