mirror of
https://github.com/holub/mame
synced 2025-05-10 08:12:13 +03:00
Fix z80dma assert
This commit is contained in:
parent
5cb1e8fae9
commit
2a988b2bfe
@ -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];
|
||||
|
||||
m_read_cur_follow++;
|
||||
|
||||
if(m_read_cur_follow >= m_read_num_follow)
|
||||
|
Loading…
Reference in New Issue
Block a user