Similar issue as with ins8154. No whatsnew.

This commit is contained in:
Ryan Holtz 2010-08-27 12:17:06 +00:00
parent 44bbd47830
commit 2c3b3b9d5e

View File

@ -141,7 +141,10 @@ WRITE8_DEVICE_HANDLER_TRAMPOLINE(i8243, i8243_prog_w)
/* if this is a read opcode, copy result to p2out */ /* if this is a read opcode, copy result to p2out */
if((m_opcode >> 2) == MCS48_EXPANDER_OP_READ) if((m_opcode >> 2) == MCS48_EXPANDER_OP_READ)
{ {
m_p[m_opcode & 3] = devcb_call_read8(&m_readhandler, m_opcode & 3); if (m_readhandler.read != NULL)
{
m_p[m_opcode & 3] = devcb_call_read8(&m_readhandler, m_opcode & 3);
}
m_p2out = m_p[m_opcode & 3] & 0x0f; m_p2out = m_p[m_opcode & 3] & 0x0f;
} }
} }