mirror of
https://github.com/holub/mame
synced 2025-05-10 16:21:42 +03:00
Fix z80dma assert
This commit is contained in:
parent
5cb1e8fae9
commit
2a988b2bfe
@ -597,10 +597,11 @@ UINT8 z80dma_device::read()
|
|||||||
{
|
{
|
||||||
UINT8 res;
|
UINT8 res;
|
||||||
|
|
||||||
if(m_read_num_follow == 0) /* TODO: should return the status, but let me know WHAT uses this first */
|
if(m_read_num_follow == 0) // special case: Legend of Kage on X1 Turbo
|
||||||
fatalerror("Z80DMA '%s' Read without anything setted into stack", tag());
|
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++;
|
m_read_cur_follow++;
|
||||||
|
|
||||||
if(m_read_cur_follow >= m_read_num_follow)
|
if(m_read_cur_follow >= m_read_num_follow)
|
||||||
|
Loading…
Reference in New Issue
Block a user